[jboss-jira] [JBoss JIRA] Resolved: (BPEL-295) onEvent does not support

Alejandro Guizar (JIRA) jira-events at lists.jboss.org
Mon Jan 12 08:22:05 EST 2009


     [ https://jira.jboss.org/jira/browse/BPEL-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Guizar resolved BPEL-295.
-----------------------------------

    Resolution: Out of Date


> onEvent does not support
> ------------------------
>
>                 Key: BPEL-295
>                 URL: https://jira.jboss.org/jira/browse/BPEL-295
>             Project: JBoss jBPM BPEL
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Engine
>    Affects Versions: jBPM BPEL 1.1 GA
>         Environment: Windows XP Professional SP 2
> jboss-4.2.2.GA
> default memory DB
>            Reporter: Christoph Salvisberg
>            Assignee: Alejandro Guizar
>   Original Estimate: 2 days
>  Remaining Estimate: 2 days
>
> When having a onEvent of Request/Response type and having an inbound Message from which I wan't to read out the transmitted data in the onEvent-Scope, I recieve an NullPointerException. After the standard ( http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html#SA00086 ) there supposed to be this variable implicitly declared, but when trying to access afterweards, I get this nasty error. Declaring the variable outside the scope results in a unitialized variable error, so there seems to be a major trouble with this.
> The Initialisation on the client side works, as the correlation works without any problems.
> This is when working with the variable attribute inside the onEvent tag.
> In addition in the WS BPEL 2.0 Spec it is written, that you can get ridd of th variable attribute and work with the fromParts-Construct instead, but when I delete the variable attribute from the onEvent tag, I can't even deploy my process anymore.
> Code-Snippet:
> <onEvent partnerLink="ClientPartnerLink" operation="selectSystem" portType="nswsdl:openServiceRequest" variable="selectSystemIn" messageType="nswsdl:selectSystemOperationRequest">
>                     <correlations>
>                         <correlation set="serviceCallCreation" initiate="no"/>
>                     </correlations>
>                     <!--
>                     <fromParts>
>                         <fromPart part="selectSystemPart" toVariable="selectSystemIn" />
>                     </fromParts>
>                     -->
>                     <scope name="selectSystemScope">
>                         <sequence name="selectSystemSequence">
>                             <assign name="setSystemSelected">
>                                 <copy>
>                                     <from variable="serviceCallID"/>
>                                     <to>$selectSystemOut.selectSystemObject/serviceCallID</to>
>                                 </copy>
>                                 <copy>
>                                     <from>true()</from>
>                                     <to variable="systemIsChosen"/>
>                                 </copy>
>                                 <copy>
>                                     <from>false()</from>
>                                     <to variable="equipmentIsChosen"/>
>                                 </copy>
>                                 <copy>
>                                     <from>$selectSystemIn.selectSystemObject/systemID</from>
>                                     <to>$addNewSCIn.parameters/ns2:scInfo/ns2:ItemCode</to>
>                                 </copy>
>                             </assign>
>                             <reply name="replySelectSystem" partnerLink="ClientPartnerLink" operation="selectSystem" portType="nswsdl:openServiceRequest" variable="selectSystemOut">
>                                 <correlations>
>                                     <correlation set="serviceCallCreation" initiate="no"/>
>                                 </correlations>
>                             </reply>
>                         </sequence>
>                     </scope>
>                 </onEvent>
> JBoss AS Error:
> 16:38:28,734 ERROR [RequestListener] request delivery failed due to non-recoverable exception, giving up
> java.lang.NullPointerException
>         at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:94)
>         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:585)
>         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.RequestListener.deliverRequest(RequestListener.java:207)
>         at org.jbpm.bpel.integration.jms.RequestListener.onMessage(RequestListener.java:160)
>         at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:682)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list