You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by jelly dude <eo...@us.ibm.com> on 2008/10/28 20:13:33 UTC

Problems with CXF 2.1.x

I have been trying to get you REST ful webservice working from an recent
article on dW

https://www.ibm.com/developerworks/webservices/library/ws-pojo-springcxf2/

The article works flawlessly if I use CXF 2.1

but I get the below error if I try to use CXF 2.1.2

the error happens when I try to run the Client (to POST an order) from your
article and I can't seem to figure this error out:

I have traced this error all the way down to
URIParameterInInterceptor.mergeParams(...) which then hands off to
StaxUtils.read(reader) and finally readDocElements(...), where this error is
originating. 

It seem to be barking on the message part of mergeParams and never getting
to read the POST parameters pasted.

Can anyone shed any light on it for me?


INFO: Invoking POST on /orders
Oct 6, 2008 12:06:57 PM
org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor
handleMessage
INFO: URIParameterInterceptor handle message on path [/orders] with
content-type [application/x-www-form-urlencoded]
Oct 6, 2008 12:06:57 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
	at
org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.mergeParams(URIParameterInInterceptor.java:120)
	at
org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.handleMessage(URIParameterInInterceptor.java:103)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
	at
org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)
	at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:283)
	at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:128)
	at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:174)
	at
org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:152)
	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(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:803)
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
	at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
	at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
	at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:748)
	at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:607)
	at
org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.mergeParams(URIParameterInInterceptor.java:118)
	... 22 more

-- 
View this message in context: http://www.nabble.com/Problems-with-CXF-2.1.x-tp20213983p20213983.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problems with CXF 2.1.x

Posted by slrosh <sn...@yahoo.com>.
I am also having same problem... were u able to find the solution??
-- 
View this message in context: http://www.nabble.com/Problems-with-CXF-2.1.x-tp20213983p23290915.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Problems with CXF 2.1.x

Posted by Daniel Kulp <dk...@apache.org>.
On Thu February 12 2009 8:15:03 pm fzhang wrote:
> I got the exact same problem here. I am using 2.1.4.
> Did you have any luck since?  I am trying to find a way to debug cxf web
> service, if that is all possible...

Any chance you can create a small test case project that can be attached to a 
JIRA?   That's the best way to help us debug it.

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Re: Problems with CXF 2.1.x

Posted by fzhang <fz...@gmail.com>.
I got the exact same problem here. I am using 2.1.4. 
Did you have any luck since?  I am trying to find a way to debug cxf web
service, if that is all possible... 
-- 
View this message in context: http://www.nabble.com/Problems-with-CXF-2.1.x-tp20213983p21988389.html
Sent from the cxf-user mailing list archive at Nabble.com.