Uploaded image for project: 'Rampart'
  1. Rampart
  2. RAMPART-270

NPE in RampartMessageData

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5.1
    • rampart-core
    • None

    Description

      When using Rampart with Tuscany to secure web services, if the security processing fails (e.g. wrong password entered), then I get a NPE from RampartMessageData:

      java.lang.NullPointerException
      org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:308)
      org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61)
      org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
      org.apache.axis2.engine.Phase.invoke(Phase.java:317)
      org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
      org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:520)
      org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:416)
      org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:379)
      org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:167)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:107)
      org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:93)

      This is similar to RAMPART-165, but further down the code.

      Attachments

        1. RAMPART-270.patch
          0.9 kB
          Martin Clough
        2. npe.patch
          1 kB
          Gerhard Presser

        Activity

          People

            samisa Don Samisa Abeysinghe
            mtclough@googlemail.com Martin Clough
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: