3 Replies Latest reply on Aug 1, 2008 6:21 AM by Melanie Siebenhaar

    error while calling a bpel process

    Melanie Siebenhaar Newbie

      Hi,

      I've created a simple bpel process using the eclipse bpel designer, which contains an external web service invocation. The deployment of the bpel process to JBoss works fine. I also added the appropriate wsdl to the partner service catalog. But the following error occurs, while calling the bpel process from a servlet (using SAAJ):

      ERROR [XPathEvaluator] selection of size other than one: []
      


      Any ideas?

      Thanks for help!





        • 1. Re: error while calling a bpel process
          Alejandro Guizar Master

          An XPath query in your process resulted in an empty nodeset. Queries must always return a nodeset of size 1.
          Your log file should tell which query is being evaluated in a DEBUG entry before the one you posted.

          • 2. Re: error while calling a bpel process
            Melanie Siebenhaar Newbie

            Thanks. I've read somewhere that all variables have to be initialized.
            That's probably the cause of this error message. But I still have a problem
            while calling this process:

            2008-07-31 19:29:20,209 DEBUG [org.jbpm.bpel.endpointref.SoapEndpointReference] found candidate port: name=whoisSoap, address=http://www.webservicex.net/whois.asmx, service={http://www.webservicex.net}whois, portType={http://www.webservicex.net}whoisSoap
            2008-07-31 19:29:20,209 DEBUG [org.jbpm.bpel.endpointref.SoapEndpointReference] found candidate port: name=whoisSoap, address=http://www.webservicex.net/whois.asmx, service={http://www.webservicex.net}whois, portType={http://www.webservicex.net}whoisSoap
            2008-07-31 19:29:20,209 DEBUG [org.jbpm.bpel.integration.jms.IntegrationControl] selected partner port: instance=org.jbpm.bpel.integration.exe.PartnerLinkInstance@15b73eb[name=whoisPL,partnerReference=org.jbpm.bpel.endpointref.wsa.WsaEndpointReference@dbd53e[address=<null>,portType={http://www.webservicex.net}whoisSoap]], port=whoisSoap
            2008-07-31 19:29:20,239 DEBUG [org.jbpm.bpel.integration.client.SoapClient] calling endpoint at: http://www.webservicex.net/whois.asmx
            2008-07-31 19:29:20,249 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Get locator for: http://www.webservicex.net/whois.asmx
            2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@170bbcf connecting
            2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@170bbcf connected
            2008-07-31 19:29:20,279 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Remoting metadata: {HEADER={SOAPAction="http://www.webservicex.net/GetWhoIS", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true}
            2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with SOAPAction : "http://www.webservicex.net/GetWhoIS"
            2008-07-31 19:29:20,279 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with Content-Type : text/xml; charset=UTF-8
            2008-07-31 19:29:20,509 DEBUG [org.jboss.ws.core.soap.SOAPMessageUnMarshaller] getMimeHeaders from: {Content-Length=[624], X-Powered-By=[ASP.NET], X-AspNet-Version=[1.1.4322], ResponseCodeMessage=Internal Server Error., Date=[Thu, 31 Jul 2008 17:29:16 GMT], Content-Type=[text/xml; charset=utf-8], Server=[Microsoft-IIS/6.0], HEADER={SOAPAction="http://www.webservicex.net/GetWhoIS", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true, Cache-Control=[private], ResponseCode=500}
            2008-07-31 19:29:20,529 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=utf-8]
            2008-07-31 19:29:20,539 DEBUG [org.jboss.remoting.InvokerRegistry] removed org.jboss.remoting.transport.http.HTTPClientInvoker@170bbcf from registry
            2008-07-31 19:29:20,539 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
            2008-07-31 19:29:20,539 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to DOM_VALID
            2008-07-31 19:29:20,539 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
            2008-07-31 19:29:20,539 ERROR [org.jbpm.bpel.integration.client.SoapClient] endpoint call failed: http://www.webservicex.net/whois.asmx
            javax.xml.soap.SOAPException: no wsdl fault matches the detail element content: org.jboss.ws.core.soap.DetailImpl@5cccd3[[detail: null]]
             at org.jbpm.bpel.integration.soap.SoapFormatter.readFault(SoapFormatter.java:698)
             at org.jbpm.bpel.integration.client.SoapClient.call(SoapClient.java:98)
             at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:182)
             at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:76)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.graph.def.Action_$$_javassist_149.execute(Action_$$_javassist_149.java)
             at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
             at org.jbpm.graph.def.Node.execute(Node.java:339)
             at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
             at org.jbpm.graph.def.Transition.take(Transition.java:151)
             at org.jbpm.graph.def.Node.leave(Node.java:394)
             at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
             at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
             at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
             at org.jbpm.graph.def.Transition.take(Transition.java:151)
             at org.jbpm.graph.def.Node.leave(Node.java:394)
             at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
             at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.graph.basic.Receive_$$_javassist_19.messageReceived(Receive_$$_javassist_19.java)
             at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:99)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_93.deliverMessage(ReceiveAction_$$_javassist_93.java)
             at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:222)
             at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:168)
             at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:682)
             at java.lang.Thread.run(Unknown Source)
            2008-07-31 19:29:20,549 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: null
            java.lang.NullPointerException
             at org.jbpm.bpel.integration.jms.JmsIntegrationService.replaceMessageType(JmsIntegrationService.java:217)
             at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:185)
             at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:76)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.graph.def.Action_$$_javassist_149.execute(Action_$$_javassist_149.java)
             at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
             at org.jbpm.graph.def.Node.execute(Node.java:339)
             at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
             at org.jbpm.graph.def.Transition.take(Transition.java:151)
             at org.jbpm.graph.def.Node.leave(Node.java:394)
             at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
             at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
             at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
             at org.jbpm.graph.def.Transition.take(Transition.java:151)
             at org.jbpm.graph.def.Node.leave(Node.java:394)
             at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
             at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.graph.basic.Receive_$$_javassist_19.messageReceived(Receive_$$_javassist_19.java)
             at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:99)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_93.deliverMessage(ReceiveAction_$$_javassist_93.java)
             at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:222)
             at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:168)
             at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:682)
             at java.lang.Thread.run(Unknown Source)
            2008-07-31 19:29:20,569 DEBUG [org.jbpm.JbpmContext] closing jbpmContext org.jbpm.JbpmContext@1c2f20c
            2008-07-31 19:29:20,569 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.bpel.persistence.db.DbPersistenceService@ed8b42
            2008-07-31 19:29:20,569 DEBUG [org.jbpm.persistence.db.DbPersistenceService] rolling back hibernate transaction
            2008-07-31 19:29:20,569 DEBUG [org.hibernate.transaction.JDBCTransaction] rollback
            2008-07-31 19:29:20,569 DEBUG [org.hibernate.transaction.JDBCTransaction] re-enabling autocommit
            2008-07-31 19:29:20,569 DEBUG [org.hibernate.transaction.JDBCTransaction] rolled back JDBC Connection
            2008-07-31 19:29:20,569 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection
            2008-07-31 19:29:20,569 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
            2008-07-31 19:29:20,569 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
            2008-07-31 19:29:20,569 DEBUG [org.jbpm.svc.Services] closing service 'tx': org.jbpm.tx.TxService@1519d9b
            2008-07-31 19:29:20,569 DEBUG [org.jbpm.svc.Services] closing service 'integration': org.jbpm.bpel.integration.jms.JmsIntegrationService@14256df
            2008-07-31 19:29:20,569 ERROR [org.jbpm.bpel.integration.jms.StartListener] request delivery failed due to non-recoverable exception, giving up
            org.jbpm.graph.def.DelegationException
             at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:387)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.graph.def.BpelProcessDefinition_$$_javassist_86.raiseException(BpelProcessDefinition_$$_javassist_86.java)
             at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
             at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.graph.def.CompositeActivity_$$_javassist_161.raiseException(CompositeActivity_$$_javassist_161.java)
             at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)
             at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)
             at org.jbpm.graph.def.Node.execute(Node.java:339)
             at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
             at org.jbpm.graph.def.Transition.take(Transition.java:151)
             at org.jbpm.graph.def.Node.leave(Node.java:394)
             at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
             at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
             at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:110)
             at org.jbpm.graph.def.Transition.take(Transition.java:151)
             at org.jbpm.graph.def.Node.leave(Node.java:394)
             at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:200)
             at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.graph.basic.Receive_$$_javassist_19.messageReceived(Receive_$$_javassist_19.java)
             at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:99)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_93.deliverMessage(ReceiveAction_$$_javassist_93.java)
             at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:222)
             at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:168)
             at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:682)
             at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.NullPointerException
             at org.jbpm.bpel.integration.jms.JmsIntegrationService.replaceMessageType(JmsIntegrationService.java:217)
             at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:185)
             at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:76)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
             at org.jbpm.graph.def.Action_$$_javassist_149.execute(Action_$$_javassist_149.java)
             at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
             ... 28 more
            
            


            There's also something strange with the registration of the partner service.
            When JBoss is started within Eclipse the wsdl of the partner service is registered
            correctly. But when I start JBoss using run.bat the wsdl can't be retrieved
            - the target namespace entry states "wsdl read failure".



            • 3. Re: error while calling a bpel process
              Melanie Siebenhaar Newbie

              OK. I solved the problem. The way of initializing the variables has not been correct.
              But I haven't resolved the problem with the registration of the partner service, yet.
              And how can I delete a registration from the partner service catalog?

              Can you give me a piece of advice, please?

              Thanks