Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5.1
    • Component/s: rampart-core
    • Labels:
      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.

      1. RAMPART-270.patch
        0.9 kB
        Martin Clough
      2. npe.patch
        1 kB
        gerhard presser

        Activity

        Hide
        Martin Clough added a comment -

        A patch to RampartMessageData.java to fix NPE

        Show
        Martin Clough added a comment - A patch to RampartMessageData.java to fix NPE
        Hide
        gerhard presser added a comment -

        the patch seems to work, can somebody apply it to trunk?
        it would be nice if this bug would be fixed in 1.5.
        regards,
        gerhard

        Show
        gerhard presser added a comment - the patch seems to work, can somebody apply it to trunk? it would be nice if this bug would be fixed in 1.5. regards, gerhard
        Hide
        gerhard presser added a comment -

        this patch fixes another possible NPE when loading the token-storage

        Show
        gerhard presser added a comment - this patch fixes another possible NPE when loading the token-storage
        Hide
        Samisa Abeysinghe added a comment -

        Applied the patches : At revision: 1051536

        Show
        Samisa Abeysinghe added a comment - Applied the patches : At revision: 1051536

          People

          • Assignee:
            Samisa Abeysinghe
            Reporter:
            Martin Clough
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development