Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#836 Fail to open session with RSyntax edito

3.1
closed-fixed
Rob Manning
Core (461)
5
2010-03-13
2010-03-08
Anonymous
No

openSuSE 11.3 / Sun JVM 1.6 - 64bits / Squirell version 3.1

When sql editor is set to RSyntax , on open session trap an exception like below.
Turned back to Netbean or other sql sintax option all goes right.

java.lang.NoClassDefFoundError: org/fife/ui/rtextarea/RTextArea
at net.sourceforge.squirrel_sql.plugins.syntax.rsyntax.RSyntaxSQLEntryAreaFactory.createSQLEntryPanel(RSyntaxSQLEntryAreaFactory.java:37)
at net.sourceforge.squirrel_sql.plugins.syntax.SQLEntryPanelFactoryProxy.createSQLEntryPanel(SQLEntryPanelFactoryProxy.java:64)
at net.sourceforge.squirrel_sql.client.session.mainpanel.SQLPanel.createGUI(SQLPanel.java:844)
at net.sourceforge.squirrel_sql.client.session.mainpanel.SQLPanel.<init>(SQLPanel.java:182)
at net.sourceforge.squirrel_sql.client.session.mainpanel.SQLTab.getComponent(SQLTab.java:72)
at net.sourceforge.squirrel_sql.client.session.mainpanel.SQLTab.getSQLPanel(SQLTab.java:123)
at net.sourceforge.squirrel_sql.client.session.mainpanel.SQLTab.setSession(SQLTab.java:83)
at net.sourceforge.squirrel_sql.client.session.mainpanel.SQLTab.<init>(SQLTab.java:42)
at net.sourceforge.squirrel_sql.client.gui.session.MainPanel.<init>(MainPanel.java:112)
at net.sourceforge.squirrel_sql.client.gui.session.MainPanelFactory.createMainPanel(MainPanelFactory.java:27)
at net.sourceforge.squirrel_sql.client.gui.session.SessionPanel.createGUI(SessionPanel.java:478)
at net.sourceforge.squirrel_sql.client.gui.session.SessionPanel.initialize(SessionPanel.java:134)
at net.sourceforge.squirrel_sql.client.gui.session.SessionInternalFrame.createGUI(SessionInternalFrame.java:123)
at net.sourceforge.squirrel_sql.client.gui.session.SessionInternalFrame.<init>(SessionInternalFrame.java:53)
at net.sourceforge.squirrel_sql.client.gui.WindowManager.createInternalFrame(WindowManager.java:360)
at net.sourceforge.squirrel_sql.client.mainframe.action.ConnectToAliasCommand$Runner.run(ConnectToAliasCommand.java:372)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at net.sourceforge.squirrel_sql.client.Application$1.dispatchEvent(Application.java:195)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: org.fife.ui.rtextarea.RTextArea
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at net.sourceforge.squirrel_sql.fw.util.MyURLClassLoader.findClass(MyURLClassLoader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 25 more

Discussion

  • Rob Manning
    Rob Manning
    2010-03-08

    What OS are you using, which distribution file did you use to install
    SQuirreL and how are you executing the launch script (squirrel-sql.sh
    or squirrel-sql.bat) ?

    Rob

     
  • Rob Manning
    Rob Manning
    2010-03-08

    • milestone: 126228 --> 3.1
    • assigned_to: colbell --> manningr
     
  • Rob Manning
    Rob Manning
    2010-03-09

    I was able to reproduce this exactly once after upgrading from 3.0.2 using software update. Once I restart SQuirreL after that, then there is no problem opening a session. This is a bit of a head-scratcher for me at the moment. It's not clear what changes between starting after the updater runs, and starting after quitting SQuirreL. When I diff the lib folder using meld, I see no differences in any of the jars between successive runs after the updater has completed the upgrade.

    Rob

     
  • Rob Manning
    Rob Manning
    2010-03-13

    Found the problem. The very first time that SQuirreL is launched after update where new jars are downloaded, the CLASSPATH variable wasn't being reconstructed properly to include those new jars. A work-around is to simply restart SQuirreL (twice) after updates are applied. This issue only affected Linux and Mac OS X as squirrel-sql.bat did not have the same problem. This issue has been fixed in CVS.

     
  • Rob Manning
    Rob Manning
    2010-03-13

    • status: open --> closed-fixed