3 Replies Latest reply on Feb 14, 2011 2:10 PM by Mason Harding

    local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2

    Mason Harding Newbie

      Hi All.  I am trying to deploy to jbossas remote 6 final (i've tried to jboss as 6 m4 as well).  My pom looks like....

       

      ...
              <dependency>
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>4.8.1</version>
                  <scope>test</scope>
              </dependency>
      
              <dependency>
                  <groupId>org.jboss.arquillian</groupId>
                  <artifactId>arquillian-junit</artifactId>
                  <version>${arquillian.version}</version>
                  <scope>test</scope>
              </dependency>
      ...
      
              <profile>
                  <id>jbossas-remote-6</id>
                  <dependencies>
                      <dependency>
                          <groupId>org.jboss.arquillian.container</groupId>
                          <artifactId>arquillian-jbossas-remote-6</artifactId>
                          <version>${arquillian.version}</version>
                      </dependency>
      
                      <dependency>
                          <groupId>org.jboss.jbossas</groupId>
                          <artifactId>jboss-as-client</artifactId>
                          <version>6.0.0.Final</version>
                          <type>pom</type>
                      </dependency>
                  </dependencies>
              </profile>
      ...
      

      I've tried Arqillian version 1.0.0.Alpha4 and 1.0.0.SNAPSHOT.  I've also jboss-as-client 6.0.0.20100721-M4.  I have run jboss as 6 Final, and M4, in any case I get the following error.....


      org.jboss.arquillian.impl.event.FiredEventException: org.jboss.arquillian.spi.LifecycleException: Could not connect to container
              at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)
              at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
              at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:68)
              at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:89)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
              at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
              at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
              at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
              at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
              at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
              at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:51)
              at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
              at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
              at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
              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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
              at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
      Caused by: org.jboss.arquillian.spi.LifecycleException: Could not connect to container
              at org.jboss.arquillian.container.jbossas.remote_6.JBossASRemoteContainer.start(JBossASRemoteContainer.java:90)
              at org.jboss.arquillian.impl.handler.ContainerStarter.callback(ContainerStarter.java:52)
              at org.jboss.arquillian.impl.handler.ContainerStarter.callback(ContainerStarter.java:41)
              at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
              ... 23 more
      Caused by: java.lang.RuntimeException: java.io.InvalidClassException: org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2
              at org.jboss.aop.joinpoint.MethodInvocation.getArguments(MethodInvocation.java:314)
              at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:118)
              at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
              at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:122)
              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)
              at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
              at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
              at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
              at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
      Caused by: java.io.InvalidClassException: org.jboss.profileservice.spi.ProfileKey; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = 2
              at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
      

       

       

      Please help! 

       

      Thanks,

      Mason