Mismatched serialization UID exception of a Date field
-------------------------------------------------------
Key: OPENJPA-675
URL: https://issues.apache.org/jira/browse/OPENJPA-675
Project: OpenJPA
Issue Type: Question
Environment: WebSphere Platform 6.1 [EJB3 6.1.0.17 cf170821.02] [ND
6.1.0.17 cf170821.07] [WEB2FEP 1.0.0.0 20071203-1] [WEBSERVICES 6.1.0.17
cf170819.04] Host Operating System is Windows XP, version 5.1 build 2600
Service Pack 2
Java version = J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20080315 (JIT
enabled)
J9VM - 20080314_17962_lHdSMr
JIT - 20080130_0718ifx2_r8
GC - 200802_08, Java Compiler = j9jit23, Java VM name = IBM J9 VM
openjpa.Runtime: Info: Iniciando OpenJPA 1.0.3-SNAPSHOT
"org.apache.openjpa.jdbc.sql.InformixDictionary".
Informix Dynamic Server 10.00.FC8
IBM Informix JDBC Driver for IBM Informix Dynamic Server 3.10.JC1DE
Reporter: Paco Garcia
Priority: Minor
Hi,
I'm new to OpenJPA, so sorry if this has no sense.
I've developed a rmi/iiop ejb client calling an EJB that returns a DTO that
includes an entity date field.
The ejb server call goes ok, but when the client access the DTO response it
gets this mismatched serialization UID exception
Caused by: org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge :
Mismatched serialization UIDs : Source (RepId
RMI:java.util.Date:AC117E28FE36587A:686A81014B597419) = 686A81014B597419
whereas Target (RepId
RMI:org.apache.openjpa.util.java\U0024util\U0024Date\U0024proxy:0D0968E8226272D3:C7860D4EC9D7FB5C)
= C7860D4EC9D7FB5C vmcid: IBM minor code: 896 completed: No
at com.ibm.rmi.iiop.CDRInputStream.read_value(CDRInputStream.java:1604)
... 5 more
Caused by: org.omg.CORBA.MARSHAL: Mismatched serialization UIDs : Source (RepId
RMI:java.util.Date:AC117E28FE36587A:686A81014B597419) = 686A81014B597419
whereas Target (RepId
RMI:org.apache.openjpa.util.java\U0024util\U0024Date\U0024proxy:0D0968E8226272D3:C7860D4EC9D7FB5C)
= C7860D4EC9D7FB5C vmcid: IBM minor code: 8B1 completed: No
at
com.ibm.rmi.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:456)
at com.ibm.rmi.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:210)
at com.ibm.rmi.iiop.CDRInputStream.read_value(CDRInputStream.java:1586)
... 5 more
the problem is solved including the openjpa-1.0.3.jar file in the classpath of
the client.
Is this the correct behaviour? Should I clone/copy all the Date entity fields
to pure java.util.Date ones to avoid the library dependency at the client?
TIA
PacoG
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.