Classic problem with Gemalto / GPShell
843851Mar 5 2010 — edited Mar 6 2010G'morning,
I'm currently developing a javacard-applet for usage on a Gemalto Cyberflex 64k V2 Pegasus. JDK 1.4, JC2.1, GPShell 1.4.0.
I compile the java-file with "-target 1.1", use the converter to get the cap.file, translate the cab into a cab.transf-file and try to transmit this file to my card.
//GPShell-script:
mode_201
enable_trace
establish_context
card_connect
select -AID a000000003000000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
delete -AID a00000006203010c0701
delete -AID a00000006203010c07
install_for_load -pkgAID a00000006203010c07 -sdAID a000000003000000 -nvCodeLimit 16000
load -file AccountApplet.cap.transf
file name AccountApplet.cap.transf
// everything is answered with a 009000 response-apdu, so far so good
install_for_install -instParam 0 -priv 02 -AID a00000006203010c0701 -pkgAID a00000006203010c07 -instAID a00000006203010c0701 -nvDataLimit 16000
Response <-- 6A80
install_for_install_and_make_selectable() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)
The AIDs are correct, I seem to mess with the parameters here somehow else.
My applet looks pretty much like the example found here: http://72.5.124.102/thread.jspa?messageID=10778230 except that I covered every int/short/byte with a cast.
I'm searching for days now, however I can't find any clue what's the incorrect value here... plz help, TIA!
p.s. the helloworld-example with the same lineup works fine.