TotalCross / TotalCross/totalcross
Simulator showing up a non-blocking error with java 13 and 14
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 227
- Forks
- 42
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 11
Description
Issue Title
Simulator showing up a non-blocking error with java 13 and 14
Describe the bug
Here comes the stack trace of the error
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
at totalcross.net.ssl.SSLSocket.prepareContext(SSLSocket.java:56)
at totalcross.net.ssl.SSLSocket.startHandshake(SSLSocket.java:67)
at totalcross.net.HttpStream.init(HttpStream.java:709)
at totalcross.net.HttpStream.(HttpStream.java:137)
at tc.tools.AnonymousUserData$1.run(AnonymousUserData.java:149)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 6 more
To Reproduce
Just install jdk 13 or 14 and use the simulator. I am using Zulu
Expected behavior
To not show up any error
Devices:
I tried it on a MacOS but I am pretty sure this should happen in other machines too
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running the simulator with JDK 13 or 14, then start at totalcross.net.ssl.SSLSocket.java:56 and :67, as shown in the stack trace. Follow the call into totalcross.net.HttpStream and tc.tools.AnonymousUserData, and verify that the simulator no longer emits the NoClassDefFoundError during the SSL request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100