Hi Hinrich,
 
 
Not too sure on the Oracle side, but maybe on the VisiBroker side....
 
When you receive a org.omg.CORBA.UNKNOWN it means that an exception was thrown that is not defined in the CORBA spec, which when using Java is often (although not always) a NullPointerException. So I would try looking at the parameters and types that are being marshalled over the wire and check that they are not null. From memory -per CORBA standard, you should also return empty strings "" , not nulls when wanting to return a "Null" type string.
 
regards,
 
-Robert
 
----- Original Message -----
Sent: Wednesday, May 17, 2000 4:57 PM
Subject: Basic EJB problem

I start with EJB some days ago.
I am using JDeveloper 3.0 and Oracle 8i (8.1.6)
 
My special interest goes to stateless session beans.
Everything works fine with my tests.
But I just have primitive types or String as return values.
 
Now I add a new Serializable class with some public members.
This class should now be returned from an EJB call.
 
Looking up the EJB and creating a new instance works.
But if I try to call the new method, the following exception occurs.
What is wrong?
Why does it works with primitives and with objects it doesn't?
 
----------------------------------------------------------------
::: org.omg.CORBA.UNKNOWN
::::A non CORBA exception is caught by the ORB runtime on the server:::::::
null
org.omg.CORBA.UNKNOWN[minor=16, completed=MAYBE]
 at com.visigenic.vbroker.orb.SE.read(Compiled Code)
 at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(Compiled Code)
 at com.visigenic.vbroker.orb.GiopStubDelegate.invoke(Compiled Code)
 at org.omg.CORBA.portable.ObjectImpl._invoke(Compiled Code)
 at ejbtest1._st_EJB1Remote.getSomething(Compiled Code)
 at ejbtest1.MyEJBJSClient.main(Compiled Code)
----------------------------------------------------------------

 

Reply via email to