Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » UnsupportedOperationException on WTP(throwing UnsupportedOperationException )
UnsupportedOperationException on WTP [message #494086] Thu, 29 October 2009 07:42 Go to next message
Girish  is currently offline Girish Friend
Messages: 2
Registered: October 2009
Junior Member
Hi,
I am new to WTP. I am trying to create a webservice for my java class using option "Generate default services.xml" in Eclipse WTP, Axis2 server. My java class is having four methods in which two has return type String, and other two are void, and all the four methods throws Exception.
I am following the tutorial http://www.eclipse.org/webtools/community/tutorials/BottomUp Axis2WebService/bu_tutorial.html for creating my project and the web service client.
Now when i am running my client class it throws exception as java.lang.UnsupportedOperationException: An access occurred that is not valid.
The exception trace is :

[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( InOnlyAxisOperation.java:117)
at org.apache.axis2.util.MessageContextBuilder.createOutMessage Context(MessageContextBuilder.java:183)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo keBusinessLogic(AbstractInOutMessageReceiver.java:37)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A bstractMessageReceiver.java:114)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:1 73)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHT TPPostRequest(HTTPTransportUtils.java:167)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl et.java:142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11Connection Handler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo lTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)


I have also noticed that this problem occurs only when my java class contains methods void and non-void type that throws exception.
Can anybody tell me how to resolve this?
The versions i am using are Axis2-1.5, JDK 1.6.0_16, tomcat 5.5

Regards,
Girish B.
Re: UnsupportedOperationException on WTP [message #496613 is a reply to message #494086] Tue, 10 November 2009 16:54 Go to previous messageGo to next message
Keith Chong is currently offline Keith ChongFriend
Messages: 64
Registered: July 2009
Member
Hi Girish,

What version of WTP are you using?
Re: UnsupportedOperationException on WTP [message #496701 is a reply to message #496613] Wed, 11 November 2009 03:54 Go to previous messageGo to next message
Girish  is currently offline Girish Friend
Messages: 2
Registered: October 2009
Junior Member
Hi Keith,

I am using

Version: 3.3.0
Build id: I20070625-1500

for the WTP.

Regards,

Girish
Re: UnsupportedOperationException on WTP [message #497140 is a reply to message #494086] Thu, 12 November 2009 15:45 Go to previous message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
Hey Girish,

This sounds a lot like this axis2 bug:
http://issues.apache.org/jira/browse/AXIS2-4408



Girish wrote:
> Hi,
> I am new to WTP. I am trying to create a webservice for my java class
> using option "Generate default services.xml" in Eclipse WTP, Axis2
> server. My java class is having four methods in which two has return
> type String, and other two are void, and all the four methods throws
> Exception. I am following the tutorial
> http://www.eclipse.org/webtools/community/tutorials/BottomUp Axis2WebService/bu_tutorial.html
> for creating my project and the web service client.
> Now when i am running my client class it throws exception as
> java.lang.UnsupportedOperationException: An access occurred that is not
> valid.
> The exception trace is :
>
> [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(
> InOnlyAxisOperation.java:117)
> at org.apache.axis2.util.MessageContextBuilder.createOutMessage
> Context(MessageContextBuilder.java:183)
> at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invo
> keBusinessLogic(AbstractInOutMessageReceiver.java:37)
> at org.apache.axis2.receivers.AbstractMessageReceiver.receive(A
> bstractMessageReceiver.java:114)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:1 73)
> at org.apache.axis2.transport.http.HTTPTransportUtils.processHT
> TPPostRequest(HTTPTransportUtils.java:167)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl
> et.java:142)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
> lter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
> licationFilterChain.java:188)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
> dWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(Standar
> dContextValve.java:172)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
> stValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
> rtValve.java:117)
> at org.apache.catalina.core.StandardEngineValve.invoke(Standard
> EngineValve.java:108)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
> apter.java:174)
> at org.apache.coyote.http11.Http11Processor.process(Http11Proce
> ssor.java:873)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11Connection
> Handler.processConnection(Http11BaseProtocol.java:665)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo
> lTcpEndpoint.java:528)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:81)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru
> n(ThreadPool.java:689)
> at java.lang.Thread.run(Unknown Source)
>
>
> I have also noticed that this problem occurs only when my java class
> contains methods void and non-void type that throws exception.
> Can anybody tell me how to resolve this?
> The versions i am using are Axis2-1.5, JDK 1.6.0_16, tomcat 5.5
>
> Regards,
> Girish B.
Previous Topic:Taglib Build Error Hell!
Next Topic:JSF and backingbean
Goto Forum:
  


Current Time: Thu Apr 25 12:00:40 GMT 2024

Powered by FUDForum. Page generated in 0.03314 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top