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 › applets works only offline.
Page Index Toggle Pages: 1
applets works only offline. (Read 753 times)
applets works only offline.
May 31st, 2009, 4:15pm
 
Hi,
I've made a simple demo application for CaptureMJPEG lib, once exported as applet I've signed all the jars with my key.

Now if opened offline works correctly, but online didn't starts (freeze after asking about trust).

Can sameone help me?

EDIT: I can't post links, if interested ask me via PM


Tnx a lot
Re: applets works only offline.
Reply #1 - May 31st, 2009, 4:19pm
 

Online version: http://bytebucket.org/nolith/capturemjpeg/wiki/applet/public_demo.html
Demo applet download for offline test: http://bitbucket.org/nolith/capturemjpeg/downloads/

Sorry for triple-posting
Re: applets works only offline.
Reply #2 - Jun 1st, 2009, 12:53am
 
When you have a problem with an applet, look at the console.
For your, it says:
Quote:
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: IllegalName: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"

Looks like you have mixed up something.

Or, rather, as I saw after downloading public_demo.jar at the same location as your first page, the Wiki is confused: instead of the jar, it serves an HTML error page:
Quote:
<title>/data/vol1/repositories/nolith/capturemjpeg/.hg/wiki: error
href=/data/vol1/repositories/nolith/capturemjpeg/.hg/wiki
description=An error occurred while processing your request:
00manifest.i@capturemjpeg: no match found
bitbucket.org: CaptureMJPEG wiki
Re: applets works only offline.
Reply #3 - Jun 1st, 2009, 8:00am
 
Tnx a lot.

I've uploaded all on http://capturemjpeg.lilik.it/applet/axis_demo.html ad it works  Cheesy Grin

On another hosts I've found this strange behavior.
Any idea?

$ firefox http://capturemjpeg.lilik.it/applet/public_demo.html
java.lang.RuntimeException: You need to use "Import Library" to add processing.core.PGraphicsJava2D to your sketch.
     at processing.core.PApplet.makeGraphics(PApplet.java:1193)
     at processing.core.PApplet.init(PApplet.java:586)
     at sun.applet.AppletPanel.run(AppletPanel.java:436)
     at java.lang.Thread.run(Thread.java:636)
Re: applets works only offline.
Reply #4 - Jun 4th, 2009, 9:40am
 
Alessio C. wrote on Jun 1st, 2009, 8:00am:
$ firefox http://capturemjpeg.lilik.it/applet/public_demo.html
java.lang.RuntimeException: You need to use "Import Library" to add processing.core.PGraphicsJava2D to your sketch.
     at processing.core.PApplet.makeGraphics(PApplet.java:1193)
     at processing.core.PApplet.init(PApplet.java:586)
     at sun.applet.AppletPanel.run(AppletPanel.java:436)
     at java.lang.Thread.run(Thread.java:636)


After a system update (including openJDK) error has changed to:

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet.
     at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:495)
     at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:441)
     at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:620)
Caused by: java.lang.NullPointerException
     at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:481)
     ... 2 more
Caused by:
java.lang.NullPointerException
     at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:481)
     at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:441)
     at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:620)
java.lang.NullPointerException
     at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:102)
     at sun.applet.AppletPanel.run(AppletPanel.java:380)
     at java.lang.Thread.run(Thread.java:636)
java.lang.NullPointerException
     at sun.applet.AppletPanel.run(AppletPanel.java:430)
     at java.lang.Thread.run(Thread.java:636)


Maybe a bug of Fedora 11
Page Index Toggle Pages: 1