JAX-WS, webservices (Spring) issue

Posted by vinay on Stack Overflow See other posts from Stack Overflow or by vinay
Published on 2010-03-31T11:09:28Z Indexed on 2010/03/31 11:13 UTC
Read the original article Hit count: 668

Filed under:
|
|
|

Hi All,

I have written web services and configured with spring framework but I am getting exception when invoking services. Exceptions stack trace are given below -

com.sun.xml.ws.server.sei.EndpointMethodHandler invoke
SEVERE: object is not an instance of declaring class
java.lang.IllegalArgumentException: object is not an instance of declaring class

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jvnet.jax_ws_commons.spring.SpringService$1$1.invoke(SpringServic
e.java:185)
        at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:152)
        at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethod
Handler.java:264)
        at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTub
e.java:93)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
        at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:27
5)
        at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdap
ter.java:454)
        at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:250
)
        at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAd
apter.java:140)
        at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServl
etDelegate.java:129)
        at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServ
letDelegate.java:160)
        at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpring
Servlet.java:52)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:292)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3594)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2202)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2108)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1432)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Mar 31, 2010 3:47:20 PM com.sun.xml.ws.server.sei.EndpointMethodHandler invoke
SEVERE: object is not an instance of declaring class
java.lang.IllegalArgumentException: object is not an instance of declaring class

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jvnet.jax_ws_commons.spring.SpringService$1$1.invoke(SpringServic
e.java:185)
        at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:152)
        at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethod
Handler.java:264)
        at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTub
e.java:93)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:604)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:563)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:548)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:445)
        at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:27
5)
        at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdap
ter.java:454)
        at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:250
)
        at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAd
apter.java:140)
        at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServl
etDelegate.java:129)
        at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServ
letDelegate.java:160)
        at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.doPost(WSSpring
Servlet.java:52)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:292)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3594)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2202)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2108)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1432)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

i am testing our services using SOAP UI and getting above mentioed exception. I think some how the object creation from the xml is not acceptable to webservices

I am confused what is happening

© Stack Overflow or respective owner

Related posts about java

Related posts about spring