Child pages
  • Java Client - Get Server-Side Stack Trace
Skip to end of metadata
Go to start of metadata

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:

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:

// 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:

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

  • No labels