Wiki source code of Java Client-Trouble Shooting

Last modified by David Avendasora on 2009/02/05 15:46

Show last authors
1 ==== Exception in thread "AWT-EventQueue-0" com.webobjects.foundation.NSForwardException for java.lang.NoClassDefFoundError: my.app.package.ClassIKnowExists ====
2
3 When you get an error stating that WebObjects can't find a class on the client you know exists and is being copied to the WebServerResources/Java directory, then it is almost certainly a class-path issue. If you are running your app within Eclipse/WOLips, this means that the ClasspathClient.txt file is incorrect. This file is NOT maintained by the build process so any new Frameworks you add will need to be added to this file.
4
5 ==== <com.webobjects.eodistribution._EOHTTPInitialAction>: Exception in performActionNamed() on the action "componentURL" with the message: java.lang.NullPointerException ====
6
7 {{code}}
8
9 Feb 05 15:42:58 FrameworkForTeachingD2JC[55677] WARN NSLog - <com.webobjects.eodistribution._EOHTTPInitialAction>: Exception in performActionNamed() on the action "componentURL" with the message: java.lang.NullPointerException
10 [2009-02-05 15:42:58 EST] <WorkerThread0> java.lang.NullPointerException
11 at com.webobjects.eodistribution._EOHTTPInitialAction.componentURLAction(_EOHTTPInitialAction.java:44)
12 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15 at java.lang.reflect.Method.invoke(Method.java:585)
16 at com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:128)
17 at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:240)
18 at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:142)
19 at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:123)
20 at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
21 at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1737)
22 at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1702)
23 at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
24 at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
25 at java.lang.Thread.run(Thread.java:613)
26
27 {{/code}}
28
29 You will get this error if you name the JavaClient.wo component to anything else and try to launch the application using the Client Launch Script. The Client Launch Script looks specifically for a Component named JavaClient.wo and if it can't find it it will trigger this NPE.