[jboss-user] [JBoss jBPM] - I need you help!

cumtyjp do-not-reply at jboss.com
Sat Nov 1 04:02:00 EDT 2008


hello,everyone! 
I have met many problems. 
jboss:jboss-4.2.3.GA 
jbpm:jbpm-bpel-1.1.1 
java version "1.6.0_05"
jwsdp-2.0

when I use the command "ant trip" to run the hello example , the result is right. however, I use the same way to run the trip example, it's wrong. how to resolve it, I need your help!
the log is:
test:
  |    [junit] Running org.jbpm.bpel.tutorial.trip.TravelAgentTest
  |    [junit] javax.xml.rpc.soap.SOAPFaultException:
  | java.lang.NullPointerException)
  |     [junit]     javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerExce
  | ption)
  |     [junit]     javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerExce
  | ption)
  |     [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 50.078 sec
  |     [junit] Test org.jbpm.bpel.tutorial.trip.TravelAgentTest FAILED
  | 
the log is 
<testcase classname="org.jbpm.bpel.tutorial.trip.TravelAgentTest" name="testPurchaseTrip" time="10.203">
  |     <error message="Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is: 
  | 	javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is: 
  | 	javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:524)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
  | 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
  | 	at $Proxy3.purchaseTrip(Unknown Source)
  | 	at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testPurchaseTrip(TravelAgentTest.java:65)
  | 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  | 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  | 	at junit.extensions.TestSetup.run(TestSetup.java:23)
  | Caused by: javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
  | 	at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
  | 	at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
  | </error>
  |   </testcase>
  |   <testcase classname="org.jbpm.bpel.tutorial.trip.TravelAgentTest" name="testGetTripDetails" time="0.64">
  |     <error message="Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is: 
  | 	javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is: 
  | 	javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:524)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
  | 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
  | 	at $Proxy3.purchaseTrip(Unknown Source)
  | 	at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testGetTripDetails(TravelAgentTest.java:80)
  | 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  | 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  | 	at junit.extensions.TestSetup.run(TestSetup.java:23)
  | Caused by: javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
  | 	at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
  | 	at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
  | </error>
  |   </testcase>
  |   <testcase classname="org.jbpm.bpel.tutorial.trip.TravelAgentTest" name="testCancelTrip" time="0.594">
  |     <error message="Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is: 
  | 	javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is: 
  | 	javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:524)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
  | 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
  | 	at $Proxy3.purchaseTrip(Unknown Source)
  | 	at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testCancelTrip(TravelAgentTest.java:104)
  | 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  | 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  | 	at junit.extensions.TestSetup.run(TestSetup.java:23)
  | Caused by: javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
  | 	at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
  | 	at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
  | </error>
  |   </testcase>
  |   <system-out><![CDATA[15:53:54,265 DEBUG [SecurityAssociation] Using ThreadLocal: false
  | 15:54:15,265 DEBUG [DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
  | 15:54:15,296 DEBUG [DefaultSPIProvider] class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl at 1f31652
  | 15:54:17,234 TRACE [MessageTrace] Outgoing Request Message
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |  <env:Header/>
  |  <env:Body>
  |   <ns1:order xmlns:ns1='http://jbpm.org/examples/trip' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  |    <items>
  |     <flight airline='AM' number='637'/>
  |     <hotel name='Maria Isabel'/>
  |     <rentalCar xsi:nil='1'/>
  |    </items>
  |    <date>2008-11-01T15:53:45.343+08:00</date>
  |   </ns1:order>
  |  </env:Body>
  | </env:Envelope>
  | 15:54:24,015 TRACE [MessageTrace] Incoming Response Message
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |  <env:Header/>
  |  <env:Body>
  |   <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |    <faultcode>env:Server</faultcode>
  |    <faultstring>java.lang.NullPointerException</faultstring>
  |   </env:Fault>
  |  </env:Body>
  | </env:Envelope>
  | 15:54:24,062 ERROR [CallImpl] Call invocation failed
  | javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
  | 	at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
  | 	at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
  | 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
  | 	at $Proxy3.purchaseTrip(Unknown Source)
  | 	at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testPurchaseTrip(TravelAgentTest.java:65)
  | 	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 junit.framework.TestCase.runTest(TestCase.java:154)
  | 	at junit.framework.TestCase.runBare(TestCase.java:127)
  | 	at junit.framework.TestResult$1.protect(TestResult.java:106)
  | 	at junit.framework.TestResult.runProtected(TestResult.java:124)
  | 	at junit.framework.TestResult.run(TestResult.java:109)
  | 	at junit.framework.TestCase.run(TestCase.java:118)
  | 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
  | 	at junit.framework.TestSuite.run(TestSuite.java:203)
  | 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  | 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  | 	at junit.framework.TestResult.runProtected(TestResult.java:124)
  | 	at junit.extensions.TestSetup.run(TestSetup.java:23)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
  | 15:54:24,203 DEBUG [DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
  | 15:54:24,203 DEBUG [DefaultSPIProvider] class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl at c08593
  | 15:54:24,515 TRACE [MessageTrace] Outgoing Request Message
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |  <env:Header/>
  |  <env:Body>
  |   <ns1:order xmlns:ns1='http://jbpm.org/examples/trip' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  |    <items>
  |     <flight airline='AM' number='637'/>
  |     <hotel name='Maria Isabel'/>
  |     <rentalCar company='Alamo'/>
  |    </items>
  |    <date>2008-11-01T15:53:45.343+08:00</date>
  |   </ns1:order>
  |  </env:Body>
  | </env:Envelope>
  | 15:54:24,718 TRACE [MessageTrace] Incoming Response Message
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |  <env:Header/>
  |  <env:Body>
  |   <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |    <faultcode>env:Server</faultcode>
  |    <faultstring>java.lang.NullPointerException</faultstring>
  |   </env:Fault>
  |  </env:Body>
  | </env:Envelope>
  | 15:54:24,718 ERROR [CallImpl] Call invocation failed
  | javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
  | 	at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
  | 	at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
  | 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
  | 	at $Proxy3.purchaseTrip(Unknown Source)
  | 	at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testGetTripDetails(TravelAgentTest.java:80)
  | 	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 junit.framework.TestCase.runTest(TestCase.java:154)
  | 	at junit.framework.TestCase.runBare(TestCase.java:127)
  | 	at junit.framework.TestResult$1.protect(TestResult.java:106)
  | 	at junit.framework.TestResult.runProtected(TestResult.java:124)
  | 	at junit.framework.TestResult.run(TestResult.java:109)
  | 	at junit.framework.TestCase.run(TestCase.java:118)
  | 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
  | 	at junit.framework.TestSuite.run(TestSuite.java:203)
  | 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  | 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  | 	at junit.framework.TestResult.runProtected(TestResult.java:124)
  | 	at junit.extensions.TestSetup.run(TestSetup.java:23)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
  | 15:54:24,859 DEBUG [DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
  | 15:54:24,859 DEBUG [DefaultSPIProvider] class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl at 1455cf0
  | 15:54:25,125 TRACE [MessageTrace] Outgoing Request Message
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |  <env:Header/>
  |  <env:Body>
  |   <ns1:order xmlns:ns1='http://jbpm.org/examples/trip' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  |    <items>
  |     <flight airline='AM' number='637'/>
  |     <hotel xsi:nil='1'/>
  |     <rentalCar company='Alamo'/>
  |    </items>
  |    <date>2008-11-01T15:53:45.343+08:00</date>
  |   </ns1:order>
  |  </env:Body>
  | </env:Envelope>
  | 15:54:25,312 TRACE [MessageTrace] Incoming Response Message
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |  <env:Header/>
  |  <env:Body>
  |   <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
  |    <faultcode>env:Server</faultcode>
  |    <faultstring>java.lang.NullPointerException</faultstring>
  |   </env:Fault>
  |  </env:Body>
  | </env:Envelope>
  | 15:54:25,312 ERROR [CallImpl] Call invocation failed
  | javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
  | 	at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
  | 	at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
  | 	at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
  | 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
  | 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
  | 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
  | 	at $Proxy3.purchaseTrip(Unknown Source)
  | 	at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testCancelTrip(TravelAgentTest.java:104)
  | 	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 junit.framework.TestCase.runTest(TestCase.java:154)
  | 	at junit.framework.TestCase.runBare(TestCase.java:127)
  | 	at junit.framework.TestResult$1.protect(TestResult.java:106)
  | 	at junit.framework.TestResult.runProtected(TestResult.java:124)
  | 	at junit.framework.TestResult.run(TestResult.java:109)
  | 	at junit.framework.TestCase.run(TestCase.java:118)
  | 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
  | 	at junit.framework.TestSuite.run(TestSuite.java:203)
  | 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  | 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  | 	at junit.framework.TestResult.runProtected(TestResult.java:124)
  | 	at junit.extensions.TestSetup.run(TestSetup.java:23)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
  | 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
  | ]]></system-out>
  |   <system-err><![CDATA[]]></system-err>
  | </testsuite>
  | 
Thanks!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186163#4186163

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186163




More information about the jboss-user mailing list