• 締切済み

弥生ドライブが起動しません

弥生販売15プロフェッショナルを使用しています。 ある日突然、弥生ドライブが起動しなくなりました。 いろいろと調べてみたところ以下のログが出てきました。 - ファイルのシリアライズ/デシリアライズ処理中にエラーが発生しました。 System.InvalidOperationException: XML ドキュメント (0,0) でエラーが発生しました。 ---> System.Xml.XmlException: ルート要素が見つかりません。 場所 System.Xml.XmlTextReaderImpl.Throw(Exception e) 場所 System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) 場所 System.Xml.XmlTextReaderImpl.ParseDocumentContent() 場所 System.Xml.XmlTextReaderImpl.Read() 場所 System.Xml.XmlTextReader.Read() 場所 System.Xml.XmlReader.MoveToContent() 場所 Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderYDUserFile.Read6_LoginUser() --- 内部例外スタック トレースの終わり --- 場所 System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) 場所 System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) 場所 Yayoi.Drive.Client.Common.SerializeUtility.Deserialize[T](String path) 2015/03/31 10:09:17 [FATAL] (1_70) - 弥生ドライブの起動中にエラーが発生しました。 System.NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません。 場所 Yayoi.Drive.Client.Presentation.Command.StartProcess.CheckMypageIdCustId() 場所 Yayoi.Drive.Client.Presentation.Command.StartProcess.IsUserGuideShow() 場所 Yayoi.Drive.Client.Presentation.Command.StartProcess.Execute(Object parameter) 場所 Yayoi.Drive.Client.Application.App.Application_Startup(Object sender, StartupEventArgs e) 午前中は問題ありませんでしたが、午後に異常となりました。 その間、PCのアップデートなどは行ってません。 何が原因か全く解らず困っています。

  • Joypi
  • お礼率40% (2/5)

みんなの回答

  • rav4rav4
  • ベストアンサー率20% (450/2151)
回答No.1

メーカーサポに聞いた方が間違いないと思いますが。 https://www.yayoi-kk.co.jp/icare/login/login.jsp?url=/icare/onlinesupport/olnList.do?mail=true

関連するQ&A

  • Web サイトにあるxmlファイルを更新する方法を教えてください。

    開発環境: Visual Studio .NET 2003 .NET Framework 1.1 言語: C# Web サイトにあるxmlファイルを更新する方法を教えてください。 自作クラスに保持した情報をシリアライズ・デシリアライズしxmlファイルで保存しようとしています。 シリアライズでxmlファイルを更新するのが上手くいきません。 ローカルPCでテストした結果は上手く動作しますが、Web サイトでテストするとエラーが出ます。 エラー内容は、 System.ArgumentException : ストリームに書き込めませんでした。 ===ソースコード始=== //URLを取得する Uri myUri = new Uri ("http://www.**********/test.xml");//URLを指定 XmlUrlResolver resolver = new XmlUrlResolver(); //XmlSerializerオブジェクトを作成 //書き込むオブジェクトの型を指定する System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer( typeof(MyData));//MyDataはオブジェクトの型 //ファイルを開く System.IO.Stream fs = (System.IO.Stream)resolver.GetEntity(myUri, null, typeof(System.IO.Stream)); //シリアル化し、XMLファイルに保存する serializer.Serialize(fs, d_MyData);//d_MyDataはオブジェクト *ココでエラーが出ます。 ===ソースコード終=== Web サイトでのフォルダ権限はフルコントロールに設定しています。

  • [VB.NET]クラスのシリアライズでエラーが発生

    プログラムを作っていて設定を保存するためのクラスを作ったのですが原因不明のエラーが出てきてしまいます。 Public Class cde_config Const CONFIG_FILE As String = "config.xml" Public FolderName As String Public exex As New ArrayList Public Sub New() If File.Exists(CONFIG_FILE) Then Dim serializer As XmlSerializer = New XmlSerializer(GetType(cde_config)) Dim stream As FileStream = New FileStream(CONFIG_FILE, FileMode.Open) Try Me.FolderName = CType(serializer.Deserialize(stream), cde_config).FolderName 'ここでエラーが発生 Me.exex = CType(serializer.Deserialize(stream), cde_config).exex Finally stream.Close() End Try Else FolderName = "略" exex.Add(New String("略")) End If End Sub Public Sub save() Dim serializer As XmlSerializer = New XmlSerializer(GetType(cde_config)) Dim stream As FileStream = New FileStream(CONFIG_FILE, FileMode.Create) Try serializer.Serialize(stream, Me) Finally stream.Close() End Try End Sub End Class エラーの内容は 'System.InvalidOperationException' のハンドルされていない例外が system.xml.dll で発生しました。 追加情報 : XML ドキュメント (2,2) でエラーが発生しました。 です。 どこに問題があるのでしょうか。

  • 弥生ソフトについて詳しい方教えてください。

    弥生ソフトについて詳しい方教えてください。 弥生販売06から10へデータを移行して使おうとしています。 弥生販売06から09へデータコンバータは成功しました。09から10へもデータコンバータしたいのですが、下のようなエラーメッセージが出てソフトが強制終了されてしまいます。 販売を起動して作業を始めても同じメッセージが出てきて強制終了になってしまいます。 エラーコード00000FA1 データベースのシステムエラーが発生しました。sys,serversにサーバー‘(コンピューター名)\YAYOI‘が見つかりません。正しいサーバー名を指定したかどうか確認してストアドシージャsp_addlinkedserverを実行して下さい。サーバーをsys,serversに追加して下さい。 http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1032258560 ↑の方の質問回答にもあるのですが、よく分からなくて困っています。 至急回答の方、よろしくお願いします。

  • イベントビュアーでエラー発生

    イベントビュアーを開こうとすると、「スナップインのエラーがMMCにより検出されたので、スナップインがアンロードされます。」と表示されます。 スナップインをアンロードして、実行し続けるを選択すると Managed Codeスナップインで未処理の例外 FX:{b05566ad-fe9c-4363-be05-7a4cbb7cb510} パス 'C:\Users\admin\AppData\Local\Microsoft\Event Viewer\Settings.Xml' の一部が見つかりませんでした。 例外の種類: System.lO.DirectoryNotFoundException 例外のスタックトレース: 場所 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 場所 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 場所 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) 場所 System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) 場所 System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) 場所 System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) 場所 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) 場所 System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) 場所 System.Xml.XmlTextReaderImpl.OpenUrl() 場所 System.Xml.XmlTextReaderImpl.Read() 場所 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) 場所 System.Xml.XmlDocument.Load(XmlReader reader) 場所 System.Xml.XmlDocument.Load(String filename) 場所 Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.InitialiePreviewSizeFromConfigFile() 場所 Microsoft.Windows.ManagementUI.CombinedControls.EventsNode.InitializeConfigDirectories() 場所 Microsoft.Windows.ManagementUI.CombinedControls.EventsNode..ctor() 場所 Microsoft.Windows.ManagementUI.CombinedControls.EventsNode..ctor(EventNodeType type) 場所 Microsoft.EventViewer.SnapIn.MMCRootNode..ctor(String remotecomputerName, String userDomain, String userName, SecureString encryptedPassword) 場所 Microsoft.EventViewer.SnapIn.EventViewerSnapIn.OnInitialize() 場所 Microsoft.ManagementConsole.SnapInBase.Initialized() 場所 Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.ISnapInClient.Initialize(ISnapInPlatform snapInPlatform) 場所 Microsoft.ManagementConsole.Executive.SnapInInitializationOperation.OnStart() 場所 Microsoft.ManagementConsole.Executive.RunningOperationsTable.EnqueueOperation(Operation operation) 場所 Microsoft.ManagementConsole.Advanced.FrameworkSnapInFactory.Microsoft.ManagementConsole.Advanced.ISnapInFactory.CreateSnapIn(Int32 bookkeepingId, String snapInKey, Object& snapIn) と意味不明なのが表示されます・・・。 一応ググってそれらしいのが出てきたのですが、書いてある意味がさっぱりわかりません。。。 できましたら細かな操作の手順をご教授いただけると助かるのですが。 OSはWindwos10Proで自作PCを最近購入したばかりです。 ちなみにこの状態で放置するとかなりまずいのでしょうか? ついでにメモリ診断ツール使ってみると問題発生・・・。 パソコンを普通に使っていて支障がなければいいんですが、何が原因かもさっぱりわかりません。 どなたかよろしければご回答お願いいたします。

  • VB2005 で encoding="Shift_JIS"や"EUC-JP"のXMLファイルを保存する方法

    VB2005, XML の初心者です。 VB2005で encoding="Shift_JIS" や "EUC-JP" のXMLデータをファイルに保存するにはどうすれば良いのでしょうか。 encoding="UTF-8"であれば、下記で保存できますが、="Shift_JIS" や "EUC-JP" になると保存でエラーになってしまいます。 下記ソースでは、strXMLには正しくXMLが入っていますが、saveするとエラーになり、ファイルの中身を確認すると、日本語の箇所で切れていました。 Public Client As TcpClient Dim stream As NetworkStream stream = Client.GetStream() Dim Data(10000) As Byte Dim len As Int16 = stream.Read(Data, 0, Data.Length) strXML = System.Text.Encoding.UTF8.GetString(Data, 0, len) MsxmlDoc = New MSXML2.DOMDocument Msxmldoc.Loadxml(strXML) MsxmlDoc.save ( "C:\XML.xml") 文字コードについても初心者ですので、ヒントになるようなことでも教えていただければ幸いです。 よろしくお願い致します。

    • ベストアンサー
    • XML
  • 起動するとクラッシュします。

    InPixio Photo Focus Crash Report ---------------- Internal Name: PhotoFocus.exe Version: 3.7.6646.26812 (32-bit) Built: 平成30年3月13日 13:53:45 GMT Date: 令和2年1月2日 9:32:06 GMT OS Version: Microsoft Windows NT 10.0.18363.0 (64-bit) OS Friendly Version: Microsoft Windows 10 Pro Processor Name: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz Processor Count: 12 Working Set: 82825216 Managed Memory Consumption: 5001344 Total Phys: 16977260544 Total Virtual: 4294836224 Available Phys: 8448094208 Available Virtual: 3858026496 Current UI Culture: ja-JP Current Culture: ja-JP Exception Type: System.ArgumentOutOfRangeException Exception Message: 指定された引数は、有効な値の範囲内にありません。 パラメーター名:時間値が年号の範囲を超えています。 Exception Stack Trace: 場所 System.Globalization.GregorianCalendarHelper.GetEra(DateTime time) 場所 System.Globalization.JapaneseCalendar.GetEra(DateTime time) 場所 System.DateTimeFormat.FormatCustomized(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset) 場所 System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset) 場所 System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi) 場所 System.DateTime.ToShortDateString() 場所 InPixio.Imaging.ThumbnailHelper.LoadThumbnailAndInfo(String path, Int32 minLongEdge, Int32 maxLongEdge, String& info) 場所 InPixio.Imaging.ThumbnailHelper.LoadThumbnailAndInfo(String path, Int32 longEdge, Dictionary`2 Metadata) 場所 OneFix.ViewModels.SampleItem..ctor(String path) 場所 OneFix.ViewModels.PhotoFocusShellViewModel..ctor() 場所 OneFix.App.App_Startup(Object sender, StartupEventArgs e) 場所 System.Windows.Application.OnStartup(StartupEventArgs e) 場所 System.Windows.Application.<.ctor>b__1_0(Object unused) 場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 場所 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ※OKWAVEより補足:「ソースネクスト株式会社の製品・サービス」についての質問です。

  • ウィンドウズ7起動時に毎回エラー枠が表示されるが、

    Windows7の起動時に、毎回Microsoft. NET Frameworkのエラーメッセージはが表示されて困っています。いったいどうすればなおるのでしょうか? なお、詳細をクリックすると下記のテキストが表示されます。 ************** 例外テキスト ************** System.Configuration.ConfigurationErrorsException: 構成システムを初期化できませんでした。 ---> System.Configuration.ConfigurationErrorsException: ルート要素が見つかりません。 (C:\Users\EMA\AppData\Local\MSI\SCM.exe_Url_zv0ikcohnhzptbjtykvepncdk0ijftla\14.13.7054.0\user.config) ---> System.Xml.XmlException: ルート要素が見つかりません。 場所 System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) 場所 System.Xml.XmlTextReaderImpl.ParseDocumentContent() 場所 System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors) 場所 System.Configuration.BaseConfigurationRecord.InitConfigFromFile() --- 内部例外スタック トレースの終わり --- 場所 System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) 場所 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) 場所 System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e) --- 内部例外スタック トレースの終わり --- 場所 System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e) 場所 System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord) 場所 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) 場所 System.Configuration.BaseConfigurationRecord.GetSection(String configKey) 場所 System.Configuration.ConfigurationManager.GetSection(String sectionName) 場所 System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped) 場所 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties) 場所 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) 場所 System.Configuration.SettingsBase.SetPropertyValueByName(String propertyName, Object propertyValue) 場所 System.Configuration.SettingsBase.set_Item(String propertyName, Object value) 場所 System.Configuration.ApplicationSettingsBase.set_Item(String propertyName, Object value) 場所 MSI.SCM.SCMII.MainForm_Load(Object sender, EventArgs e) 場所 System.Windows.Forms.Form.OnLoad(EventArgs e) 場所 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 場所 System.Windows.Forms.Control.CreateControl() 場所 System.Windows.Forms.Control.WmShowWindow(Message& m) 場所 System.Windows.Forms.Control.WndProc(Message& m) 場所 System.Windows.Forms.Form.WndProc(Message& m) 場所 MSI.SCM.SCMII.WndProc(Message& m) 場所 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** 読み込まれたアセンブリ ************** mscorlib アセンブリ バージョン: 4.0.0.0 Win32 バージョン: 4.0.30319.18063 built by: FX45RTMGDR コードベース: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll ---------------------------------------- SCM アセンブリ バージョン: 14.13.7054.0 Win32 バージョン: 14.013.07054.0 コードベース: file:///C:/Program%20Files%20(x86)/SCM/SCM.exe ---------------------------------------- System.Windows.Forms アセンブリ バージョン: 4.0.0.0 Win32 バージョン: 4.0.30319.34251 built by: FX452RTMGDR コードベース: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing アセンブリ バージョン: 4.0.0.0 Win32 バージョン: 4.0.30319.18021 built by: FX45RTMGDR コードベース: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5

  • 簡単なネットワークプログラムなのですが・・・

    ネットワーク通信の基礎を学ぼうと、いろいろなサイトをみながらSocket通信の簡単なメッセージ送受信を行おうとしているのですが、streamを使って送信したメッセージを送信、又は受信するときにsocketを閉じないと送信できません。 そして常に受信させたいのですが、socketを閉じているため、nullexceptionになってしまいます。 何か別の手はありますでしょうか・・・? 現在↓のような感じで行っています。 private void 待機ToolStripMenuItem_Click(object sender, EventArgs e) { //サーバーを開始 Int32 port = 9999; IPAddress localAddr = IPAddress.Parse("127.0.0.1"); server = new TcpListener(localAddr, port); server.Start(); threadA = new Thread(recvData); threadA.Start(); } // 受信用(マルチスレッド) public void recvData() { //接続待機 this.Invoke(new MyDelegate(delegate { textBox1.Text = "接続待機中"; })); TcpClient client = server.AcceptTcpClient(); //接続 this.Invoke(new MyDelegate(delegate { textBox1.Text = "接続されました"; })); NetworkStream stream = client.GetStream(); // 無限ループ while (true) { Byte[] bytes = new Byte[20]; //わざと小さく取ってある。 int i; //メッセージを受信 while ((i = stream.Read(bytes, 0, bytes.Length)) != 0) { String data = System.Text.Encoding.UTF8.GetString(bytes, 0, i); Console.WriteLine(String.Format("受信: {0}", data)); } client.Close(); }

  • windows7の起動時にエラーメッセージ

    パソコンを起動したら添付画像のようなエラーメッセージが出てきました。 詳細をクリックすると Just-In-Time (JIT) デバッグを呼び出すための詳細については、 ダイアログ ボックスではなく、このメッセージの最後を参照してください。 ************** 例外テキスト ************** System.UnauthorizedAccessException: パス 'C:\Users\Rintaro\AppData\Local\Dportal\V2\APP\app_list.xml' へのアクセスが拒否されました。 場所 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 場所 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) 場所 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) 場所 System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) 場所 System.Xml.XmlDocument.Save(String filename) 場所 dynabookPortalGadget.clsAppLauncher.DownloadAppList() 場所 dynabookPortalGadget.clsAppLauncher.init() 場所 dynabookPortalGadget.frmMain.frmMain_Load(Object sender, EventArgs e) 場所 System.EventHandler.Invoke(Object sender, EventArgs e) 場所 System.Windows.Forms.Form.OnLoad(EventArgs e) 場所 System.Windows.Forms.Form.OnCreateControl() 場所 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 場所 System.Windows.Forms.Control.CreateControl() 場所 System.Windows.Forms.Control.WmShowWindow(Message& m) 場所 System.Windows.Forms.Control.WndProc(Message& m) 場所 System.Windows.Forms.ScrollableControl.WndProc(Message& m) 場所 System.Windows.Forms.ContainerControl.WndProc(Message& m) 場所 System.Windows.Forms.Form.WmShowWindow(Message& m) 場所 System.Windows.Forms.Form.WndProc(Message& m) 場所 dynabookPortalGadget.frmMain.WndProc(Message& m) 場所 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 場所 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 場所 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** 読み込まれたアセンブリ ************** mscorlib アセンブリ バージョン: 2.0.0.0 Win32 バージョン: 2.0.50727.4959 (win7RTMGDR.050727-4900) コードベース: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- dynabook Portal Gadget アセンブリ バージョン: 2.0.0.0 Win32 バージョン: 2.0.0 コードベース: file:///C:/Program%20Files%20(x86)/dynabook%20Portal%20Gadget/dynabook%20Portal%20Gadget.exe (字数の関係で中略。似たようなことがいくつか書いてありました。) ************** JIT デバッグ ************** Just-In-Time (JIT) デバッグを有効にするには、このアプリケーション、 またはコンピュータ (machine.config) の構成ファイルの jitDebugging 値を system.windows.forms セクションで設定しなければなりません。 アプリケーションはまた、デバッグを有効にしてコンパイルされなければ なりません。 例: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> JIT デバッグが有効なときは、このダイアログ ボックスで処理するよりも、 ハンドルされていない例外はすべてコンピュータに登録された JIT デバッガに設定されなければなりません。 こんな感じです。 このエラーはどのようにすれば表示されないようになるでしょうか? あと、関係ないかもしれませんが、デスクトップの背景の画像を単色から変えられなかったり、スクリーンショットが取れなかったり(今回のSSはスカイプで友達と画面共有して友達に共有画面のSSを取ってもらい、画像ファイルを送ってもらいました)、言語ツールバーがなくなっていたり・・・色んな不具合が生じています。 パソコンは dynabook T350/36AW OS windows7 Home Premium64bit CPU インテルcore i5-460Mプロセッサー 一応最低限普通に使うことはできるのですが、何かと不便ですし、エラーがどこに影響しているのかわからなくて不安です・・・ 何か解決方法がわかる方がいらっしゃいましたらご教授お願いします。

  • Strutsによるバイナリファイル出力

    FileInputStream stream =new FileInputStream("C:/Test.exe"); String filename = "Test1.exe"; int bytesRead = 0; byte[] buffer = new byte[256]; HttpResponse.setContentType("application/octet-stream; charset=UTF-8"); HttpResponse.setHeader("Content-Disposition","attachment; filename=\""+filename+"\""); ServletOutputStream sos =HttpResponse.getOutputStream(); while ((bytesRead = stream.read(buffer,0,256) != -1) {  sos.write(buffer); } sos.flush(); sos.close(); stream.close(); 以上のコードでローカル内にあるファイルを名前を変え転送していますが クライアントにより正常なファイルだったり異常なファイルだったりします。 異常なファイルはクライアントによりばらばらですが、ファイルサイズが正常のものより少し大きかったりします。 バッファーではなくバイト単位での転送も試みたのですが 結果は同じでした。 何かおかしい点ありましたらご指摘いただけますでしょうか。

    • ベストアンサー
    • Java

専門家に質問してみよう