URL url= new URL(url);
url.openStream();
I catch an exception:
java.lang.NullPointerException
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:727)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:654)
at COM.ibm.JEmpower.applet.http.HttpURLConnection.getInputStream(HttpURLConnection.java:411)
at java.net.URL.openStream(URL.java:1022)
at ImageOptimizer.saveURL(Unknown Source)
I run java code on laptop via IBM Notes. Is it something related to security so I can't open stream with another server?
I've found issue for my case.
I checked version of Java in Lotus Notes and it was 1.5, once I up it to 1.6 it started work properly. Previously I was not able to change version of java, because it required to add variable to notes.ini:
JavaCompilerTarget=1.6
Once you add this variable to notes.ini you can set any Java available in Designer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With