×

Discussion Board

Results 1 to 5 of 5

Threaded View

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    17

    sun.security.smartcardio.PCSCException: Unknown error 0x8010002f

    Hi All

    I am writing java application to talk with smart card (need to format my card)

    every thing is ok till i reach to this command:

    private static byte[] COMMAND2 = {(byte) 0xEF, (byte) 0xFA, (byte) 0xCE, (byte) 0x00, (byte) 0xFF};
    private static CommandAPDU COMMAND2_APDU = new CommandAPDU(COMMAND2);

    it is CARD RECYCLE COMMAND
    i use it to make format for my card


    //Code

    connectWithCard();

    sendAPDU1();

    card.disconnect(true); //Reset must occur before
    try{
    Thread.sleep(1000);
    }
    catch(InterruptedException e)
    {
    System.out.println("Exception for sleep : "+e.getMessage());
    }

    connectWithCard();

    ra=ch.transmit(COMMAND2_APDU);//Exception occur here
    System.out.println("Response due to COMMAND2_APDU : " + arrayToHex(ra.getBytes()));



    //implementation for connectwithCard()
    try {
    card = c.connect("T=0");
    // System.out.println("Terminal connected");
    } catch (Exception e) {
    // System.out.println("Terminal NOT onnected: " + e.toString());

    }

    System.out.println("ATR: " + arrayToHex(((ATR) card.getATR()).getBytes()));
    ch = card.getBasicChannel();





    Exception is:

    javax.smartcardio.CardException: sun.security.smartcardio.PCSCException: Unknown error 0x8010002f

    What should i do ?

    Thanks in Advance
    Last edited by Nabil_java; 2008-08-08 at 15:06.

Similar Threads

  1. illegal use of abstract class error...
    By kannabiran.krish in forum Symbian
    Replies: 7
    Last Post: 2007-08-17, 10:11
  2. ERROR RCmake.exe AND rcomp.exe
    By jifik in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2005-10-31, 12:24
  3. Errors compilling and debugging Helloworld
    By doberlet in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2004-03-04, 18:08
  4. Codewarrior import .mmp error
    By serenade in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-02-21, 20:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •