Categories

JAVA DATEBASE
Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Java
Desktop
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Architecture
Migration and Modernization
E-Business Suite
Siebel
PeopleSoft Enterprise
JD Edwards World
Industries
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Primavera
ATG
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums

 



Tags

JDeveloper and ADF


HTTPS ClassCastException for SOAPHttpsURLConnection to HttpsURLConnection


JDEV 11gR1PS1  Hi all,  I'm writing a Java class that posts via HTTPS.   I'm getting the the following error when executing the class:  java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection  using the following code (just a snip of what's relevant:  url = new URL(nurl);             connection = (HttpsURLConnection)url.openConnection();             responseCode = connection.getResponseCode();   I've also tried based on some research on the web  url = new URL(null, nurl, new com.sun.net.ssl.internal.www.protocol.https.Handler());             connection = (HttpsURLConnection)url.openConnection();             responseCode = connection.getResponseCode();   and instead I this error  java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection  Ideas?

Import this instead  import weblogic.net.http.SOAPHttpsURLConnection;  and then when attempting the connection try using the SOAPHttpsURLConnection object


Related Links

Using TortoiseSVN with Jdeveloper
Code Review:: ADF BC applications
Adf Facet
Build jsp pages in Meta-data level?
How can we built list of values library in 11g.
caching view data in session
JDeveloper 11g installation
Oracle Applications Node not found under Projeect Menu-> Project Settings D
column filterable problem
SVN Connection problem in JDeveloper
EJB Projects Dependencies JDeveloper 11g
DefaultServer starts when I start my project - 11g last version
Improvement of help in JDeveloper
JBO-26048: Constraint violated - parent key not found ORA-06512
How to validate values from selectInputDate in backing bean
jdev 11g R1: Problem with LOV