Hello,
I have some corba client code that works in a main() but not in GF
My goal is to exchange data between my system (GF3) and an External non-java System (ES).
ES uses my system through a web service, a fake response is replied and a process is started. When this process is over, GF3 must do a corba call to ES.
I have a working code that does this from a main, in a class that belongs to my app's eclipse project.
Same code and data, if executed by GlassFish fails with a NullPointerException in the corba stack.
GRAVE: Caused by: java.lang.NullPointerException
GRAVE: at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.sentFullMessage(CorbaMessageMediatorImpl.java:399)
GRAVE: at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.sendCancelRequestIfFinalFragmentNotSent(CorbaMessageMediatorImpl.java:364)
GRAVE: at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.endRequest(CorbaClientRequestDispatcherImpl.java:825)
GRAVE: at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.releaseReply(CorbaClientDelegateImpl.java:137)
GRAVE: at org.omg.CORBA.portable.ObjectImpl._releaseReply(ObjectImpl.java:474)
GRAVE: at OtaApplH._IOrderStub.Submit(_IOrderStub.java:70)
GRAVE: at MyClass.MyMethod
The faulty line is
return outputObject.getBufferManager().sentFullMessage();
where outputObject is null.
I'm facing an amazing situation because
1/ it is the same code used in the main, and in GF
2/ same data too (verified 3 times)
3/ as I use a IOR, no IP, port, corba name has to be set (or should be).
I tried to set several properties, as found on the web, both OMG defined and Sun defined ones.
I tried to start a new thread for the same result : NPE
My last option is to start an independent class with a main() which I'd rather avoid.
I had no chance with the advised EJB FAQ and there is no appserv-rt.jar in my install
I've put my System.properties and publishable code bits in the attached file
My configuration
Win XP sp2
Eclipse 3.4 + GF plugin 1.0.31
JDK 1.6.14
GF v3 beta 60, updated today
+proxy (defined as -D at launch config level)
Is there props to define ?
Looking through the logs, I found something that could be meaningful in jvm.log
<dependency_failed type='leaf_type' ctxk='java/util/Stack' witness='com/sun/corba/se/impl/util/RepositoryIdPool' stamp='5526.943'/> (present several times)
Please, save my day, I've already wasted too much on this.
Thanks
Jérôme
[Message sent by forum member 'wadael' (wadael_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=362421