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 & HelpSyntax Questions › Acces to Internet
Page Index Toggle Pages: 1
Acces to Internet (Read 320 times)
Acces to Internet
Dec 14th, 2009, 7:00pm
 
running this bit of code on
Debian 64-bit Linux

void updateTable( ) {
 dataTable = new Table("http://benfry.com/writing/map/random.cgi");
}

I recieve the the below error

If I export the project as an application it works correctly on Debian it only gives me an error if I try to run it as a sketch Sad

I have tried the same exact piece of code on windows and it works correctly from the sketchpad

Does any one know how to work around this? I hate having to use Windows for anything!


java.net.UnknownHostException: benfry.com
     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     at java.net.Socket.connect(Socket.java:525)
     at java.net.Socket.connect(Socket.java:475)
     at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
     at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
     at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
     at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
     at sun.net.www.http.HttpClient.New(HttpClient.java:306)
     at sun.net.www.http.HttpClient.New(HttpClient.java:323)
     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
     at java.net.URL.openStream(URL.java:1010)
     at processing.core.PApplet.createInputRaw(PApplet.java:4062)
     at processing.core.PApplet.createInput(PApplet.java:4031)
     at processing.core.PApplet.loadStrings(PApplet.java:4262)
     at book$Table.<init>(book.java:143)
     at book.updateTable(book.java:120)
     at book.keyPressed(book.java:115)
     at processing.core.PApplet.handleKeyEvent(PApplet.java:1752)
     at processing.core.PApplet.dequeueKeyEvents(PApplet.java:1735)
     at processing.core.PApplet.handleDraw(PApplet.java:1437)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:619)
The file "http://benfry.com/writing/map/random.cgi" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
Exception in thread "Animation Thread" java.lang.NullPointerException
     at book$Table.<init>(book.java:144)
     at book.updateTable(book.java:120)
     at book.keyPressed(book.java:115)
     at processing.core.PApplet.handleKeyEvent(PApplet.java:1752)
     at processing.core.PApplet.dequeueKeyEvents(PApplet.java:1735)
     at processing.core.PApplet.handleDraw(PApplet.java:1437)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:619)

Page Index Toggle Pages: 1