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

[Bug] Weblogic Server start failed #252

Closed
Nizernizer opened this issue Feb 22, 2022 · 1 comment
Closed

[Bug] Weblogic Server start failed #252

Nizernizer opened this issue Feb 22, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Nizernizer
Copy link
Contributor

error log:

java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
at io.dongtai.iast.core.utils.HttpClientUtils.sendRequest(HttpClientUtils.java:73)
at io.dongtai.iast.core.utils.HttpClientUtils.sendPost(HttpClientUtils.java:56)
at io.dongtai.iast.core.bytecode.sca.ScaReport.sendReport(ScaReport.java:25)
at io.dongtai.iast.core.bytecode.sca.ScaScanner$ScaScanThread.run(ScaScanner.java:217)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Set parameter a to true to solve the problem:

System.setProperty("UseSunHttpHandler", "true");
@Nizernizer Nizernizer added the bug Something isn't working label Feb 22, 2022
Nizernizer pushed a commit to Nizernizer/DongTai-agent-java that referenced this issue Feb 22, 2022
Nizernizer pushed a commit to Nizernizer/DongTai-agent-java that referenced this issue Feb 23, 2022
Nizernizer pushed a commit to Nizernizer/DongTai-agent-java that referenced this issue Feb 23, 2022
Nizernizer pushed a commit to Nizernizer/DongTai-agent-java that referenced this issue Feb 23, 2022
Nizernizer pushed a commit to Nizernizer/DongTai-agent-java that referenced this issue Feb 23, 2022
@exexute
Copy link
Contributor

exexute commented Mar 7, 2022

fix this bug with code:

import java.net.URL;
...
URL url = new URL(null, baseUrl + urlStr, baseUrl.toLowerCase().startsWith("https://") ? new sun.net.www.protocol.https.Handler() : new sun.net.www.protocol.http.Handler());

@exexute exexute closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants