Randahl,
Unfortunately, some code changed, and 3.0.4 can't read data written with
3.0.2. I think it happened when JBoss went from 3.0.2 to 3.0.3.
No doubt, somebody else knows the exact reason.
Ciao,
Jonathan
"Randahl Fink Isaksen" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
09.01.2003 11:48
Please respond to jboss-user
To: <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
cc:
Subject: [JBoss-user] New JBoss breaks CMP of serializable object
fields (Upgrade
from 3.0.2 to 3.0.4)
After upgrading from 3.0.2 to 3.0.4 it seems JBoss handles EJB properties
of type Serializable in a different way.
My whole solution is running the way it used to except for one thing:
Those of my EJB's which have CMP fields which are of type serializable
object fail. For instance, one of my beans has a field called "validator"
which stores a serialized java object. After I started using JBoss 3.0.4
it was no longer possible to read these beans from the database. JBoss
threw this exception:
java.sql.SQLException: Got a [B[cl=0, value=[B@1ab7626] while looking for
a dk.r
ockit.puls.value.property.validator.Validator[cl=31889293]
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.coerceToJavaType(JDBCUtil.jav
a:570)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:437)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load
ArgumentResults(JDBCAbstractCMPFieldBridge.java:359)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.load
InstanceResults(JDBCAbstractCMPFieldBridge.java:312)
?
Extensive testing has shown that all EJBs which have a serializable object
field with a non-null value cannot be read from or written to the database
(a SAP DB). As another example, I have an EJB which has a field called
"menuBar" which stores a serialized java object. When setting a non-null
value for this field on my EJB I get the following exception
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user