2 Replies Latest reply on Jul 17, 2013 5:36 AM by s.horn

    JBoss7 serialization Problem when Server jdk6 and client jdk7

    s.horn Newbie

      Hi,

       

      we currently migrate from JBoss 6.1.1.Final to 7.1.1.Final.

       

      Everything works fine, until there are different Java-versions between server and client.

       

      In my case the JBoss runs in Java6 and the client is called via webstart of Java7.

       

      JBoss6 is able to serialize java.util.Locale, Jboss7 is not.

       

      Can anybody explain why JBoss6 is able to serialize between different Java versions and jboss7 cant?

      And is it possible to tell jboss7 to seralize in jboss6 fashion?

       

      Thanks.

       

      Here is the exception which occurres:

       

      java.lang.IllegalArgumentException: No field named 'script'

          at org.jboss.marshalling.river.RiverObjectInputStream$1.find(RiverObjectInputStream.java:167)

          at org.jboss.marshalling.river.RiverObjectInputStream$1.get(RiverObjectInputStream.java:215)

          at java.util.Locale.readObject(Locale.java:2063)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:213)

          at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1580)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1235)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

          at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:153)

          at org.jboss.marshalling.river.BlockUnmarshaller.readObject(BlockUnmarshaller.java:139)

          at de.procar.ecaros2.container.EcarosSessionData.readExternal(EcarosSessionData.java:56)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1258)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

          at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

          at org.jboss.ejb.client.remoting.MethodInvocationResponseHandler$MethodInvocationResultProducer.getResult(MethodInvocationResponseHandler.java:107)

          at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:270)

          at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:47)

          at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:272)

          at org.jboss.ejb.client.ReceiverInterceptor.handleInvocationResult(ReceiverInterceptor.java:132)

          at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:260)

          at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:399)

          at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:140)

          at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

          at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

          at com.sun.proxy.$Proxy0.login(Unknown Source)

          at de.procar.ecaros2.client.ServerConnection.connect(ServerConnection.java:718)

          at de.procar.ecaros2.client.basic.LoginPanel$1.doOnConstruct(LoginPanel.java:414)

          at de.procar.ecaros2.client.EcarosUtilities$2.construct(EcarosUtilities.java:485)

          at de.procar.swing.SwingWorker$2.run(SwingWorker.java:121)

          at java.lang.Thread.run(Thread.java:724)

      Caused by: an exception which occurred:

          in object of type java.util.Locale

          in object of type de.procar.ecaros2.container.EcarosSessionData