aspose file tools*
The moose likes Web Services and the fly likes Apache CXF webservice   error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apache CXF webservice   error " Watch "Apache CXF webservice   error " New topic
Author

Apache CXF webservice error

PRavi kumar
Ranch Hand

Joined: May 13, 2007
Posts: 69
HI I am getting below error while testing my Apache CXF service using SOAP-UI

The service is take int array as input.

Kindly help me to resove this issue.


INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unmarshalling Error : Current state not START_
ELEMENT or END_ELEMENT
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshallArray(JAXBEncoderDec
oder.java:476)
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.
java:280)
at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
at org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiteral
InInterceptor.java:233)
at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocL
iteralInInterceptor.java:119)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:207)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti
ationObserver.java:73)
at org.apache.cxf.transport.servlet.ServletDestination.doMessage(Servlet
Destination.java:79)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
ServletController.java:235)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletCont
roller.java:140)
at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:27
8)
at org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:25
6)
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(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalStateException: Current state not START_ELEMENT or E
ND_ELEMENT
at com.ctc.wstx.sr.BasicStreamReader.getName(BasicStreamReader.java:721)

at org.apache.cxf.staxutils.DepthXMLStreamReader.getName(DepthXMLStreamR
eader.java:109)
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshallArray(JAXBEncoderDec
oder.java:459)
... 27 more
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache CXF webservice error
 
Similar Threads
Service with handlers on JBoss. BIG Problem
Exception XMLSerializer
JDBC connections
Servlet Chaining
Axis2, client handler not getting called