Icetea exception
Jacob Wisor
gitne at gmx.de
Mon Jun 27 15:49:41 UTC 2016
Hello Cezar,
Bingo! Like I have assumed. The OBJECT element in the HTML document has been
authored incorrectly. Look here:
> <object
> classid = "clsid:CAFEEFAC-0015-0000-0012-ABCDEFFEDCBA"
> codebase = "http://java.sun.com/update/1.5.0/jinstall-1_5_0_12-windows-i586.cab#Version=5,0,120,4"
> WIDTH = "640" HEIGHT = "480" NAME = "ucx" >
> <PARAM NAME = CODE VALUE = "ultracam.class" >
First, "class" is a reserved keyword in the Java programming language and
therefore must not be a package name. Second, the ultracam class has not been
specified with its fully qualified name. The VALUE attribute of the PARAM
element must state the fully qualified name of the applet's main class.
> <PARAM NAME = ARCHIVE VALUE = "ultracam.jar" >
> <PARAM NAME = NAME VALUE = "ucx" >
> <param name = "type" value = "application/x-java-applet;jpi-version=1.5.0_12">
> <param name = "scriptable" value = "false">
> <PARAM NAME = "accountcode" VALUE="YWRtaW46emd1cmFUTnc=" />
> <PARAM NAME = "codebase" VALUE="http://10.1.1.1:80/admin" />
> <PARAM NAME = "mode" VALUE="0" />
>
> <comment>
> <embed
> type = "application/x-java-applet" \
> CODE = "ultracam.class" \
Essentially, the same applies here too.
> ARCHIVE = "ultracam.jar" \
> NAME = "ucx" \
> WIDTH = "640" \
> HEIGHT = "480" \
> accountcode ="YWRtaW46emd1cmFUTnc=" / \
> codebase ="http://10.1.1.1:80/admin" / \
> mode ="0" / \
> scriptable = false
> pluginspage = "http://java.sun.com/products/plugin/index.html#download">
> <noembed>
>
> </noembed>
> </embed>
> </comment>
> </object>
So, what can you do now? a) You should report this bug do the camera vendor and
wait for a firmware update. b) In the meantime, you can download the
ultracam.jar JAR file, find the fully qualified name of the ultracam class, put
it into the HTML document and launch it from your local computer. There is
nothing IcedTea-Web developers can do here.
Regards,
Jacob
On 06/27/2016 at 05:15 PM Cezar Câmpeanu wrote:
> Hi Jacob,
>
> I am attaching the html source(provided by the camera webserver) and I
> include below the error console.
> Thanks,
> Cezar
>
> IcedTea-Web Plugin version: 1.6.2 (mageia-1.mga5-x86_64)
> Mon Jun 27 12:13:13 ADT 2016
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could
> not initialize applet. For more information click "more information
> button".
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764)
> at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686)
> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization
> Error: Unknown Main-Class. Could not determine the main class for this
> application.
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729)
> ... 2 more
> Caused by: java.lang.ClassNotFoundException: Could not find class ultracam
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698)
> ... 7 more
> Caused by: java.security.PrivilegedActionException:
> java.lang.ClassNotFoundException: ultracam
> at java.security.AccessController.doPrivileged(Native Method)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520)
> ... 10 more
> Caused by: java.lang.ClassNotFoundException: ultracam
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521)
> ... 12 more
>
> Chain:
> 1) at Mon Jun 27 11:56:07 ADT 2016
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown
> Main-Class. Could not determine the main class for this application.
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729)
> at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686)
> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933)
> Caused by: java.lang.ClassNotFoundException: Could not find class ultracam
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698)
> ... 7 more
> Caused by: java.security.PrivilegedActionException:
> java.lang.ClassNotFoundException: ultracam
> at java.security.AccessController.doPrivileged(Native Method)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520)
> ... 10 more
> Caused by: java.lang.ClassNotFoundException: ultracam
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521)
> ... 12 more
> 2) at Mon Jun 27 11:56:07 ADT 2016
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could
> not initialize applet. For more information click "more information
> button".
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764)
> at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686)
> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization
> Error: Unknown Main-Class. Could not determine the main class for this
> application.
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729)
> ... 2 more
> Caused by: java.lang.ClassNotFoundException: Could not find class ultracam
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698)
> ... 7 more
> Caused by: java.security.PrivilegedActionException:
> java.lang.ClassNotFoundException: ultracam
> at java.security.AccessController.doPrivileged(Native Method)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520)
> ... 10 more
> Caused by: java.lang.ClassNotFoundException: ultracam
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521)
> ... 12 more
> 3) at Mon Jun 27 12:13:08 ADT 2016
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown
> Main-Class. Could not determine the main class for this application.
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729)
> at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686)
> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933)
> Caused by: java.lang.ClassNotFoundException: Could not find class ultracam
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698)
> ... 7 more
> Caused by: java.security.PrivilegedActionException:
> java.lang.ClassNotFoundException: ultracam
> at java.security.AccessController.doPrivileged(Native Method)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520)
> ... 10 more
> Caused by: java.lang.ClassNotFoundException: ultracam
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521)
> ... 12 more
> 4) at Mon Jun 27 12:13:08 ADT 2016
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could
> not initialize applet. For more information click "more information
> button".
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764)
> at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686)
> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization
> Error: Unknown Main-Class. Could not determine the main class for this
> application.
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:285)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729)
> ... 2 more
> Caused by: java.lang.ClassNotFoundException: Could not find class ultracam
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698)
> ... 7 more
> Caused by: java.security.PrivilegedActionException:
> java.lang.ClassNotFoundException: ultracam
> at java.security.AccessController.doPrivileged(Native Method)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520)
> ... 10 more
> Caused by: java.lang.ClassNotFoundException: ultracam
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523)
> at
> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521)
> ... 12 more
>
>
>
> Hello Cezar,
>>
>> to me this looks like either the JNLP file or the HTML page on the
>> camera's
>> internal web server has been incorrectly authored. I suppose that the
>> applet's
>> main class identifier has not been specified with a fully qualified name
>> or the
>> supposedly fully qualified name has a syntax error.
>> Anyhow, can you post the HTML page and/or JNLP file from that camera?
>>
>> Thank you and good luck!
>>
>> Jacob
>>
>> On 05/26/2016 at 07:06 PM Cezar Campeanu wrote:
>>> Hi,
>>>
>>>
>>>
>>> I can't provide link as this is a IP Intranet D-Link DCS 920 camera. A
>>> similar message is for Trendnet TV-IP422W camera. It worked before, but
>>> after upgrading it does not work any more. See below a partial message.
>>> For this kind of applets(hardware built-in), we should be able to
>>> override any security protection.
>>>
>>> Thanks,
>>> Cezar
>>>
>>>
>>>
>>> Exception was:
>>>
>>> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could
>>> not initialize applet. For more information click "more information
>>> button".
>>>
>>> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:764)
>>>
>>> at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:686)
>>>
>>> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:933)
>>>
>>> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization
>>> Error: Unknown Main-Class. Could not determine the main class for this
>>> application.
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:701)
>>>
>>> at net.sourceforge.jnlp.runtime.JNLPClassLoader.
>>> (JNLPClassLoader.java:285)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:357)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:429)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:403)
>>>
>>> at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:729)
>>>
>>> ... 2 more
>>>
>>> Caused by: java.lang.ClassNotFoundException: Could not find class
>>> ultracam
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2530)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1682)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2543)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:698)
>>>
>>> ... 7 more
>>>
>>> Caused by: java.security.PrivilegedActionException:
>>> java.lang.ClassNotFoundException: ultracam
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2520)
>>>
>>> ... 10 more
>>>
>>> Caused by: java.lang.ClassNotFoundException: ultracam
>>>
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2492)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2523)
>>>
>>> at
>>> net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2521)
>>>
>>> ... 12 more
>>>
>>> This is the list of exceptions that occurred launching your applet.
>>> Please note, those exceptions can originate from multiple applets. For a
>>> helpful bug report, be sure to run only one applet.
More information about the distro-pkg-dev
mailing list