Hi Per,
I tried also the ORB implementation from suns J2EE addition.
System.setProperty("org.omg.CORBA.ORBClass",
"com.sun.corba.ee.internal.iiop.ORB");
-> Nullpointer at
com.sun.corba.ee.internal.core.IOR.getCodebase(IOR.java:256)
instead of com.sun.corba.se.internal.core.IOR.getCodebase(IOR.java:...) in
standard edition.
A nullpointer in an internal class is really not a nice error message :-(.
In my opinion sun ought improve this.
But both ORB's work fine in a standallone application. I would like to
understand what differences between a simple java application an my MBean in
a J2EE server causes this error.
I decompiled some classes from com.sun.corba.ee.internal. and put
Systems.out.println in the code and recompiled it. One this way I think I
will get a result in a few month ;-)
Any suggestions what this problens can depend on are wellcome.
Andreas
> -----Original Message-----
> From: Per Bockman [SMTP:[EMAIL PROTECTED]]
> Sent: 01 March 2001 13:33
> To: 'JBoss-Dev'
> Subject: RE: [jBoss-Dev] CORBA integration
>
> Hi Andreas,
>
> [...]
> > 1)
> > orb = ORB.int(stringarray, props);
> >
> > returns an instance of org.omg.ORB, but
> >
>
> It should return a concrete ORB class that implements abstract methods
> defined in the abstract class org.omg.CORBA.ORB... The default
> implementation shipped with JDK1.2.x and JDK1.3.x are rather crappy
> ORB-implementations... Read the JavaDoc for org.omg.CORBA.ORB for detailed
> information on how to configure which implementation class that should be
> used (the configuration pattern resembles the one used for configuring
> JNDI.)
>
> > obj = orb.string_to_object(ior)
> >
> > causes a NullpointerException.
> >
> >
> > 2)
> > orb = ORB.int();
> >
> > returns also an instance of org.omg.ORB, but
> >
> > obj = orb.string_to_object(ior)
> >
> > causes a security exception.
> >
>
> I guess that this is the expected behavior as ORB.init() without any
> parameters will return an ORBSingelton. I think that your are not allowed
> to invoke string_to_object() on an ORBSingelton.
>
> /Per
>