6 Replies Latest reply: Jun 11, 2012 7:57 AM by Umer RSS

    Problem in loading applet into java card.

    939202
      Hi all,

      I have developed an applet using java card development kit 2.2.2 and JDK1.5. The cap file is generated successfully. Am using gpshell to load applet into the card but am getting an error saying "Error : load_applet() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)" . Can anyone please tell me where am wrong. My install file contains :
      mode_211
      enable_trace
      establish_context
      card_connect
      select -AID a0000000030000
      open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
      delete -AID a00000006203010c0101
      delete -AID a00000006203010c01
      delete -AID a00000006203010c0101
      install -file wallet.cap -nvCodeLimit 28500 -nvDataLimit 28500 -instParam 00 -priv 2
      card_disconnect
      release_context

      and when i execute gpshell install.txt, i get error like :

      mode_211
      enable_trace
      establish_context
      card_connect
      select -AID a0000000030000
      Command --> 00A4040007A0000000030000
      Wrapped command --> 00A4040007A0000000030000
      Response <-- 6F658408A000000003000000A5599F6501FF9F6E06405163452900734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012A026E01029000
      open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
      Command --> 80CA006600
      Wrapped command --> 80CA006600
      Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012A026E01029000
      Command --> 8050000008F156D9048BF4FB6800
      Wrapped command --> 8050000008F156D9048BF4FB6800
      Response <-- 00008247040433914208FF020052DF76EF50F6457F4F16E031638B009000
      Command --> 84820100109D59E7CE033B4A5B70115EB7CA3F523C
      Wrapped command --> 84820100109D59E7CE033B4A5B70115EB7CA3F523C
      Response <-- 9000
      delete -AID a00000006203010c0101
      Command --> 80E400800C4F0AA00000006203010C010100
      Wrapped command --> 84E40080144F0AA00000006203010C01011C9450FF5E3DCB3800
      Response <-- 6A88
      delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
      delete -AID a00000006203010c01
      Command --> 80E400800B4F09A00000006203010C0100
      Wrapped command --> 84E40080134F09A00000006203010C013421B120E65613F100
      Response <-- 009000
      delete -AID a00000006203010c0101
      Command --> 80E400800C4F0AA00000006203010C010100
      Wrapped command --> 84E40080144F0AA00000006203010C010136D28BC08D59D9FA00
      Response <-- 6A88
      delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
      install -file wallet.cap -nvCodeLimit 28500 -nvDataLimit 28500 -instParam 00 -priv 2
      Command --> 80E602002009A00000006203010C0608A000000003000000000AEF08C6026F60C7026F540000
      Wrapped command --> 84E602002809A00000006203010C0608A000000003000000000AEF08C6026F60C7026F54005A411C50F04D651900
      Response <-- 009000
      Command --> 80E80000EFC48203BD010013DECAFFED010202000109A00000006203010C0602001F0013001F000000150062001201CB000A003C000700D600000000000002000004001502030107A0000000620101000107A000000062000106001200800302000104040000005CFFFF004F00640701CB000543188C0003188F00133D0610088C00028700191E2529041E160441044131191E2529051E160541044131191E252906AD00191E044116068B0004188B00057A05308F00063D181D1E8C00073B7A0110AD008B00086104037804780110AD008B00097A0221198B000A2D198B000B60101A042510A46B037A116E008D000C1A032510
      Wrapped command --> 84E80000F7C48203BD010013DECAFFED010202000109A00000006203010C0602001F0013001F000000150062001201CB000A003C000700D600000000000002000004001502030107A0000000620101000107A000000062000106001200800302000104040000005CFFFF004F00640701CB000543188C0003188F00133D0610088C00028700191E2529041E160441044131191E2529051E160541044131191E252906AD00191E044116068B0004188B00057A05308F00063D181D1E8C00073B7A0110AD008B00086104037804780110AD008B00097A0221198B000A2D198B000B60101A042510A46B037A116E008D000C1A032510CCBBB987BED1F686
      Response <-- 6A80
      load_applet() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)


      Thanks in advance