cliffdeclerck / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
0 stars 0 forks source link

running sign-files.jsp produces nullpointer exception #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the sign-files.jsp example
2. click continue
3. generic error is produced

What is the expected output? 
I should be able to select a file for signing.

What do you see instead?
I get a 'generic error' message

What version of the product are you using? On what operating system?
1.0.0-rc-1 on windows xp SP3

Please provide any additional information below.

This is the stacktrace. There seems to be a problem with JFileChooser

eID Applet - Copyright (C) 2008-2009 FedICT.
Released under GNU LGPL version 3.0 license.
More info: http://code.google.com/p/eid-applet/
checking applet privileges...
security manager permission check for java 1.6...
checking web application trust...
running privileged code...
eID browser applet version: 1.0.0-rc-1
Java version: 1.6.0_17
Java vendor: Sun Microsystems Inc.
OS: Windows XP
OS version: 5.1
OS arch: x86
Web application URL: https://racer:8443/eid-applet-test/sign-files-applet.jsp
Current time: Mon Dec 14 23:20:12 CET 2009
sending message: HelloMessage
current protocol state: null
protocol state transition: INIT
SSL handshake finish cipher suite: SSL_RSA_WITH_RC4_128_MD5
response message: FilesDigestRequestMessage
current protocol state: INIT
protocol state transition: DIGEST
files digest algorithm: SHA-1
Select files...
error: null
error type: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>:-1
at javax.swing.ImageIcon.<init>:-1
at sun.swing.WindowsPlacesBar.<init>:-1
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder:-1
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents:-1
at javax.swing.plaf.basic.BasicFileChooserUI.installUI:-1
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI:-1
at javax.swing.JComponent.setUI:-1
at javax.swing.JFileChooser.updateUI:-1
at javax.swing.JFileChooser.setup:-1
at javax.swing.JFileChooser.<init>:-1
at javax.swing.JFileChooser.<init>:-1
at be.fedict.eid.applet.Controller.performFilesDigestOperation:560
at be.fedict.eid.applet.Controller.run:328
at be.fedict.eid.applet.Applet$AppletThread$1.run:483
at java.security.AccessController.doPrivileged:-2
at be.fedict.eid.applet.Applet$AppletThread.run:478
at java.lang.Thread.run:-1
Generic Error.

Original issue reported on code.google.com by frank.mo...@gmail.com on 14 Dec 2009 at 10:24

GoogleCodeExporter commented 9 years ago
Weird... the NPE occurs on the following line of code:
JFileChooser fileChooser = new JFileChooser();

I'm afraid that there is not much I can do about this error. Seems to be an 
issue
with the JRE itself.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4711700

Original comment by frank.co...@gmail.com on 15 Dec 2009 at 1:23

GoogleCodeExporter commented 9 years ago
FYI

I have resolved this issue meanwhile. Apparently on my development PC the icon 
cache
was somehow corrupted. This resulted in JFileChooser being unable to access the 
"My
Computer" icon, hence the nullpointer exception. 

Best regards,
Frank

Original comment by frank.mo...@gmail.com on 16 Jan 2010 at 1:11

GoogleCodeExporter commented 9 years ago

Original comment by frank.co...@gmail.com on 19 Apr 2010 at 12:52