axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanja Gupta" <Sanjay.Gu...@primal.com>
Subject RE: InOnlyAxisOperation Error
Date Sat, 14 Feb 2009 20:16:20 GMT
Hi,

Anybody have a solution to this problem. I really would like to avoid coding
changes since I am upgrading my app from axis 1.2.x to axis2. Just to prove
my issue when I changed one call to return a string it started working fine.
I would really appreciate any help.

Thanks

Sanjay

 

 

From: Maiko Wessel [mailto:mwessel@pironet-ndh.com] 
Sent: Tuesday, February 10, 2009 6:59 AM
To: axis-user@ws.apache.org; Sanjay.Gupta@primal.com
Subject: AW: InOnlyAxisOperation Error

 

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.Gupta@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:keithgchapman@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.Gupta@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:keithgchapman@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.Gupta@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(InOnlyAxisOperat
ion.java:109)
>         at
>
org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageC
ontextBuilder.java:190)
>         at
>
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(
AbstractInOutMessageReceiver.java
> :37)
>         at
>
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe
ceiver.java:100)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>         at
>
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.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(Application
FilterChain.java:290)
>         at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
>         at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
>         at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va: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:286)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>
>
>
> -----Original Message-----

> From: keith chapman
[mailto:keithgchapman@gmail.com<keithgchapman@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.Gupta@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:keithgchapman@gmail.com<keithgchapman@gmail.com>
> <keithgchapman@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.Gupta@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(InOnlyAxisOperat
ion.java:109)
> > >
> > >         at
> > >
> >
>
org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageC
ontextBuilder.java:190)
> > >
> > >         at
> > >
> >
>
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(
AbstractInOutMessageReceiver.jav
> > >
> > > :37)
> > >
> > >         at
> > >
> >
>
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe
ceiver.java:100)
> > >
> > >         at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> > >
> > >         at
> > >
> >
>
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.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(Application
FilterChain.java:290)
> > >
> > >         at
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
> > >
> > >         at
> > >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
> > >
> > >         at
> > >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va: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:286)
> > >
> > >         at
> > >
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> > >
> > >         at
> > >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.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


Mime
View raw message