on 05-18-2016 5:10 PM
Hi All,
I am trying to open https connection from Java mapping with the below code but at run time got error as
“Cannot cast class com.sap.engine.httpdsrclient.protocols.instrumented.https.DSRHttpsURLConnection to class javax.net.ssl.HttpsURLConnection in the line (HttpsURLConnection)
String httpsURL = "https://example.com/";
URL myurl = new URL(httpsURL);
HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
con.setRequestMethod("GET");
Referred the thread http://scn.sap.com/thread/1939244 and modified the code, still facing the same error.
Thanks
Hi Kumar,
The class that you are using has changed in you PI jvm version. You should check your PI jvm version and later go to the API and to check the class HttpsURLConnection.
Check for example this case:
I show you that thread that you can see that the class can change depending your PI jvm.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.