Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

6A80 exception during applet installation

JavaCard Applet Development Related Questions and Answers.
lefibr
Posts: 18
Joined: Thu Feb 18, 2016 2:38 am
Points :171
Contact:

6A80 exception during applet installation

Post by lefibr » Wed Sep 20, 2017 11:19 pm

I am stuck in a problem while downloading and installing my applet(a very simple applet) to a JCOP card. It threw error code "6A 80 ". The following is my applet and command log, could anyone help me figure out where is the problem. Thanks.

Code: Select all


package com.duc.javacard.atcapplet;

import javacard.framework.*;
public class CardApplet extends Applet {
     private CardApplet (byte[] bArray,short bOffset,byte bLength){
              register();
            }
     public static void install(byte[] bArray, short bOffset, byte bLength){
              new CardApplet(bArray, bOffset, bLength);
            }
     public boolean select() {
        return true;
     
       }
     public void deselect() {

       }
                         
     public void process(APDU apdu) throws ISOException {
         
          getBalance(apdu);
     }

     private void getBalance(APDU apdu) {

         byte[] buffer = apdu.getBuffer();

         short le = apdu.setOutgoing();

         if ( le < 2 )
            ISOException.throwIt
                            (ISO7816.SW_WRONG_LENGTH);

         apdu.setOutgoingLength((byte)2);

         buffer[0] = (byte)(0xFF);
         buffer[1] = (byte)(0xFF);

        apdu.sendBytes((short)0, (short)2);

       }
}




Here is the command log:

Code: Select all

--Install for load command:
80E602001009A00000006203010C06000002EF000000
SW: 9000

--Load command 1:
80E80000EFC4820111010013DECAFFED010204000109A00000006203010C0602001F00130
01F000E000B000E0012001E000A00070000005900000000000001010004000B01020107A00000006
2010103000E010AA00000006203010C0601000806001200800300FF00040400000018FFFF0014001
B07001E000140188C00007A04308F0001181D1E8C00027A0110047800107A00207A08000A0000000
000000000000005000E0003068003000100000006000001090007000000030506060B00590100010
0000000000005FF820001000A00050000000000090008000A000A0000000006010014000D0002000
00000040100180000
SW: 9000

--Load Command 2:
80E8800126080001000000000701001B000F00010000000000030008FFFF000A011004B43
10120066800A100
SW: 9000

--Install for install and make selectable:
80E60C002609A00000006203010C060AA00000006203010C06010AA0000000
6203010C0601010002C9000000
SW: 6A80


Tazmania09
Posts: 25
Joined: Mon Nov 30, 2015 3:40 am
Points :178
Contact:

Re: 6A80 exception during applet installation

Post by Tazmania09 » Thu Sep 21, 2017 3:57 am

I tried to download your applet into my card and it succeed. What surprised me is that I have five load trace, but your log shows only two.

Code: Select all

> 80 E6 02 00 16 09 A0 00 00 00 62 03 01 0C 06 08 A0 00 00 00 03 00 00 00 00 00 00 00           
< 00 90 00                                           ...

 > 80 E8 00 00 FA C4 82 01 2A 01 00 2E DE CA FF ED 02 02 04 00 01 09 A0 00 00 00 62 03 01 0C 06 1A 63 6F 6D 2F 64 75 63 2F 6A 61 76 61 63 61 72 64   
    2F 61 74 63 61 70 70 6C 65 74 02 00 21 00 2E 00 21 00 0E 00 0B 00 2A 00 14 00 51 00 0A 00 0E 00  00 00 7C 02 C0 00 00 00 00 00 00 01 01 00 04 00   
    0B 01 03 01 07 A0 00 00 00 62 01 01 03 00 0E 01 0A A0 00 00 00 62 03 01 0C 06 01 00 0C 06 00 14 00 00 00 80 03 00 FF 00 04 04 00 00 00 1C FF FF   
    00 18 00 1F 07 00 51 00 01 40 18 8C 00 01 18 8B 00 04 7A 04 30 8F 00 02 18 1D 1E 8C 00 08 7A 01 10 04 78 00 10 7A 02 20 18 19 8C 00 07 7A 03 22   
    19 8B 00 06 2D 19 8B 00 03 32 1F 05 6D 08 11 67 00 8D 00 09 19 05 8B 00 05 1A 03 02 38 1A 04 02 38 19 03 05 8B 00 00 7A 08 00 0A 00 00 00 00 00   
    00 00 00 00 00 05 00 2A 00 0A 03 80 0A 04 06 00 
 < 00 90 00                                       

 > 80 E8 00 01 FA 80 03 00 01 00 02 00 03 80 0A 07 03 80 03 01 03 80 0A 09 03 80 0A 01 06 00 00 27 06 00 00 01 06 80 07 01 09 00 0E 00 00 00 0A 05   
    04 06 06 0F 07 05 0B 05 0E 0B 00 7C 01 00 01 00 02 00 00 00 00 06 FF 82 00 01 00 16 00 09 00 00 00 00 00 09 00 0C 00 16 00 0A 00 00 00 00 06 01   
    00 18 00 19 00 02 00 00 00 00 04 01 00 1C 00 1B 00 01 00 00 00 00 07 01 00 1F 00 1D 00 06 00 00 00 00 FF 02 00 27 00 1D 00 28 00 00 00 00 00 0A   
    00 21 00 1B FF FF 00 24 00 1B 00 26 00 28 00 1D 00 16 00 26 04 B4 31 01 20 01 10 06 68 00 A1 03 44 10 01 40 02 41 01 B0 0C 02 C0 00 1A 00 25 63   
    6F 6D 2F 64 75 63 2F 6A 61 76 61 63 61 72 64 2F 61 74 63 61 70 70 6C 65 74 2F 43 61 72 64 41 70 70 6C 65 74 00 19 6A 61 76 61 63 61 72 64 2F 66   
    72 61 6D 65 77 6F 72 6B 2F 41 70 70 6C 65 74 00   
 < 00 90 00
                           
 > 80 E8 00 02 FA 00 0F 43 61 72 64 41 70 70 6C 6574 2E 6A 61 76 61 00 06 3C 69 6E 69 74 3E 00 07 28 5B 42 53 42 29 56 00 04 74 68 69 73 00 27 4C    63 6F 6D 2F 64 75 63 2F 6A 61 76 61 63 61 72 64 2F 61 74 63 61 70 70 6C 65 74 2F 43 61 72 64 41 70 70 6C 65 74 3B 00 06 62 41 72 72 61 79 00 02    5B 42 00 07 62 4F 66 66 73 65 74 00 01 53 00 07 62 4C 65 6E 67 74 68 00 01 42 00 07 69 6E 73 74 61 6C 6C 00 06 73 65 6C 65 63 74 00 03 28 29 5A   
    00 08 64 65 73 65 6C 65 63 74 00 03 28 29 56 00 07 70 72 6F 63 65 73 73 00 1C 28 4C 6A 61 76 61 63 61 72 64 2F 66 72 61 6D 65 77 6F 72 6B 2F 41   
    50 44 55 3B 29 56 00 04 61 70 64 75 00 19 4C 6A 61 76 61 63 61 72 64 2F 66 72 61 6D 65 77 6F 72 6B 2F 41 50 44 55 3B 00 0A 67 65 74 42 61 6C 61   
    6E 63 65 00 06 62 75 66 66 65 72 00 02 6C 65 00   
 <00 90 00
                                           
> 80 E8 00 03 FA 00 1A 63 6F 6D 2F 64 75 63 2F 6A  61 76 61 63 61 72 64 2F 61 74 63 61 70 70 6C 6574 00 19 00 01 00 00 00 01 00 02 00 01 00 02 00   
    00 00 00 06 00 03 00 04 00 02 00 01 02 00 09 00 04 00 03 00 00 05 00 06 00 00 00 09 01 00 07 00  08 00 00 00 09 02 00 09 00 0A 00 00 00 09 03 00   
    0B 00 0C 00 00 00 09 00 00 00 03 00 05 00 04 00 07 00 06 00 08 00 08 00 07 00 0D 00 04 00 09 00  0C 02 00 0A 00 03 00 02 00 00 07 00 08 00 00 00   
    0A 01 00 09 00 0A 00 00 00 0A 02 00 0B 00 0C 00 00 00 0A 00 00 00 08 00 09 00 09 00 09 00 0A 00 0E 00 0F 00 01 00 18 02 00 02 00 01 00 01 00 00 
    05 00 06 00 00 00 02 00 00 00 01 00 0C 00 10 00 11 00 01 00 1C 02 00 01 00 01 00 01 00 00 05 00 06 00 00 00 01 00 00 00 00 00 11 00 12 00 13 00   
    01 00 1F 02 00 06 00 02 00 02 00 00 05 00 06 00   
 < 00 90 00                                         

 > 80 E8 80 04 88 00 00 00 06 01 00 14 00 15 00 00 00 06 00 00 00 04 00 15 00 05 00 05 00 16 00 16 00 13 00 02 00 27 02 00 28 00 04 00 0A 00 00 05   
    00 06 00 00 00 28 01 00 14 00 15 00 00 00 28 02 00 17 00 08 00 05 00 23 03 00 18 00 0A 00 0A 00  1E 00 00 00 04 00 1A 00 05 00 09 00 1C 00 0A 00   
    0D 00 1E 00 0E 00 10 00 20 00 11 00 13 00 1F 00 14 00 18 00 22 00 19 00 1C 00 24 00 1D 00 20 00 25 00 21 00 26 00 27 00 27 00 27 00 29 00         
 < 00 90 00
                     
> 80 E6 0C 00 26 09 A0 00 00 00 62 03 01 0C 06 0A 
    A0 00 00 00 62 03 01 0C 06 01 0A A0 00 00 00 62
    03 01 0C 06 01 01 00 02 C9 00 00 00
 <00 90 00     


Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 13 guests

JavaCard OS : Disclaimer