1 Reply Latest reply: Feb 28, 2012 10:25 AM by 918757 RSS

    Application loading problem

    918757
      I'm using eclipseJCDE to compile my code and generate my CAP file. Then i use JGP to load my cap file into my J2A080 card and here is the error message I get. I already installed a HelloWorld with that application and it worked perfectly fine. I got no error when I generated the CAP file, any Idea how i could debug this?



      C:\GPJ\gpj-20100204\lib>java -jar gpj.jar -load Nexyka.cap
      Found terminals: [PC/SC terminal SCM Microsystems Inc. SCR33x USB Smart Card Rea
      der 0]
      Found card in terminal: SCM Microsystems Inc. SCR33x USB Smart Card Reader 0
      ATR: 3B F6 18 00 FF 81 31 FE 45 4A 32 41 30 38 30 1B
      DEBUG: Command APDU: 00 A4 04 00 08 A0 00 00 00 03 00 00 00
      DEBUG: Response APDU: 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 01 FF 9F 6
      E 06 47 91 81 02 31 00 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86
      FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B
      04 02 15 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 0
      2 6E 01 02 90 00
      DEBUG: Command APDU: 80 50 00 00 08 95 5E D6 59 9F 2F 77 DF
      DEBUG: Response APDU: 00 00 10 77 03 86 26 95 53 12 01 02 00 19 DF AB EE D1 57 E
      A B2 55 9E 55 EB 03 3D AD 90 00
      DEBUG: Command APDU: 84 82 00 00 10 42 08 F5 27 86 5E AB 29 39 7E 2E 60 6A AE 5
      A 63
      DEBUG: Response APDU: 90 00
      DEBUG: Command APDU: 84 82 00 00 08 42 08 F5 27 86 5E AB 29
      DEBUG: Response APDU: 90 00
      java.lang.NegativeArraySizeException
      at net.sourceforge.gpj.cardservices.CapFile.getEntries(CapFile.java:152)

      at net.sourceforge.gpj.cardservices.CapFile.<init>(CapFile.java:65)
      at net.sourceforge.gpj.cardservices.CapFile.<init>(CapFile.java:60)
      at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(GlobalPla
      tformService.java:1602)