# FW: Another help request with the duke writefile security example

Yoko.Chung@dresdnerkb.com
Thu, 21 Jan 1999 15:06:12 -0000

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Martin_Jericho@INFOSERV-CONSULTING.COM: "International alternatives to JCE?"
- Previous message: Yoko.Chung@dresdnerkb.com: "Another help request with the duke writefile security example"

=A0
Hi,=20

Sorry about this, from scanning the Q&A archives, you're probably sick =
to
death of=20
these....=A0 I'm trying to run the security example at
http://java.sun.com/security/signExample/
<http://java.sun.com/security/signExample/> =20
and **at first** am getting the following in my java plug in console:=20

Java(TM) Plug-in=20

Using JRE version 1.1.6=20

User home directory =3D C:\WINNT\Profiles\chungy=20

Proxy Configuration: Automatic Proxy Configuration=20

JAR cache enabled.=20

Opening http://java.sun.com/security/signExample/signedWriteFile.jar
<http://java.sun.com/security/signExample/signedWriteFile.jar>
proxy=3Dproxy2n.kben.co.uk:8080=20

java.lang.NoClassDefFoundError: sun/security/provider/IdentityDatabase =
at
java.security.IdentityScope.initializeSystemScope(IdentityScope.java:73)=
=20

=A0at =
java.security.IdentityScope.getSystemScope(IdentityScope.java:123)=20

=A0at sun.tools.jar.JarVerifierStream.<init>(JarVerifierStream.java:96) =

=A0at sun.applet.AppletResourceLoader.loadJar(Compiled Code)=20

=A0at =
sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java:142)=20

=A0at sun.applet.AppletPanel.loadJarFiles(Compiled Code)=20

=A0at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)=20

=A0at sun.applet.AppletPanel.runLoader(AppletPanel.java:397)=20

=A0at sun.applet.AppletPanel.run(Compiled Code)=20

=A0at java.lang.Thread.run(Thread.java:474)=20

I've checked my identitydb.obj and it seems very fine and placed in the =
home
directory.=20
What really does interest me is that when i click the reload button =
after
getting the above,=20
the example then works!=A0=A0 Just what is going on?=20

I tried this locally with the files downloaded from the security =
example web
page and have found out that if i remove the writeFile.class file and =
reload
after initially getting the above=20
problem, i get the following in my console.=20

File not found when looking for: writeFile=20

java.lang.NullPointerException:=20

=A0at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)=20

=A0at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)=20

=A0at sun.applet.AppletPanel.run(Compiled Code)=20

=A0at java.lang.Thread.run(Thread.java:474)=20

How about you remove the writeFile.class from the web directory that
signedWriteFile.jar=20
resides on, the above problem might become more apparent. I'm using =
netscape

communicator 4.07 and the java plugin JRE 1.1.6. and running=20
this on Windows NT 4.0.=A0=A0 To add, i've also tried this with =
Internet
Explorer 4.0 and=20
it gives the same results as above.=20

I'd really like to get this working and would really appreciate=20
any suggestions on what I maybe doing wrong?=20

thanks in advance, Yoko=20
=A0=20
=A0=20
=A0=20
=A0=20
=A0=20

..

- Next message: Martin_Jericho@INFOSERV-CONSULTING.COM: "International alternatives to JCE?"
- Previous message: Yoko.Chung@dresdnerkb.com: "Another help request with the duke writefile security example"