no identitydb.obj ==> nullPointerException

Marianne Mueller (mrm@eng.sun.com)
Mon, 10 Mar 1997 20:59:54 -0800

Date: Mon, 10 Mar 1997 20:59:54 -0800
Message-Id: <199703110459.UAA09731@puffin.eng.sun.com>
From: Marianne Mueller <mrm@eng.sun.com>
To: nealmcb@lucent.com
Subject: no identitydb.obj ==> nullPointerException

Thanks for the bug report. I find the same thing; if identitydb.obj
doesn't exist, then an attempt to load a signed applet raises
NullPointerException. A more graceful way to fail would be to let the
user know the identity is not found.

Marianne

p.s. I hope the java-security@java.sun.com is fixed now. Please try
resending your message (but just send one, so we can see if the alias
is fixed or not!) Many thanks.

> Date: Fri, 28 Feb 97 20:39:42 PST
> From: Neal McBurnett <nealmcb@lucent.com>
> To: java-security@java
> Subject: no identitydb.obj ==> nullPointerException when loading signed jar
> Reply-To: Neal McBurnett <nealmcb@bell-labs.com>
>
> If I do not have a $HOME/identitydb.obj file, the following
> nullPointerException occurs while loading the signedWriteFile.jar
> file copied from
> http://java.sun.com/security/signExample/
>
> It never even seems to load the classes in the jar file to try them with
> 'sandbox' permissions - it still says "starting applet". This goes
> away after I move my identitydb.obj back into place.
>
> I was using JDK1.1-Final on Solaris 2.4.
>
> Neal McBurnett <nealmcb@bell-labs.com> 503-331-5795 Portland/Denver
> Bell Labs Innovations for Lucent Technologies
> http://bcn.boulder.co.us/~neal/ (with PGP key)
>
> $ appletviewer http://my.server.../sun-doit/signedWriteFile.html
> 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)
> java.lang.IllegalArgumentException: Argument # > Arg length
> at java.text.MessageFormat.format(MessageFormat.java)
> at java.text.MessageFormat.format(MessageFormat.java)
> at java.text.Format.format(Format.java)
> 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)