[JBoss jBPM] - Re: jBPM/Spring/jUnit
by kukeltje
anonymous wrote : "kukeltje" wrote : The fact that it is invoked (how do ypou see that from this log btw...) does not mean the result is used.The fact that the message is logged from the handler...
Yes, the handler is called, I see that. I meant that the 'result' isn't used.
anonymous wrote : "kukeltje" wrote : btw, why do you do a leave node in an assignment handler? That is realy wrong.Hang-over from my early experiments with jBPM. I think without it, although the process starts, it gets 'stuck' in the start state.
Still then, it is realy wrong. And if you have a start task don't you want it to stay in the start node???
anonymous wrote :
| All I was hoping for with this thread was to get some ideas as to why the DelegationException is thrown when I invoke createStartTaskInstance() from a jUnit test, but NOT when the same code is run as part of the normal running of the app.
That is new information (or maybe I missed it somewhere in the split posts). Most often it is a classloader issue if you see this different behaviour
anonymous wrote : I had assumed that the range of possible causes for that exception had probably been experienced by someone. I'm still hoping that someone will give me some guesses or suggestions for investigation.
That is why a real unittest is handy for *us* so we can try to replicate the issue locally...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194819#4194819
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194819
17 years, 4 months
[JBoss jBPM] - Error while deploying
by vinutha
Hi,
I am trying a simple example on BPEL. While deploying it I see the following error.
20:21:54,796 ERROR [ProblemHandler] message type not found (hello.bpel) at /bpws:process/bpws:variables/bpws:variable[3]
20:21:54,796 ERROR [ProblemHandler] message type not found (hello.bpel) at /bpws:process/bpws:variables/bpws:variable[4]
20:21:54,796 ERROR [ProblemHandler] port type mismatch between message activity and partner link (hello.bpel) at /bpws:process/bpws:sequence/bpws:invoke
20:21:54,796 ERROR [ProblemHandler] inputVariable type is not applicable for the operation (hello.bpel) at /bpws:process/bpws:sequence/bpws:invoke
20:21:54,796 ERROR [ProblemHandler] outputVariable type is not applicable for the operation (hello.bpel) at /bpws:process/bpws:sequence/bpws:invoke
20:21:54,796 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
org.jbpm.bpel.xml.BpelParseException: 5 problem(s) found
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchiveParser.java:59)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentServlet.java:182)
Any suggestion will be appreciated.
We have the following files
1. hello.bpel
<?xml version="1.0" encoding="UTF-8"?>
<bpws:process exitOnStandardFault="yes" name="HelloWorld"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns="http://jbpm.org/examples/helloArtifacts"
xmlns:ns0="http://jbpm.org/examples/converter"
xmlns:tns="http://jbpm.org/examples/hello"
targetNamespace="http://jbpm.org/examples/hello">
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="hello.wsdl" namespace="http://jbpm.org/examples/hello"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="ravi.wsdl" namespace="http://jbpm.org/example/converter"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="helloArtifacts.wsdl" namespace="http://jbpm.org/examples/helloArtifacts"/>
<bpws:partnerLinks>
<bpws:partnerLink myRole="Greeter" name="caller" partnerLinkType="tns:Greeter-Caller">
</bpws:partnerLink>
<bpws:partnerLink name="ConverterPLink"
partnerLinkType="ns:ConverterPLTName" partnerRole="converterRole"/>
</bpws:partnerLinks>
<bpws:variables>
<bpws:variable messageType="tns:nameMessage" name="request" />
<bpws:variable messageType="tns:greetingMessage" name="response" />
<bpws:variable messageType="ns0:convertAmountRequest" name="Request"/>
<bpws:variable messageType="ns0:convertAmountResponse" name="convertResponse"/>
</bpws:variables>
<bpws:sequence name="MainSeq">
<bpws:receive createInstance="yes" name="ReceiveName"
operation="sayHello" partnerLink="caller"
portType="tns:Greeter" variable="request">
<bpws:documentation>receive the name of a person</bpws:documentation>
</bpws:receive>
<bpws:assign name="ComposeGreeting" validate="no">
<bpws:documentation>compose a greeting phrase</bpws:documentation>
<bpws:copy>
<bpws:from><![CDATA[concat('Hello, ', $request.name, '!')]]></bpws:from>
<bpws:to part="greeting" variable="response"/>
</bpws:copy>
</bpws:assign>
<bpws:invoke inputVariable="Request" name="Invoke"
operation="convertAmount" outputVariable="convertResponse"
partnerLink="ConverterPLink" portType="ns0:CurrencyConverter"/>
<bpws:reply name="SendGreeting" operation="sayHello"
partnerLink="caller" portType="tns:Greeter" variable="response">
<bpws:documentation>send greeting back to caller</bpws:documentation>
</bpws:reply>
</bpws:sequence>
</bpws:process>
2. hello.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions
targetNamespace="http://jbpm.org/examples/hello"
xmlns:tns="http://jbpm.org/examples/hello"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:plt="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns="http://schemas.xmlsoap.org/wsdl/">
carries the greeting
carries the name of a person
describes the interface presented to callers
<plt:partnerLinkType name="Greeter-Caller">
<plt:documentation>
characterizes the relationship between the greeter and its caller
</plt:documentation>
<plt:role name="Greeter" portType="tns:Greeter">
<plt:documentation>
Caller does not provide services to Greeter, hence the "Caller" role is omitted
</plt:documentation>
</plt:role>
</plt:partnerLinkType>
3.helloArtifacts.wsdl
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<definitions name="helloArtifacts"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:tns="http://jbpm.org/examples/helloArtifacts"
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns:wsdl="http://jbpm.org/example/converter"
targetNamespace="http://jbpm.org/examples/helloArtifacts"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<plnk:partnerLinkType name="ConverterPLTName">
<plnk:role name="converterRole" portType="wsdl:CurrencyConverter"/>
</plnk:partnerLinkType>
4.ravi.wsdl
<?xml version="1.0" encoding="UTF-8" ?>
<definitions name ="converter"
targetNamespace="http://jbpm.org/example/converter"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://jbpm.org/example/converter"
xmlns:intf="http://jbpm.org/example/converter"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://jbpm.org/examples/converter"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdlsoap:operation soapAction="" />
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://jbpm.org/example/converter" use="encoded" />
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://jbpm.org/example/converter" use="encoded" />
<wsdlsoap:address location="http://10.116.11.69:8080/axis/services/converter" />
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194649#4194649
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194649
17 years, 4 months