Thank you, removing the wstx-asl jar worked for me on the service. But the
client is throwing following exception after getting the response back from
the service.
Feb 29, 2008 4:29:18 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not create XMLStreamReader(encoding
UTF-8).
at
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:67)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1955)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1791)
at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
at $Proxy25.getEmployee(Unknown Source)
at com.xyz.auth.client.Client.main(Client.java:32)
Caused by: javax.xml.stream.XMLStreamException: java.io.IOException: stream
is closed
at
com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwXMLStreamException(StAXMessageProvider.java:63)
at
com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.setDocumentEntity(XMLStreamReaderImpl.java:313)
at
com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.<init>(XMLStreamReaderImpl.java:298)
at
com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:1005)
at
com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReaderInternal(XMLInputFactoryImpl.java:1115)
at
com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:1182)
at
org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:65)
... 14 more
Caused by: java.io.IOException: stream is closed
at
sun.net.www.http.ChunkedInputStream.ensureOpen(ChunkedInputStream.java:182)
at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:661)
at java.io.FilterInputStream.read(FilterInputStream.java:134)
at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2186)
at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2181)
at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2170)
at
com.ibm.xml.xlxp.api.util.encoding.UTF8EncodingSupport.checkUTF8BOM(UTF8EncodingSupport.java:118)
at
com.ibm.xml.xlxp.api.util.encoding.UTF8EncodingSupport.load(UTF8EncodingSupport.java:77)
at
com.ibm.xml.xlxp.api.util.encoding.ByteStreamDataSource.load(ByteStreamDataSource.java:72)
at
com.ibm.xml.xlxp.api.util.encoding.UTF8EncodingSupport.loadFromByteStream(UTF8EncodingSupport.java:61)
at
com.ibm.xml.xlxp.api.util.SimpleParsedEntityFactory.loadFromByteStream(SimpleParsedEntityFactory.java:325)
at
com.ibm.xml.xlxp.api.util.SimpleParsedEntityFactory.setByteStreamSource(SimpleParsedEntityFactory.java:146)
at
com.ibm.xml.xlxp.api.sax.impl.SAX2ParsedEntityFactory.readFromInputSource(SAX2ParsedEntityFactory.java:150)
at
com.ibm.xml.xlxp.api.sax.impl.SAX2ParsedEntityFactory.createParsedEntity(SAX2ParsedEntityFactory.java:75)
at
com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.setDocumentEntity(XMLStreamReaderImpl.java:311)
... 19 more
WSWS4100E: Method createFault() of class javax.xml.soap.SOAPFactory is not
supported in SAAJ 1.2.
dkulp wrote:
>
>
> Interesting. I did a bunch of searches for:
> javax.xml.stream.isInterning
> and am not finding much. It seems to be some proprietary property IBM
> through in for websphere.
>
> That looks like to me is that it's somehow getting some sort of custom
> implementation of JAXB that IBM has created (instead of our 2.0.5 from
> Sun) that expects to be working with their Stax parser instead of
> woodstox, which it is finding. I'm not really sure how all that
> happens...
>
> I guess I would suggest one of two things:
> 1) Somehow figure out how to get the classloaders set to use the Sun JAXB
> implementaion.
>
> or
>
> 2) Remove the wstx-asl jar we ship and rely on the Stax parser that IBM
> provides.
>
> Dan
>
> On Thursday 28 February 2008, Satishstp wrote:
>> I need some help with Websphere 6.1.x and CXF2.0.4. I wrote a simple
>> service and client using CXF and getting below exception when a Client
>> code invokes the service.
>>
>> Can anyone help me out?
>>
>> [2/28/08 17:22:26:334 EST] 00000023 PhaseIntercep I
>> org.apache.cxf.phase.PhaseInterceptorChain doIntercept Interceptor has
>> thrown exception, unwinding now
>> org.apache.cxf.interceptor.Fault:
>> Unmarshalling Error: Unrecognized property
>> 'javax.xml.stream.isInterning' at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.j
>>ava:595) at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.j
>>ava:498) at
>> org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40) at
>> org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiteralI
>>nInterceptor.java:228) at
>> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLi
>>teralInInterceptor.java:119) at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>>rChain.java:208) at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitia
>>tionObserver.java:77) at
>> org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletD
>>estination.java:79) at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(S
>>ervletController.java:264) at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletContr
>>oller.java:160) at
>> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXF
>>Servlet.java:170) at
>> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXF
>>Servlet.java:148) at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
>> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.
>>java:989) at
>> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWr
>>apper.java:501) at
>> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(Servlet
>>Wrapper.java:464) at
>> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
>> at
>> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:26
>>4) at
>> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:8
>>11) at
>> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java
>>:1439) at
>> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
>>:112) at
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminat
>>ion(HttpInboundLink.java:454) at
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformat
>>ion(HttpInboundLink.java:383) at
>> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInbound
>>Link.java:263) at
>> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDis
>>criminators(NewConnectionInitialReadCallback.java:214) at
>> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(
>>NewConnectionInitialReadCallback.java:113) at
>> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(
>>AioReadCompletionListener.java:165) at
>> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFutur
>>e.java:217) at
>> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannel
>>Future.java:161) at
>> com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at
>> com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) at
>> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.ja
>>va:743) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469) Caused
>> by: java.lang.IllegalArgumentException: Unrecognized property
>> 'javax.xml.stream.isInterning'
>> at
>> com.ctc.wstx.api.CommonConfig.getProperty(CommonConfig.java:81) at
>> com.ctc.wstx.sr.BasicStreamReader.getProperty(BasicStreamReader.java:5
>>78) at
>> com.ctc.wstx.sr.ValidatingStreamReader.getProperty(ValidatingStreamRea
>>der.java:177) at
>> org.apache.cxf.staxutils.DepthXMLStreamReader.getProperty(DepthXMLStre
>>amReader.java:151) at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.create(St
>>AXStreamConnector.java:67) at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(U
>>nmarshallerImpl.java:329) at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Un
>>marshallerImpl.java:311) at
>> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.j
>>ava:578) ... 34 more
>
>
>
> --
> J. Daniel Kulp
> Principal Engineer, IONA
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog
>
>
--
View this message in context:
http://www.nabble.com/CXF-2.0.4-and-Websphere-version-6.1.0.9-with-WS-feature-pack-tp15750251p15768484.html
Sent from the cxf-user mailing list archive at Nabble.com.