Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-1.5
-
None
Description
We are reading a composite file with a JMS binding into the Tuscany model, then trying to write out that model again but ran into an NPE:
java.lang.NullPointerException
at org.apache.tuscany.sca.binding.jms.impl.JMSBindingProcessor.writeBindingProperties(JMSBindingProcessor.java:1266)
at org.apache.tuscany.sca.binding.jms.impl.JMSBindingProcessor.writeDestinationProperties(JMSBindingProcessor.java:1335)
at org.apache.tuscany.sca.binding.jms.impl.JMSBindingProcessor.write(JMSBindingProcessor.java:1006)
at org.apache.tuscany.sca.binding.jms.impl.JMSBindingProcessor.write(JMSBindingProcessor.java:144)
at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.write(ExtensibleStAXArtifactProcessor.java:162)
at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.write(CompositeProcessor.java:717)
It turns out the problem was the JMS binding had a property which is missing the name attribute (oddly, the schema allows this...)