Java Card - Unknown error 0x8010002f with smartcardio

Hello everybody,

I am working with the javax.smartcardio package and a smartcard reader ACS ACR38U. I am able to get the terminal and the card information. I'm using and sle4442 card (T=0). But when i try to send any apducommand i get this error:

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

the code is:

byte [] pin = new byte[]{(byte)0xff, (byte)0xff, (byte)0xff};

TerminalFactory t = TerminalFactory.getDefault();

CardTerminals c = t.terminals();

CardTerminal term = c.getTerminal("ACS ACR38U 0");

CommandAPDU comando = new CommandAPDU(0, 32, 0, 0, pin, 2);

ResponseAPDU respuesta = canal.transmit(comando);

The card pin is FFFFFF.

I don't know if the problem is on the pin of the card, i'm trying the verify command to introduce the pin. I don't know what's happening.

Can anyone help me?

Kind regards.

[949 byte] By [trifoncilloa] at [2007-11-26 23:03:48]
# 1
HiI think the problem is your pin: If you can enter it as "FFFFFF" on a terminal it's newer 0xff 0xff 0xff binary.Code it as byte[] pin = "FFFFFF".getBytes();CheersMasi
Masia at 2007-7-10 13:56:06 > top of Java-index,Java Mobility Forums,Consumer and Commerce...