iButton with JavaTM Status Word Responses, Error Codes and Exception Codes



Some of these error codes are also hyper-text links. Following these links will take you to the Java Ring FAQ section that has a discussion of this error by a Dallas Semiconductor engineer.


Status Words

Loader Status Words

Insufficient Memory  0x6400
Incomplete Packet  0x6A87
Invalid Signature  0x6982
Invalid Packet  0x6A87
Class Length Overrun  0x6A84
Invalid Loader Command  0x6A86
Invalid AID Length  0x6901
Invalid API Version  0x6902
Invalid Password  0x6903
Invalid Signature Length  0x6904
Hash Corruption  0x6905
Hash Failure  0x6906
Success Packet  0x6301
Success Load  0x9000

 

AID Status Words  

Unable to Select Applet 0x8453
Unable to Find Applet 0x8450
Unable to Select Applet 0x6A82

 
 

Command Processor Status Words  

Bad Master PIN 0x6681

 

Virtual Machine Status Words 

Uncaught Exception 0x6F00

 

ISOExceptions

SW_BYTES_REMAINING_00 0x6100
SW_CLA_NOT_SUPPORTED 0x6E00
SW_CONDITIONS_NOT_SATISIFED 0x6985
SW_CORRECT_LENGTH_00 0x6C00
SW_DATA_INVALID 0x6984
SW_FUNC_NOT_SUPPORTED 0x6A81
SW_INCORRECT_P1P2 0x6A86
SW_INS_NOT_SUPPORTED 0x6D00
SW_NO_ERROR 0x9000
SW_PIN_REQUIRED 0x6982
SW_RECORD_NOT_FOUND 0x6A83
SW_SECURITY_STATUS_NOT_SATISFIED 0x6982
SW_UNKNOWN 0x6F00
SW_WRONG_DATA 0x6A80
SW_WRONG_LENGTH 0x6700
SW_WRONG_P1P2 0x6B00

 

Error and Exception Bytes


What does it mean when APDU Sender's Get Last Error method reports "None or Coprocessor"?

Error bytes (values supplied by the JCRE when a VM generated error occurs)

StackOverflowError 0x61
OutOfMemoryError 0x62
UnknownError 0x63
InternalError 0x64
IllegalAccessError 0x65

 

Exception bytes (values supplied by the JCRE when an uncaught exception occurs)

Exception Name
JiB32
(ver. 0.03)
JiB33, 34, 35, 36
(ver. 1.0x)
JiB4x, JiB51
(ver. 1.1x, 2.00)
JiB52
(ver. 2.2)
JiB53
(ver. 2.21)
ArithmeticException
0x01,0x81
0x04,0x84
0x07,0x87
0x0D,0x8D
0x27,0xA7
ArrayIndexOutOfBoundsException
0x02,0x82
0x05,0x85
0x08,0x88
0x0E,0x8E
0x28,0xA8
ArrayStoreException
0x03,0x83
0x06,0x86
0x09,0x89
0x10,0x90
0x29,0xA9
ClassCastException
0x04,0x84
0x07,0x87
0x0A,0x8A
0x11,0x91
0x1F,0x9F
Exception
0x05,0x85
0x08,0x88
0x0B,0x8B
0x0B,0x8B
0x23,0xA3
IndexOutOfBoundsException
0x06,0x86
0x09,0x89
0x0C,0x8C
0x0F,0x8F
0x25,0xA5
NegativeArraySizeException
0x07,0x87
0x0A,0x8A
0x0D,0x8D
0x12,0x92
0x2A,0xAA
NullPointerException
0x08,0x88
0x0B,0x8B
0x0E,0x8E
0x13,0x93
0x26,0xA6
RuntimeException
0x0A,0x8A
0x0D,0x8D
0x10,0x90
0x0A,0x8A
0x22,0xA2
SecurityException
0x0B,0x8B
0x0E,0x8E
0x11,0x91
0x14,0x94
0x24,0xA4
Throwable
0x0C,0x8C
0x0F,0x8F
0x12,0x92
0x0C,0x8C
0x21,0xA1
APDUException
0x0F,0x8F
0x12,0x92
0x15,0x95
0x18,0x98
0x11,0x91
ISOException
0x12,0x92
0x15,0x95
0x18,0x98
0x1B,0x9B
0x1D,0x9D
PINException
0x14,0x94
0x18,0x98
0x1B,0x9B
0x15,0x95
0x14,0x94
SystemException
0x17,0x97
0x1B,0x9B
0x1E,0x9E
0x1F,0x9F
0x16,0x96
TransactionException
0x18,0x98
0x1C,0x9C
0x1F,0x9F
0x20,0xA0
0x17,0x97
UserException
0x19,0x99
0x1D,0x9D
0x20,0xA0
0x21,0xA1
0x1A,0x9A
CoprocessorException
N/A
0x02,0x82
0x02,0x82
0x00,0x80
0x31,0xB1
PrimeException
N/A
N/A
0x06,0x86
0x08,0x88
0x2B,0xAB
CryptoException
N/A
N/A
0x23,0xA3
0x27,0xA7
0x05,0x85
RSAKeyGeneratorException
N/A
N/A
N/A
0x06,0x86
0x2D,0xAD

Can Ignore MS bit of exception code!

iButton Homepage: http://www.ibutton.com/