Hello,

Hopefully theres someone out there who can help me.I'm
looking for an awnswer to an OCF problem thats been
bugging me for a while now.

I have written an opencard program that I am hoping to
run from a web browser, using the java plugin and the
security model for jdk1.2(I am using a GemPlus reader
connected to the com1 port).However, I am getting an
error when I try to run the applet in the browser.
The same program works perfectly from appletViewer, so
I am pretty sure that my problem lies with security.

I have generated my own certificate for testing
purposes, and signed the applet in question.
I think that maybe the problem is when the
opencard.properties file is read - maybe it does not
have permission to read it, i'm not exactly sure.

I have placed the opencard.properties file in all the
recommended locations (user.home, etc) and I know that
it is being read from somewhere (The com1 property
appears in the system properties list in the java
console window) but the bug remains. Any help would be
greatly appreciated. my e-mail address is:
[EMAIL PROTECTED]

thanks for your help.

Here is the error stack:

Exception caught in doInit :
java.lang.NullPointerException

opencard.core.terminal.CardTerminalException:
java.lang.NullPointerException

        at
com.gemplus.opencard.terminal.GemplusCardTerminal.open(Unknown
Source)

        at
com.gemplus.opencard.terminal.GemplusCardTerminal.open(Unknown
Source)

        at
opencard.core.terminal.CardTerminalRegistry.add(CardTerminalRegistry.java:132)

        at
com.gemplus.opencard.terminal.GemplusCardTerminalFactory.createCardTerminals(Unknown
Source)

        at
opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCard.java:413)

        at
opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.java:255)

        at
opencard.core.service.SmartCard.start(SmartCard.java:527)


Here is my .java.policy file (on my user.home
directory):

keystore ".keystore";

grant signedBy"francis"{

permission java.util.PropertyPermission "user.home",
"read";
permission java.security.AllPermission;       
permission java.io.PropertyPermission "*", "read,
write";
permission java.util.PropertyPermission "*",
"read,write";
permission java.io.FilePermission
"${java.home}/lib/opencard.properties", "read";
permission java.io.FilePermission
"${user.home}/opencard.properties", "read";
permission java.io.FilePermission
"${user.dir}/opencard.properties", "read";
permission java.io.FilePermission
"${user.dir}/.opencard.properties", "read";


permission java.lang.RuntimePermission
"loadLibrary.*";
permission java.lang.RuntimePermission
"reflect.declared.*";
};







__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to