Using Javakey

Bruce A. Wittmeier (Bruce.Wittmeier@geics.ge.com)
Wed, 09 Sep 1998 12:48:07 -0400

Good afternoon,

I have done all that I can identify that I need to do but I am unable to
create an Applet that will allow me to write to my local disk using
Javkey. I assume this is the right approach. I dont mean to be
critical but the error messages dont help much at least from a beginner
stand point.

This particular applet just reads a file and writes it back out to
another name. The file read/write works fine in the Visual Cafe IDE
which I understand bypasses all security. Perhaps the issue is I need
to run this from a server, which I am presently not (local hard disk
only). I have not seen a distinction indicating the need for local vs.
server based Jar files. This particular code compiles clean, creates
the cert files without error, Jars the classes also without error.

I always attempt to get help from forums and other developers (this
concern included), but no one seems to know much about security. I have
communicated with an individual whom claims to have written a chapter in
a production book on Java security and the reply was 'You are not the
only one experiencing issues with java security...".

I understand you are busy and would be glad to pursue assistance by your
direction and would be glad to assist others in the same area. Whatever
you provide me will be valuable material for my website and allow me to
share what I learn in the Java forums.

Thank you in advance and regards,

Bruce A. Wittmeier
Lead Application Developer - Production Automation
GE INDUSTRIAL CONTROL SYSTEMS
1501 Roanoke Blvd. Room 172
Salem, Va 24153
Phone: (540)387-8555
Dialcomm: *278-8555
Bruce.Wittmeier@geics.ge.com
\||/
(aa) Java is way cool!
-ooo-(_)-ooo----------------------------

Here is the error message:
-----------------------------------
Netscape Communications Corporation -- Java 1.1.5
Type '?' for options.
Symantec Java! ByteCode Compiler Version 210.065
Copyright (C) 1996-97 Symantec Corporation
# Applet debug level set to 9
# initApplet: contextID=4 appletID=9938992 parentContext=9726528
frameContext=9726528
# New applet context: file:///c%7C/javakey/AUTOGE%7E1.HTM, contextID=4
# Initializing applet: Marquee.class, appletID=9938992, contextID=4
# docURL=file:///c%7C/javakey/AUTOGE%7E1.HTM reloadClasses=false
# total applets=1
# New applet: 9938992 at file:/c%7C/javakey/ width=300 height=78
hspace=0 archive=nullfile:/c%7C/javakey/Marquee.jar vspace=0
align=baseline codebase=file:///c%7C/javakey/ code=Marquee.class
# new class loader netscape.applet.AppletClassLoader@800c94b
# context = netscape.applet.MozillaAppletContext@800f04f
# codebase = file:/c%7C/javakey/
# startApplet: contextID=4 appletID=9938992 newFrameMWContext=9726528
# archive = file:/c%7C/javakey/Marquee.jar
# Starting applet: Marquee, appletID=9938992, contextID=4
# Loading classes from downloaded archive file:
file:/c%7C/javakey/Marquee.jar
# Error: Invalid Hash of this JAR entry (-7882)
# jar file: C:\TEMP\jzipL12U.TMP
# path: Marquee$SymMouse.class
# Error: Strange PKCS7 or RSA failure (-7881)
# jar file: C:\TEMP\jzipL12U.TMP
# path: C:\TEMP\jzipL12U.TMP
# Error: loading of signatures has failed (-1)
# jar file: C:\TEMP\jzipL12U.TMP
# path: /c%7C/javakey/
# Loading class Marquee
# Loaded Marquee.class from file:/c%7C/javakey/Marquee.jar
# reflectApplet: contextID=4 appletID=9938992
# reflectApplet: appletID=9938992
# reflectApplet: contextID=4 appletID=9938992
# reflectApplet: appletID=9938992
# reflectApplet: contextID=4 appletID=9938992
# Applet Marquee loaded
# reflectApplet: appletID=9938992
# Loading class Marquee$SymMouse
# Loaded Marquee$SymMouse.class from file:/c%7C/javakey/Marquee.jar
# Applet Marquee initialized
# Applet Marquee running
netscape.security.AppletSecurityException: security.checkread: Codebase
'c:\javakey\' does not include 'c:\java\Marquee\PCEHelp.txt'
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurity.checkRead(Compiled Code)
at netscape.security.AppletSecurity.checkRead(Compiled Code)
at java.lang.SecurityManager.checkRead(Compiled Code)
at java.io.FileInputStream.<init>(Compiled Code)
at java.io.FileReader.<init>(Compiled Code)
at Marquee.display_file(Compiled Code)
at Marquee.btnFileRead_MouseClick(Compiled Code)
at Marquee$SymMouse.mouseClicked(Compiled Code)
at java.awt.Component.processMouseEvent(Compiled Code)
at java.awt.Component.processEvent(Compiled Code)
at java.awt.Button.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
* at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled
Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)