Dear Cyrus Preuss,

Netscape demands that applet security permissions are set BEFORE something
potentially
dangerous is allowed.
This leads to problems with javax.comm (I don't know whether these have
been fixed in the meantime).
javax.comm loads a library (win32com.dll) in the static initalizer of one
of its classes.
The static initializers are executed during class loading - which is before
security permissions can be set.

I would be very happy if someone could prove me wrong...

Regards,
� � Daniel Ciesinger
|------------------------+------------------------+------------------------|
|                        |   "Cyrus Preuss"       |                        |
|                        |   <Cyrus.Preuss@CyCoSys|   � � � � An:          |
|                        |   .com>                |   <[EMAIL PROTECTED]|
|                        |                        |   g>                   |
|                        |   09.02.00 18:39       |   � � � � Kopie:       |
|                        |                        |                        |
|                        |                        |   � � � � Thema:       |
|                        |                        |   [OCF] Signed Applet  |
|------------------------+------------------------+------------------------|








Hello,

I am trying to develop an applet for Netscape Navigator 4.7 using the OCF
1.2, gemplus-cardTerminal, Sun comm api, Windows NT.
The applet is stored in a signed jar as described in the programmers
manual.
I have placed the win32com.dll in
..\Programme\Netscape\Communicator\Program\java\bin\
loadLibrary("win32com") works fine. That can not be the problem.

Using PCSC seems to be an unsolvable problem. Netscape produces an
unsatisfied link error on loadLibrary("OCFPCSC1.dll"). ...
With IE5 PCSC works fine.

The most important thing for me is to get the gemplus driver running.

Thanks for any help.

Cyrus Preuss

PS: stacktrace....

When the applet starts I get:

[DEBUG � �] opencard.core.service.SmartCard.getRegistryEntry
--- message � tag OpenCard.terminals =
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1
--- thread
Thread[AppletEventDispatcher,5,applet-com.gits.applets.SmartCardApplet.class
]
--- source � �class opencard.core.service.SmartCard

[DEBUG � �] opencard.core.terminal.CardTerminal.<init>
--- message � (mygcr, GCR410, COM1)
--- thread
Thread[AppletEventDispatcher,5,applet-com.gits.applets.SmartCardApplet.class
]
--- source � �class opencard.core.terminal.CardTerminal

opencard.core.terminal.CardTerminalException:
java.lang.NullPointerException
�at java.lang.Throwable.<init>(Compiled Code)
�at java.lang.Exception.<init>(Compiled Code)
�at java.io.IOException.<init>(Compiled Code)
�at opencard.core.OpenCardException.<init>(Compiled Code)
�at opencard.core.terminal.CardTerminalException.<init>(Compiled Code)
�at com.gemplus.opencard.terminal.GemplusSerialCardTerminal.open(Compiled
Code)
�at com.gemplus.opencard.terminal.GemCoreCardTerminal.open(Compiled Code)
�at opencard.core.terminal.CardTerminalRegistry.add(Compiled Code)
�at
com.gemplus.opencard.terminal.GemplusCardTerminalFactory.createCardTerminals
(Compiled Code)
�at opencard.core.service.SmartCard.handleTerminalFactoryEntries(Compiled
Code)
�at opencard.core.service.SmartCard.configureTerminalRegistry(Compiled
Code)
* at opencard.core.service.SmartCard.start(Compiled Code)



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






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