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 Rubén Naranjo Izquierdo <rn...@alumnos.upm.es> on 2006/01/20 13:05:58 UTC

[Axis2-0.94] AxisFault: Raw Xml provider

  Hi all,

  I generated Java code with wsdl2Java, then deployed the service (with an empty skeleton), and coded a simple client to test the service.

  When running the client I get the following stack trace (attached at the end). I don't understand what Axis tries to say with that exception. Can somebody help me?

  In tomcat console I just get the following message:

- Starting to process SOAP 1.1 message

  Thank you in advance,

      Rubén.


- Deploying module : addressing
- Starting to process SOAP 1.1 message
org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Raw Xml provider supports only the methods bearing the signature public OMElement &lt;method-name&gt;(OMElement) where the method name can be anything
	at org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogic(RawXMLINOnlyMessageReceiver.java:118)
	at org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:331)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:274)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:150)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:534)

Re: [Axis2-0.94] AxisFault: Raw Xml provider

Posted by Rubén Naranjo Izquierdo <rn...@alumnos.upm.es>.
   I'm still making tests and I can't come to a solution. This same wsdl 
worked perfectly in Axis2-0.93. I attach a simplified version of the WSDL and 
XSD files with which I get the exception explained below. 

   Could somebody please, try the service that my WSDL generates? Thank you in 
advance,

     Rubén.

On Monday 23 January 2006 18:19, Rubén Naranjo Izquierdo wrote:
>    Ok, I tried to call the service directly (not using the stub) and I
> don't get exceptions. The code I use to invoke the service is the
> following:
>
>         try {
>             OMElement payload = null;
>             ServiceClient serviceClient = new ServiceClient();
>
>             Options options = new Options();
>             serviceClient.setOptions(options);
>             options.setTo(new EndpointReference(EPR));
>             options.setAction("myAction");
>
>             serviceClient.fireAndForget(payload);
>
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         }
>
>    May this be a bug in Axis2-0.94 wsdl2java stub generation?
>
> On Monday 23 January 2006 16:54, Rubén Naranjo Izquierdo wrote:
> >    May this have something to deal with the fact that my PortTypes have
> > no output message? As the exception says that XML Provider just support
> > "public OMElement <method-name>(OMElement)", and my methods are like
> > "public void <method-name>(OMElement)"...
> >
> >    Isn't it weird that in exception description appears "&lt;" and "&gt;"
> > instead of "<" and ">".
> >
> >    Any suggestion will be highly apreciated since it's been days without
> > any progress.
> >
> >    Thank you in advance,
> >
> >
> >       Ruben
> >
> > On Friday 20 January 2006 13:05, Rubén Naranjo Izquierdo wrote:
> > >   Hi all,
> > >
> > >   I generated Java code with wsdl2Java, then deployed the service (with
> > > an empty skeleton), and coded a simple client to test the service.
> > >
> > >   When running the client I get the following stack trace (attached at
> > > the end). I don't understand what Axis tries to say with that
> > > exception. Can somebody help me?
> > >
> > >   In tomcat console I just get the following message:
> > >
> > > - Starting to process SOAP 1.1 message
> > >
> > >   Thank you in advance,
> > >
> > >       Rubén.
> > >
> > >
> > > - Deploying module : addressing
> > > - Starting to process SOAP 1.1 message
> > > org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Raw Xml
> > > provider supports only the methods bearing the signature public
> > > OMElement &lt;method-name&gt;(OMElement) where the method name can be
> > > anything at
> > > org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLo
> > >gi c( RawXMLINOnlyMessageReceiver.java:118) at
> > > org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractIn
> > >Me ss ageReceiver.java:34) at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:331) at
> > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReque
> > >st (H TTPTransportUtils.java:274) at
> > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:150
> > >) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
> > >at io nFilterChain.java:252) at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
> > >te rC hain.java:173) at
> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
> > >ve .j ava:213) at
> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
> > >ve .j ava:178) at
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
> > >a: 12 6) at
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
> > >a: 10 5) at
> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
> > >.j av a:107) at
> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> > >14 8) at
> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
> > >68 ) at
> > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pro
> > >ce ss Connection(Http11BaseProtocol.java:663) at
> > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoin
> > >t. ja va:527) at
> > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollo
> > >we rW orkerThread.java:80) at
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
> > >l. ja va:684) at java.lang.Thread.run(Thread.java:534)

Re: [Axis2-0.94] AxisFault: Raw Xml provider

Posted by Rubén Naranjo Izquierdo <rn...@alumnos.upm.es>.
   Ok, I tried to call the service directly (not using the stub) and I don't 
get exceptions. The code I use to invoke the service is the following:

        try {
            OMElement payload = null;
            ServiceClient serviceClient = new ServiceClient();

            Options options = new Options();
            serviceClient.setOptions(options);
            options.setTo(new EndpointReference(EPR));
            options.setAction("myAction");

            serviceClient.fireAndForget(payload);

        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        }

   May this be a bug in Axis2-0.94 wsdl2java stub generation?

On Monday 23 January 2006 16:54, Rubén Naranjo Izquierdo wrote:
>    May this have something to deal with the fact that my PortTypes have no
> output message? As the exception says that XML Provider just support
> "public OMElement <method-name>(OMElement)", and my methods are like
> "public void <method-name>(OMElement)"...
>
>    Isn't it weird that in exception description appears "&lt;" and "&gt;"
> instead of "<" and ">".
>
>    Any suggestion will be highly apreciated since it's been days without
> any progress.
>
>    Thank you in advance,
>
>
>       Ruben
>
> On Friday 20 January 2006 13:05, Rubén Naranjo Izquierdo wrote:
> >   Hi all,
> >
> >   I generated Java code with wsdl2Java, then deployed the service (with
> > an empty skeleton), and coded a simple client to test the service.
> >
> >   When running the client I get the following stack trace (attached at
> > the end). I don't understand what Axis tries to say with that exception.
> > Can somebody help me?
> >
> >   In tomcat console I just get the following message:
> >
> > - Starting to process SOAP 1.1 message
> >
> >   Thank you in advance,
> >
> >       Rubén.
> >
> >
> > - Deploying module : addressing
> > - Starting to process SOAP 1.1 message
> > org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Raw Xml provider
> > supports only the methods bearing the signature public OMElement
> > &lt;method-name&gt;(OMElement) where the method name can be anything at
> > org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogi
> >c( RawXMLINOnlyMessageReceiver.java:118) at
> > org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMe
> >ss ageReceiver.java:34) at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:331) at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
> >(H TTPTransportUtils.java:274) at
> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:150)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > 	at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
> >io nFilterChain.java:252) at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
> >rC hain.java:173) at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
> >.j ava:213) at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
> >.j ava:178) at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> >12 6) at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> >10 5) at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
> >av a:107) at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:14
> >8) at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868
> >) at
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proce
> >ss Connection(Http11BaseProtocol.java:663) at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.
> >ja va:527) at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowe
> >rW orkerThread.java:80) at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.
> >ja va:684) at java.lang.Thread.run(Thread.java:534)

Re: [Axis2-0.94] AxisFault: Raw Xml provider

Posted by Rubén Naranjo Izquierdo <rn...@alumnos.upm.es>.
   May this have something to deal with the fact that my PortTypes have no 
output message? As the exception says that XML Provider just support "public 
OMElement <method-name>(OMElement)", and my methods are like "public void 
<method-name>(OMElement)"... 

   Isn't it weird that in exception description appears "&lt;" and "&gt;" 
instead of "<" and ">". 

   Any suggestion will be highly apreciated since it's been days without any 
progress.

   Thank you in advance,


      Ruben


On Friday 20 January 2006 13:05, Rubén Naranjo Izquierdo wrote:
>   Hi all,
>
>   I generated Java code with wsdl2Java, then deployed the service (with an
> empty skeleton), and coded a simple client to test the service.
>
>   When running the client I get the following stack trace (attached at the
> end). I don't understand what Axis tries to say with that exception. Can
> somebody help me?
>
>   In tomcat console I just get the following message:
>
> - Starting to process SOAP 1.1 message
>
>   Thank you in advance,
>
>       Rubén.
>
>
> - Deploying module : addressing
> - Starting to process SOAP 1.1 message
> org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Raw Xml provider
> supports only the methods bearing the signature public OMElement
> &lt;method-name&gt;(OMElement) where the method name can be anything at
> org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogic(
>RawXMLINOnlyMessageReceiver.java:118) at
> org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMess
>ageReceiver.java:34) at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:331) at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H
>TTPTransportUtils.java:274) at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:150) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:252) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:173) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:178) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
>6) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
>5) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a:107) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
>Connection(Http11BaseProtocol.java:663) at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
>va:527) at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW
>orkerThread.java:80) at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>va:684) at java.lang.Thread.run(Thread.java:534)