Problem with loading .cap files to card

171 views
Skip to first unread message

Mohammed Alsadi

unread,
Nov 11, 2012, 9:10:31 AM11/11/12
to seek-for...@googlegroups.com
Hello everybody,, Recently i have formatted my computer and then reinstall all the programs and plugins required to write java card applets
but when i tried to load .cap files to the card using JLoad3.1.0 program an error message appears and says : INSTALL (for install) response check failed with SW 6F 00.

Firstly i though that the applet has error, so that i tried to load working applets ( i have tested before ) and unfortunately i got the same error message.

Do you have any ideas about this ???

Wallet.java

Daniel

unread,
Nov 12, 2012, 8:45:41 AM11/12/12
to seek-for...@googlegroups.com
6F00 indicates an uncaught exception in your install method so you can try to catch the error to trace the problem.

Looking at your code I see that you update the OwnerPIN with the bArray, bOffset & bLength without adapting those to the 'applet data' which would need to be specified in the C9 parameter of your INSTALL and MAKE SELECTABLE Jload task.
Have a look into the Java Card wallet example, they first modify the bOffset to omit instance AID & control info.
---
Daniel

James Frank

unread,
Jan 20, 2017, 9:41:57 AM1/20/17
to seek-for-android
I am experiencing a problem. How can I handle this error?

>> 80 E8 00 00 FF C4 82 02 16 01 00 24 DE CA FF ED 02 02 04 00 01 09 02 03 01 04 05 06 07 08 10 10 61 66 72 69 63 61 2F 6A 61 6D 65 73 2F 63 6F 6D 02 00 21 00 24 00 21 00 0C 00 3B 00 52 00 1A 00 DB 00 0A 00 1E 00 00 00 BE 04 10 00 00 00 00 00 00 04 01 00 04 00 3B 04 03 01 07 A0 00 00 00 62 01 01 06 02 10 A0 00 00 00 09 00 03 FF FF FF FF 89 10 71 00 02 02 02 10 A0 00 00 00 09 00 03 FF FF FF FF 89 10 71 00 01 00 01 07 A0 00 00 00 62 00 01 03 00 0C 01 08 02 03 01 04 05 06 07 08 00 70 06 00 1A 00 00 43 80 03 04 00 03 07 02 00 00 00 A0 00 86 80 02 00 81 01 01 08 81 00 00 07 00 DB 00 09 10 18 8C 00 05 18 8D 00 04 87 00 18 8D 00 07 87 01 18 10 0C 90 0B 3D 03 10 44 38 3D 04 10 69 38 3D 05 10 73 38 3D 06 10 70 38 3D 07 10 6C 38 3D 08 10 61 38 3D 10 06 10 79 38 3D 10 07 10 20 38 3D 01
<< 6A 80   Incorrect parameters in the command data field

Download cap failed...

>> cardinfo
>> 80 F2 80 00 02 4F 00 00
<< 08 A0 00 00 00 03 00 00 00 01 9E 90 00

>> 80 F2 40 00 02 4F 00 00
<< 6A 88   Referenced data or reference data not found

>> 80 F2 10 00 02 4F 00 00
<< 6A 88   Referenced data or reference data not found

Card Manager AID   :  A000000003000000
Card Manager state :  OP_READY
Reply all
Reply to author
Forward
0 new messages