You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gargankur007 <ga...@gmail.com> on 2015/05/16 23:04:59 UTC

Web Srevice exposed over https not working

Hi 

Previously I had deployed a JAX-WS using CXF over http.
Eversince I have changed it to configure it over https it has started
working.

I am getting below exception on sending a request to it

org.apache.cxf.interceptor.Fault: Marshalling Error: Closed
	at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:265)[165:org.apache.cxf.cxf-rt-databinding-jaxb:2.7.0.redhat-610379]
	at
org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:221)[165:org.apache.cxf.cxf-rt-databinding-jaxb:2.7.0.redhat-610379]
	at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:114)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:242)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:195)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.Server.handleAsync(Server.java:410)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:519)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
Caused by: javax.xml.bind.MarshalException
 - with linked exception:
[java.io.IOException: Closed]
	at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:320)[128:org.apache.servicemix.bundles.jaxb-impl:2.2.1.1_2]
	at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:244)[128:org.apache.servicemix.bundles.jaxb-impl:2.2.1.1_2]
	at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:74)[:2.3.0.redhat-610379]
	at
org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder.java:612)[165:org.apache.cxf.cxf-rt-databinding-jaxb:2.7.0.redhat-610379]
	at
org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.java:240)[165:org.apache.cxf.cxf-rt-databinding-jaxb:2.7.0.redhat-610379]
	... 32 more
Caused by: java.io.IOException: Closed
	at
org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:140)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination$JettyOutputStream.write(JettyHTTPDestination.java:423)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:51)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput.flushBuffer(UTF8XmlOutput.java:413)[128:org.apache.servicemix.bundles.jaxb-impl:2.2.1.1_2]
	at
com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput.endDocument(UTF8XmlOutput.java:137)[128:org.apache.servicemix.bundles.jaxb-impl:2.2.1.1_2]
	at
com.sun.xml.bind.v2.runtime.XMLSerializer.endDocument(XMLSerializer.java:852)[128:org.apache.servicemix.bundles.jaxb-impl:2.2.1.1_2]
	at
com.sun.xml.bind.v2.runtime.MarshallerImpl.postwrite(MarshallerImpl.java:369)[128:org.apache.servicemix.bundles.jaxb-impl:2.2.1.1_2]
	at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:316)[128:org.apache.servicemix.bundles.jaxb-impl:2.2.1.1_2]
	... 36 more
02:06:58,484 | WARN  | tp2029422134-687 | PhaseInterceptorChain            |
164 - org.apache.cxf.cxf-api - 2.7.0.redhat-610379 | Interceptor for
{http://tempuri.org/}PaymentResultHandlingWebService_PWS_RMHP_HOP3_PAYMENT#{http://tempuri.org/}HandlePaymentProcessingResult
has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error writing to XMLStreamWriter.
	at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:308)[167:org.apache.cxf.cxf-rt-bindings-soap:2.7.0.redhat-610379]
	at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:290)[167:org.apache.cxf.cxf-rt-bindings-soap:2.7.0.redhat-610379]
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:336)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:242)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:195)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.Server.handleAsync(Server.java:410)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:519)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
Caused by: com.ctc.wstx.exc.WstxIOException: Closed
	at
com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1406)[156:woodstox-core-asl:4.2.0]
	at
com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:536)[156:woodstox-core-asl:4.2.0]
	at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor.handleMessage(SoapOutInterceptor.java:302)[167:org.apache.cxf.cxf-rt-bindings-soap:2.7.0.redhat-610379]
	... 32 more
Caused by: java.io.IOException: Closed
	at
org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:140)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)[92:org.eclipse.jetty.aggregate.jetty-all-server:8.1.14.v20131031]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination$JettyOutputStream.write(JettyHTTPDestination.java:423)[183:org.apache.cxf.cxf-rt-transports-http-jetty:2.7.0.redhat-610379]
	at
org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:51)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
	at
com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:100)[156:woodstox-core-asl:4.2.0]
	at
com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:225)[156:woodstox-core-asl:4.2.0]
	at
com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:198)[156:woodstox-core-asl:4.2.0]
	at
com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1404)[156:woodstox-core-asl:4.2.0]
	... 34 more

Can anyone help?



--
View this message in context: http://camel.465427.n5.nabble.com/Web-Srevice-exposed-over-https-not-working-tp5767156.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Web Srevice exposed over https not working

Posted by Aki Yoshida <el...@gmail.com>.
If this happens all the time, something is wrong with the connection.
But from the information that you provided, it is difficult to
determine the cause.
cxf-2.7.0 that you are using is a bit too old these days, as the
current 2.7.x version is 2.7.16.
Besides, you are using the Redhat version of the cxf  librry, you
might ask at their forum for support.


2015-05-16 23:16 GMT+02:00 gargankur007 <ga...@gmail.com>:
> I googled and have a sense that may be connection is getting closed when
> SoapResposne is being written
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Web-Srevice-exposed-over-https-not-working-tp5767156p5767157.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Web Srevice exposed over https not working

Posted by Willem Jiang <wi...@gmail.com>.
You may need to check your firewall setting and enable the SSL debug could help you to trace the reason of lost the connection.


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On May 26, 2015 at 1:55:09 PM, gargankur007 (gargankur007@gmail.com) wrote:
> Hi William
>  
> What more information will you need?
> What are the reasons that client may close connection?
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Web-Srevice-exposed-over-https-not-working-tp5767156p5767441.html  
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  


Re: Web Srevice exposed over https not working

Posted by gargankur007 <ga...@gmail.com>.
Hi William

What more information will you need?
What are the reasons that client may close connection?



--
View this message in context: http://camel.465427.n5.nabble.com/Web-Srevice-exposed-over-https-not-working-tp5767156p5767441.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Web Srevice exposed over https not working

Posted by Willem Jiang <wi...@gmail.com>.
Yeah, the stack trace just tells us the connection is closed.
Do you use cxf client to connect the WebService?
Can you check if there is any error on the client side?
We need more information about the camel route and the client.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On May 17, 2015 at 2:04:34 PM, gargankur007 (gargankur007@gmail.com) wrote:
> I googled and have a sense that may be connection is getting closed when
> SoapResposne is being written
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Web-Srevice-exposed-over-https-not-working-tp5767156p5767157.html  
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  


Re: Web Srevice exposed over https not working

Posted by gargankur007 <ga...@gmail.com>.
I googled and have a sense that may be connection is getting closed when
SoapResposne is being written



--
View this message in context: http://camel.465427.n5.nabble.com/Web-Srevice-exposed-over-https-not-working-tp5767156p5767157.html
Sent from the Camel - Users mailing list archive at Nabble.com.