[ http://issues.apache.org/jira/browse/AXIS2-1005?page=all ]
Davanum Srinivas resolved AXIS2-1005.
-------------------------------------
Resolution: Cannot Reproduce
Please try latest Nightly build, if the problem still exists, please upload you
code that we can use to repro the problem.
-- dims
> deployment with wsdl2java plug-in for eclipse produces error
> java.lang.UnsupportedOperationException on REST invocation
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-1005
> URL: http://issues.apache.org/jira/browse/AXIS2-1005
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: core
> Affects Versions: 1.0
> Environment: Windows XP Pro, Tomcat 5.0.28
> Reporter: Kris
>
> I used the wsdl2java plug-in for eclipse to deploy the sample wsdl
> Axis2SampleDocLitService.wsdl and deployed it on version 1.0 as well as the
> nightly build SNAPSHOT Aug 10, 2006. I get the following error when I invoke
> the REST service
> http://localhost:8080/axis2/rest/Axis2SampleDocLitService/echoString
> 2006-08-10 14:36:37 StandardWrapperValve[AxisRESTServlet]: Servlet.service()
> for servlet AxisRESTServlet threw exception
> org.apache.axis2.AxisFault: java.lang.UnsupportedOperationException: This
> element was not created in a manner to be switched; nested exception is:
> java.lang.RuntimeException: java.lang.UnsupportedOperationException:
> This element was not created in a manner to be switched; nested exception is:
> org.apache.axis2.AxisFault: java.lang.UnsupportedOperationException:
> This element was not created in a manner to be switched; nested exception is:
> java.lang.RuntimeException: java.lang.UnsupportedOperationException:
> This element was not created in a manner to be switched
> at
> org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:142)
> at
> org.apache.axis2.transport.http.AxisRESTServlet.doGet(AxisRESTServlet.java:36)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault:
> java.lang.UnsupportedOperationException: This element was not created in a
> manner to be switched; nested exception is:
> java.lang.RuntimeException: java.lang.UnsupportedOperationException:
> This element was not created in a manner to be switched
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> at
> com.fxpal.ws.api.sgwsapitest.SGWSAPITestMessageReceiverInOut.invokeBusinessLogic(SGWSAPITestMessageReceiverInOut.java:62)
> at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:495)
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:149)
> at
> org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:139)
> ... 27 more
> Caused by: java.lang.RuntimeException:
> java.lang.UnsupportedOperationException: This element was not created in a
> manner to be switched
> at
> com.fxpal.ws.api.sgwsapitest.SGWSAPITestMessageReceiverInOut.fromOM(SGWSAPITestMessageReceiverInOut.java:152)
> at
> com.fxpal.ws.api.sgwsapitest.SGWSAPITestMessageReceiverInOut.invokeBusinessLogic(SGWSAPITestMessageReceiverInOut.java:53)
> ... 31 more
> Caused by: java.lang.UnsupportedOperationException: This element was not
> created in a manner to be switched
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader(OMElementImpl.java:634)
> at
> org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReaderWithoutCaching(OMElementImpl.java:624)
> at
> com.fxpal.ws.api.sgwsapitest.SGWSAPITestMessageReceiverInOut.fromOM(SGWSAPITestMessageReceiverInOut.java:149)
> ... 32 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]