# Example at http://java.sun.com/security/signExample/ does not work

Bernard Brochu (bbrochu@CAM.ORG)
Sun, 13 Jul 1997 15:38:34 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "Re: null-pointer-Exceptions????"
- Previous message: A. C. Sandstrom: "Verifying signatures"

    Date: Sun, 13 Jul 1997 15:38:34 -0400

    From: Bernard Brochu <bbrochu@CAM.ORG>

    To: java-security@web2.javasoft.com

    Subject: Example at http://java.sun.com/security/signExample/ does not work

Hi!, the example signExample does not seem to work. Here is what I did:

1) I'm using Windows 95 and I have JDK 1.1.2 installed in my local
directory D:\jdk1.1.2
PATH and CLASSPATH are set properly since everything works well since
2 mounths.

2) I downloaded Duke.x509 in my D:\javatst\key directory

3) I changed directory to D:\javatst\key and executed
javakey -c Duke true
It seemed to work well

4) I then executed
javakey -ic Duke Duke.x509
It seemed to work well

5) I then ran the appletviewer as follows:
appletviewer http://java.sun.com/security/signExample/writeFile.html

I still get the AppletSecurityException as follows:

D:\javatst\key>appletviewer
http://java.sun.com/security/signExample/writeFile.html
sun.applet.AppletSecurityException: checkwrite
at sun.applet.AppletSecurity.checkWrite(AppletSecurity.java:427)
at java.io.FileOutputStream.<init>(FileOutputStream.java:63)
at writeFile.paint(writeFile.java:34)
at java.awt.Component.dispatchEventImpl(Component.java:1412)
at java.awt.Container.dispatchEventImpl(Container.java:837)
at java.awt.Component.dispatchEvent(Component.java:1393)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
sun.applet.AppletSecurityException: checkwrite
at sun.applet.AppletSecurity.checkWrite(AppletSecurity.java:427)
at java.io.FileOutputStream.<init>(FileOutputStream.java:63)
at writeFile.paint(writeFile.java:34)
at java.awt.Component.dispatchEventImpl(Component.java:1412)
at java.awt.Container.dispatchEventImpl(Container.java:837)
at java.awt.Component.dispatchEvent(Component.java:1393)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)

- Next message: Marianne Mueller: "Re: null-pointer-Exceptions????"
- Previous message: A. C. Sandstrom: "Verifying signatures"