Hi,
i had the same problem with Axis2-1.4.1. Before I've updated to 1.4.1 i've used 1.3 and everything was working. My workaround was to add a return type to the method, to use the In-Out-MR any time. Maiko Von: Sanja Gupta [mailto:sanjay.gu...@primal.com] Gesendet: Montag, 9. Februar 2009 21:20 An: axis-user@ws.apache.org Betreff: RE: InOnlyAxisOperation Error Hi Keeth, I am running with the exploded classes directory and a services.xml file. I do have a .aar file but haven't tried it. Do you need to see anything specific like my java wrapper code. I am attaching my services.xml. Thanks Sanjay From: keith chapman [mailto:keithgchap...@gmail.com] Sent: Saturday, February 07, 2009 3:33 AM To: axis-user@ws.apache.org Subject: Re: InOnlyAxisOperation Error Could you post your service archive file. Thanks, Keith. On Sat, Feb 7, 2009 at 2:41 PM, Sanjay Gupta <sanjay.gu...@primal.com> wrote: Agree but I don't see anything wrong with my services.xml. I am clueless on what would cause this issue. I looked at the client code as well and it's using RobustOutOnlyAxisOperation for the operation. Sanjay <messageReceivers> <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> -----Original Message----- From: keith chapman [mailto:keithgchap...@gmail.com] Sent: Fri 2/6/2009 7:40 PM To: axis-user@ws.apache.org Subject: Re: InOnlyAxisOperation Error >From the stack trace it looks like an InOutMessageReceiver was used for an InOnly Operation. Thanks, Keith. On Fri, Feb 6, 2009 at 11:27 PM, Sanjay Gupta <sanjay.gu...@primal.com>wrote: > Keith, > Thanks for you reply and pointer. I tried your sugession but I am still > getting the error. Here is the stack trace. > Thanks > Sanjay > > [ERROR] An access occurred that is not valid. > java.lang.UnsupportedOperationException: An access occurred that is not > valid. > at > org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOp eration.java:109) > at > org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(Mess ageContextBuilder.java:190) > at > org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLo gic(AbstractInOutMessageReceiver.java > :37) > at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessa geReceiver.java:100) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques t(HTTPTransportUtils.java:275) > at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:175) > 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:2 86) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 4) > > > > -----Original Message----- > From: keith chapman [mailto:keithgchap...@gmail.com<keithgchap...@gmail.com> > ] > Sent: Fri 2/6/2009 12:17 AM > To: axis-user@ws.apache.org > Subject: Re: InOnlyAxisOperation Error > > In your messageReceivers can you try using the following instead, > > <messageReceivers> > <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" > class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> > <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > </messageReceivers> > > Thanks, > Keith. > > On Fri, Feb 6, 2009 at 11:50 AM, Sanjay Gupta <sanjay.gu...@primal.com > >wrote: > > > Hi Keith, > > Here is my services.xml files. > > Thanks > > Sanjay > > > > <serviceGroup> > > <service name="Provision" scope="application" targetNamespace=" > > http://provision.ws.ccb.primalsw.com/"> > > <description> > > Provision Service > > </description> > > <messageReceivers> > > <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" > > > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > > <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" > > > > class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> > > > > </messageReceivers> > > <schema schemaNamespace="http://provision.ws.ccb.primalsw.com/xsd"/> > > <parameter > > name="ServiceClass">com.primalsw.ccb.ws.ProvisionHandler</parameter> > > </service> > > </serviceGroup> > > > > > > > > > > -----Original Message----- > > From: keith chapman [mailto:keithgchap...@gmail.com<keithgchap...@gmail.com> > <keithgchap...@gmail.com> > > ] > > Sent: Thu 2/5/2009 10:01 PM > > To: axis-user@ws.apache.org > > Subject: Re: InOnlyAxisOperation Error > > > > Can you provide your service please. You haven't provided enough > > information > > to help you... > > > > Thanks, > > Keith. > > > > On Thu, Feb 5, 2009 at 10:55 PM, Sanjay Gupta <sanjay.gu...@primal.com > > >wrote: > > > > > Hi, > > > > > > I just have upgraded my axis 1.2 web services to 1.4.1 and getting > error > > > while calling a service which returns nothing(void). See the stack > trace > > > below. The doc mentions these four types of operations but I don't know > > > which one to pick and how to set it during client generation. > > > > > > DoInOnly, NoParameters, TwoWayOneParameterEcho, and > > > MultipleParametersAddItem > > > > > > > > > > > > I have both types of operations with return and without return. All my > > > operations takes some kind of argument simple as well as some that > takes > > > customer objects. Any help will be greatly appreciated. > > > > > > > > > > > > Sanjay > > > > > > > > > > > > [ERROR] An access occurred that is not valid. > > > > > > java.lang.UnsupportedOperationException: An access occurred that is not > > > valid. > > > > > > at > > > > > > org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOp eration.java:109) > > > > > > at > > > > > > org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(Mess ageContextBuilder.java:190) > > > > > > at > > > > > > org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLo gic(AbstractInOutMessageReceiver.jav > > > > > > :37) > > > > > > at > > > > > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessa geReceiver.java:100) > > > > > > at > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) > > > > > > at > > > > > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques t(HTTPTransportUtils.java:275) > > > > > > at > > > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133) > > > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > > > at > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:290) > > > > > > at > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) > > > > > > at > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:233) > > > > > > at > > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:175) > > > > > > 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:2 86) > > > > > > at > > > > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 4) > > > > > > 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:619) > > > > > > > > > > > > > > > > > > > > > > > -- > > Keith Chapman > > Senior Software Engineer > > WSO2 Inc. > > Oxygenating the Web Service Platform. > > http://wso2.org/ > > > > blog: http://www.keith-chapman.org > > > > > > > -- > Keith Chapman > Senior Software Engineer > WSO2 Inc. > Oxygenating the Web Service Platform. > http://wso2.org/ > > blog: http://www.keith-chapman.org > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org