We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › HTTP Connection issue on Linux
Page Index Toggle Pages: 1
HTTP Connection issue on Linux (Read 811 times)
HTTP Connection issue on Linux
Nov 17th, 2009, 10:00am
 
Hi guys,

I think that is my first post. Smiley

Well, I (and a couple of friends) am teaching a group of people to use processing, and we are using Linux as platform, and we faced a strange issue: Processing did not connect to the internet to download an image. Bellow, I it is possible to see a simplified code:

Code:

PImage pic;

void setup(){
 size(300,300);
 pic = loadImage("google logo url");
}

void draw(){
 image(pic, 1, 1);
}



The code is simplified from the original, but it show the same error we faced yesterday :S Processing highlights the 'image(pic,1,1);' line and returns a NullPointerException.

The output error message is:

java.net.UnknownHostException: "Google URL"
     

The system we were using is an Ubuntu 9.04, with Sun Java 6 installed and configured to be the standard Java - using apt-updates - and the computers are connected via proxy.
I can see two possible reasons for the error: 1- some security config; 2 - some bad java configuration.

Does someone already face this and could give a little tip?


Thanks a lot,
Paulo
Re: HTTP Connection issue on Linux
Reply #1 - Nov 17th, 2009, 10:01am
 
BTW, I am not allowed to post the whole output cos the forum system understands it as URLs Sad
Page Index Toggle Pages: 1