I am using Dynamic Proxy Classes. I have a method which does some function and I have it build in a jar file.
I add that jar file in the classpath of another project. I am calling the method and the invoke method is called as such. I am getting a InvocationTargetException.
Here is my stack trace:
[java] log4j:WARN Please initialize the log4j system properly.
[java] Mar 19, 2007 2:00:19 PM edu.unl.firm.client.Container <clinit>
[java] INFO: Starting container with standard JNDI connection providers
[java] Mar 19, 2007 2:00:20 PM edu.unl.firm.client.Container <init>
[java] INFO: container using token: FIRM_BASE
[java] Container created for token: FIRM_BASE
[java] java.lang.reflect.InvocationTargetException: error updating stations list
[java] at edu.unl.farm.tools.drought.wizard.config.ConfigurationController.updateStations(ConfigurationController.java:61)
[java] at edu.unl.farm.tools.drought.wizard.config.StationSelectionPage$12.run(StationSelectionPage.java:371)
[java] at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
[java] Caused by: javax.ejb.EJBException: nested exception is: java.rmi.RemoteException: CORBA BAD_OPERATION 1398079720 No; nested exception is:
[java] org.omg.CORBA.BAD_OPERATION: ----------BEGIN server-side stack trace----------
[java] org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 232 completed: No
[java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.methodNotFoundInTie(Unknown Source)
[java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.methodNotFoundInTie(Unknown Source)
[java] at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Unknown Source)
[java] at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source)
[java] at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source)
[java] at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source)
[java] at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
[java] at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source)
[java] at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source)
[java] at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source)
[java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source)
[java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source)
[java] at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
[java] ----------END server-side stack trace---------- vmcid: SUN minor code: 232 completed: No
[java] at edu.unl.firm.component.gis._SpatialQuery_Wrapper.getStationsForState(edu.unl.firm.component.gis._SpatialQuery_Wrapper.java)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at edu.unl.firm.client.ComponentInvocationHandler.invoke(ComponentInvocationHandler.java:73)
[java] at $Proxy2.getStationsForState(Unknown Source)
[java] at edu.unl.farm.tools.drought.wizard.config.ConfigurationController.updateStations(ConfigurationController.java:43)
[java] ... 2 more
If i call the method from within the project , then everything works fine.
I will highly appreciate any help or suggestions.
Thanks