Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Exception in thread "AWT-EventQueue-0" for java.lang.NoClassDefFoundError:

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.

<com.webobjects.eodistribution._EOHTTPInitialAction>: Exception in performActionNamed() on the action "componentURL" with the message: java.lang.NullPointerException

Code Block
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
[2009-02-05 15:42:58 EST] <WorkerThread0> java.lang.NullPointerException
	at com.webobjects.eodistribution._EOHTTPInitialAction.componentURLAction(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at com.webobjects.appserver.WODirectAction.performActionNamed(
	at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(
	at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(
	at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(
	at com.webobjects.appserver.WOApplication.dispatchRequest(
	at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(
	at er.extensions.appserver.ERXApplication.dispatchRequest(
	at com.webobjects.appserver._private.WOWorkerThread.runOnce(

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.