java.rmi.UnmarshalException

Hello,

when starting a client (Java 1.5) off a Windows 2000 Server with Java 1.4, I get an error that the repository cannot be found. In the trace of Java Web Start I see this:

java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.InvalidClassException: com.servoy.j2db.persistence.Repository_Stub; local class incompatible: stream classdesc serialVersionUID = 1858001938732286071, local class serialVersionUID = 6621632579292805231
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.InvalidClassException: com.servoy.j2db.persistence.Repository_Stub; local class incompatible: stream classdesc serialVersionUID = 1858001938732286071, local class serialVersionUID = 6621632579292805231
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at com.servoy.j2db.J2DBClient.aG(Unknown Source)
at com.servoy.j2db.ClientState.dataBaseInit(Unknown Source)
at com.servoy.j2db.J2DBClient.dataBaseInit(Unknown Source)
at com.servoy.j2db.J2DBClient.if(Unknown Source)
at com.servoy.j2db.J2DBClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidClassException: com.servoy.j2db.persistence.Repository_Stub; local class incompatible: stream classdesc serialVersionUID = 1858001938732286071, local class serialVersionUID = 6621632579292805231
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
… 18 more

did the client download nieuw jars when you started the client?
Or the next time you started the client?

It looks like the server and client jars are out of synch..

Did you in the admin page set:
servoy.fastClientStartup to “true” ?, explanation from the info button behind the property:
“Enable fast client startup (this can cause an error after a Servoy server code update, which is resolved by restarting the client an second time)”

did the client download nieuw jars when you started the client?

Yes. I also deleted the web start cache.

id you in the admin page set:
servoy.fastClientStartup to “true” ?, explanation from the info button behind the property:
“Enable fast client startup (this can cause an error after a Servoy server code update, which is resolved by restarting the client an second time)”

Tried with the option turned on/off. Started the client 30 times, no success.

While this doesn’t seem a general problem (my client works nicely using RC5 on the server), I currently don’t know how to get it solved.

Maybe the Java version on the server (1.4), maybe I should reinstall Servoy?

so after deleting the webstart cache. You see that it downloads the jars from the server? And you still get this problem?

yes, sir.

can you test if the jar files (one from the server j2db.jar) and the one the webstart downloads (see youre cache) is exactly the same?

Do you mean this file RMj2db.jar that I find somewhere under

C:\Documents and Settings\meMyselfAndI\Application Data\Sun\Java\Deployment\cache\javaws\http\D192.168.1.200\P14671\V1114071740760\DMlib

?

What is the easiest way to figure out the exact version? Manifest?

Installed Java 1.5 on the server and reinstalled Servoy. Works flawlessly now. I kept the installation of the old server and it still doesn’t work with that one. So it does not seem to be related to Java. I am fine, now, but if you are interested, I can do some more research…

Awaiting your commands :wink:

So you have an old server installation that doesn’t work for you whatever java you use?

Do more clients have that problem connection to that server? Or only one?

If all clients then a complete zip of that installation would be nice… (no databases just the lib and server dirs..

I’ll send you one tomorrow. It’s all clients that we have…