[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-8064) Variable initializer does not generate content for messages which use type attribute instead of element to declare the part.
Feng Qian (JIRA)
jira-events at lists.jboss.org
Mon Mar 14 04:31:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-8064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587660#comment-12587660 ]
Feng Qian commented on JBIDE-8064:
----------------------------------
Hi Marek,
I have tested this issue on the trunk codes base. No initializer dialog comes out.
So based on the latest codes, could you get the NPE error?
> Variable initializer does not generate content for messages which use type attribute instead of element to declare the part.
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-8064
> URL: https://issues.jboss.org/browse/JBIDE-8064
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: bpel
> Affects Versions: 3.2.0.CR1
> Reporter: Marek Baluch
> Assignee: Feng Qian
> Fix For: 3.2.1, 3.3.x
>
> Attachments: NPE_stack.txt, test_project.zip
>
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> If a message has one of the formats bellow then the variable initializer will not generate the init content even when the user chooses yes.
> <message name="moderateRequestMessage">
> <part name="moderateRequest" type="tns:complexType"/>
> </message>
> or
> <message name="simpleResponseMessage">
> <part name="payload" type="xsd:string"/>
> </message>
> In the second case there's no need to generate any content - the variable initializer should not be triggered. The following case shows why the variable initializer should not be triggered for simple assignments:
> If we have the following variables:
> <bpel:variable name="simpleIn" messageType="tns:simpleRequestMessage"/>
> <bpel:variable name="processVar" type="xsd:string"/>
> and attempt the following assignment:
> <bpel:assign validate="no" name="assignToLocal">
> <bpel:copy>
> <bpel:from part="payload" variable="simpleIn"></bpel:from>
> <bpel:to variable="processVar"></bpel:to>
> </bpel:copy>
> </bpel:assign>
> we get a NPE in the log (see attachment).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list