Hello,

Here is my first conclusion about Jonathan/David in applets:

The only advice I got (from Bruno Dumant and Thomas Becker - thanks for your support!) 
is to have Java Plug-in use David's CORBA classes instead of Java2's by setting option 
-Xbootclasspath accordingly in Java Plug-in (JPI) control panel.
This works with JPI 1.3.0 on Solaris (I could not get JPI 1.2 work at all on Solaris), 
but I could not get it work on Windows neither with JPI 1.2.2 nor with JPI 1.3.0.

I would like to add 2 remarks:

1- using -Xbootclasspath in JPI is not really satisfactory, especially because it 
requires to deploy Jonathan/David classes on every client computer; moreover it does 
not seem to be working in every environment.

2- it seems that Java2's CORBA implementation has changed with runtime 1.3.0. As a 
matter of fact, I don't get the same exception as with version 1.2.2 runtime. Now I 
get this:

java.lang.NullPointerException
        at 
org.objectweb.david.libs.contexts.orbs.AnyImpl.create_input_stream(AnyImpl.java:384)
        at org.omg.CosNaming.NamingContextHelper.extract(NamingContextHelper.java:29)
        at 
org.omg.CosNaming._NamingContextStub.bind_new_context(_NamingContextStub.java:251)
[...]

So, it seems that Java2 and David are more "compatible" than before, but still not 
fully compatible?
Is there something special to look for in AnyImpl.create_input_stream()?

   public synchronized org.omg.CORBA.portable.InputStream
   create_input_stream() {
      return value.create_input_stream();
   }

Best regards,
-- Bruno.

DILLENSEGER Bruno FTRD/DTL wrote:
> I am experiencing troubles in using Jonathan/David in an applet.
> My code is written for Java2 (version 1.2.2) and compiled with Jikes (1.11); I use 
>appletviewer 1.2.2_006, Java Plugin 1.2.2 for Windows, and Java Plugin 1.3.0 for 
>Solaris. My system works allright if I use Java's ORB instead of David's.
> I get the following exception:
> ==============================
> java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't instantiate 
>default ORB implementation org.objectweb.david.libs.contexts.orbs.ORBSingletonClass  
>minor code: 0  completed: No
>         at org.omg.CORBA.ORB.create_impl(ORB.java:305)
>         at org.omg.CORBA.ORB.<clinit>(ORB.java:202)
>         at AppletAgency.init(AppletAgency.java:49)
>         at sun.applet.AppletPanel.run(AppletPanel.java:342)
>         at java.lang.Thread.run(Thread.java:479)
>
> Line 49 of AppletAgency invokes ORB.init(Applet, Properties).
>
> The applet runs fine if (and only if) I run it from the appletwiewer with 
>-Xbootclasspath option
> (appletviewer -J-Xbootclasspath:../lib/jonathan.jar:/usr/java/jre/lib/rt.jar 
>AppletAgency.html).
___________________________________________________
 Dr. Bruno DILLENSEGER - France Telecom R&D (CNET)
 Distributed   Systems   Architecture   Department
 phone: +33 4 76 76 41 46,  fax: +33 4 76 76 45 57
 e-mail      [EMAIL PROTECTED]
 web URL       http://bruno.dillenseger.online.fr/
___________________________________________________

Reply via email to