I use HttpJob to download map image from WMS-server. The HttpJob reported this error message:
in the AppStart Sub.
It works in Release mode, but not in debug mode.
How can i set the system property
I use jdk1.8.0_231
Example project attached. Running in Debug causes the error, but running in Release do not.
java.net.SocketException: Address family not supported by protocol family: connect
. I found that it could be Java that tries to use IPv6 addressing against a server that use IPv4 addressing, and that it could help setting the system property “java.net.preferIPv4Stack” to true. I added the following line:
B4X:
SetSystemProperty("java.net.preferIPv4Stack" , "true")
It works in Release mode, but not in debug mode.
How can i set the system property
java.net.preferIPv4Stack
so it works in debug mode?I use jdk1.8.0_231
Example project attached. Running in Debug causes the error, but running in Release do not.
Attachments
Last edited: