On Fri, Jan 23, 2009 at 4:37 PM, Toriacht <shatner.will...@gmail.com> wrote:
> > Hi, I have a simple webservice, written in java, that accepts a number of > parameters and processes them. If i implement this service (java method) > returning a string to the client it works fine, but when i change it to a > void method (preferred option) I keep getting an AxisServlet:172 error. The > only change I make is to change the rerurn type from String to void and > generate the web service again (Eclipse). I have pasted the error below. > > > > If i change back to a non void method it works fine... > > > > Any ideas appreciated. Also if this is the wrong forum please let me know > > > > Thanks, > > Tori > > > > error: > > 09:51:19,871 ERROR AxisServlet:172 - An access occurred that is not valid. > > java.lang.UnsupportedOperationException: An access occurred that is not > valid. > > at > > org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:109) > > at > > org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageContextBuilder.java:190) > > at > > org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:37) May be a problem with your services.xml. Can you send that file? The problem is your Inonly axisoperation contains an InOut message receiver which is wrong. thanks, Amila. > > > at > > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) > > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) > > at > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) > > at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > > 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:845) > > 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(Unknown Source) > -- > View this message in context: > http://www.nabble.com/AxisServlet%3A172-error.-tp21622535p21622535.html > Sent from the Axis - User mailing list archive at Nabble.com. > > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/