cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guopu Wu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6145) WS-RM demo server throws exception
Date Thu, 11 Dec 2014 12:31:13 GMT

    [ https://issues.apache.org/jira/browse/CXF-6145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242476#comment-14242476
] 

Guopu Wu commented on CXF-6145:
-------------------------------

Hi Akitoshi,

The "CloseSequence" message on wire is "LastMessage" -

{code}

Address: http://localhost:9000/SoapContext/GreeterPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml; charset=UTF-8
Headers: {Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive], Content-Length=[798],
content-type=[text/xml; charset=UTF-8], Host=[localhost:9000], Pragma=[no-cache], SOAPAction=["http://schemas.xmlsoap.org/ws/2005/02/rm/LastMessage"],
User-Agent=[Apache CXF 3.0.2]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2005/02/rm/LastMessage</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:d56f2001-80a8-4d30-a272-ff48eeca2a44</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9000/SoapContext/GreeterPort</To><wsrm:Sequence
soap:mustUnderstand="1" xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:2917954a-e7db-4410-9a59-a3362b03fdb5</wsrm:Identifier><wsrm:MessageNumber>2</wsrm:MessageNumber><wsrm:LastMessage/></wsrm:Sequence></soap:Header><soap:Body/></soap:Envelope>

{code}

You pointed out a valid point. I do see MessageInfo is putting 1.0 namespace for CloseSequence.
This might be another issue but I havent seen any runtime error yet. 

{code}

{org.apache.cxf.service.model.MessageInfo=[MessageInfo INPUT: {http://schemas.xmlsoap.org/ws/2005/02/rm}CloseSequence],
org.apache.cxf.message.Message.PROTOCOL_HEADERS={Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive],
Content-Length=[798], content-type=[text/xml; charset=UTF-8], Host=[localhost:9000], Pragma=[no-cache],
SOAPAction=["http://schemas.xmlsoap.org/ws/2005/02/rm/LastMessage"]

{code}


> WS-RM demo server throws exception
> ----------------------------------
>
>                 Key: CXF-6145
>                 URL: https://issues.apache.org/jira/browse/CXF-6145
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 3.0.2, 3.0.3
>         Environment: Windows JDK 6
>            Reporter: Guopu Wu
>             Fix For: 3.0.4
>
>
> Dec 8, 2014 10:04:56 AM org.apache.cxf.ws.rm.Proxy invoke
> SEVERE: Failed to send RM protocol message {http://schemas.xmlsoap.org/ws/2005/02/rm}SequenceAcknowledgement.
> org.apache.cxf.interceptor.Fault: Could not send Message.
>     at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
>     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
>     at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
>     at org.apache.cxf.ws.rm.Proxy.invoke(Proxy.java:313)
>     at org.apache.cxf.ws.rm.Proxy.invoke(Proxy.java:330)
>     at org.apache.cxf.ws.rm.Proxy.invoke(Proxy.java:334)
>     at org.apache.cxf.ws.rm.Proxy.acknowledge(Proxy.java:90)
>     at org.apache.cxf.ws.rm.DestinationSequence$DeferredAcknowledgment.run(DestinationSequence.java:469)
>     at java.util.TimerThread.mainLoop(Timer.java:512)
>     at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.net.ConnectException: ConnectException invoking http://localhost:9990/decoupled_endpoint:
Connection refused: connect
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1359)
>     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1343)
>     at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
>     at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:215)
>     at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
>     at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:638)
>     at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>     ... 10 more
> Caused by: java.net.ConnectException: Connection refused: connect
>     at java.net.PlainSocketImpl.socketConnect(Native Method)
>     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
>     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
>     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>     at java.net.Socket.connect(Socket.java:529)
>     at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
>     at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)
>     at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)
>     at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)
>     at sun.net.www.http.HttpClient.New(HttpClient.java:291)
>     at sun.net.www.http.HttpClient.New(HttpClient.java:310)
>     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)
>     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)
>     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>     at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1031)
>     at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:174)
>     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1302)
>     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1258)
>     at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:201)
>     at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
>     at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
>     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1315)
>     ... 15 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message