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 › Applet issue
Page Index Toggle Pages: 1
Applet issue (Read 1213 times)
Applet issue
May 14th, 2010, 1:36pm
 
I am hoping that this will be an easy question.  Please keep in mind that I have no formal programming training.

My sketch imports data from a web page.

I have exported the sketch and the jar file runs just fine.

But the index.html does not run.  The setup will run, but it locks up when it gets into the draw.

Is this just a signature issue?  
Re: Applet issue
Reply #1 - May 15th, 2010, 1:06am
 
Two things:
- Yes, it can be a matter of signing the applet if the Web page you access is on a different server.
- You can see errors in the Java Console, you have to activate it, either as settings of your browser, or as settings of your Java JRE (eg. on Windows, via the Java icon in the Control Panel).
Re: Applet issue
Reply #2 - May 17th, 2010, 8:18am
 
From my Java Console:
ception in thread "Animation Thread" java.security.AccessControlException: access denied (java.net.SocketPermission www.transmission.bpa.gov:80 connect,resolve)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkConnect(Unknown Source)
     at sun.net.www.http.HttpClient.openServer(Unknown Source)
     at sun.net.www.http.HttpClient.<init>(Unknown Source)
     at sun.net.www.http.HttpClient.New(Unknown Source)
     at sun.net.www.http.HttpClient.New(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
     at java.net.URL.openStream(Unknown Source)
     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 met_demo_app.draw(met_demo_app.java:40)
     at processing.core.PApplet.handleDraw(PApplet.java:1425)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Unknown Source)
Re: Applet issue
Reply #3 - May 28th, 2010, 9:52am
 
This is frustrating.  Processing is so easy, why is signing applet so hard?

I have downloaded the Java SDK.
I followed Ira's instructions
http://processing.org/hacks/hacks:signapplet

It still doesn't work.  In fact after signing, the applet stops working alltogether.

I don't know what to do next, any sugestions?
Page Index Toggle Pages: 1