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

Application Logging Using ADFLogger
getting error in ADF Login security
Performance Impact for the Application when using ADFLogger
Fill the result list to ADF table or list of values
Groovy passing a parameter from one taskflow to other as Integer
LOV in the table column
UNMATCHED_STATE_ON_STACK error on console while invoking popup having BTF
Plan.xml instead manifest.mf
tree data using creatrootappmodule
LOV problem
How to call a method on clicking Search Button in a jspx page.
Alighning Popup component in the center of window
JBO-56005: SDO type is not found for ViewObject
Recursion with af:iterators
ADF Faces: How to add scroll bar for a af:dialog component used in popup
How to provide Parent Action for Multi-Level Parent Task Flow?