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

Exception in Rampart Processing causes NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Component/s: rampart-core
    • Labels:
      None

      Description

      If an unexpected Exception happens in Rampart processing (for example a noclassdeffound). A NPE occurs in processing of the FaultMessage.

      That results in an HTML Error Page send to the caller.

      Cause
      Parameter clientSideParam = msgCtx.getAxisService().getParameter(PARAM_CLIENT_SIDE);

      msgCtx.getAxisService() seems to be null in the case of an earlier Exception

      original exception:

      2008-05-08 10:28:22,358 [http-8080-Processor25] ERROR org.apache.axis2.transport.http.AxisServlet - org/saxpath/SAXPathException
      java.lang.NoClassDefFoundError: org/saxpath/SAXPathException
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at org.apache.rampart.RampartEngine.process(RampartEngine.java:78)
      at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:91)
      at org.apache.axis2.engine.Phase.invoke(Phase.java:317)

      Exception while processing faultmessage

      2008-05-08 10:28:22,365 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet] - Servlet.service() for servlet AxisServlet threw
      exception
      java.lang.NullPointerException
      at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:172)
      at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61)
      at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
      at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
      at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)

        Attachments

          Activity

            People

            • Assignee:
              nandana.cse Nandana Mihindukulasooriya
              Reporter:
              lischke Stefan Lischke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: