Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2632

SOAPHeader == null not caught // no good cast

XMLWordPrintable

      SOAPAddressingPropertiesImpl#writeHeaders has these two lines:

      SOAPFactoryImpl factory = (SOAPFactoryImpl)SOAPFactory.newInstance();
      SOAPHeader soapHeader = message.getSOAPHeader();

      soapHeader is then used without catching a NullPointerException ...

      The cast conflicts with the currently set System property, resulting in a ClassCastException. That happens because I was just using the WS-Addressing part of jbossws. By the way, is there any other implementation of JSR261 available?

              rhn-support-asoldano Alessio Soldano
              creme_fresh asdf asdf (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: