Dear Thomas,

I have not tried to use Jonathan within an applet for quite a long time now. From my 
previous experience, I know
that it is really difficult to build an example working with different 
browsers/JVMs... Which combination are you
using ?

I agree that the problem you have is certainly related to the ClassLoader used. Are 
the Jonathan classes and your
example classes present in the classpath on the client (browser) side ? If not, could 
you try to add them and see
what happens ? Could you also try using the lastest Jonathan version (under CVS), and 
compile your stubs with
SUN's idl2java compiler. The result is much slower, but it could give us some 
indications.

Best regards,

Bruno


Thomas Becker wrote:

> Dear developers,
>
> I encounter a problem when using Jonathan from Applet (ORB is
> initialised with ORB.init(Applet, Properties)). When a client is
> calling an interface of the applet the following error occurs:
>
> java.lang.IncompatibleClassChangeError: class XYZ does not implement interface 
>i_XYZOperations
>      at idl.TINASsuapInitial._i_XYZImplBase._invoke(_i_XYZImplBase.java:49)
>      at 
>org.objectweb.david.libs.stub_factories.std.ServerDelegate.handleSkeletonCall(ServerDelegate.java:226)
>      at 
>org.objectweb.david.libs.stub_factories.std.ServerDelegate.send(ServerDelegate.java:144)
>      at 
>org.objectweb.david.libs.protocols.giop.GIOPProtocol$ServerSession_Low.send(GIOPProtocol.java:638)
>      at 
>org.objectweb.jonathan.libs.protocols.tcpip.TcpIpProtocol$Session.run(TcpIpProtocol.java:410)
>      at org.objectweb.jonathan.libs.resources.JScheduler$JJob.run(JScheduler.java, 
>Compiled Code)
>
> Class XYZ is declared as extending _i_XYZImplBase, so of course it
> implements i_XYZOperations - there are no errors on compile time.
> I suspect the applet's class loader to be responsible for the
> IncompatibleClassChangeError. When started as an application, no
> error occurs.
>
> I'm using Jonathan 2.0b3, JAVA 1.2.2, Windows NT4.
>
> Thanks for help,
>   Thomas.

--
*******************************************************************
Bruno Dumant
DTL/ASR
france telecom R&D
38-40 rue du g�n�ral Leclerc
92794 Issy Moulineaux Cedex 9
FRANCE

mailto:[EMAIL PROTECTED]
tel: +33 1 45 29 46 03
fax: +33 1 45 29 66 04
*******************************************************************


Reply via email to