[
https://issues.jboss.org/browse/JBIDE-8064?page=com.atlassian.jira.plugin...
]
Marek Baluch commented on JBIDE-8064:
-------------------------------------
Retried with JBT 3.2_trunk.2011-01-19_08-51-02-H962. The Initializer dialog is not popping
up any more for simple types but it doesn't appear for messages like
<message name="moderateRequestMessage">
<part name="moderateRequest" type="tns:complexType"/>
</message>
either. As long as the part has a 'type' attribute instead of an 'element'
attribute the initializer dialog will not appear. These need initialization too though.
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: Robert (Bob) Brodt
Fix For: 3.2.x, 3.3.x
Attachments: NPE_stack.txt, test_project.zip
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