Hi,

JBoss does nothing with Sun's ORB. 

It seems that orb.string_to_object() cannot find the IIOP stub it needs to
generate a CORBA object reference. It attempts to extract a codebase from 
your IOR, but there is no codebase component in the IOR:

    ------IOR components-----
    TypeId  :       IDL:eLila/LilaFactory:1.0
    TAG_INTERNET_IOP Profiles:
            Profile Id   :          IIOP Version :  1.0
            Host    :       maui.idt.cdc.fr
            Port    :       6789
            Object key (URL):      lila
            Object key (hex):    0x6C 69 6C 61 

Try to include in your EJB jar the class files for all IIOP stubs needed
by your application.

Cheers,

Francisco

On Thu, 15 Nov 2001, Coetmeur, Alain wrote:

> 
> I'm using an EJB that try to contact a corba service
> 
> I can easily contact the service from 
> classic application outside Jboss
> 
> however the same code fails inside the EJB
> when resolving the orb.string_to_object(lilaIOR);
> 
> [Default] LilaFactoryClientImpl.init():java.lang.NullPointerException
> [Default] java.lang.NullPointerException
> [Default]       at
> com.sun.corba.se.internal.core.IOR.getCodebase(IOR.java:256)
> [Default]       at com.sun.corba.se.internal.core.IOR.read(IOR.java:215)
> [Default]       at
> com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.jav
> a:585)
> [Default]       at
> com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.jav
> a:578)
> [Default]       at
> com.sun.corba.se.internal.corba.ORB.string_to_object(ORB.java:1075)
>                                                        ^^^^^^^^^^^^^^^^^^^
> what I try to call !!!
> my code is 
>    eLila.LilaFactory _lilaFactory;
>    String lilaIOR=
>  
> "IOR:010000001a00000049444c3a654c696c612f4c696c61466163746f72793a312e300000"
> +
>  
> "0001000000000000002400000001010000100000006d6175692e6964742e6364632e6672008
> 51a00"+
>    "00040000006c696c61";
>     ORB orb = org.omg.CORBA.ORB.init(args, System.getProperties());
>     System.out.println("lilaior="+lilaIOR);
>     org.omg.CORBA.Object ref = orb.string_to_object(lilaIOR);
>       // ... 
> 
> does Jboss change something in Sun ORB configuration ...
> I've heard of a java.rmi.server.codebase,
> but what is this... what does jboss change about that...
> 
> thank in advance...
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to