These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibernate with String httpinvoker
PostPosted: Thu Mar 15, 2007 3:00 pm 
Newbie

Joined: Wed Mar 14, 2007 5:13 pm
Posts: 2
Hello,

I've been having this issue using Spring HTTP remoting with Hibnerate 3 on WebSphere 5.1 . It seems to be having some issues when comparing the serialVersionUID of org.hibernate.collection.PersistentSet on the Server and Swing Client. I've double, triple checked the hibnerate.jar version and everything appears to be the same.

Any Ideas?
Thanks!

Code:
[DEBUG 2007-03-15 14:45:23,237 org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest [131] - [] Sending HTTP invoker request for service at [http://wastest.test.com/WIM/WimService/WimService-httpinvoker], with size 395
org.springframework.remoting.RemoteAccessException: Cannot access HTTP invoker remote service at [http://wastest.test.com/WIM/WimService/WimService-httpinvoker]; nested exception is java.io.InvalidClassException: org.hibernate.collection.PersistentSet; local class incompatible: stream classdesc serialVersionUID = -4121931110690534457, local class serialVersionUID = 3994781329260376240
Caused by: java.io.InvalidClassException: org.hibernate.collection.PersistentSet; local class incompatible: stream classdesc serialVersionUID = -4121931110690534457, local class serialVersionUID = 3994781329260376240
   at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
   at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
   at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
   at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
   at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
   at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.doReadRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:291)
   at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.readRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:240)
   at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:65)
   at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:134)
   at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:162)
   at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:139)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy0.findWebpageDetails(Unknown Source)
   at com.test.wim.client.WimServiceClient.findWebpageDetails(WimServiceClient.java:911)
   at com.test.wim.client.ui.startup.Login.<init>(Login.java:97)
   at com.test.wim.client.ui.startup.Login.main(Login.java:179)
Exception in thread "main" ]


And the Server config:

Code:

************ Start Display Current Environment ************
WebSphere Platform 5.1 [JDK 1.4.2.6 ca142ifx-20061116] [ND 5.1.1.11 cf110622.05] [BASE 5.1.1.11 cf110622.05]  running with process name eusutil01_testdev_Net
work\jarjar\server1 and process id 82812
Host Operating System is AIX, version 5.3
Java version = J2RE 1.4.2 IBM AIX build ca142ifx-20061116 (142SR6 + 111682 + 111872 + 110979) (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Class
ic VM
was.install.root = /usr/WebSphere/AppServer_V5
user.install.root = /usr/WebSphere/AppServer_V5
Java Home = /usr/WebSphere/AppServer_V5/java/jre
ws.ext.dirs = /usr/WebSphere/AppServer_V5/java/lib:/usr/WebSphere/AppServer_V5/classes:/usr/WebSphere/AppServer_V5/classes:/usr/WebSphere/AppServer_V5/lib:/u
sr/WebSphere/AppServer_V5/lib/ext:/usr/WebSphere/AppServer_V5/web/help:/usr/WebSphere/AppServer_V5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
Classpath = /usr/WebSphere/AppServer_V5/properties:/usr/WebSphere/AppServer_V5/properties:/usr/WebSphere/AppServer_V5/lib/bootstrap.jar:/usr/WebSphere/AppSer
ver_V5/lib/j2ee.jar:/usr/WebSphere/AppServer_V5/lib/lmproxy.jar:/usr/WebSphere/AppServer_V5/lib/urlprotocols.jar
Java Library path = /usr/WebSphere/AppServer_V5/java/jre/bin:/usr/WebSphere/AppServer_V5/java/jre/bin/classic:/usr/WebSphere/AppServer_V5/java/jre/bin:/usr/W
ebSphere/AppServer_V5/bin:/usr/mqm/java/lib:/usr/opt/wemps/lib:/usr/mqm/java/lib:/insthome/udbcli/sqllib/lib:/usr/lib
************* End Display Current Environment *************



Whats really crazy about this is that is works great in the WSAD development environment but, not on our AIX QA server.


Top
 Profile  
 
 Post subject: No answer on this yet?
PostPosted: Tue Apr 10, 2007 8:28 am 
Newbie

Joined: Wed Mar 14, 2007 5:13 pm
Posts: 2
Any ideas about this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 9:46 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Serialization does not work well when using different versions of the JVM. It also could be a Swing thang.

API docs for JComponent wrote:
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.