Hi!

I'm a Beginner in SmartCard Stuff.
Since two days I have a SCM Chipdrive micro 120.
I want to read out my insurance card (known as Krankenversicherungskarte
or KVK). Before I write this mail, I searched the hole
mailinglist-archive, but found nothing. So I hope anybody can help.

Here is my Problem: When I try to access a normal Mobile-SIM-Card with
the GetCardID Demo, I get a "normal" ATR Code. When I try the same with
my insurance card, I get an ArrayIndexOutOfBoundsException. 
The Output:
-------------------------------
start use case: get a card ID

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at opencard.core.terminal.CardID.<init>(CardID.java:122)
        at opencard.core.terminal.CardID.<init>(CardID.java:153)
        at
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal.requestCard(PcscMi
gCardTerminal.java:419)
        at
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal.powerUpCard(PcscMi
gCardTerminal.java:329)
        at
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal.getCardID(PcscMigC
ardTerminal.java:297)
        at
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal.getCardID(PcscMigC
ardTerminal.java:271)
        at
opencard.core.service.CardServiceRegistry.getSmartCard(CardServiceRegist
ry.java:303)
        at
opencard.core.service.SmartCard.getSmartCard(SmartCard.java:388)
at opencard.core.service.CardWaiter.cardInserted(CardWaiter.java:98)
        at
opencard.core.event.EventGenerator.createEventsForPresentCards(EventGene
rator.java:140)
        at
opencard.core.service.CardWaiter.waitForCard(CardWaiter.java:138)
        at
opencard.core.service.SmartCard.waitForCard(SmartCard.java:599)
        at
opencard.core.service.SmartCard.waitForCard(SmartCard.java:570)
        at demos.samples.GetCardID.main(GetCardID.java:70)
-------------------------------

With an little test-program, I found out, that this error occurs, when
the Program waits for a card:
        SmartCard sc = SmartCard.waitForCard( cr );

In an other Question/Answer I have read, that it has to do with the
PcscMigCardTerminalFactory instead of the Pcsc10CardTerminalFactory.
This could be, but you have to know, that only with the
PcscMigCardTerminalFactory the LED on my Reader indicates Working on it,
when I Try to Access a card.

Is it true, that I have to write a special Card Service for the
insurance card? Someone else wrote in this list, that he has implemented
access via FileAccessService. 

I hope for help!!!
Thanx to everyone!!!


Daniel


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