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] ... Caused by: java.lang.ClassCastException:         at org.apache.cxf.transport.https.HttpsURLConnectionFactory.createConnection(         at org.apache.cxf.transport.http.HTTPConduit.prepare(         at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(         at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(         at org.apache.cxf.endpoint.ClientImpl.invoke(         at org.apache.cxf.endpoint.ClientImpl.invoke(         at org.apache.cxf.frontend.ClientProxy.invokeSync(         at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(         ... 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.