can't communicate with smartcard
843851Aug 25 2003 — edited Sep 13 2006Hi ,
I am a beginner in smartcard application development.I want to develop an application which gets plaintext, sends it to smartcard where RSA Key or DES key resides,should give the cipher text encrypted using key in card as output.
I use a SCM MIcrosystems USB Smartcard reader & GemplusXpresso pro card.
I installed OCF,PC/SC driver for SCM Reader but couldn't get Card service jar for Xpresso card from Gemplus site.
When i write a program to send APDU's to card ,when i run it says follwing error-
java.lang.NullPointerException
at opencard.core.service.CardService.assertSchedulerStillAlive(CardService.java:379)
at opencard.core.service.CardService.allocateCardChannel(CardService.java:321)
at CardProg.doSend(CardPro.java:63)
at CardPro.main(CardPro.java:95)
& program get's halted at the function allocatecardchannel().I can get ATR from the card correctly,but not more than that
i don't know where is the problem,how should i trace it.please help me in sorting out that soon
With Thanks & Regards
Deepak