I think I found a work around  or maybe I should did at the first place.

After  the new SOAPMessage  is created I have a method which extensively
parses that message using javax.xml.soap  package ( e.g. lots of
getAllAttributes(), getChildElements()).
So if I don't save the new SOAPMessage on the context (e.g.
context.setMessage(new)) before parsing  I'll get a "NullPointer" exception
, but if I do everything works fine.

Best regards,
Timour



                                                                                       
                                                
                      Davanum Srinivas                                                 
                                                
                      <[EMAIL PROTECTED]>         To:       [EMAIL PROTECTED]          
                                             
                                               cc:                                     
                                                
                      07/07/2003 08:48         Subject:  Re: NullPointer in  1.1 Final 
                                                
                      PM                                                               
                                                
                      Please respond to                                                
                                                
                      axis-user                                                        
                                                
                                                                                       
                                                
                                                                                       
                                                




please open a bug report with a test case -
http://nagoya.apache.org/bugzilla.

-- dims

--- [EMAIL PROTECTED] wrote:
> Hello,
>
>
> I'm getting a NullPointer exception in Axis 1.1 Final. This is what
causes
> the problem :
>
> 1) Inside of  the rpc.Handler.handleRequest()  method I'm replacing
> incoming SOAPMessage  with new one (I decrypt it)
>      by converting  SOAPMessage -> DOM -> decrypting a tree ->
SOAPMessage.
>      I use MessageFactory to create a new soap message, and I also copy
> mime headers from original one :
>
>      message = MessageFactory.newInstance
> ().createMessage(originalMimeHeaders, domInputStream)
>      ((SOAPMessageContext)context).setMessage(message);
>
> 2) After Handler.handleRequest() , which returns true,  is done  Axis is
> throwing a NullPointerException:
>
>  org.apache.axis.message.RPCElement.deserialize(RPCElement.java:162)
>  org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
>
>
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:184)

>
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
>
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)

>  org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
>  org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
>  org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
>  org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
>  org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:854)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)

>  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

>
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

>
>
>   I'd really appreciate if somebody could help me to solve this problem.
> I've spent a whole day to figure out why
>   RPCElement.context.getMessageContext() is null.
>
>
> Best regards,
> Timour
>
>
>
>
>
>


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com





Reply via email to