Re: Facing problems with applet security demonstration

Marianne Mueller (mrm@Eng)
Mon, 10 Mar 1997 22:36:40 -0800

Date: Mon, 10 Mar 1997 22:36:40 -0800
Message-Id: <199703110636.WAA09838@puffin.eng.sun.com>
From: Marianne Mueller <mrm@Eng>
To: newtech2@caribsurf.com
Subject: Re: Facing problems with applet security demonstration

Sorry for the delay, we are having trouble with our email aliases.

This is a known bug in JDK 1.1 that is fixed in 1.1.1. Please refer
to the updated html file at

http://java.sun.com/security/signExample/index.html

for info on workarounds. Basically what you want to do is load the
signed JAR file from your intranet rather than over the internet, so
that you don't run into the bug related to locating the identity.

Marianne

> Date: Wed, 05 Mar 1997 15:42:49 -0500
> From: Pradnya Devare <newtech2@caribsurf.com>
> Reply-To: newtech2@caribsurf.com
> Organization: TTSL
>
> Hi again,
> I had send you mail sometime back asking for help regarding some
> complete java security programs. While browsing again, I came across the
> applet program you had written demonstrating security. Its called
> writeFile.java and signedWriteFile.java (which I could not find).
> I tried the applets with all steps mentioned. The problem I am facing is
> that after creating a certificate etc. for Duke, it throws a
> nullPointerException while running. Can you please tell me how to tackle
> this problem ?
>
> The exception :
>
> java.lang.NullPointerException:
> at
> sun.tools.jar.JarVerifierStream.findIdentities0(JarVerifierStream.java:405)
> at
> sun.tools.jar.JarVerifierStream.findIdentities(JarVerifierStream.java:369)
> at
> sun.tools.jar.JarVerifierStream.addIdentities(JarVerifierStream.java:343)
> at
> sun.tools.jar.JarVerifierStream.processSignature(JarVerifierStream.java:329)
> at
> sun.tools.jar.JarVerifierStream.computeSignatures(JarVerifierStream.java:265)
> at
> sun.tools.jar.JarVerifierStream.getNextEntry(JarVerifierStream.java:147)
> at
> sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java:156)
> at sun.applet.AppletPanel.runLoader(AppletPanel.java:388)
> at sun.applet.AppletPanel.run(AppletPanel.java:223)
> at java.lang.Thread.run(Thread.java:481)
> java.lang.IllegalArgumentException: Argument # > Arg length
> at java.text.MessageFormat.format(MessageFormat.java:563)
> at java.text.MessageFormat.format(MessageFormat.java:396)
> at java.text.Format.format(Format.java:69)
> at
> sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:63)
> at
> sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:78)
> at sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:554)
> at sun.applet.AppletPanel.run(AppletPanel.java:330)
> at java.lang.Thread.run(Thread.java:481)
>
> Thanks again!
> Pradnya
>
> P.S. > I have sent a similar mail to java-security@java.sun.com
>