Hi,

I get an "Already connected" error message from the cxf client when a message 
is send to the cxf rest service. The service seems to work fine. The requests 
are consumed fine as well as the responses returned to the client but the 
client throw the below error message. The cxf client is initilized in the 
following way:

SecurityServiceInvocation client = 
JAXRSClientFactory.create(securityServiceUrl, SecurityServiceInvocation.class);

The error message from the client:

java.lang.IllegalStateException: Already connected
        at java.net.HttpURLConnection.setFixedLengthStreamingMode(HttpURLConnect
ion.java:103)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.thresho
ldNotReached(HTTPConduit.java:1841)
        at org.apache.cxf.io.AbstractThresholdOutputStream.close(AbstractThresho
ldOutputStream.java:99)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(H
TTPConduit.java:1929)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:6
6)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:626)

        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndi
ngInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:226)
        at org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(Clien
tProxyImpl.java:412)
        at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.ja
va:166)
        at $Proxy18.addPermission(Unknown Source)
        at com.axiell.arena.services.security.service.connectors.SecurityService
Connector.addPermission(SecurityServiceConnector.java:58)
        at com.axiell.arena.services.security.functional.SecurityFunctionalTest.
testPermissions(SecurityFunctionalTest.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces



Thx in advance, Piotr

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx

Reply via email to