#776 XInsert Causes Exception on jEdit Close

normal bug
closed-duplicate
nobody
5
2001-10-28
2001-10-26
lhasadad
No

I have noted that when I shutdown jEdit 3.2.2 with XInsert installed I normally see the following
exception (this is with Java 1.3.1)

[error] Error saving user defined global variables
[error] java.io.IOException: The system cannot find the path specified
[error] at java.io.Win32FileSystem.createFileExclusively(Native Method)
[error] at java.io.File.createNewFile(File.java:697)
[error] at XInsertPlugin.stop(XInsertPlugin.java:115)
[error] at org.gjt.sp.jedit.jEdit.exit(jEdit.java:1885)
[error] at org.gjt.sp.jedit.jEdit.closeView(jEdit.java:2682)
[error] at org.gjt.sp.jedit.jEdit.closeView(jEdit.java:1701)
[error] at org.gjt.sp.jedit.View$WindowHandler.windowClosing(View.java:1055)
[error] at java.awt.Window.processWindowEvent(Window.java:806)
[error] at javax.swing.JFrame.processWindowEvent(JFrame.java:241)
[error] at java.awt.Window.processEvent(Window.java:782)
[error] at java.awt.Component.dispatchEventImpl(Component.java:2649)
[error] at java.awt.Container.dispatchEventImpl(Container.java:1222)
[error] at java.awt.Window.dispatchEventImpl(Window.java:923)
[error] at java.awt.Component.dispatchEvent(Component.java:2553)
[error] at java.awt.EventQueue.dispatchEvent(EventQueue.java:401)
[error] at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:109)
[error] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:99)
[error] at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

the command line used to start jedit is:

"C:\Program Files\IBM\Java13\jre\bin\java.exe" -jar -mx32m "C:\Program Files\jEdit\jedit.jar"

Discussion

  • Dominic Stolerman

    Logged In: YES
    user_id=2448

    Duplicate of #425971. I have still not found the cause of this problem though so it would be helpful if you
    could tell me the result of:
    Utilities -> Evaluate Beanshell Expression and entering jEdit.getProperty("xinsert.inserts-directory")

     
  • Dominic Stolerman

    • status: open --> closed-duplicate
     
  • Nobody/Anonymous

    Logged In: NO

    The response to the jEdit.getProperty("xinsert.inserts-directory") was C:\temp
    this is a valid directory on my system. I did notice that for some reason the
    directory had the R attribute (read only) enabled. I removed the readonly attribute and
    still wound up with same trap mentioned above

     
  • Nobody/Anonymous

    Logged In: NO

    Additional Information... I had a look at the java for XInsertPlugin.java
    it appears that this is part of the line with the problem:
    MiscUtilities.constructPath(jEdit.getSettingsDirectory(), "xinsert" + File.separator + "variables")

    This evaluates to:
    C:\Documents and Settings\wft\.jedit\xinsert\variables

    The xinsert and variables directory do not exist.

    Fyi, the xinsert and xml package wound up in the user based plugin directory.
    the rest of the pluggins are in the directory under the jedit in program files.

     
  • Nobody/Anonymous

    Logged In: NO

    I think, this might be the cause the no of characters in the
    directory structure, it might take only 100 characters. Kindly
    check it out.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks