Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3098

NPE in JMSBindingProcessor writing out property with no name

    XMLWordPrintableJSON

Details

    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...)

      Attachments

        Activity

          People

            Unassigned Unassigned
            makandre@ca.ibm.com Andrew Mak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: