Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4377

Exception thrown in MessageContext.findBindingMessage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5.1
    • kernel
    • None
    • Java 1.5.0_16-b02 on XP SP3, Axis2 1.5 GA, Tomcat 6.0.18

    Description

      I have a module to enforce some custom policies when invoking a dummy service and it worked completely well on Axis2 1.4.1.
      Yet, when I am throwing an AxisFault SOAP fault, 1.5.1 throws this exception:

      SEVERE: Servlet.service() for servlet AxisServlet threw exception
      java.lang.NullPointerException
      at org.apache.axis2.context.MessageContext.findBindingMessage(MessageContext.java:1609)
      at org.apache.axis2.context.MessageContext.getEffectivePolicy(MessageContext.java:1581)
      at be.ac.ua.pats.adss.handlers.LoggingHandler.invoke(LoggingHandler.java:42)
      at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
      at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
      at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:481)
      at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:423)
      at org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:386)
      at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:176)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

      Apparantly, the axisMessage is null on line 1609 (String direction = axisMessage.getDirection(). Weird thing is that it works for operation with policy I attached in module.xml and always reproduces this error for any operation with policies on my service.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jonasbuys Jonas Buys
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: