Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14149

Fix serialization with RMI Shell

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.2-HF01
    • Fix Version/s: 5.3.2-HF09
    • Component/s: Core, Shell

      Description

      Since 5.3.2 HF01, the shell fails to work, because of serialization issue when running the first command.

      |> ls
      Trying to connect to nuxeo server at 127.0.0.1:62474 as admin...
      Command failed.
      java.lang.reflect.UndeclaredThrowableException
              at $Proxy12.getDocumentTypes(Unknown Source)
              at org.nuxeo.ecm.core.schema.SchemaManagerImpl.importTypes(SchemaManagerImpl.java:101)
              at org.nuxeo.ecm.core.client.NuxeoClient.schemaRemotingWorkaround(NuxeoClient.java:238)
              at org.nuxeo.ecm.core.client.NuxeoClient.doConnect(NuxeoClient.java:189)
              at org.nuxeo.ecm.core.client.NuxeoClient.connect(NuxeoClient.java:117)
              at org.nuxeo.ecm.shell.CommandContext.initalizeConnection(CommandContext.java:218)
              at org.nuxeo.ecm.shell.CommandContext.getRepositoryInstance(CommandContext.java:191)
              at org.nuxeo.ecm.shell.commands.repository.ListCommand.run(ListCommand.java:40)
              at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:335)
              at org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(InteractiveCommand.java:165)
              at org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(InteractiveCommand.java:135)
              at org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveCommand.java:104)
              at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:335)
              at org.nuxeo.ecm.shell.Main.main(Main.java:100)
              at org.nuxeo.ecm.shell.CommandLineService$1.run(CommandLineService.java:363)
              at org.nuxeo.osgi.application.StandaloneApplication.main(StandaloneApplication.java:343)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.nuxeo.osgi.application.Main.main(Main.java:64)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.nuxeo.runtime.launcher.Main.main(Main.java:88)
      Caused by: java.rmi.MarshalException: Failed to communicate.  Problem during marshalling/unmarshalling; nested exception is:
              java.io.InvalidClassException: org.nuxeo.ecm.core.schema.types.ComplexTypeImpl; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUI
      D = 294207320373332155
              at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:122)
              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:646)
              at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
              at org.jboss.remoting.Client.invoke(Client.java:1634)
              at org.jboss.remoting.Client.invoke(Client.java:548)
              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
              ... 26 more
      Caused by: java.io.InvalidClassException: org.nuxeo.ecm.core.schema.types.ComplexTypeImpl; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersio
      nUID = 294207320373332155
              at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
              at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
              at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122)
              at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
              at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:239)
              at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:133)
              at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:120)
              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:957)
              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:586)
              at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
              at org.jboss.remoting.Client.invoke(Client.java:1634)
              at org.jboss.remoting.Client.invoke(Client.java:548)
              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
              at $Proxy12.getDocumentTypes(Unknown Source)
              at org.nuxeo.ecm.core.schema.SchemaManagerImpl.importTypes(SchemaManagerImpl.java:101)
              at org.nuxeo.ecm.core.client.NuxeoClient.schemaRemotingWorkaround(NuxeoClient.java:238)
              at org.nuxeo.ecm.core.client.NuxeoClient.doConnect(NuxeoClient.java:189)
              at org.nuxeo.ecm.core.client.NuxeoClient.connect(NuxeoClient.java:117)
              at org.nuxeo.ecm.shell.CommandContext.initalizeConnection(CommandContext.java:218)
              at org.nuxeo.ecm.shell.CommandContext.getRepositoryInstance(CommandContext.java:191)
              at org.nuxeo.ecm.shell.commands.repository.ListCommand.run(ListCommand.java:40)
              at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:335)
              at org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(InteractiveCommand.java:165)
              at org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(InteractiveCommand.java:135)
              at org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveCommand.java:104)
              at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:335)
              at org.nuxeo.ecm.shell.Main.main(Main.java:100)
              at org.nuxeo.ecm.shell.CommandLineService$1.run(CommandLineService.java:363)
              at org.nuxeo.osgi.application.StandaloneApplication.main(StandaloneApplication.java:343)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.nuxeo.osgi.application.Main.main(Main.java:64)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.nuxeo.runtime.launcher.Main.main(Main.java:88)
              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
              ... 34 more
      

        Attachments

          Activity

            People

            • Assignee:
              tmartins Thierry Martins
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.