B4J Question javax.net.ssl.SSLException: No PSK available. Unable to resume.

Status
Not open for further replies.

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
I made a simple app where I load a website (loadUrl) in a webview, but I see these alerts (errors) in the logs.

(There is no crash) in the app, however these logs are very disturbing.
These alerts occur on some sites, not all.


i m tryed this
but the logs errors continue...

Java: jdk-11.0.1
B4J: 8.10

Update: tested on JAVA 8, the logs errors are different

How to solve this problem?
Thank you!
 
Last edited:

OliverA

Expert
Licensed User
Longtime User
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Hi OliverA, really, but i think @Erel will need update the b4j to support this version of JAVA.
i m tryed here the version 11.0.3 and 11.0.6

and the app dont compile.


the same are with java 14 and 13.

thank you
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Hi OliverA, really, but i think @Erel will need update the b4j to support this version of JAVA.
Yes.
error: module not found: javafx.swing
As of Java 11, JavaFX is separate and therefore needs to be manually added to the OpenJDK bundle you are trying to create for using/testing the newer versions of OpenJDK. Just look at the setup of the standard OpenJDK bundle posted on B4J's site and you should be able to figure out what you need and where you need to place it in the updated OpenJDK bundle.
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Ok, I just did the following:

@Erel's OpenJDK is located in C:\OpenJDK\jdk-11.0.1
I copied and pasted that to C:\OpenJDK\jdk-11.0.6_10
I downloaded OpenJDK11U-jdk_x64_windows_11.0.6_10.zip from https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/tag/jdk-11.0.6+10 and copied the contents of that zip file into C:\OpenJDK\jdk-11.0.6_10, overwriting all files.
In B4J, I changed my javac.exe path to C:\OpenJDK\jdk-11.0.6_10\bin\javac.exe in Tools->Paths Configuration
I created a blank UI app, compiled and ran it successfully. I can't guarantee that this is not breaking something, but at least I can create an empty JFX app with this setup. Hopefully you can take it further and test your TLS issue this way.
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Yes, only load dont give logs, the problem are the clicks, for exemple when you chose a country, i Think the website use Ajax to get country data.

Just ignore those errors for now.
Ok

thanks
 
Upvote 0

valentino s

Active Member
Licensed User
Longtime User
I have openJDK 11.0.1 +13 with the same issue.
If I build the .exe, the app can't browse the web. The webview doesn't load the url (with https)
The solution is to upgrade to 11.0.3 or more ?
Thanks
 
Upvote 0
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…