Hello OCF-Gurus,

my goal is to write an applet with which user can sign html-forms.
As application it works perfectly, but when trying to use it as an applet I
get the following exception when trying to get a smartcard-instance:

>appletviewer -J-Djava.security.policy=policy index.htm
<---
Caught java.lang.NullPointerException: name can't be null while loading
driver com.sun.comm.Win32Driver
com.gieseckedevrient.opencard.terminal.io.SerialIO::init: Cannot create tty
object - no port identifiers found!
opencard.core.terminal.CardTerminalException:
com.gieseckedevrient.opencard.terminal.GDCardTerminal::createIOAgent:
Cannot construct I/O agent instance.
        at
com.gieseckedevrient.opencard.terminal.GDCardTerminal.createIOAgent(GDCardTerminal.java:577)
        at
com.gieseckedevrient.opencard.terminal.GDCardTerminal.<init>(GDCardTerminal.java:161)
        at
com.gieseckedevrient.opencard.terminal.PCT200CardTerminal.<init>(PCT200CardTerminal.java:96)
        at
com.gieseckedevrient.opencard.terminal.GDCardTerminalFactory.createCardTerminals(GDCardTerminalFactory.java:157)
        at
opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCard.java:432)
        at
opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.java:261)
        at opencard.core.service.SmartCard.start(SmartCard.java:534)
[...]
--->

policy contains:
<---
grant {
  permission java.security.AllPermission;
};
--->

when I use the SUN 1.4  plugin for IE I get a somewhat shorter exception:

<---
com.gieseckedevrient.opencard.terminal.io.SerialIO::init: Cannot create tty
object, reason = [name can't be null].
opencard.core.terminal.CardTerminalException:
com.gieseckedevrient.opencard.terminal.GDCardTerminal::createIOAgent:
Cannot construct I/O agent instance.
      at
com.gieseckedevrient.opencard.terminal.GDCardTerminal.createIOAgent(GDCardTerminal.java:577)
[...]
--->

System:
Windows 2000
JBuilder 4
JRE 1.4
IE 6.0
Cardterminal: Giesecke&Devrient PCT 200   (Towitoko)

The opencard.properties-file is the same as for the application.
I am very new to this, if you need any additional information please ask.
Any hint is appreciated.

Many thanks in advance!
Frank


P.S.: I hope you don't get this twice, in my first attement I forgot to
subscribe to the list.


---
> 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