CORBA API invocation issues when invoked thru Java Services

We are facing problems when invoking CORBA APIs (required for interfacing with a third party application) thru the custom built IS Java Services. The environment is JBroker ORB.

The task being performed by the Java Services in brief is

  1. Establish a connection with JBroker ORB thru an IOR
  2. Initialize the ORB
  3. Execute the CORBA APIs exposed by the third party application

We are able to connect to the the ORB but when we try to formulate a CORBA object thru the servant_to_reference method of object we get a java.lang.reflect InvocationTarget exception as below:

java.lang.reflect.InvocationTargetException: org.omg.PortableServer.Servant._orb(Lorg/omg/CORBA/ORB;)V

where _orb is our ORB instance.

The same APIs work when invoked as standalone Java programs without any issues.

We have taken care to ensure the same classpath is available for the IS Server by modifying the located under WM_INSTALL_DIR/IntegrationServer/bin.

Also the native libraries and jars required by JBroker are included in the startup script

Is there any other configuration which needs to be done explicitly for invoking CORBA APIs (anything related to security policy, run-time environment specifications for IS server)

Another issue we noticed is we are not able to catch the Exception being generated by our user code by specifying a try/catch clause

Any pointers would be greatly appreciated.

What OS and JVM vendor/version are you using for IS? Does your standalone java app (Corba client app) work with the same OS and JVM vendor / version?