Skip to main content

Gary S. Weaver

 

garysweaver's blog

java.protocol.handler.pkgs Strikes Back

Posted by garysweaver on August 6, 2008 at 1:17 PM PDT

In last last couple of months working with a custom portlet that uses Apache CXF (2.1.1) in uPortal, I was getting a wierd issue:

[prettify] javax.xml.ws.soap.SOAPFaultException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl ... Caused by: java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl         at org.apache.cxf.transport.https.HttpsURLConnectionFactory.createConnection(HttpsURLConnectionFactory.java:129)         at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:480)         at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.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)         ... 36 more [/prettify]

Writing Java Applications that Work with Different Incompatible Versions of a Java API/Library

Posted by garysweaver on July 31, 2008 at 10:57 AM PDT

If you're a Java developer and you've been around for any length of time, you've likely run into the issue of wanting to write something that can deal with different versions of the same Java API that may be incompatible.