Is there a patch for this fix available? I need to apply it to 2.0.7
dkulp wrote: > > > I was able to reproduce this. Fortunately, it's an easy fix (3 lines > added to > our SSLSocketFactoryWrapper class). > > Basically, older JDK's called the "createSocket" methods that take > parameters > and create connected sockets. The newer JDK seems to call the > createSocket() > method (no params) and then connects it later. However, we were not > forwarding that call into the wrapped socketfactory. Once I add that, > our > https tests pass. > > I'm going to run the full test suite and if OK, I'll get it committed and > merged down through so the next releases should be fine. > > Dan > > > > On Friday 12 September 2008 4:45:53 pm John Hite wrote: >> Hi, >> >> >> >> I'm just wondering if anyone has done any testing of CXF with Java 6 >> Update >> 10? When I try running my CXF client with Java 1.6.0_10 I get an >> exception: >> >> >> >> Caused by: javax.xml.stream.XMLStreamException: java.net.SocketException: >> Unconnected sockets not implemented >> >> at >> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeStartElement(U >>n known Source) >> >> at >> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEnvelop >>e Start(SoapOutInterceptor.java:95) >> >> ... 14 more >> >> Caused by: java.net.SocketException: Unconnected sockets not implemented >> >> at javax.net.SocketFactory.createSocket(Unknown Source) >> >> at >> sun.net.www.protocol.https.HttpsClient.createSocket(Unknown >> Source) >> >> at sun.net.NetworkClient.doConnect(Unknown Source) >> >> at sun.net.www.http.HttpClient.openServer(Unknown Source) >> >> at sun.net.www.http.HttpClient.openServer(Unknown Source) >> >> at sun.net.www.protocol.https.HttpsClient.<init>(Unknown >> Source) >> >> at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) >> >> at >> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpCli >>e nt(Unknown Source) >> >> at >> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) >> >> at >> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unkno >>w n Source) >> >> at >> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown >> Source) >> >> at >> sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown >> Source) >> >> at >> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeaders >>T rustCaching(HTTPConduit.java:1807) >> >> at >> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite( >>H TTPConduit.java:1765) >> >> at >> org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputSt >>r eam.java:63) >> >> at >> com.sun.xml.internal.stream.writers.UTF8OutputStreamWriter.write(Unknown >> Source) >> >> at >> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.openStartTag(Unknow >>n Source) >> >> ... 16 more >> >> As you can see from the exception, the web service is running over SSL. >> This isn't an urgent issue, I'm just concerned that if I use CXF in my >> project, we will have issues when Update 10 rolls out. >> >> >> >> Thank you, >> >> John > > > > -- > Daniel Kulp > [email protected] > http://www.dankulp.com/blog > > -- View this message in context: http://www.nabble.com/CXF-and-Java-6-Update-10-tp19463818p23876428.html Sent from the cxf-user mailing list archive at Nabble.com.
