You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ecker Severin <Se...@arcs.ac.at> on 2007/07/20 10:17:35 UTC

WS invocation problem

Hi,

I have the following setup:
Tomcat 5.5, axis2 (versions 1.1.1, 1.2 and snapshot), java 1.6.0_02
(which was used for the WS I've written and is used to run tomcat)

The webservice exposes a method with a parameter (MethodRequest). Now
I'm facing the following problem:

The request is as simple as this:

<soap:Envelope
	xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
	xmlns:ns="http://my.org/WS/types/1.0">
   <soap:Header/>
   <soap:Body>
      <ns:MethodRequest/>
   </soap:Body>
</soap:Envelope>

Using the sendReceive method of the ServiceClient class (in the axis2
lib) the method invocation works just fine.

BUT using a soap client (such as SOAPui) I get different kinds of error
responses depending on the version of axis2 that I'm using

Errors:

Axis2 1.1.1:

<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Sender</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text xml:lang="en-US">null; nested exception is: 
	java.lang.NullPointerException</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Axis2 1.2:

<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Sender</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text xml:lang="en-US">unknown</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Axis2 snapshot:

<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Sender</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text
xml:lang="en-US">org.apache.axis2.AxisFault.makeFault(Ljava/lang/Excepti
on;)Lorg/apache/axis2/AxisFault;</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Also the TRACE output of axis2 does not give me ANY clue about what's
going on (I have the traces here, but before bloating the post with a
huge logfile I'll just wait and see if someone can shed some light on
what's going on)
What I can tell is that my service implementation never receives the
method invocation request but the axis/soap handling mechanisms throw
the exception beforehand. (oh and yes it's SOAP 1.2)

My thanks in advance!

Cheers,
severin


-------------
Severin Ecker
Business Unit Software Systems 
Smart Systems Division 
Austrian Research Centers GmbH - ARC 
2444 Seibersdorf 
T: + 43 (0) 50 550 - 3122
M: + 43 (0) 664 60780 3122
F: + 43 (0) 50 550 - 2813
mailto:severin.ecker@arcs.ac.at
www.smart-systems.at
HG Wien - FN 115980i - ATU14703506


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Support for JMX?

Posted by Davanum Srinivas <da...@gmail.com>.
For those who are interested, there is some code written a long time
back. But needs a rewrite from scratch.

http://svn.apache.org/repos/asf/webservices/axis2/archive/java/scratch/jmx-front/

-- dims

On 7/20/07, Davanum Srinivas <da...@gmail.com> wrote:
> Need warm bodies :) Would you be able to help implement this?
>
> thanks,
> dims
>
> On 7/20/07, Desmond Whewell (CV/ETL) <de...@ericsson.com> wrote:
> >
> > Tomcat 5.5 provides rich support for control of the server through JMX.
> > Are there any plans for Axis2 to provide similar mechanisms?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Support for JMX?

Posted by Davanum Srinivas <da...@gmail.com>.
Need warm bodies :) Would you be able to help implement this?

thanks,
dims

On 7/20/07, Desmond Whewell (CV/ETL) <de...@ericsson.com> wrote:
>
> Tomcat 5.5 provides rich support for control of the server through JMX.
> Are there any plans for Axis2 to provide similar mechanisms?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Support for JMX?

Posted by "Desmond Whewell (CV/ETL)" <de...@ericsson.com>.
 
Tomcat 5.5 provides rich support for control of the server through JMX.
Are there any plans for Axis2 to provide similar mechanisms?

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org