users@glassfish.java.net

Re: Random NoClassDefFoundErrors during JWS client application execution

From: <glassfish_at_javadesktop.org>
Date: Sun, 19 Aug 2007 10:51:01 PDT

Hi Tim,

I was just running the previous test with your special version of the appserv-rt.jar, and I had left the application running idly for about 10 minutes or so. When I tried to do something with the application, I immediately got the oClassDefFoundError as shown below :-

Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: com/cashpower/suprima/lite/presentation/login/LogInPage$5$1
        at com.cashpower.suprima.lite.presentation.login.LogInPage$5.actionPerformed(LogInPage.java:137)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicRootPaneUI$Actions.actionPerformed(Unknown Source)
        at javax.swing.SwingUtilities.notifyAction(Unknown Source)
        at javax.swing.JComponent.processKeyBinding(Unknown Source)
        at javax.swing.KeyboardManager.fireBinding(Unknown Source)
        at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
        at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
        at javax.swing.JComponent.processKeyBindings(Unknown Source)
        at javax.swing.JComponent.processKeyEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


Sine we are busy with the other problem of the slow launching of the ACC I went to the sub-directory where the application jar had been exploded, and low and behold, it had all disappeared except for the top-most sub-directory with the global jar files in it, but none of the sub-directories that had contained the rest of the application. So what gives ? It would appear that after some time period, the application's exploded jar and class files all get wiped, and then I suppose that is why the error appears.

If I exit the application, and JWS it again, the full application directory is recreated, with everything there. I am now just sitting watching it in Windows Explorer to see how long it takes before it disappears again ...

Steve.
[Message sent by forum member 'suttridge_farm' (suttridge_farm)]

http://forums.java.net/jive/thread.jspa?messageID=231527