What happens when you use that code instead what I posted in post#4?
The error message says something like the code in post#4 was used. Not the URL you are showing in post#5
Type: Posts; User: Norm
What happens when you use that code instead what I posted in post#4?
The error message says something like the code in post#4 was used. Not the URL you are showing in post#5
Is this the same as what is being executed?
URL url = new URL("aapl");
That URL does not have a valid protocol.
You said: The URL I am using is ...
and posted what looks like a valid...
Can you add a call to the printStackTrace() method in the catch block for more info?