This issue has come up several times already on this list. The problem is with JDK 1.3 (maybe 1.2 has it too?) that has a serialization bug (or is it a reflection bug?). I remember some people have mentioned it disappeared with JDK 1.4 beta (or was it JDK 1.3.1 ?).
 
The solution is not to use char arguments (and return values?) in your beans.
 
( heh, it's not a very exact answer ? ;)

 -----Original Message-----
From: Paul Austin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 10:41 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jBoss cannot handle char primitive type

Kar,
 
Could you post the code for this, it looks as if it is looking for an Object of type Char not the primative type char. The object wrapper for char is the class java.lang.Character.
 
Paul
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kar YEOW
Sent: 12 June 2001 01:13
To: [EMAIL PROTECTED]
Subject: [JBoss-user] jBoss cannot handle char primitive type

I got and exception when calling an EJB with methods that uses char primitive type.  May be I have done something wrong.
I have attached the EJB code.  Anyone?
 
My work around is to use Integer but it would be nice if 'char' works.
Kar
 
---------------------------
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
 javax.transaction.TransactionRolledbackException: java/lang/Char; nested exception is:
 java.lang.NoClassDefFoundError: java/lang/Char
 
javax.transaction.TransactionRolledbackException: java/lang/Char; nested exception is:
 java.lang.NoClassDefFoundError: java/lang/Char
 
java.lang.NoClassDefFoundError: java/lang/Char
 
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
 
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
 
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
 
 at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
 
 at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
 
 at $Proxy0.create(Unknown Source)
 
 at au.com.apir.test.EJBTester.main(EJBTester.java:44)
 
Exception in thread "main"

Reply via email to