1 Reply Latest reply on Sep 7, 2006 12:07 AM by Alejandro Guizar

    ant run-test throws a error

    hi aihua Newbie

      E:\jbpm-bpel\doc\examples\hello>ant run-test
      Buildfile: build.xml

      compile-test:

      run-test:
      [junit] Testsuite: org.jbpm.bpel.tutorial.hello.ClientTest
      [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 1.063 sec

      [junit] ------------- Standard Output ---------------
      [junit] 13:43:45,828 ERROR ServiceObjectFactory : Cannot create service
      [junit] javax.naming.NamingException: Cannot unmarshall service ref meta dat
      a, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class
      incompatible: stream classdesc serialVersionUID = 4418622981026545151, local cla
      ss serialVersionUID = -9120448754896609940
      [junit] at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(Se
      rviceObjectFactory.java:127)
      [junit] at javax.naming.spi.NamingManager.getObjectInstance(NamingManage
      r.java:304)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstance(NamingCont
      ext.java:1125)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure
      (NamingContext.java:1142)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:70
      5)
      [junit] at org.jboss.naming.client.java.javaURLContextFactory$EncContext
      Proxy.invoke(javaURLContextFactory.java:135)
      [junit] at $Proxy0.lookup(Unknown Source)
      [junit] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [junit] at org.jbpm.bpel.tutorial.hello.ClientTest.setUp(ClientTest.java
      :28)
      [junit] at junit.framework.TestCase.runBare(TestCase.java:125)
      [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
      [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
      [junit] at junit.framework.TestResult.run(TestResult.java:109)
      [junit] at junit.framework.TestCase.run(TestCase.java:118)
      [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
      [junit] at junit.framework.TestSuite.run(TestSuite.java:203)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
      run(JUnitTestRunner.java:297)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      eInVM(JUnitTask.java:1072)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      e(JUnitTask.java:682)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      eOrQueue(JUnitTask.java:1434)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      e(JUnitTask.java:632)
      [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
      va:275)
      [junit] at org.apache.tools.ant.Task.perform(Task.java:364)
      [junit] at org.apache.tools.ant.Target.execute(Target.java:341)
      [junit] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
      a:1216)
      [junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

      [junit] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
      faultExecutor.java:40)
      [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
      )
      [junit] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [junit] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [junit] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [junit] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [junit] 13:43:45,890 ERROR ServiceObjectFactory : Cannot create service
      [junit] javax.naming.NamingException: Cannot unmarshall service ref meta dat
      a, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class
      incompatible: stream classdesc serialVersionUID = 4418622981026545151, local cla
      ss serialVersionUID = -9120448754896609940
      [junit] at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(Se
      rviceObjectFactory.java:127)
      [junit] at javax.naming.spi.NamingManager.getObjectInstance(NamingManage
      r.java:304)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstance(NamingCont
      ext.java:1125)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure
      (NamingContext.java:1142)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:70
      5)
      [junit] at org.jboss.naming.client.java.javaURLContextFactory$EncContext
      Proxy.invoke(javaURLContextFactory.java:135)
      [junit] at $Proxy0.lookup(Unknown Source)
      [junit] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [junit] at org.jbpm.bpel.tutorial.hello.ClientTest.setUp(ClientTest.java
      :28)
      [junit] at junit.framework.TestCase.runBare(TestCase.java:125)
      [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
      [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
      [junit] at junit.framework.TestResult.run(TestResult.java:109)
      [junit] at junit.framework.TestCase.run(TestCase.java:118)
      [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
      [junit] at junit.framework.TestSuite.run(TestSuite.java:203)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
      run(JUnitTestRunner.java:297)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      eInVM(JUnitTask.java:1072)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      e(JUnitTask.java:682)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      eOrQueue(JUnitTask.java:1434)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
      e(JUnitTask.java:632)
      [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
      va:275)
      [junit] at org.apache.tools.ant.Task.perform(Task.java:364)
      [junit] at org.apache.tools.ant.Target.execute(Target.java:341)
      [junit] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
      a:1216)
      [junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

      [junit] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
      faultExecutor.java:40)
      [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
      )
      [junit] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [junit] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [junit] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [junit] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [junit] ------------- ---------------- ---------------
      [junit] Testcase: testSayHello_proxy(org.jbpm.bpel.tutorial.hello.ClientTest
      ): Caused an ERROR
      [junit] Cannot unmarshall service ref meta data, cause: java.io.InvalidClass
      Exception: javax.xml.namespace.QName; local class incompatible: stream classdesc
      serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448
      754896609940
      [junit] javax.naming.NamingException: Cannot unmarshall service ref meta dat
      a, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class
      incompatible: stream classdesc serialVersionUID = 4418622981026545151, local cla
      ss serialVersionUID = -9120448754896609940
      [junit] at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(Se
      rviceObjectFactory.java:127)
      [junit] at javax.naming.spi.NamingManager.getObjectInstance(NamingManage
      r.java:304)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstance(NamingCont
      ext.java:1125)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure
      (NamingContext.java:1142)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:70
      5)
      [junit] at org.jboss.naming.client.java.javaURLContextFactory$EncContext
      Proxy.invoke(javaURLContextFactory.java:135)
      [junit] at $Proxy0.lookup(Unknown Source)
      [junit] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [junit] at org.jbpm.bpel.tutorial.hello.ClientTest.setUp(ClientTest.java
      :28)


      [junit] Testcase: testSayHello_dii(org.jbpm.bpel.tutorial.hello.ClientTest):
      Caused an ERROR
      [junit] Cannot unmarshall service ref meta data, cause: java.io.InvalidClass
      Exception: javax.xml.namespace.QName; local class incompatible: stream classdesc
      serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448
      754896609940
      [junit] javax.naming.NamingException: Cannot unmarshall service ref meta dat
      a, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class
      incompatible: stream classdesc serialVersionUID = 4418622981026545151, local cla
      ss serialVersionUID = -9120448754896609940
      [junit] at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(Se
      rviceObjectFactory.java:127)
      [junit] at javax.naming.spi.NamingManager.getObjectInstance(NamingManage
      r.java:304)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstance(NamingCont
      ext.java:1125)
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure
      (NamingContext.java:1142)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:70
      5)
      [junit] at org.jboss.naming.client.java.javaURLContextFactory$EncContext
      Proxy.invoke(javaURLContextFactory.java:135)
      [junit] at $Proxy0.lookup(Unknown Source)
      [junit] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      [junit] at org.jbpm.bpel.tutorial.hello.ClientTest.setUp(ClientTest.java
      :28)


      [junit] Test org.jbpm.bpel.tutorial.hello.ClientTest FAILED

      BUILD SUCCESSFUL
      Total time: 3 seconds
      ????????????? - end