Dear all:

I am trying an example by referencing the OPPurse example provided 
by Gemxpresso 211 PKIS.  By reading OCF Programmer Guide V1.2 I know how 
to sign the class files (including opencard.opt.netscape.NetscapeSystemAccess.class).
It detected the inserted card after I inserted the card of 
Gemxpresso 211 PKIS into the reader (Gemplus GC410) under Netscape 
Browser thru the PS/SC interface.  But after I included the following 
codes, some exceptions were thrown and found in Java Console.  

          try{
        System.out.println("Insert Gemplus Card");
                ...
                ...
                ...
            // get the OP/VOP specific CardService
            serv = (CardServiceVOP211)
                sc.getCardService(CardServiceVOP211.class, true);

            // create the  high level API library object
            libService = new GemXpressoServiceVOP211();
            // set the OP/VOP CardService to the service library for communication
            libService.setCardService(serv);
                ...
                ...
                ...

            }catch (Exception e){
        System.out.println("Exception caught in initOCF : " + e.getMessage());
            }   
                ...
                ...
                ...

//////////////////////////////////////////////////////////////////////////
// Following Exceptions found in Java Console in Netscape Browser       //             
 
// After I inserted the Card into the reader                            //
//////////////////////////////////////////////////////////////////////////
..
..
using NetscapeSystemAccess.getProperty()
using NetscapeSystemAccess.getProperty()
using NetscapeSystemAccess.getProperty()
Insert Gemplus Card

Exception caught in initOCF : null
at java.lang.Throwable.<init>(Compiled Code)  
at java.lang.Exception.<init>(Compiled Code)  
at java.lang.RuntimeException.<init>(Compiled Code)  
at java.lang.SecurityException.<init>(Compiled Code)  
at netscape.security.AppletSecurityException.<init>(Compiled Code)  
at netscape.security.AppletSecurityException.<init>(Compiled Code)  
at netscape.security.AppletSecurity.checkExit(Compiled Code)  
at java.lang.SecurityManager.checkExit(Compiled Code)  
at java.lang.Runtime.exit(Compiled Code)  
at java.lang.System.exit(Compiled Code)  
at Simple.init(Compiled Code)
* at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)  
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)  
at java.awt.EventDispatchThread.run(Compiled Code)  
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
==========================================================================================

  i don't know how to fix the problem because it just returns the null value.
  Can anyone tell me how to fix it ?

Best regards,
Simon



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