Thanks Daniel,I was about to mail saying that I found the link http://www.nabble.com/CXF-and-Java-6-Update-10-td19463818.html
<http://www.nabble.com/CXF-and-Java-6-Update-10-td19463818.html>which talks about this. I am going to try and upgrade to CXF 2.1.3. Actually we use Maven 2,so updating the cxf.version in the root parent pom, is actually going to trickle down to all EARs/WARs. I had a look at the changelog and nothing looks bad. I checked the migration guide at http://cxf.apache.org/23-migration-guide.html and I dont see anything that is going to affect mine so thanks !! 2009/8/27 Daniel Kulp <[email protected]> > On Thu August 27 2009 9:26:47 am Kannan Ekanath wrote: > > Hi,Apparently (blaming JBOSS again) I had 3.2.0 version of woodstox in > the > > bootstrap. I fixed that and put 3.2.4 in the bootstrap and now I am > > getting, > > > > org.apache.cxf.interceptor.Fault: Unconnected sockets not implemented > > at > > This is due to using java 6 update 10. You need to either downgrade to > below > update 10 or update to a newer version of CXF. I think 2.1.4 fixed this, > maybe 2.1.5. > > > Dan > > > > > > org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(Abs > >tractOutDatabindingInterceptor.jav a:95) > > at > > > org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutIntercep > >tor.java:68) at > > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai > >n.java:221) at > > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at > > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at > > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) > > at > > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178) > > at $Proxy138.retrieveRestrictedCountries(Unknown Source) > > ..... > > Caused by: java.net.SocketException: Unconnected sockets not implemented > > at javax.net.SocketFactory.createSocket(SocketFactory.java:97) > > at > > sun.net.www.protocol.https.HttpsClient.createSocket(HttpsClient.java:360) > > at sun.net.NetworkClient.doConnect(NetworkClient.java:145) > > at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) > > at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) > > at > > sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:271) > > at > sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:328) > > at > > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpCli > >ent(AbstractDelegateHttpsURLConnec tion.java:172) > > at > > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection. > >java:778) at > > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Abstr > >actDeleg 14:23:36,314, ERROR [STDERR] ateHttpsURLConnection.java:158) > > at > > > sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnecti > >on.java:881) at > > > sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLC > >onnectionImpl.java:230) at > > > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeaders > >TrustCaching(HTTPConduit.java:1807 ) > > at > > > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite( > >HTTPConduit.java:1765) at > > > org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputSt > >ream.java:42) at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96) > > at > > com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214) > > at > > com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311) > > > > Again this works fine with JDK 1.6.0_07 and not the versions above that. > > Anyone got any pointers, please? > > > > 2009/8/27 Kannan Ekanath <[email protected]> > > > > > Hi,PS: I have posted this already in Woodstox mailing list, but not > sure > > > if this was a CXF compatibility issue (since this occurs only beyond > > > 1.6.0_01) > > > > > > I am using cxf 2.1.1 and hence using wstx-asl version 3.2.4 and I still > > > see the exception trace below. I googled a bit and found the following > > > links, > > > > > > http://jira.codehaus.org/browse/WSTX-110 > > > <http://jira.codehaus.org/browse/WSTX-110> > > > http://jira.atlassian.com/browse/CWD-726 > > > > > > <http://jira.atlassian.com/browse/CWD-726>but apparently both claim > that > > > this was fixed in 3.2.1 or 3.2.3 release. I still get this exception in > > > my machine. > > > > > > As an added information, I get this error in JDK 1.6.0_10 (update 10) > but > > > do not get this error in JDK 1.6.0_07 (update 7). *In fact update 7 > seems > > > to be the only JDK version which works (which is why my production JVM > > > cannot upgrade beyond update 7)*. Was this probably broken again after > > > update 7? > > > > > > Can someone please shed more light on this? > > > > > > Exception: > > > 11:51:09,767, ERROR [STDERR] Aug 27, 2009 11:51:09 AM > > > org.apache.cxf.phase.PhaseInterceptorChain doIntercept > > > INFO: Interceptor has thrown exception, unwinding now > > > java.lang.IllegalStateException: Can't overwrite cause > > > at java.lang.Throwable.initCause(Throwable.java:320) > > > at > com.ctc.wstx.compat.Jdk14Impl.setInitCause(Jdk14Impl.java:70) > > > at com.ctc.wstx.exc.WstxException.<init>(WstxException.java:46) > > > at > > > com.ctc.wstx.exc.WstxIOException.<init>(WstxIOException.java:16) at > > > com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313) > > > at > > > > org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(A > > >bstractOutDatabindingInterceptor.jav a:93) > > > at > > > > org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterc > > >eptor.java:68) at > > > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCh > > >ain.java:221) at > > > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at > > > org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at > > > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) > > > at > > > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178) > > > at $Proxy138.retrieveRestrictedCountries(Unknown Source) > > > > > > This happens when I call the actual webservice on the proxy object > > > -- > > > Regards, > > > Kannan Ekanath > > -- > Daniel Kulp > [email protected] > http://www.dankulp.com/blog > -- Regards, Kannan Ekanath
