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.