Problem in loading applet into java card.

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

Hi all,
Sorry above i forgot to mention the java card am using. It is JCOP21 and in its datasheet its mentioned that it specification needed are javacard development kit 2.2.1, is that may be the reason for this error?
Thanks in advance

Similar Messages

  • Load Applet to Java card

    hi,
    I load A applet to java card. Then i load B applet.
    But i want to load if key match then only load A or B applet.
    How can i maintain load applet.
    I am using Eclipse SDK JCOP31 tool.

    thanks for reply.
    I am using Eclipse SDK JCOP 31 tools for Java card applet development and loading same into java card.
    when  loading applet into java card some internal authentication process is handled by JCOP.
    But i don't have clear idea about this authentication process.
    So can any one explain which algorithm they used for authentication & how they will be setting the Key for the same.
    If i want to change the algorithm and key in JCOP how i can proceed?
    Regard,
    Senthil

  • Error on installing applet into JAVA Simulator

    Hello all, i have a very basic question (well...for this you can see how newbie i am...)
    I'm having problems installing an applet into the simulator.
    My helloWorld.src file looks like this:
    powerup;
    // Select the installer applet
    0x00 0xA4 0x04 0x00 0x09 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x08 0x01 0x7F;
    // create HelloWorld
    0x80 0xB8 0x00 0x00 0x0b 0x09 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x1 0x00 0x7F;
    // Select HelloWorld
    0x00 0xA4 0x04 0x00 9 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x1 0x7F;
    powerdown;I run cref like this:
    cref -o demoeeand apdutool like this:
    apdutool helloWorld.scr > hello.outthen, the result i get is:
    Java Card 2.2.2 APDU Tool, Version 1.3
    Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    Opening connection to localhost on port 9025.
    Connected.
    Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x01
    CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 09, a0, 00, 00, 00, 62, 03, 01, 08, 01, Le: 00, SW1: 90, SW2: 00
    CLA: 80, INS: b8, P1: 00, P2: 00, Lc: 0b, 09, a0, 00, 00, 00, 62, 03, 01, 0c, 01, 00, Le: 00, SW1: 64, SW2: 43
    CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 09, a0, 00, 00, 00, 62, 03, 01, 0c, 01, Le: 00, SW1: 6d, SW2: 00so, the 6443 means
    Applet not found for installation.
    �Cause: An attempt was made to create an applet instance, but the applet code was not installed on the card.
    �Solution: Verify that the applet package has been downloaded to the card.
    so, what step did i miss here??
    thank you
    PS: i also tried with JCWDE but the error was the same
    Message was edited by:
    Helri

    I've noticed that my applet uses the java.lang package. For what i've read the CREF only has installed the Installer Applet and the javacard.framework package, so can that be the problem? i.e., do I have first to load the java.lang package into the simulator??
    I really need help...i'm literally stuck on this....

  • Is OCF related to loading applet into the sim

    I've read some text about OCF(Open Card Framework) it is said that it is an interface to both smart card reader and applications on the sim. if we take "the application on the sim" same as "Installer Applet" then the ocf stands in the place which the problem of loading applet exists.
    could you please explain:
    Can I use OCF for witing a programm to load my applet into card?
    Is There any other way to do the task??

    If it is a GlobalPlatform card, there are some simple steps to validate if your card is locked/terminated
    1. send GET DATA on some tag you know for sure is in the data store of the CardManager
    2. If this works, try to authenticate (INIT-UPD, EXT-AUTH)
    3. If this works, GET STATUS on ISD --> AID and life cycle of the CM
    - If 1. does not work, then your default select application is not the ISD --> contact the issuer for the AID
    - If 2. does not work, then your card is locked or terminated
    - If 3. does not work, then the GP secure channel protocol on-card has a different implementation than your off-card tool/API (most likely with a Gemalto card)

  • Delete my applet in java card. Its coming 69 85 error

    hi,
    Any body give me solution for delete applet from java card.
    I am using Eclipse SDK JCOP tool. I create Shareable object in java card.
    First time i load it. Second time start to load my applet but it showing
    cm> ext-auth plain
    => 84 82 00 00 10 24 99 56 8D FE 6F CF B4 F8 E7 AB .....$.V..o.....
    69 E0 8B DD C6 i....
    (42750 usec)
    <= 90 00 ..
    Status: No Error
    cm> delete -r 0505050505
    => 80 E4 00 80 07 4F 05 05 05 05 05 05 00 .....O.......
    (9683 usec)
    <= 69 85 i.
    Status: Conditions of use not satisfied
    jcshell: Error code: 6985 (Conditions of use not satisfied)
    jcshell: Wrong response APDU: 6985
    Ignoring expected error
    cm> upload -b 250 "D:\Handheld\ObjectShare\bin\hcl\demo\server\javacard\server.cap"
    => 80 E6 02 00 12 05 05 05 05 05 05 08 A0 00 00 00 ................
    03 00 00 00 00 00 00 00 ........
    (10845 usec)
    <= 69 85 i.
    Status: Conditions of use not satisfied
    jcshell: Error code: 6985 (Conditions of use not satisfied)
    jcshell: Wrong response APDU: 6985
    Unexpected error; aborting execution
    how to solve this problem.

    hi safeer,
    I solve this problem. First I delete select applet AID. Then delete package AID.
    Now its working good.

  • Problem on loading applet netscape4.73 in macos9 very urgent pls help me

    Hello,
    Problems on loading applet in Netscape4.73(jre1.1.5) AppleMac OS-9.
    when i try to load applet of size ~ 200kb in Netscape 4.73 AppleMac os9, then browser abruptly closing with the AppleMac os error message :- the Applicarion " Netscape Communicator " has unexpectedly quit because an error of type 2 occured. And then asking for system restart.
    Since i am new to the AppleMac environment i cant adjust the settings please help me to overcome the problem. Its Very urgent and i am in great hurry pls.
    thanks in advance.
    Rao. V.N.

    Hi Rao,
    I'm not a mac-os specialist (even I had some business with mac !!), and it is very difficult speaking in blind, but I have severals questions that may help you.
    - Did you try you applet in other AppleMac plateform ?
    - Does your applet work fine in other browser/plateform ?
    - Does a small applet work fine on this plateform with this browser ?
    - Does you applet contains instructions like System.exit, System.* or try to access (read or write) to local files ?
    Otherelse it is possible you have problem with your jre config, try to configure your plugin with command like : -Xmx64m -Xms16m
    (These commands tell the plugin to use at least 16 Mo memory and 64 Mo for the maximum see : http://java.sun.com/docs/hotspot/gc/)
    Hope that will help you

  • Problem while loading applet in opera- very urgent please

    hi,
    I am having problem while loading applet in opera browser. Showing "Applet loading " continuously. I am trying to use URLConnection to read information from applet's own host. I cant find the exact problem what is happening, Since there is no error message in browser Javaconsole.
    If anybody have idea on this please help me. I am in great hurry.
    Thanks in advance.
    Rao. V

    hi this is rao,
    I inserted a lot of System.out statements throughout applet life cycle. But they are not displaying in java console. I think the problem is in Opera-java settings. Since i am new to the opera environment i cant get right solution.
    Please help me if anybody having clear idea on this aspect.
    thanks in advance

  • Facing  problem while loading data into XI

    Hi All,
    I am facing a peculiar problem while loading data into XI when we load small amount of data say 5-10 records these records gets processed, but when we try to load a bit higher volume say 100-500 which comes out to be around 7 record s per second then the record processing gets stalled. That is it gives a message that "recorded for outbound processing".
    So can any body throw some light on it and can tell us why we rare facing such problem and how can we resolve that problem.
    Thanks in Advance.
    Regards
    rahul

    Hi rahul,
    Deregistering and Registering the Queue is a temporary solution.
    The better way to this would be to Tune your Xi system as already mentioned by Vijaya as mentioned in the guide ,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7fdca26e-0601-0010-369d-b3fc87d3a2d9
    Regards,
    Bhavesh

  • Problem in loading applet

    Hi...
    i m facing problem in loading my applet, my root directory (Chat) is placed in webapps. i m copying my classes in WEB-INF/classes & then in a package, named 'chat'.... which includes all my beans & applets... i m using JApplet component from swing .... i m gettin following error msg when i try to load it on a webpage
    oad: class ChatServer.class not found.
    java.lang.ClassNotFoundException: ChatServer.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    i even tried with the <jsp:plugin>, but it didn't work, can anyone guide me what shall i need to do if i want to load the applet from the same arrangement?
    thanx

    Use the plugin for your browser that corresponds to the version of the JDK that the server is running, ie 1.2 plugin for 1.2 server.
    jairag wrote:
    Hi!
    When I try this Hello example of weblogic in 4.5 I am getting the following error.
    How to resolve this?
    Very Urgent.
    thanks in advance.
    regards,
    jai
    HelloApplet: an exception occurred:
    [Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.io.EOFException]]javax.naming.CommunicationException
    at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
    at weblogic/jndi/toolkit/ExceptionTranslator.toNamingException
    at weblogic/jndi/WLInitialContextFactory.toNamingException
    at weblogic/jndi/WLInitialContextFactory.newContext
    at weblogic/jndi/WLInitialContextFactory.getInitialContext
    at weblogic/jndi/Environment.getContext
    at weblogic/jndi/Environment.getInitialContext
    at weblogic/rmi/Naming.getContext
    at weblogic/rmi/Naming.lookup
    at HelloAppletLocal.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    --------------- nested within: ------------------
    weblogic.rmi.UnknownHostException: Could not init server [T3://sanjay:7001/HelloServer]
    - with nested exception:
    [[Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.io.EOFException]]javax.naming.CommunicationException]
    at weblogic/rmi/Naming.getContext
    at weblogic/rmi/Naming.lookup
    at HelloAppletLocal.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run

  • Problem in loading applet in HotJava browser

    I am having a problem in loading a simple applet in HotJava
    browser
    The code of the applet is shown below
    import java.awt.*;
    import java.applet.*;
    public class HelloJava extends Applet
    public void paint(Graphics g)
    g.drawString("Hello Java", 10, 100);
    The code of the HTML file HelloJava.html is shown below :
    <HTML>
    <! This page includes a welcome title in the title bar and also
    displays a welcome message. Then it specifies the applet to
    be loaded and executed.
    >
    <HEAD>
    <TITLE>
    Welcome to Java Applets
    </TITLE>
    </HEAD>
    <BODY>
    <CENTER>
    <H1> Welcome to the World of Applets </H1>
    </CENTER>
    <BR>
    <CENTER>
    <APPLET
    CODE = HelloJava.class
    WIDTH = 400
    HEIGHT = 200 >
    </APPLET>
    </CENTER>
    </BODY>
    </HTML>
    ON opening the HTML file in HotJava Browser, the following error comes up :
    HelloJava: class not loaded: file:/D:/Poonam/Java/Src1/HelloJava.class:
    java.lang.ClassNotFoundException: HelloJava: class not loaded: file:/D:/Poonam/Java/Src1/HelloJava.class

    Well the obvious question is what is utilities.PropertyManager up to at line 23? It appears to be trying to get the system classloader which applets aren't allowed to do.
    You should probably be using the ClassLoader from the class in question.

  • Problem in loading applets

    HI,
    Im facing a problem when im trying to open a URL containing a applet in IE 7.
    When i checked in the settings of IE the JVM used for loading of applets is java 2 v 1.5.0_03.
    This JRE is installed in my system.
    The error im getting in the browser is
    "THe JAVA RUN TIME ENVIRONMENT CANNOT BE LOADED"

    Well, this needs further investigation, Mr. Watson ;)
    Looking at the output you provided, it seems to me that you ommited the cache_version parameter. (on purpose?)
    The caching process involves the check for newer versions of the jars: this can be done either using the version tag, or letting plugin compare the cached jars with the ones on the server using their timestamp. According to the output you've got, the verification is done using that timestamp. This might be the problem.
    Did you check the logs of your webserver -you're using apache, right? Nothing unusual there? Raised debuglevel there?
    You could try to exclude some possible problems by trying to change the verification process: Instead of using the timestamp, give it a try and use version numbers for your jars.
    Since the version numbers are coded in the object tag in your jsp page, plugin can do the verification without getting the jar-files' timestamps.
    If this solves the problem, the timestamp is definitely the cause of your trouble.
    ;)

  • Load file to java card?

    Hi
    Is there any way to load jks file to javacard?
    Please helpme

    How to send a certificate file(.p12 file) into the java card?
    I am trying to send a p12 - certificate file to the smart card using javacard. Is it possible to send a file directly to java card or not? Thanks....

  • Upload an applet into smart card

    Hello,
    I worked with eclipse and plugin JCOP I compile the appllet so I have the file . cap
    but I can't upload it into smart card
    and I want to know what 's the deffierence between AID of applet and AID of the package
    thanks

    Check out GP 2.1.1 card spec. Package has the same definition as in Java SE. Applet is the class within the package. It shall have another AID than the package.
    Paste your APDU log.

  • MISALIGNMENT PROBLEMS USING "LOAD FILES INTO PHOTOSHOP LAYERS" FROM BRIDGE CC

    I'm having a persistent problem which technical support was unable to resolve after being on the phone with them for 1.5 hrs. I was told the issue would be escalated... That was five days ago, and I've heard nothing.
    Here is the problem: In ACR working on a bracketed group of five images shot from a solid tripod in Bridge CC. I carefully synchronize all parameters incl. crop, transform, exposure, etc. Then I go to Tools / Photoshop / Load files into Photoshop layers, and the images open in photoshop in a layered file..., BUT some are knocked out of alignment. Actually they have been cropped slightly smaller than the original file, always by the same number of pixels. Sometimes all layers are affected, sometimes not.
    Photoshop CC & Bridge CC are both up to date, as is the camera raw plugin. I’m on a new iMac i7 4-core, OSX 10.9.4. All software was newly downloaded from Adobe two weeks ago. I have reset preferences, reset tools in Photoshop, even uninstalled and reinstalled Bridge CC 6.1.0.115 all to no avail. Any suggestions? I am desperate for some help.

    I run Windows 7 Ultimate, I have 2.00GB of RAM with 1.74 usable, and I selected 40 images, each about 2MB.

  • Java application communicate with java card applet without java card

    Can I write java application to communicate with java card applet without using java card?
    Can I send APDU to java card applet on computer(not install in java card)? If it's not, how can I write?
    Best Regard,
    Thanawan

    Your JCOP simulator implements a JCVM/JCRE according
    to specs. The CREF does that same thing excepts it's
    only simulates the API without crypto or third party
    applets. JCOP simulator is more then that. They are using thesame_ codebase for simulator and for oncard JCVM. Basically you are dealing with the same environment in both cases.

Maybe you are looking for