cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert <>
Subject Potential bug with JAX RS XMLSource
Date Fri, 06 Aug 2010 18:04:06 GMT


I'm using CXF 2.2.9

My JAX RS service method accepts XMLSource as the input type and i used
xpath expressions on it.

The first parse works fine. The second doesn't. I reversed the order and the
result is the same. I looked up your source, and it fails at this location

 return xpath.evaluate(expression, getSource(), type); [XMLSource, #173]

with exception

</pre></p><p>root cause <pre>java.lang.IllegalArgumentException: Illegal
XPath expression '/usercredentials/username'

and the root cause as 

</pre></p><p>root cause <pre>org.xml.sax.SAXParseException: Premature
end of

I looked up the internet, and from one of the posts, it could be because the
InputStream is already closed after the first parse.

Please take a look.

Thank you.
View this message in context:
Sent from the cxf-issues mailing list archive at

View raw message