On Thu, Mar 01, 2001 at 10:34:10AM +0100, Schouten, Andreas wrote:
> 
> Hello,
> 
> in a helperclass I detected a catch without a printStacktrace. Now I see,
> that the error ocure in
> com.sun.corba.se.internal.core.IOR.getCodebase(IOR.java:256)
> 
> ORB is initialized with
> orb.init(stringarray, props) where the array and the properties are not null
> but empty .
> 
> Mayby an different default Java IDL implementation is used whithin jBoss?

I'm pretty sure that JBoss leaves CORBA alone at the moment. You should get
whatever is the default for the JVM you're running.

> Testclient:  (jdk 1.3)

Is JBoss also running on 1.3?

>  public static void main (String[] args)
>     {
>         try {
>           Adaptor test = new Adaptor();
>  
> System.setProperty("NameService.1","IOR:010000002800000049444c3a6f6d672e6f72
> 672f436f734e616d696e672f4e616d696e67436f6e746578743a312e30000100000000000000
> 2c000000010100000f00000031302e3139342e3230392e3133380000102700000c0000003a6c
> 5b96038fa73c00000002");
>           AdaptorInterface ai = (AdaptorInterface)new Adaptor();

What are Adaptor and AdaptorInterface? It seems that that's where the actual
CORBA stuff is happening.

>               System.out.println("interface ok");
>         ai.connectToServer("sv", "sv", 1);
>               System.out.println("connect ok");
>         ai.disconnectFromServer();
>               System.out.println("disconnect ok");
>         }
>         catch (Exception e) {
>             e.printStackTrace();
>         }
>      }
[snip]
> [CR CORBA Server] java.lang.NullPointerException
> [CR CORBA Server]     at
> com.sun.corba.se.internal.core.IOR.getCodebase(IOR.java:256)
> [CR CORBA Server]     at
> com.sun.corba.se.internal.core.IOR.read(IOR.java:215)
> [CR CORBA Server]     at
> com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.jav
> a:579)
> [CR CORBA Server]     at
> com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.jav
> a:572)
> [CR CORBA Server]     at
> com.sun.corba.se.internal.corba.ORB.string_to_object(ORB.java:1017)
> [CR CORBA Server]     at
> eacm.util.CorbaObjectFinder.resolve(CorbaObjectFinder.java:202)

Please show the relevant code from eacm.util.CorbaObjectFinder.

Toby.

Reply via email to