Davide,

     The error code A2h comes from a bad configuration of the reader in the
     opencard.properties file. You've put GCR410 and you probably use
     another reader like a GCR400 or GCR500.

     Check your reader and make sure your application is looking at the
     right properties file :

     1. [java.home]/lib/opencard.properties
     2. [user.home]/.opencard.properties
     3. [user.dir]/opencard.properties
     4. [user.dir]/.opencard.properties

     See Opencard Framework Programming Guide

     Sincerely,

     Patrick Biget.
     Gemplus Research Lab.



____________________________ S�parateur R�ponse ________________________________
Objet :   [OCF] Error A2
Auteur :  "Davide Fiorentino" <[EMAIL PROTECTED]> � INTERNET
Date :    09/07/99 09:49






I'm trying to use a GCR410 and GPM896 smartcard.

I wrote
SmartCard.start();
SmartCard gpm = SmartCard.waitForCard(new
CardRequest(PassThruCardService.class));
I implemented the class with CTListener and defined the void cardInserted and
cardRemoved.
The reader recognize the events, but it close generating that excepiton once a
card is inserted.

I thank you in advance of reading this mail.
-------------------------------------------------------------------------
-----------------------------------
The errors I got from the reader is
-------------------------------------------------------------------------
-----------------------------------
opencard.core.terminal.CardTerminalException: got errorcode A2h from card reader
 at
com.gemplus.opencard.terminal.GemplusSerialCardTerminal.powerUpCard(GemplusSeria
lCardTerminal.java:531)
 at
com.gemplus.opencard.terminal.GemCoreCardTerminal.powerUpCard(GemCoreCardTermina
l.java:276)
 at
com.gemplus.opencard.terminal.GemplusSerialCardTerminal.getCardID(GemplusSerialC
ardTerminal.java:431)
 at
com.gemplus.opencard.terminal.GemplusSerialCardTerminal.getCardID(GemplusSerialC
ardTerminal.java:397)
 at opencard.core.terminal.Slot.getCardID(Slot.java:120)
opencard.core.service.CardServiceRegistry.getSmartCard(CardServiceRegistry.java:
299)
 at opencard.core.service.SmartCard.getSmartCard(SmartCard.java:369)
opencard.core.service.CardWaiter.cardInserted(CardWaiter.java:93)
opencard.core.terminal.CardTerminalRegistry.cardInserted(Compiled Code)
 at opencard.core.terminal.CardTerminal.cardInserted(Compiled Code)
 at com.gemplus.opencard.terminal.GemplusSerialCardTerminal.poll(Compiled Code)
 at opencard.core.terminal.CardTerminalRegistry.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:466)
-------------------------------------------------------------------------
-----------------------------------
My opencard.properties
-------------------------------------------------------------------------
-----------------------------------
OpenCard.services = opencard.opt.util.PassThruCardServiceFactory
OpenCard.terminals =
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1
OpenCard.trace = opencard:4 com.ibm:4 com.gemplus.opencard.terminal:8



 ----------------------------------------------------------------
 INFORMATION    AUTOMATIC VIRUS CHECK (GEMPLUS)   No virus known.
 ----------------------------------------------------------------






 ----------------------------------------------------------------
 INFORMATION    AUTOMATIC VIRUS CHECK (GEMPLUS)   No virus known.
 ----------------------------------------------------------------





Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.

Reply via email to