Dave Ortman wrote:
>
> Hi,
>
Hi,
> I recently posted an inquiry regarding the utilization of CORBA objects from
> within EJB's deployed in JBoss. Basically, I was unable to have a session bean
> make a call to a CORBA object.
I think I replied to that thread, but it didn't appear to make it to
the list. Here's my post again:
>Toby Allsopp wrote:
>
> On Wed, May 16, 2001 at 10:48:56AM -0700, Dave Ortman wrote:
> > >org.omg.CORBA.ORB orb = ORB.init(new String[] {ior}, null);
...
> >
> > <<It would be helpful to see the complete stacktrace of the exception.>>
> >
> > Ask and you shall recieve.
> >
> > [TestBean] java.lang.NullPointerException
> > [TestBean] at com.sun.corba.se.internal.core.IOR.getCodebase(Unknown Source)
> >
> > [TestBean] at com.sun.corba.se.internal.core.IOR.read(Unknown Source)
> > [TestBean] at
>com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(Unknown
> > Source)
> > [TestBean] at
>com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(Unknown
> > Source)
> > [TestBean] at com.sun.corba.se.internal.corba.ORB.string_to_object(Unknown
> > Source)
>
> Hmm, well I can't complain about not enough information any more, so I'm
> going to have to admit that I have no idea. Sorry.
>
> Is the source for these com.sun.corba classes available? You could try
> using a different ORB (e.g. JacORB) for which you have source.
Hi Guys,
If you remember, Toby, there was a previous discussion about this same
problem (identical exception) on jboss-dev. I don't think it was
resolved completely (apart from acknowledging that Sun's orb is a bit
ropey) but there was a fix (see below). You can download the complete
source (Java and C (eek!)) for the JDK from java.sun.com, including the
internal classes. These are v. useful for this kind of problem.
Here's the fix that Andreas posted (the thread was "CORBA integration"
on jboss-dev) :
> Hi Luke,
>
> > P.S. Are you aware of the source version of the JDK which is
> available?
>
> No, I wasn't aware of this. In the source code I found the commends
> I needed.
> (And I'm a bit worry about sun because they don't show this comment
> in the doc. :-( )
> An IOR can have a attaced component with information about a java
> codebase.
> If this is not present, a attaced component with the property
> defined in the system property
>
> java.rmi.server.codebase
>
> is created. But this is optional! In case of jBoss this property is
> set to http://[hostname]:8083/
> But for some reasons (I dont understand it compleate by now.) This
> causes an exception somewhere.
>
> Now I just added one line to my code and the corba connection work
> fine:
>
> System.getProperties().remove("java.rmi.server.codebase");
>
> Can someone explain where this property is needed and if it can
> cause problems, if it is not present?
>
> Thanks to all who spend some time with this problem!
> Andreas
>
--
Luke Taylor.
PGP Key ID: 0x57E9523C
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user