Child pages
  • Java Client - Get Server-Side Stack Trace

Versions Compared


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

When you use the invokeRemoteMethod() method on a client-side EO and an error is generated on the server, you will normally only get a client-side stack-trace such as:

Code Block
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Server exception: null
	at com.webobjects.eodistribution.client.EODistributedObjectStore._checkReturnValuesForExceptions(
	at com.webobjects.eodistribution.client.EODistributedObjectStore._send(
	at com.webobjects.eodistribution.client.EODistributedObjectStore.invokeRemoteMethod(
	at com.webobjects.eodistribution.client.EODistributedObjectStore.invokeRemoteMethod(
	at com.webobjects.eocontrol.EOEditingContext.invokeRemoteMethod(

Add the following:

Code Block
// Enable stack trace logging in the event of a sever-side exception

// Enable stack trace logging for the EnterpriseObjects group

to your Application class's main(String argv[]) method prior to:

Code Block
WOApplication.main(argv, Application.class);

This will send the server-side stack trace to the Run Log of your application as well as still having the Client-Side stack trace in the console of the client.

thanks to Pierre Bernard