Wrong CAP file version error message

I'm trying to write a loader application that will send a CAP file into JavaCard, and then install it automatically.
I have developed my JavaCard Applet by using Eclipse3.1.0 and JCOP30.
After running my JavaCard Applet by Eclipse, I got its CAP file in folder [b\bin\FVSCardPkg\javacard\[/b]
But when I run my loader application with this CAP file, the error message will display:
EX: msg Wrong CAP file version, class class com.ibm.jc.JCException
Wrong CAP file version
     at com.ibm.jc.CapFile.parseHeader(Unknown Source)
     at com.ibm.jc.CapFile.readCapFile(Unknown Source)
     at com.ibm.jc.CapFile.<init>(Unknown Source)
     at LoaderPkg.loader.load(loader.java:35)
     at LoaderPkg.loader.main(loader.java:20)
This is my loader application source code:
import java.io.*;
import com.ibm.jc.*;
import com.ibm.jc.terminal.*;
*  Sample /**
*  Sample loader. Demonstrates how to use the offcard API to download
*  a cap-file on a JCOP41V22 Engineering sample card and listing of applets loaded will
* follow.
public class loader{
     private final static String termName = "pcsc:4"; // Real card
//     private final static String termName = "Remote"; // Simulator
     protected static final byte[] JCOP_CARD_MANAGER_AID = { (byte) 0xa0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00};
     protected static final byte defaultInstallParam[] = { -55, 0 };
     static String[] capFileName={"D:/MyCardPkg.cap"};
     public static void main(String[] args){
          try{
               loader l = new loader();
               l.load();
          }catch(Exception e){
               System.err.println("EX: msg " + e.getMessage() + ", class " + e.getClass());
               e.printStackTrace(System.err);
          System.exit(0);
          //Likewise for simulation, be patient the port takes time to close.
          //Use command line "netstate" to check the disapperance of the port before
          // activating JCShell command to read the simulated card.
     private loader(){}
     private void load() throws Exception{
          CapFile capFile = new CapFile(capFileName[0], null);
          System.out.println("Package name: " + capFile.pkg);
          byte[][] applets = capFile.aids;
          if ((applets == null) || (applets.length == 0)){
               throw new RuntimeException("no applets in cap file");
          // Get connection to terminal, take note that jcop.exe is required to be activated
          // in simulation mode.
          System.out.println("Open terminal ...");
          //Make sure that the simulator jcop.exe is activated before unmarking this satement
          //Remember to delete the downloaded applet before running otherwise error is
          //expected if the simulator finds the existence of the applet with the
          //same pakage name ID and AID
          //Issue /close command at "cm" prompt if the card is in use,, ie it should
          //have "-" prompt. Be patient that the port takes time to close. Use command line
          //"netstate" to check the disapperance of the port before running.
          // pcsc:4=Card Terminal  Or  Remote=LocalHost Terminal
          JCTerminal term = JCTerminal.getInstance(termName, null);
          //For real JCOP41V22 card, please unmark this statement and delete the downloaded
          //applet before running. Error expected if the card finds the existence of the applet
          //with the same pakage name ID and AID
          //Issue /close command at "cm" prompt if the card is in use,, ie it should
          //have "-" prompt.
          term.open();
          // Add in this statement for real card which requires some response time
          term.waitForCard(5000);
          // Create a logging terminal spitting out the APDUs on standard out
          TraceJCTerminal _term = new TraceJCTerminal();
          _term.setLog(new PrintWriter(System.out));
          _term.init(term);
          term = _term;
          // Get JavaCard representative, passing NULL resets card and returns ATR
          System.out.println("Get card ...");
          JCard card = new JCard(term, null, 2000);
          // Get the off-card representative for the card manager and use it to
          // select the on-card CardManager
          System.out.println("Select card manager ...");
          CardManager cardManager = new CardManager(card, CardManager.daid);
          cardManager.select();
          // For downloading something, we have to be authenticated to card manager.
          // For this, the keys must be set. The keys to use should of course
          // be configurable as well.
          byte[] dfltKey = c2b("404142434445464748494a4b4c4d4e4f");
          cardManager.setKey(new OPKey(255, 1, OPKey.DES_ECB, dfltKey));
          cardManager.setKey(new OPKey(255, 2, OPKey.DES_ECB, dfltKey));
          cardManager.setKey(new OPKey(255, 3, OPKey.DES_ECB, dfltKey));
          cardManager.setKey(new OPKey(1, 1, OPKey.DES_ECB, c2b("707172737475767778797a7b7c7d7e7f")));
          cardManager.setKey(new OPKey(1, 2, OPKey.DES_ECB, c2b("606162636465666768696a6b6c6d6e6f")));
          cardManager.setKey(new OPKey(1, 3, OPKey.DES_ECB, c2b("505152535455565758595a5b5c5d5e5f")));
          System.out.println("init Update ...");
          cardManager.initializeUpdate(255,0);
          System.out.println("Authenticate to card manager ...");
          cardManager.externalAuthenticate(OPApplet.APDU_CLR);
          // And load the cap-file, do not forget to call installForLoad
          System.out.println("Loading cap-file ...");
          byte[] cardManagerAid = cardManager.getAID();
          cardManager.installForLoad(capFile.pkgId,0, capFile.pkgId.length, cardManagerAid, 0, cardManagerAid.length, null, 0, null, 0, 0, null, 0);
          cardManager.load(capFile, null, CardManager.LOAD_ALL, null, cardManager.getMaxBlockLen());
          byte[] capaid = capFile.aids[0];
          System.out.println("Finished loading !");
          // Install applet, we try to install the first applet given in the
          // cap file, and try to instantiate it under the same AID as given for its
          // representation in the cap file. No installation data is passed.
          System.out.println("Installing applet ...");
          cardManager.installForInstallAndMakeSelectable(capFile.pkgId, 0, capFile.pkgId.length, capaid,0, capaid.length, capaid, 0, capaid.length, 0, defaultInstallParam, 0, defaultInstallParam.length, null, 0);
          System.out.println("Install succeeded!");
          // synchronize state with on-card card manager
          System.out.println("Update!");
          cardManager.update();
          // Print information regarding card manager, applets and packages on-card
          JCInfo info = JCInfo.INFO;
          System.out.println("\nCardManager AID : " + JCInfo.dataToString(cardManager.getAID()));
          System.out.println("CardManager state : " + info.toString("card.status", (byte) cardManager.getState()) + "\n");
          //Echountered error 6A 86 with this statement:Object[] app = cardManager.getApplets(CardManager.GET_APPLETS,
          //CardManager.CVM_FORMAT_HEX, true);
          //Solved the bug by playing the integers in arg0 and arg1.
          Object[] app = cardManager.getApplets(1, true);
          if (app == null) {
               System.out.println("No applets installed on-card");
          } else {
               System.out.println("Applets:");
               for (int i = 0; i < app.length; i++) {
                    System.out.println(info.toString("applet.status", (byte) ((OPApplet) app).getState()) + " " + JCInfo.dataToString(((OPApplet) app[i]).getAID()));
          // List packages on card
          // Encountered error with this statement:Object[] lf = cardManager.getLoadFiles(CardManager.CVM_FORMAT_HEX, true);
          // Solved the bug by setting arg0 = 0,
          Object[] lf = cardManager.getLoadFiles(true);
          if (lf == null) {
               System.out.println("No packages installed on-card");
          } else {
               System.out.println("Packages:");
               for (int i = 0; i < lf.length; i++) {
                    System.out.println(info.toString("loadfile.status", (byte)((LoadFile) lf[i]).getState()) + " " + JCInfo.dataToString(((LoadFile) lf[i]).getAID()));
          term.close();
     static String numbers = "0123456789abcdef";
     private byte[] c2b(String s) {
          if (s == null) return null;
          if (s.length() % 2 != 0) throw new RuntimeException("invalid length");
          byte[] result = new byte[s.length() / 2];
          for (int i = 0; i < s.length(); i += 2) {
               int i1 = numbers.indexOf(s.charAt(i));
               if (i1 == -1) throw new RuntimeException("invalid number");
               int i2 = numbers.indexOf(s.charAt(i + 1));
               if (i2 == -1) throw new RuntimeException("invalid number");
               result[i / 2] = (byte) ((i1 << 4) | i2);
          return result;
How to solve this problem?
Thank you in advance.

I'm not understanding if your cap file is in "b\bin\FVSCardPkg\javacard\", then why are you loading "D:/MyCardPkg.cap"?
The issue isn't with your off card application, but the cap file version. Look at the cap file components in JCVM specification. I believe it's the Header component. The major, minor should match your card but not greater. In other words, your can't load a 2.2 on a 2.1 card, but a 2.1 can load on a 2.2

Similar Messages

  • I am working in text edit and cannot open my file. Error message says it is in the wrong format, truncated or corrupted. what to do?

    I am working in text edit and cannot open my file. Error message says it is in the wrong format, truncated or corrupted. what to do?

    Try opening Disk Utility in your Applications-Utilities folder and repair permissions.

  • Upload external  cap file: jcshell: Error code: 6a80 (Wrong data)?

    Hi,
    i use eclipse + NXP JCOP Plugins_Generic3.2.8_Target ,the card is jcop31v232.
    if the cap file is generated by eclipse project , when i upload exteral cap file ,no error
    but if the cap file is generated by converter command ,there is  error
    what error?help me
    cm> /terminal "winscard:4|Feitian R502 Contact Reader 1"
    --Opening terminal
    /card -a a000000003000000 -c com.ibm.jc.CardManager
    resetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B FA 13 00 00 81 31 FE 45 4A 43 4F 50 33 31 56 ;.....1.EJCOP31V
    32 33 32 93 232.
    IOCTL().
    ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP31V232"> => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
    (104154 usec)
    <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 oe...........Y.e
    01 FF 9F 6E 06 47 91 73 51 2E 00 73 4A 06 07 2A ...n.G.sQ..sJ..*
    86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B .H..k.`...*.H..k
    02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 ....c...*.H..k.d
    0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09 ...*.H..k...e...
    2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 +...Hd...f...+..
    04 01 2A 02 6E 01 02 90 00 ..*.n....
    Status: No Error
    cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm> init-update 255
    => 80 50 00 00 08 A7 C7 04 88 8C 87 3F DE 00 .P.........?..
    (68417 usec)
    <= 00 00 93 36 01 29 05 95 13 05 FF 02 00 5F E1 48 ...6.)......._.H
    67 60 FD 2F 89 FF AD A4 72 B4 17 E9 90 00 g`./....r.....
    Status: No Error
    cm> ext-auth plain
    => 84 82 00 00 10 17 6D 1C 2A 87 9E 0A 24 3F 15 83 ......m.*...$?..
    A4 84 10 C0 75 ....u
    (71713 usec)
    <= 90 00 ..
    Status: No Errorh1.
    cm> upload -d "D:\JCIDE_workspace\hello\hello\javacard\hello.cap"
    => 80 E6 02 00 12 05 A0 00 01 00 62 08 A0 00 00 00 ..........b.....
    03 00 00 00 00 00 00 00 ........
    (56499 usec)
    <= 00 90 00 ...
    Status: No Error
    => 80 E8 00 00 FF C4 82 01 A1 01 00 0F DE CA FF ED ................
    01 02 04 00 01 05 A0 00 01 00 62 02 00 1F 00 0F ..........b.....
    00 1F 00 0B 00 15 00 2E 00 0C 00 63 00 17 00 12 ...........c....
    00 00 00 6F 00 02 00 01 00 0A 02 01 00 04 00 15 ...o............
    02 03 01 07 A0 00 00 00 62 01 01 00 01 07 A0 00 ........b.......
    00 00 62 00 01 03 00 0B 01 07 A0 00 01 00 62 03 ..b...........b.> 01 00 08 06 00 0C 00 80 03 00 FF 00 07 01 00 00 ................
    > 00 1C 07 00 63 00 01 10 18 8C 00 00 7A 05 30 8F ....c.......z.0.
    > 00 01 3D 8C 00 02 18 1D 04 41 18 1D 25 8B 00 03 ..=......A..%...
    > 7A 02 21 18 8B 00 04 60 03 7A 19 8B 00 05 2D 1A z.!....`.z....-.
    > 04 25 75 00 10 00 01 00 30 00 09 18 19 8C 00 06 .%u.....0.......
    > 70 08 11 6D 00 8D 00 07 7A 05 21 19 8B 00 05 2D p..m....z.!....-
    > 7B 00 08 03 1A 03 7B 00 08 92 8D 00 09 3B 19 03 {.....{......;..
    7B 00 08 92 8B 00 0A 7A 08 00 17 00 02 00 01 00 {......z........
    01 03 00 0A 48 65 6C 6C 6F 57 6F 72 6C 64 00 00 ....HelloWorld..> 00 00 05 00 2E 00 0B 06 80 03 00 01 00 00 00 06 ................
    > 00 00 01 03 00 .....
    >(1200 msec)
    <= 6A 80 j.
    Status: Wrong data
    jcshell: Error code: 6a80 (Wrong data)
    jcshell: Wrong response APDU: 6A80

    thank you. I use jcdk 2.2.1,jcop31v232 supports jc2.2.1 and gp2.1.1
    And i can not understand this:
    your jcop card is not a javacard v3 card.
    cm> /cap-info -p "D:\JCIDE_workspace\hello\hello\javacard\hello\hello" "D:\JCIDE_workspace\hello\hello\javacard\hello.cap"
    jcshell: Cannot read file <D:\JCIDE_workspace\hello\hello\javacard\hello.cap>: Incomplete CAP file, missing mandatory component: Header.capbut there is Header.cap in hello.cap:
    hello/javacard/Header.cap :
    01 00 13 de ca ff ed 01 02 04 00 01 09 a0 00 01
    00 62 03 01 0c 02

  • Kodo.util.FatalDataStoreException: Wrong database file version

    Hi,
    I am using Kodo JDO 3.0.2 together with HSQLDB (non-cached, same process).
    It
    runs fine. However, after having used a SQL tool such as Aqua Data Studio
    to
    inspect the database my Java code complains with the message
    "kodo.util.FatalDataStoreException: Wrong database file version". I have
    to
    rebuild the database and extend my classes again to get rid of this error.
    Is there some information in the database script that does not survive the
    inspection with the SQL tool? How can I work around this?
    Thanks for your help
    --Bruno

    Marc,
    It was indeed a version mismatch with my hsqldb libs. My SQL Tool used
    version 1.7.2 whereas Kdo used 1.7.0. A quick update of the property file
    of
    Aqua Data Studio fixed the problem. Thanks for the hint.
    --Bruno
    Marc Prud'hommeaux wrote:
    Bruno-
    Without being at all familiar with "Aqua Data Studio", I'll make a
    completely shot in the dark guess about what might be happening: you are
    using version x of Hypersonic to access the database, and then "Aqua
    Data Studio" is using version x+1. When the database is opened with HSQL
    version x+1, some internal version identifier in the database file is
    incremented, which disallows the previous version of HSQL (which is
    being used by Kodo) from opening the file.
    Again, this is a blind guess, but if it is the case, then the solution
    would be to ensure that you are using the same version of HSQL in both
    Kodo and "Aqua Data Studio".
    Otherwise, can you post the stack trace of the exception? That might
    give some more insight as to why this might be happening.
    As an aside, note that Kodo doesn't store or verify any internal
    "version" or anything like that, so I very much doubt that it is a
    problem with Kodo itself.
    In article <c1fihi$igu$[email protected]>, Bruno Schaeffer wrote:
    Hi,
    I am using Kodo JDO 3.0.2 together with HSQLDB (non-cached, same
    process).
    It
    runs fine. However, after having used a SQL tool such as Aqua Data Studio
    to
    inspect the database my Java code complains with the message
    "kodo.util.FatalDataStoreException: Wrong database file version". I have
    to
    rebuild the database and extend my classes again to get rid of thiserror.
    Is there some information in the database script that does not survivethe
    inspection with the SQL tool? How can I work around this?
    Thanks for your help
    --Bruno
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • "Failed to load excel file" an Error Message while running TDS upgrade util

    Dear All,
    "Failed to load excel file" an Error Message while running TDS upgrade utility when clicking on CHECK DATA.
    Please help me out on this!!!!!!!!!!!!
    Thanks..........

    Not all data can be exported to Excel easily. Especially if the query result is huge or there are special characters in the query results. You may try the most updated version.
    Thanks,
    Gordon

  • Sorry, something went wrong --- I got an error message after a new webapp was built and a new site collection was created

    Sorry, something went wrong --- I got an error message after a new webapp was built and a new site collection was created.
    This in SharePoint 2013 Farm.
    What should I do?
    1- I did a DisableLoopBack and set the value to "1".
    For hostname do I have to do : 111.111.111.111 (sample) and serversp2013?
    P.S. I fixed this issue once, long time ago and I forgot how it ... be done.

    Hi,
    For troubleshooting your issue, please take steps as below:
    1.Go to IIS, make sure the web application is actived.
    2.Go to IIS -> Applicaiton Pools, make sure the application pool related to your web application is started.
    Reference:
    http://support.microsoft.com/en-us/kb/926642/en-us
    http://www.techrepublic.com/forums/questions/cannot-browse-created-web-application-site-in-sharepoint-services-30/
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • "Invalid DOS version" error message when installing Tomcat in Windows98

    I tried to install Tomcat 5.0 in Windows 98. At first, it produced "Out of Environment Space" error message. I then changed the "Initial Environment" from Auto to other values (bigger than 2816) for both startup.bat and shutdown.bat.
    When I restarted the Tomcat, it produce "Invalid DOS version" error message. I thought about updating the DOS but previously when I had WinXP installed in computer, I couldn't access to the server due to the dos version issue.
    Is there any way to handle this? I would really appreciate the help:) Thank you very much..

    no, use the serial number listed on the page where you downloaded acrobat 7, not your acrobat serial number

  • I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files the error message is  could not be opened. The movie's file format isn't recognized. "  Any help or are they corrupted

    I just used stellar phoenix mac data recovery and it seemed to work but now my files won't open.  Even though they are "jpeg, mov" files, the error message is  "could not be opened". The movie's file format isn't recognized. "  Any help or are they corrupted?

    Sounds to me like the file is probably corrupt. If you had hard drive corruption or damage, that could easily result in recovered files not being fully intact. If you were trying to recover accidentally deleted files, it's possible they might have been partially overwritten before recovering. There are never any guarantees with file recovery.
    Without more information on the circumstances that led you to try recovery, it's hard to give advice on what to try from here. You could always try another file recovery tool, like Data Rescue 3. Just be sure you're taking appropriate precautions when doing recovery. See Recovering deleted files.

  • Ca'nt ftp longer (i.e. 4 minutes) flv or f4v files (get error message "waiting for server")  I

    when I ftp(i.e. "put" or "upload) short flv or f4v files using dreamweaver cs4 the files upload easily and quickly. However, when I try to ftp ("put" or "upload" ) longer (i.e. 4 minutes or longer) flv or f4v files it goes through the ftp process (seeing it in background activity screen) but at the end I always get a message "waiting on server" and the longer files don't get onto hosting server.  Is there a setting I need to change or other method I need to use).  I have worked with my hosting support tech person but we could not solve this problem.

    I'd suggest that you try using a dedicated FTP program like Filezilla or SmartFTP.
    http://filezilla-project.org/
    Those programs give you much more feedback on what's happening as you attempt to upload files, including error messages, etc.
    There is really no difference between uploading large files and small files, the process on the server is exactly the same..UNLESS there are limits to file size or video duration set by your host. So dispite the fact that you have worked with your host support, I'd still say that the problem is server side or being limited by your Internet service provider... unless the video files you are attempting to upload are corrupted.
    You didn't say if any portion of the larger video files were uploaded...and FTP program will show you whether or not ANY of the file was uploaded and at what point it stopped. You also didn't mention how large the video files where.... sort of where the "tipping point" is in file size (video duration of course is no measure of file size).
    Just to reassure you, the file size of a video file will have no bearing on your ability to FTP unless your host or ISP is limiting you in some way.
    I regularly Live stream events and also record them. An 8 hr event will produce roughly 1.5GB of compressed video. I use SmartFTP, with a reputable host and can upload the entire set of 1.5GB of video files (each about 50MB) over a 1000kbps upload connection without problem. Recently during a movie production project, we uploaded a number of single video file which each where over 1GB a piece.
    So there is really no problem uploading video files unless there are restriction on you account from the host or the ISP.
    Best wishes,
    Adninjastrator

  • HT202879 I am stumped - trying to open a recent Pages file but error message says that I need a "newer version" of Pages.  My software updates show that there are no updates available.  I recently updated Pages but it is not consistent.

    I am stumped - I am trying to open a recent Pages file (created with a newer software that I thought was correctly installed recently) but error message says that I need a "newer version" of Pages.  My software updates show that there are no updates available. Pages 09 version 4.3 shows as my current version.

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 95 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • "uses a file type that is blocked from opening in this version" error message when opening a *.doc file with Word already running

    Several customers running different versions of Office 2011 (14.4.1-14.4.5) on OSX varying from 10.7.5 to 10.9.5, running on various kinds of hardware (iMac/MacBook Pro/MacBook Air) of various ages are having issues opening *.doc files if the Word is already open. The error message that gets displayed is, "XXXX.doc uses a file type that is blocked from opening in this version"
    When the customer tries to open the same file via File-Open, she gets "The file is locked for editing. you can open the file as read-only".
    When trying to do so, she gets "Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters".
    If Word gets Force-quit, the same document opens without any problems.
    1. Repairing Disk permissions was ran several times. and the volume was found to be OK.
    2. I have noticed that in this scenario either deleting the normal.dotm or com.microsoft.word.plist (~/Library/Preferences) sometimes resolves the issue, sometimes it doesn’t. There is no pattern to follow. All versions of Office are affected, the fully updated and the non-updated ones.
    3. I have tried completely removing the suite using Office 2011 Uninstall.app and/or Remove Office 2011 Uninstaller.pkg, then going through customer's library and manually removing all the Office references.
    4. None of these systems had Office 2008 in the past.
    Any help will be greatly appreciated.

    Reboot both the Mac and the server. Word opens .DOC files and Excel opens .XLS files. As you have found out by copying the files to the computer. It is the connection between the 2 computer that is causing the error.

  • Java card cap file install error in jcop tools

    When i try to run java card applet in real java card it gives this error.i used jcop tools and java version 1.5  and eclipse 3.2.when i run the applet in simulater it works fine.i saw some document it says allocate memory for the installation process.i don't know how to do that.
    /term "winscard:4|SCM Microsystems Inc. SCL010 Contactless Reader 0"
    --Opening terminal
    >  /card -a a000000003000000 -c com.ibm.jc.CardManager
    resetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B 8A 80 01 4A 43 4F 50 33 31 56 32 33 32 7A       ;...JCOP31V232z
    ATR: T=0, T=1, Hist="JCOP31V232"
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    (23807 usec)
    <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65    oe...........Y.e
        01 FF 9F 6E 06 47 91 73 51 2E 00 73 4A 06 07 2A    ...n.G.sQ..sJ..*
        86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B    .H..k.`...*.H..k
        02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64    ....c...*.H..k.d
        0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09    ...*.H..k...e...
        2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01    +...Hd...f...+..
        04 01 2A 02 6E 01 02 90 00                         ..*.n....
    Status: No Error
    cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm>  init-update 255
    => 80 50 00 00 08 AC B1 90 01 BF 2D 24 A0 00          .P........-$..
    (49906 usec)
    <= 00 00 91 18 01 39 93 95 05 59 FF 02 00 2C BE 39    .....9...Y...,.9
        5E A5 07 55 87 B8 C3 A8 A6 93 66 2B 90 00          ^..U......f+..
    Status: No Error
    cm>  ext-auth plain
    => 84 82 00 00 10 0C AE 50 3E C8 7E 1D 92 29 E2 59    .......P>.~..).Y
        08 D9 DA 02 16                                     .....
    (57276 usec)
    <= 90 00                                              ..
    Status: No Error
    cm>  delete 060504030201
    => 80 E4 00 00 08 4F 06 06 05 04 03 02 01 00          .....O........
    (40041 usec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  delete 010203040506
    => 80 E4 00 00 08 4F 06 01 02 03 04 05 06 00          .....O........
    (17392 usec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  upload -d -b 250 "Cap File location"
    => 80 E6 02 00 13 06 01 02 03 04 05 06 08 A0 00 00    ................
        00 03 00 00 00 00 00 00 00                         .........
    (32303 usec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 00 00 FA C4 81 F2 01 00 23 DE CA FF ED 02    ..........#.....
        02 04 00 01 06 01 02 03 04 05 06 12 68 6D 73 2F    ............hms/
        6A 61 76 61 63 61 72 64 2F 68 65 6C 6C 6F 02 00    javacard/hello..
        21 00 23 00 21 00 0A 00 0B 00 1E 00 0E 00 3D 00    !.#.!.........=.
        0A 00 0B 00 00 00 4D 01 BE 00 00 00 00 00 00 01    ......M.........
        01 00 04 00 0B 01 02 01 07 A0 00 00 00 62 01 01    .............b..
        03 00 0A 01 06 06 05 04 03 02 01 00 08 06 00 0E    ................
        00 00 00 80 03 00 FF 00 07 01 00 00 00 1C 07 00    ................
        3D 00 01 10 18 8C 00 05 7A 05 30 8F 00 00 3D 8C    =.......z.0...=.
        00 01 18 1D 04 41 18 1D 25 8B 00 02 7A 02 21 18    .....A..%...z.!.
        8B 00 03 60 03 7A 19 8B 00 04 2D 1A 04 25 73 00    ...`.z....-..%s.
        09 00 00 00 00 00 0F 11 6D 00 8D 00 06 7A 08 00    ........m....z..
        0A 00 00 00 00 00 00 00 00 00 00 05 00 1E 00 07    ................
        01 00 02 00 06 00 00 01 03 80 03 02 03 80 03 03    ................
        03 80 0A 01 06 80 03 00 06 80 07 01 09 00 0B 00    ................
        00 00 07 05 06 04 0A 07 07 13 0B 00 4D 01 00 00    ............M...
    (764519 usec)
    <= 6A 80                                              j.
    Status: Wrong data
    jcshell: Error code: 6a80 (Wrong data)
    jcshell: Wrong response APDU: 6A80
    Unexpected error; aborting execution

    Thanks ReNa
    i am using nxp jcop 31 contact-less card.and it will support for java card 2.2.1 and global-platform card specification 2.1.1 .so i am using nxp jcop training 2007 tools and it has java card 2.2.1 and global-platform card specification 2.1.1.Inside my project there are three jar files these are jc221.jar and gp211.jar and bio10.jar
    i will appreciate your help
    Thanks

  • "project file missing" error message

    I've got 2-3 hours worth of footage from a vacation i took and it would be a real pain to to reimport and re-edit everything.. so i really hope you can help me.
    whenever i try to open the movie file, iMovie gives me an error message saying "a project file is missing" "The file "_" couldn't be opened and is being skipped. Click "Ignore All" to skip any remaining missing file messages."
    Then it gives me two options - Ignore All and Ok.
    the weird thing is it doesnt specify a file. it just calls the file "_"
    i've got some music files in it i may have moved around, but besides the fact the movie is on an external hard drive, i cant think of any other reason it would do that.
    please help!

    As Jeez33 suggested, the file name iMovie is asking about can't be relied on. Something has caused iMovie to either store the name incorrectly in the project file or retrieve the name incorrectly from the project file. The file it's asking about probably doesn't exist and probably never did. The usual cause for this problem is the wrong disk format for the project's disk. (Not the main disk.) So it's garbage in, garbage out.
    Another possible cause is that either the project disk or the Mac's own main disk is too full. That can cause disk errors. I mention that because both your disks are quite small. As iMovie works with large video files, a tremendous amount of disk space may be required. So make sure you have plenty. 10 GB free.
    You also might try looking inside the Media folder of the project to see what you can see. To look inside the project package, Control-click on the project icon and choose "Show Package Contents" from the popUp menu. Then look inside the Media folder. That will tell you what files are there. Look for any unusual characters in the file names, especially "/", which can confuse iMovie.
    It's possible too that the project file has been damaged. The project file is loose inside the package. Its name is "Your Project Name.iMovieProj". When you double-click on the project icon, that's the file that opens.
    There's a second project file named "Your Project Name.~iMovieProj". (Note the tilde.) That's a kind of project backup, the PREVIOUSLY-saved version of your project. Try double-clicking on that. If it opens the project successfully, quit iMovie, remove the tilde from the name, and let it be your project file. When you next save, iMovie will create a new tilde file.
    Your Mac's hard disk or the external disk may also need some disk repair. Use Disk Utility to verify and repair the external drive. If the drive directory is flawed that can make it impossible for iMovie to read/write to files on the drive, including to its own project file.
    Karl

  • How do I password protect a pdf file - getting error messages?

    I'm trying to protect a pdf file (i.e. a tax return printed to PDF) with password to open and password to modify. However I'm getting an error message in a pop up window saying..."The file may be read-only, or another user may have it open. Please save document with a different name, or in a different folder." I'm using WIN 8.1. and I'm using Adobe Acrobat Pro XI (student / teacher version). This is a standalone PC so I can't imaging someone else is using this file. Also I've tried renaming and saving to a different folder (from the folder the original file is saved). I've also looked at properties of the PDF file and its not tagged as read only. Please advise if I'm missing something. Thanks for your help.

    Thanks for responding...I'm getting the same message that I got at first..."The file may be read-only, or another user may have it open. Please save document with a different name, or in a different folder."
    The next day I emailed the file to my work PC and encrypted it with no problems. I have WIN 7 and am using Acrobat 8.0 there. So the problem seems to be with my new PC here at home (i.e. WIN 8.1 and Acrobat XI). Frustrating. I'm betting its some obscure setting in WIN or Acrobat, that is way over my head. Please let me know if you have any ideas. Thanks again.
    Phil

  • Can't open Indesign file. Error message says I need to upgrade plug-ins?

    I created a business card for my husband from my indesign 5.5 version. I haven't upgraded my version since creating the file and for some reason I can't open the file. I get the error message 'Cannot open "Business Card - Ryan.indd". Please upgrade your plug-ins to their latest versions, or upgrade to the latest version of Adobe InDesign.'
    When I look at the business card file with finder it says it was created with InDesign 5.5. When I view my InDesign application through my finder applications it says I have InDesign 5.5 so I'm not sure why this error message is saying to upgrade my version of InDesign.

    I wish I had a dollar for every person who claimed there was no way a file was saved in a later version only to find out it was.
    If you post a link to it someone here will save it back for you.

Maybe you are looking for