Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException in weblogic - APIRequest.java #39

Closed
msooraj opened this issue Aug 1, 2016 · 2 comments
Closed

ClassCastException in weblogic - APIRequest.java #39

msooraj opened this issue Aug 1, 2016 · 2 comments

Comments

@msooraj
Copy link

msooraj commented Aug 1, 2016

Please use HttpURLConnection instead of HttpsURLConnection. This is giving ClassCastException in weblogic. Working fine when I changed to HttpURLConnection .
You should never explicitly import/use Sun Java SE implementation specific classes in your code.

Link to similar issue:
http://stackoverflow.com/questions/3038026/using-java-class-httpsurlconnection

@JiamingFB
Copy link
Contributor

Hi msooraj,

Initially we use HttpsURLConnection because we wanted to deal with certificate, but yes looks like that's no longer needed and will be cleaned.

I also found this post on stackoverflow and it might be helpful in your case. Basically try to do this in your server:
set JAVA_OPTIONS=%JAVA_OPTIONS% -DUseSunHttpHandler=true

Thanks!

@guxuoss
Copy link

guxuoss commented Sep 1, 2016

close this as the issue has been resolved.

@guxuoss guxuoss closed this as completed Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants