axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Daniels (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4377) Exception thrown in MessageContext.findBindingMessage
Date Mon, 03 Aug 2009 03:09:14 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Glen Daniels resolved AXIS2-4377.
---------------------------------

    Resolution: Fixed

Just fixed this on the branch.  Still needs a test case, but leaving 4114 open for that.

> Exception thrown in MessageContext.findBindingMessage
> -----------------------------------------------------
>
>                 Key: AXIS2-4377
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4377
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5
>         Environment: Java 1.5.0_16-b02 on XP SP3, Axis2 1.5 GA, Tomcat 6.0.18
>            Reporter: Jonas Buys
>             Fix For: 1.5.1
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message