#3753 IOException in Log class after suspend&resume from ram

open
nobody
None
5
2012-10-20
2012-10-20
Thomas Meyer
No

The jedit settings directory resides on a network drive, so also does
the log file. The network drive is available again after resume from
ram, but the stream that were used for the original log file seems to
have gone. Therefore every interaction with jedit which creates a log
entry, will create an IOException dump on the command line window...

One of my Windows XP computers shows this IOException on the command
line after a suspend and resume cycle:

java.io.IOException: Der angegebene Netzwerkname ist nicht mehr
verfügbar
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(Unknown Source)
at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at java.io.OutputStreamWriter.write(Unknown Source)
at java.io.BufferedWriter.flushBuffer(Unknown Source)
at java.io.BufferedWriter.write(Unknown Source)
at java.io.Writer.write(Unknown Source)
at org.gjt.sp.util.Log._log(Log.java:434)
at org.gjt.sp.util.Log.log(Log.java:340)
at org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:456)
at org.gjt.sp.jedit.EditBus.send(EditBus.java:206)
at
org.gjt.sp.jedit.BufferHistory.notifyChange(BufferHistory.java:406)
at
org.gjt.sp.jedit.BufferHistory.setEntry(BufferHistory.java:115)
at org.gjt.sp.jedit.EditPane.saveCaretInfo(EditPane.java:366)
at
org.gjt.sp.jedit.visitors.SaveCaretInfoVisitor.visit(SaveCaretInfoVis
itor.java:36)
at org.gjt.sp.jedit.View.visit(View.java:1295)
at org.gjt.sp.jedit.jEdit.visit(jEdit.java:2958)
at org.gjt.sp.jedit.jEdit.checkBufferStatus(jEdit.java:2360)
at org.gjt.sp.jedit.View.handleViewUpdate(View.java:2060)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:242)
at org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281)
at org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87)
at org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
at org.gjt.sp.jedit.EditBus.send(EditBus.java:206)

"Der angegebene Netzwerkname ist nicht mehr verfügbar" translates into
"the given network name is not available".

Discussion