Exception at opencard.opt.iso.fs.FileSystemCardService

I am Trying to test my Smart card with some Sample Programs which i got it from archives.I am using Twitiko's ChipDrive Micro 100 Reader and
MPCOS Card.When i tried to run TestMPCOS.java getting this following exception.I am sure that base-opt.jar is in my classpath.any comments will be appreciated .
Waiting for card...
Card detected
java.lang.ClassNotFoundException: CardService implementing interface opencard.opt.iso.fs.FileSystemCardService
at opencard.core.service.CardServiceRegistry.getCardServiceInstance(CardServiceRegistry.java:269)
at opencard.core.service.SmartCard.getCardService(SmartCard.java:331)
at TestMPCOS.<init>(TestMPCOS.java:52)
at TestMPCOS.main(TestMPCOS.java:104)
Opencard.properties:
OpenCard.services = \
com.ibm.opencard.factory.MFCCardServiceFactory \
opencard.opt.util.PassThruCardServiceFactory
OpenCard.terminals=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory

Hi Joseph,
I am using Twitiko's ChipDrive 100 Reader and Gemplus MPCOS-EMV card.
When i run the sample application I am getting the same exception.U told it is J2SE error .In My class path I included all the jar files.
In my Application if i use
CardRequest cr = new CardRequest(CardRequest.NEWCARD, null,ileAccessCardService.class); then only i am getting this exception.
If i use CardRequest cr = new CardRequest()(deprecated) Just displaying Waiting for card eventhrough i inserted my card..
Please help me how to solve.
Waiting for card...
Card detected
java.lang.ClassNotFoundException: CardService implementing interface opencard.op
t.iso.fs.FileSystemCardService
at opencard.core.service.CardServiceRegistry.getCardServiceInstance(Card
ServiceRegistry.java:269)
at opencard.core.service.SmartCard.getCardService(SmartCard.java:331)
at TestMPCOS.<init>(TestMPCOS.java:53)
at TestMPCOS.main(TestMPCOS.java:106)
Here is my Classpath:c:\jdk1.3\lib\tools.jar;\c:\jdk1.3\lib;c:\jdk1.3\lib\comm.jar;C:\smartcards\OCF1.2\lib\base-core.jar;C:\jdk1.3\jre\lib\ext\gemplus-gpk-0.1.jar;C:\jdk1.3\j
re\lib\ext\gemplus-service-0.3.jar;C:\OpenCard\OCF1.2\lib\pcsc-wrapper-src.jar;C:\jdk1.3\jre\lib\ext\reference-services.jar;C:\OpenCard\OCF1.2\lib\base-opt.jar;C:\OpenCard\OCF1.2\lib\reference-terminals-windows.jar;C:\OpenCard\OCF1.2\lib\migterminals.jar;

Similar Messages

  • OCF installation help

    I I am try to setup OCF using windows XP and ToWITOKO Chip Drive 100., I have read loads of article saying that it is supported. I have been doing this for 3 days now with no end in sight and could desperately do with any help.. I no this maybe a bit off topic but I'm sure there must be others who have gone though this and solved it.
    I am using C:\jdk1.3.1_10 JRE
    I have unzip OCF to c:\ocf\OCF
    I have installed the Readers driver which have been piece up by the OS and showing the reader and the card (JCOP).
    I am using Eclipse Platform Version: 2.1.2 to compile the soucre.
    The workspace env variables are as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry exported="true" kind="lib" path="C:/ocf/OCF1.2/lib/base-opt.jar"/>
    <classpathentry exported="true" kind="lib" path="C:/ocf/OCF1.2/lib/pcsc-wrapper-2.0.jar"/>
    <classpathentry exported="true" kind="lib" path="C:/ocf/OCF1.2/lib/base-core.jar"/>
    <classpathentry exported="true" kind="lib" path="C:/ocf/OCF1.2/lib/reference-services.jar"/>
    <classpathentry kind="src" path="smart"/>
    <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="output" path="bin"/>
    </classpath>
    My OS env is at follows
    CLASSPATH=C:\ocf\OCF1.2\lib\pcsc-wrapper-2.0.jar;C:\ocf\OCF1.2\lib\reference-services.jar;C:\ocf\OCF1.2\lib\base-opt.jar;C:\ocf\OCF1.2\lib\base-core.jar;C:\java_card_kit-2_2_1\lib\api.jar;C:\java_card_kit-2_2_1\lib\jcrmiclientframework.jar;C:\java_card_kit-2_2_1\lib\javacardframework.jar;%CLASSPATH%
    CLIENTNAME=Console
    COMMONHOME=C:\Program Files\Rational\common
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=GAMERSCH-GAM
    ComSpec=C:\WINDOWS\system32\cmd.exe
    HOME=C:\Documents and Settings\sean
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\sean
    JAVA_HOME=C:\jdk1.3.1_10
    JC_HOME=C:\java_card_kit-2_2_1
    LOGONSERVER=\\GAMERSCH-GAM
    NUMBER_OF_PROCESSORS=1
    NUTCROOT=C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT
    NUTSUFFIX=1
    NUT_SUFFIXED_SEARCHING=1
    OCF=C:\ocf\OCF1.2
    OS=Windows_NT
    Path=C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin;C:\jdk1.3.1_10\bin;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin\x11;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt;C:\WINDOWS\system32;C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;%PATH%;"C:\Program Files\Hummingbird\Connectivity\7.00\Accessories\";C:\java_card_kit-2_2_1\bin;C:\jdk1.3.1_10\bin;%PATH%;C:\jdk1.3.1_10\jre\lib\ext;C:\C:\jdk1.3.1_1
    0\jre\lib;C:\Program Files\Rational\common;C:\ocf\OCF1.2\lib;C:\Program Files\Rational\Rose\TopLink\;C:\Program Files\Rational\Rational Test;C:\Documents and Settings\sean;C:\Documents and S
    ettings\sean\studio5se_user\AboutExamples\test
    This the source code that i am using to picece up the reader
    i
    mport java.io.FileNotFoundException;
    import opencard.core.OpenCardException;
    import opencard.core.service.SmartCard;
    import opencard.core.service.CardRequest;
    import opencard.opt.iso.fs.FileAccessCardService;
    import opencard.opt.iso.fs.CardFile;
    public class ReadFile2 {
    public static void main(String[] args) throws ClassNotFoundException{
    System.out.println("reading smartcard file...");
    try {
    SmartCard.start();
    // wait for a smartcard with file access support
    CardRequest cr = new CardRequest(CardRequest.NEWCARD, null, FileAccessCardService.class);
    SmartCard sc = SmartCard.waitForCard(cr);
    FileAccessCardService facs = (FileAccessCardService)
    sc.getCardService(FileAccessCardService.class, true);
    CardFile root = new CardFile(facs);
    CardFile file = new CardFile(root, ":c009");
    byte[] data = facs.read(file.getPath(), 0, file.getLength() );
    sc.close();
    String entry = new String(data);
    entry = entry.trim();
    System.out.println(entry);
    } catch (OpenCardException e) {
    e.printStackTrace(System.err);
    } catch (FileNotFoundException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                        } finally { // even in case of an error...
    try {
    SmartCard.shutdown();
    } catch ( OpenCardException e ){
    e.printStackTrace(System.err);
    System.exit(0);
    And here is the error that i have had for days, i have t put OCFPCSC1 in the path and in the source folder of the project
    reading smartcard file...
    [DEBUG    ] opencard.core.service.SmartCard.getRegistryEntry
    --- message tag OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    --- thread Thread[main,5,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.service.SmartCard.<shutdown>
    --- message shutdown OpenCard
    --- thread Thread[main,5,main]
    --- source class opencard.core.service.SmartCard
    java.lang.UnsatisfiedLinkError: no OCFPCSC1 in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344)
         at java.lang.Runtime.loadLibrary0(Runtime.java:744)
         at java.lang.System.loadLibrary(System.java:815)
         at opencard.core.util.SystemAccess.loadLibrary(SystemAccess.java:111)
         at com.ibm.opencard.terminal.pcsc10.OCFPCSC1.loadLib(OCFPCSC1.java:64)
         at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.open(Pcsc10CardTerminalFactory.java:217)
         at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.<init>(Pcsc10CardTerminalFactory.java:84)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:232)
         at opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCard.java:424)
         at opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.java:261)
         at opencard.core.service.SmartCard.start(SmartCard.java:534)
         at ReadFile2.main(ReadFile2.java:31)
    Exception in thread "main"
    Any help much appreciated, sorry for the long posting just need to give you all the info
    Many Thanks
    Sean

    Hi Joseph
    As always thanks for the good advice .After 3 days of looking at the same error i am only to happy to get another to look at :-) , however i do feel i am getting closer. I must say i am quite tempted just to cut my losses and buy another reader, but being a student thats not a very good option unless there really isn't any other alternative, and after 3 days work i would feel gutted .
    Having followed your advice i am now faced with this
    C:\eclipse\workspace\test\smart>java -Djava.library.path=[%OCF%/lib/OCFPCSC1.dll];%CLASSPATH% TerminalSample
    [DEBUG    ] opencard.core.service.SmartCard.getRegistryEntry
    --- message tag OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|micro|Chipdrive_Micro|COM1
    --- thread Thread[main,5,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.terminal.CardTerminal.<init>
    --- message (TOWITOKO CHIPDRIVE 0, PCSC10, )
    --- thread Thread[main,5,main]
    --- source class opencard.core.terminal.CardTerminal
    Uses ISOTPDU
    [DEBUG    ] opencard.core.event.EventGenerator.updateTerminals
    --- message new pollable Terminal = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@14fe5c
    + name TOWITOKO CHIPDRIVE 0
    + type PCSC10
    + addr
    --- thread Thread[main,5,main]
    --- source class opencard.core.event.EventGenerator
    opencard.core.terminal.CardTerminalException: No reader found by PC/SC : micro Chipdrive_Micro COM1
    at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory.createCardTerminals(Pcsc10CardTerminalFactory.java:197)
    at opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCard.java:432)
    at opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.java:261)
    at opencard.core.service.SmartCard.start(SmartCard.java:534)
    at TerminalSample.main(TerminalSample.java:28)
    C:\eclipse\workspace\test\smart>
    Im not sure why this is not being picked up by eclipse i have added to the source directory of the source code and it the first statement in the PATH variable.
    Path=C:\ocf\OCF1.2lib\OCFPCSC1.dll;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin;C:\jdk1.3.1_10\bin;C:\PROGRA~
    Again thanks for any advice given
    Sean

  • PC/SC error SCardConnect return code = 80100009

    I created an application using the OpenCard Framework. I am using a Schlumberger Reflex USB v2 reader. When I run my application, I receive the following error "opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardConnect: PC/SC Error SCardConnect return code = 80100009".
    This return code corresponds to this variable in windows, SCARD_E_UNKNOWN_READER.
    I know the card reader and the PC/SC driver for the reader work correctly because I have used them with other applications.
    Is there some special configuration I have to make within the OpenCard Framework to have it recognize my reader? Or, is there some configuration I have to do within Windows 2000?
    Thanks

    My java code can detect is a card is in the reader introduced only if i run the program many times.
    With the i variable i debug that not the last running detects that the card was introduced.
    And i can detect that tha card was introduced only with these error.
    PLEASE HELP ME!!!!!!!!!
    Thanks in advanced
    My code looks like:
    import java.awt.Frame;
    import java.io.FileNotFoundException;
    import opencard.core.OpenCardException;
    import opencard.core.service.CardServiceException;
    import opencard.core.service.SmartCard;
    import opencard.core.service.CardRequest;
    import opencard.core.terminal.CardTerminalException;
    import opencard.core.util.OpenCardPropertyLoadingException;
    import opencard.opt.iso.fs.FileAccessCardService;
    import opencard.opt.iso.fs.CardFile;
    public class ReadFile {
         static int i = 16;
    public static void main(String[] args)
    System.out.println("reading smartcard file..."+ i);
    // here, the application code will be filled in
    try {
              SmartCard.start();
    //          wait for a smartcard with file access support
         CardRequest cr =
         new CardRequest(CardRequest.NEWCARD, null, FileAccessCardService.class);
         System.out.println("1");
         SmartCard sc = SmartCard.waitForCard(cr);
         System.out.println("2");
         FileAccessCardService facs = (FileAccessCardService)
         sc.getCardService(FileAccessCardService.class, true);
         System.out.println("3");
         CardFile root = new CardFile(facs);
         System.out.println("4");
         CardFile file = new CardFile(root, ":c009");
         System.out.println("5");
         byte[] data = facs.read(file.getPath(), 0,
         file.getLength() );
         System.out.println("6");
         sc.close();
         System.out.println("7");
         String entry = new String(data);
         System.out.println("8");
         entry = entry.trim();
         System.out.println("9");
         System.out.println(entry);
         System.out.println("10");
         } catch (OpenCardPropertyLoadingException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (CardServiceException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (CardTerminalException e) {
              cardInserted();
              e.printStackTrace();
         } catch (ClassNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (OpenCardException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         finally{
              try {
                   SmartCard.shutdown();
              } catch (CardTerminalException e) {
                   // TODO Auto-generated catch block
                   System.out.print("Halli Hallo ");
                   e.printStackTrace();
    System.exit(0);
    }//main
    static void cardInserted(){
         System.out.println("\ncardInserted" + i + "\n");
    }//cardInserted
    }

  • Listing applets on the card

    hi,
    I am trying to list the applets present on the card. But, I am getting the following error mesg. The source code is also pasted below.
    C:\J2SDK1.4.0_03\BIN\java.exe ReadFile
    initializing file...
    Before start
    After start
    After Card request
    [INFO     ] opencard.core.service.CardServiceRegistry.getCardServiceClass
    --- message no CardService for interface opencard.opt.applet.mgmt.AppletAccessCardService
    --- thread Thread[Thread-1,5,main]
    --- source opencard.core.service.CardServiceRegistry@422ede++ registered factory opencard.opt.util.PassThruCardServiceFactory@3c5982
    [INFO     ] opencard.core.service.CardServiceRegistry.isCardRequestSatisfied
    --- message requested CardService class interface opencard.opt.applet.mgmt.AppletAccessCardService not supported for opencard.core.terminal.CardID@820dda ATR: 3B 75 94 00 00 62 02 02 02 01
    --- thread Thread[Thread-1,5,main]
    --- source opencard.core.service.CardServiceRegistry@422ede++ registered factory opencard.opt.util.PassThruCardServiceFactory@3c5982
    [INFO     ] opencard.core.service.CardServiceRegistry.getSmartCard
    --- message CardRequest opencard.core.service.CardRequest@186fab NEWCARD
    service = interface opencard.opt.applet.mgmt.AppletAccessCardService cannot be satisfied with opencard.core.terminal.CardID@820dda ATR: 3B 75 94 00 00 62 02 02 02 01
    --- thread Thread[Thread-1,5,main]
    --- source opencard.core.service.CardServiceRegistry@422ede++ registered factory opencard.opt.util.PassThruCardServiceFactory@3c5982
    The source code:
    import opencard.core.service.SmartCard;
    import opencard.core.service.CardRequest;
    import opencard.opt.util.PassThruCardService;
    import opencard.opt.applet.BasicAppletCardService;
    import opencard.opt.iso.fs.CardFile;
    import opencard.core.terminal.*;
    import opencard.opt.applet.mgmt.*;
    import opencard.opt.applet.*;
    public class ReadFile {
         public static void main(String[] args)
              System.out.println("initializing file...");
         try {
              System.out.println("Before start");
              SmartCard.start();
              System.out.println("After start");
              // wait for a smartcard with file access support
              CardRequest cr = new CardRequest(CardRequest.NEWCARD, null, AppletAccessCardService.class);
              System.out.println("After Card request");
              SmartCard sc = SmartCard.waitForCard(cr);
              System.out.println("After waiting for card");
         AppletInfo [] templates = null;
         try {
         AppletAccessCardService aacs = null;
         aacs = (AppletAccessCardService)
         sc.getCardService(AppletAccessCardService.class, true);
         templates = aacs.list();
         } catch (Exception e) {
              sc.close();           
         catch (Exception e)
              e.printStackTrace(System.err);
              System.exit(0);
         finally
         { // even in case of an error...
              try {
                   SmartCard.shutdown();
              catch (Exception e)
              e.printStackTrace(System.err);
         System.exit(0);
    It would be of great help if anyone has code for reading list of applets from the card. We are using CyberFlex egate card and Reflex V2 USB reader.
    Thanks
    Nagesh

    JoesephSmith (and DurangoVa, if your still around),
    Please excuse my previous posts. I was in a sour mood when I wrote them, born out of frustration with trying to get answers from this list and the internet in general.
    JS, I have no personal problem with you at all. You were in the wrong place at the wrong time:
    I had been searching for answers to my query about AppletAccessCardService implementations for a few hours. No information on the OCF site. Little or no information here. During my searching, a great many posts with similar questions came up and, it seemed, the answer that seemed to come up was "RTFM" or "Do a search, this has been answered a million times" (yet the original answer never seemed to appear in the search). While I admit in some instances, this kind of answer might have been correct for that particular user, it wasn't helping me solve my problem. Many years on Slashdot, K5 and IRC has really made me despise that saying -"RTFM". I was upset that the OCF would publish a "Programmers Guide" with sample code that cannot possibly be run or used and I was upset that I could not find the appropriate information on the JavaCard forum here at Sun. A bad day all around.
    Then I came upon this post and the other that you responded to and I just flipped. Sorry about that. Let's try this again:
    While I agree that you cannot list applets without using the GP/OP to do an xauth first, knowing that will not help this individual in this instance. This particular error is caused not having an AppletAccessCardService implementation configured in his opencard.properties file. Without obtaining the proper card service, he cannot get a handle on the smarcard object or a handle on the cardchannel to which he will need to send the xauth commands, then the applet listing commands. So knowing how to do xauth according to GP won't help him if he can't send the commands to the card.
    I would suggest that he forget about the AppletAccessCardService, since there doesn't seem to be an implementation of it around, and use the PassThroughCardService instead. This is a little more low-level than the OCF applet packages (he will have to work directly with APDU commands instead of a wrapper class), but at least he can xauth and list with this one. And as you said JS, you must learn how to do the xauth <i>properly</i> first or you will bugger your card.
    I hope this is a more appropriate response.
    I hope this makes up somewhat for my poor behaviour the other day.
    Be well.

  • Error in connecting to the smart card

    Hi
    I am trying to write a very simple program that just detects the card and closes..
    Here is the code:
    import opencard.core.service.SmartCard;
    import opencard.core.service.CardRequest;
    import opencard.opt.iso.fs.FileAccessCardService;
    import opencard.opt.util.PassThruCardService;
    import opencard.opt.iso.fs.CardFile;
    public class ReadFile {
         public static void main(String[] args)
              System.out.println("initializing file...");
         try {
              System.out.println("Before start");
              SmartCard.start();
              System.out.println("After start");
              // wait for a smartcard with file access support
              CardRequest cr = new CardRequest(CardRequest.NEWCARD, null, null);//PassThruCardService.class);
              System.out.println("After Card request");
              SmartCard sc = SmartCard.waitForCard(cr);
              System.out.println("After waiting for card");
              sc.close();           
         catch (Exception e)
              e.printStackTrace(System.err);
              System.exit(0);
         finally
         { // even in case of an error...
              try {
                   SmartCard.shutdown();
              catch (Exception e)
              e.printStackTrace(System.err);
         System.exit(0);
    I am using cyberflex 32k access developer card and reflex v2 usb lite reader
    I am getting the following run time errors
    C:\J2SDK1.4.0_03\BIN\java.exe ReadFile
    Working Directory - C:\
    Class Path - C:\;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\samples\classes;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\base-core.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\base-opt.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\reference-terminals-windows.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\pcsc-wrapper-src.jar;C:\smartcard\java_card_kit-2_2_01-win-gl\java_card_kit-2_2\lib\reference-services.jar;.;c:\Kawa3.5\kawaclasses.zip;c:\j2sdk1.4.0_03\lib\tools.jar;c:\j2sdk1.4.0_03\jre\lib\rt.jar
    initializing file...
    Before start
    [ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardGetStatusChange
    --- message PCSC Exception in method SCardGetStatusChange: error executing SCardGetStatusChange
    return code = 8010002e
    --- thread Thread[main,5,main]
    --- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@4a5ab2
    After start
    After Card request
    [ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardGetStatusChange
    --- message PCSC Exception in method SCardGetStatusChange: error executing SCardGetStatusChange
    return code = 8010002e
    --- thread Thread[Thread-1,5,main]
    --- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@4a5ab2
    [ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardConnect
    --- message PCSC Exception in method SCardConnect: PC/SC Error SCardConnect
    return code = 80100009
    --- thread Thread[Thread-1,5,main]
    --- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@4a5ab2
    opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardConnect: PC/SC Error SCardConnect
    return code = 80100009
         at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.translatePcscException(Pcsc10CardTerminal.java:502)
         at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.cardConnect(Pcsc10CardTerminal.java:361)
         at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.internalOpenSlotChannel(Pcsc10CardTerminal.java:315)
         at opencard.core.terminal.CardTerminal.openSlotChannel(CardTerminal.java:385)
         at opencard.core.service.CardServiceRegistry.getSmartCard(CardServiceRegistry.java:316)
         at opencard.core.service.SmartCard.getSmartCard(SmartCard.java:388)
         at opencard.core.service.CardWaiter.cardInserted(CardWaiter.java:98)
         at opencard.core.event.EventGenerator.updateCards(EventGenerator.java:233)
         at opencard.core.terminal.CardTerminalRegistry.cardInserted(CardTerminalRegistry.java:281)
         at opencard.core.terminal.CardTerminal.cardInserted(CardTerminal.java:577)
         at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.poll(Pcsc10CardTerminal.java:493)
         at opencard.core.event.EventGenerator.run(EventGenerator.java:199)
         at java.lang.Thread.run(Thread.java:536)
    Process Exit...
    It comes out of smartcard.start()
    But it also throws some errors.
    Cant figure out wat the problem is.
    Can someone please guide us in this
    Thanks
    Nagesh

    Hello,
    I am encountering the same problem that you had. When I try to execute my OpenCardFramework application, I get the following error, "... PCSC Exception in method SCardConnect: PC/SC Error SCardConnect return code = 80100009 ..."
    I am using a Schlumberger USB card reader. I know the card reader works because I have used it with other applications.
    What was the problem that you had with the USB reader and the OpenCardFramework? Could you please post it to the forum?
    Thanks

  • Error SCardConnect return code = 80100009 / How to use another SC reader?

    Hello,
    I have 2 card readers connected to my PC. One for harddrive encryption which is part of our internal security and another one for my development (Gemplus GemPC433-SL7). I have installed the OpenCard framework for the first time on my PC because I would like to write a small SmartCard Client application reading some data from a file stored in a smart card.
    My problem is that I would like to use the Gemplus card reader to do this but when I start the batch "GetSmartCard.bat" it seems that it is trying to read the card from the smartcard reader used for my harddrive encryption. Then I get the error PC/SC Error SCardConnect return code = 80100009.
    Can you please tell me how can I force OCF to use the other card reader (GemPC433-SL7)?
    Thanks in advance for your replies.
    Alain

    I managed to get the Gemplus terminal by using the following code. I can detect is the card is inserted by using "terminal.isCardPresent(0);" but when I execute the line "SmartCard sc = SmartCard.waitForCard(cr);"
    I get the error : "opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardGetStatusChange: error executing SCardGetStatusChange
    return code = 8010002e"
    package com.hitec.chipandpin;
    import opencard.core.service.SmartCard;
    import opencard.core.service.CardRequest;
    import opencard.opt.iso.fs.FileAccessCardService;
    import opencard.opt.iso.fs.CardFile;
    import opencard.core.terminal.CardTerminal;
    import opencard.core.*;
    import java.io.*;
    import opencard.core.terminal.*;
    import opencard.core.service.*;
    import opencard.core.util.*;
    import java.util.Enumeration;
    public class InitFile {
      public static void main(String[] args)
        System.out.println("initializing file...");
          try {
          // initialize framework
            SmartCard.start();
          // get the enumeration of presently registered card terminals
            Enumeration terminals = CardTerminalRegistry.getRegistry().getCardTerminals();
            CardTerminal terminal = null;
            while (terminals.hasMoreElements()) {
              terminal = (CardTerminal) terminals.nextElement();
              if (terminal.getName().indexOf("Gemplus GemPC433") != -1) {
                //Gemplus terminal found
                break;
            // wait for a smartcard with file access support
            CardRequest cr = new CardRequest(CardRequest.ANYCARD , terminal, FileAccessCardService.class);
            SmartCard sc = SmartCard.waitForCard(cr);
            FileAccessCardService facs = (FileAccessCardService)sc.getCardService(FileAccessCardService.class, true);
            CardFile root = new CardFile(facs);
            CardFile file = new CardFile(root, ":c009");
            String entry = args[0].replace(':', '\n');
            byte[] bytes = entry.getBytes();
            int length = bytes.length;
            byte[] data = new byte[file.getLength()];
            if (data.length < length) {
              length = data.length;
            System.arraycopy(bytes, 0, data, 0, length);
            // write the data to the file
            facs.write(file.getPath(), 0, data);
            System.out.println(entry);
          catch (Exception ex) {
            ex.printStackTrace(System.err);
    finally { // even in case of an error...
          try {
            SmartCard.shutdown();
          } catch (Exception e) {
            e.printStackTrace(System.err);
        System.exit(0);
    }Can anyone of you help me to solve this problem?
    Thanks in advance.
    Alain.

  • ClassNotFoundException in OCF

    I have code fragment
    FileAccessCardService facs = null;
    try
               //sm is SmartCard Object
                facs = (FileAccessCardService)sm.getCardService(FileAccessCardService.class, true);
    catch(ClassNotFoundException e)
                e.printStackTrace();
                //System.out.println("xxx");
            catch(CardServiceException e)
                e.printStackTrace();
                //System.out.println("555");
    }when I run my Project i found error
    java.lang.ClassNotFoundException: CardService implementing interface opencard.opt.iso.fs.FileAccessCardService
    and my opencard.properties is
    OpenCard.services = \
    com.ibm.opencard.factory.MFCCardServiceFactory \
    opencard.opt.util.PassThruCardServiceFactory
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    OpenCard.trace = opencard:5and I add OCF lib to classpath
    How I solve my problem to my project can run?
    Thank you

    I have code fragment
    FileAccessCardService facs = null;
    try
               //sm is SmartCard Object
                facs = (FileAccessCardService)sm.getCardService(FileAccessCardService.class, true);
    catch(ClassNotFoundException e)
                e.printStackTrace();
                //System.out.println("xxx");
            catch(CardServiceException e)
                e.printStackTrace();
                //System.out.println("555");
    }when I run my Project i found error
    java.lang.ClassNotFoundException: CardService implementing interface opencard.opt.iso.fs.FileAccessCardService
    and my opencard.properties is
    OpenCard.services = \
    com.ibm.opencard.factory.MFCCardServiceFactory \
    opencard.opt.util.PassThruCardServiceFactory
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    OpenCard.trace = opencard:5and I add OCF lib to classpath
    How I solve my problem to my project can run?
    Thank you

  • Opencard.core.terminal.CardTerminalException: no response from smartcard

    I am using GemPlus GemPC410 cardreader and JCOP 3.0 java card. The applet has been installed on the card but when you try to send any APDU it throws the above error "opencard.core.terminal.CardTerminalException: no response from smartcard".
    The complete stack trace of the error is as below
    opencard.core.terminal.CardTerminalException: no response from smartcard at com.gemplus.opencard.terminal.GemplusSerialCardTerminal.internalSendAPDU(GemplusSerialCardTerminal.java:763)
         at com.gemplus.opencard.terminal.GemCoreCardTerminal.internalSendAPDU(GemCoreCardTerminal.java:349)
         at opencard.core.terminal.CardTerminal.sendAPDU(CardTerminal.java:494)
         at opencard.core.terminal.SlotChannel.sendAPDU(SlotChannel.java:115)
         at opencard.core.service.CardChannel.sendCommandAPDU(CardChannel.java:222)
         at opencard.opt.applet.ISOAppletSelector.selectApplet(ISOAppletSelector.java:134)
         at opencard.opt.applet.BasicAppletCardService.selectApplet(BasicAppletCardService.java:155)
         at opencard.opt.applet.BasicAppletCardService.sendCommandAPDU(BasicAppletCardService.java:186)
         at purse.wallet.MyCardProxy.selectApplet(MyCardProxy.java:220)
         at purse.wallet.FirstApp.cardInserted(FirstApp.java:75)
         at opencard.core.event.EventGenerator.updateCards(EventGenerator.java:233)
         at opencard.core.terminal.CardTerminalRegistry.cardInserted(CardTerminalRegistry.java:281)
         at opencard.core.terminal.CardTerminal.cardInserted(CardTerminal.java:577)
         at com.gemplus.opencard.terminal.GemplusSerialCardTerminal.poll(GemplusSerialCardTerminal.java:633)
         at opencard.core.event.EventGenerator.run(EventGenerator.java:199)
         at java.lang.Thread.run(Thread.java:595)The point where exception occurs in our code is given below : -
    public boolean selectApplet()
        throws CardServiceInvalidCredentialException,
               CardServiceOperationFailedException,
               CardServiceInvalidParameterException,
               CardServiceUnexpectedResponseException,
               CardServiceException,
               CardTerminalException {
        try {
            // Set up the command APDU and send it to the card.
             System.out.println("Inside selApplet");
              allocateCardChannel();
             channel = getCardChannel();
            byte[] SelAid= { (byte)0x00, (byte)0xA4, (byte)0x04, (byte)0x00,
                      (byte)0x05,(byte)0x37, (byte)0x36, (byte)0x35,
                      (byte)0x34, (byte)0x33 };
            selectAPDU = new CommandAPDU( SelAid, 5 );
            // Send command APDU and check the response.
            //this is where the exception is thrown
            ResponseAPDU response =channel.sendCommandAPDU(channel,selectAPDU,this.getAppletID());
            System.out.println("response " + response);
            switch (response.sw() & 0xFFFF) {
                case OK :
                    return true;
                default :
                    throw new
                        CardServiceUnexpectedResponseException
                        ("RC=" + response.sw());
        } finally {
            releaseCardChannel();
        what could be the solution?
    thanks for reading.

    Hi,
    This could be due to your card OS doing a self check on power up. Once the card has validated itself it will start responding. Is this a contact or contactless card you are using?
    Cheers,
    Shane

  • ClassNotFound Exception when try to list cardservice

    I was trying to list the applications in the card with the codes in OCF1.2 programmer's guide, but got a ClassNotFound Exception. Here is my code:
         AppletAccessCardService aacs = null;
                   aacs = (AppletAccessCardService)sc.getCardService(AppletAccessCardService.class, true);
                   if(aacs != null){
                        AppletInfo[] ai = aacs.list();
                        for(int i=0; i<ai.length; i++)
                             System.out.println(ai.toString());
    The output message:
    java.lang.ClassNotFoundException: CardService implementing interface opencard.opt.applet.mgmt.AppletAccessCardService
    at opencard.core.service.CardServiceRegistry.getCardServiceInstance(CardServiceRegistry.java:269)
    at opencard.core.service.SmartCard.getCardService(SmartCard.java:331)
    at GetCID.main(GetCID.java:27)
    But cardman list shows there are applets in the card:
    Application: PERSONALIZED (--------) 080000000A0001
    Load File : LOADED (--------) A0000000620001 (java.lang)
    Load File : LOADED (--------) A0000000620101 (javacard.framework)
    Load File : LOADED (--------) A0000000620102 (javacard.framework)
    Load File : LOADED (--------) A0000000620201 (javacardx.crypto)
    Load File : LOADED (--------) A0000000030000 (visa.openplatform)
    Load File : LOADED (--------) A000000167413001
    Load File : LOADED (--------) A0000001320001
    Load File : LOADED (--------) A0000000035350
    Load File : LOADED (--------) A000000063 (PKCS15)
    Load File : LOADED (--------) 080000000A00
    Why did I get this Exception? Is it because that no applet in the card implements the AppletAccessService interface? Thanks in advance.

    The problem is located in your opencard.properties file:
    You have to include opencard.opt.emv.mgmt.EMVCardServiceFactory to your list of OpenCard.services.
    My complete opencard.properties is as follows:
    # Card service configuration  #
    OpenCard.services = \
        com.ibm.opencard.factory.MFCCardServiceFactory \
        opencard.opt.util.PassThruCardServiceFactory \
         opencard.opt.emv.mgmt.EMVCardServiceFactory
    # Card terminal configuration #
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    # Trace configuration         #
    OpenCard.trace = opencard:5

  • Handling exceptions with servlets

    Hi All,
    I am trying to to write a servlet that would handle the errors of my applications under Application Server 8.1
    Therefore i used the below:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ErrorDisplay extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    String code = null, message = null, type = null, uri = null;
    Object codeObj, messageObj, typeObj;
    Throwable throwable;
    // Retrieve the three possible error attributes, some may be null
    codeObj = req.getAttribute("javax.servlet.error.status_code");
    messageObj = req.getAttribute("javax.servlet.error.message");
    typeObj = req.getAttribute("javax.servlet.error.exception_type");
    throwable = (Throwable) req.getAttribute("javax.servlet.error.exception");
    uri = (String) req.getAttribute("javax.servlet.error.request_uri");
    if (uri == null) {
    uri = req.getRequestURI(); // in case there's no URI given
    // Convert the attributes to string values
    if (codeObj != null) code = codeObj.toString();
    if (messageObj != null) message = messageObj.toString();
    if (typeObj != null) type = typeObj.toString();
    // The error reason is either the status code or exception type
    String reason = (code != null ? code : type);
    out.println("<HTML>");
    out.println("<HEAD><TITLE>" + reason + ": " + message + "</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<H1>" + reason + "</H1>");
    out.println("<H2>" + message + "</H2>");
    out.println("<PRE>");
    if (throwable != null) {
    throwable.printStackTrace(out);
    out.println("</PRE>");
    out.println("<HR>");
    out.println("<I>Error accessing " + uri + "</I>");
    out.println("</BODY></HTML>");
    and i added the following to my web.xml
    <error-page>
    <exception-type>javax.servlet.ServletException</exception-type>
    <location>/opt/SUNWappserver/appserver/samples/webapps/apps/nav/servlets/ErrorDisplay</location>
    </error-page>
    I have written a program to divide by zero, however it didnt call the above customized page but it threw the caught exception.
    What is missing or what might i be doing wrong?
    Any thoughts?
    regards,
    Scotty

    the thrown exception is actually a ServletException? I would doubt that given the circumstances.

  • Classnotfound exception when locking account

    Hi All,
    thought I'd post this here. before heading to support.
    I recently noticed that accounts are not getting locked after the number of failed logon attempts has been exceeded. what I am getting is....
    2008-05-06 07:50:55,850 ERROR [XELLERATE.ACCOUNTMANAGEMENT] [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] - Class/Met
    hod: XellerateLoginModuleImpl/login encounter some problems: com/thortech/xl/scheduler/common/SchedulerUtil
    java.lang.NoClassDefFoundError: com/thortech/xl/scheduler/common/SchedulerUtil
    Has anyone run into this? I think it started after a patch was applied a long time ago.
    Thanx
    Fred

    The problem is located in your opencard.properties file:
    You have to include opencard.opt.emv.mgmt.EMVCardServiceFactory to your list of OpenCard.services.
    My complete opencard.properties is as follows:
    # Card service configuration  #
    OpenCard.services = \
        com.ibm.opencard.factory.MFCCardServiceFactory \
        opencard.opt.util.PassThruCardServiceFactory \
         opencard.opt.emv.mgmt.EMVCardServiceFactory
    # Card terminal configuration #
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    # Trace configuration         #
    OpenCard.trace = opencard:5

  • GemXpresso Lite authentication problem

    Hi,
    I have a JavaCard GemXpresso Lite but when try to install an applet JCardManager give me error with authentication.
    In JCardManager I use "USim Card R5" for send APDU command.
    Get Data Info
    IC Fabricator                               [0004]
    IC Type                                     [0015]
    Operating System Identifier                 [3231]
    Operating System release date               [0300]
    Operating System release level              [3330]
    IC Fabrication Date                         [0307]
    IC Serial Number                            [00013308]
    IC Batch Number                             [00BD]
    IC Module Fabricator                        [1292]
    IC Module Packaging Date                    [1120]
    ICC Manufacturer                            [1293]
    IC Embedding Date                           [1120]
    IC Pre-Personalizer                         [0000]
    IC Pre-Personalization Date                 [0000]
    IC Pre-Personalization Equipment Identifier [00000000]
    IC Personalizer                             [0000]
    IC Personalization Date                     [0000]
    IC Personalization Equipment Identifier     [00000000]Select Card Manager it's OK
    -> 00 A4 04 00 07 A0 00 00 00 18 43 4D
    <- 6F 18 84 07 A0 00 00 00 18 43 4D A5 0D 9F 6E 06 32 31 03 00 33 30 9F 65 01 FF, 90 00 Authentication:
    -> 80 50 00 01 08 00 01 02 03 04 05 06 07 (1C)
    <- 43 4D 03 07 00 01 33 08 00 BD 0D 01 0E E6 AB 8B CB 1C 33 33 22 76 10 16 E6 D1 42 50, 90 00   [Normal ending of the command.]
    KeySet defined by the InitializeUpdate card response:13
    Command Exception on command: Authenticate. no diversificationKeySet found.Or initially with P1= 01 e P2=01 give me this error:
    -> 80 50 01 01 08 00 01 02 03 04 05 06 07 (1C)
    <- 6A 88 (ISO 7816-4) Wrong parameter(s) P1 P2 (Reference data not found).I try to GET DATA Key Information Data
    -> 80 CA 00 E0 (00)
    <- 6A 86  (ISO 7816-4) Wrong parameter(s) P1 P2 (Incorrect parameters P1 P2). Also with-> 00 CA 00 E0 (00)
    <- 6E 00Thanks very much for help

    I tried the program showed in the thread but External authentication not work.
    I don't understand as build the derivation data for my Gemplus Card.
    This is the trace:
    Reading file from smart card...
    Card inserted...
    Smart Card Version is OCF1.2;IBM Reference Implementation, Build ???, XX-XXXXXX-1999
    Smart Card ID is opencard.core.terminal.CardID@1bf73fa ATR: 3F 6D 00 00 80 31 80 65 B0 05 01 02 5E 83 00 90
    00
    Smart Card slot id 0
    Smart Card historicals 80 31 80 65 B0 05 01 02 5E 83 00 90 00
    facs->opencard.opt.util.PassThruCardService
    facs interfaces:
    Selecting Card Manager
    Sending CommandAPDU ->00 A4 04 00 07 A0 00 00 00 18 43 4D 00
    ResponsAPDU sw1 is 90
    ResponsAPDU sw2 is 00
    Response to select is <-  6F 18 84 07 A0 00 00 00 18 43 4D A5 0D 9F 6E 06
    32 31 03 00 33 30 9F 65 01 FF 90 00
    Data is 6F 18 84 07 A0 00 00 00 18 43 4D A5 0D 9F 6E 06
    32 31 03 00 33 30 9F 65 01 FF
    Init Update
    ResponsAPDU sw1 is 90
    ResponsAPDU sw2 is 00
    Response to select is <-  43 4D 03 07 00 01 33 09 00 BD 0D 01 23 18 20 54
    8C 72 1D 3C 8F A1 C0 30 32 AE 64 EA 90 00
    Data is 43 4D 03 07 00 01 33 09 00 BD 0D 01 23 18 20 54
    8C 72 1D 3C 8F A1 C0 30 32 AE 64 EA
    Card Challenge -> 23 18 20 54 8C 72 1D 3C
    Host Challenge -> 00 00 00 00 00 00 00 1C
    Card Cryptogram -> 8F A1 C0 30 32 AE 64 EA
    Derivation Data is 8C 72 1D 3C 00 00 00 00 23 18 20 54 00 00 00 1C
    Host Cryptogram Data (to encrypt) 23 18 20 54 8C 72 1D 3C 00 00 00 00 00 00 00 1C
    80 00 00 00 00 00 00 00
    Card Cryptogram Data (to encrypt for verification) 00 00 00 00 00 00 00 1C 23 18 20 54 8C 72 1D 3C
    80 00 00 00 00 00 00 00
    Static ENC Key is CA CA CA CA CA CA CA CA 2D 2D 2D 2D 2D 2D 2D 2D
    CA CA CA CA CA CA CA CA
    Static MAC Key is 2D 2D 2D 2D 2D 2D 2D 2D CA CA CA CA CA CA CA CA
    2D 2D 2D 2D 2D 2D 2D 2D
    SessionKey Sized is 24
    The Current session ENC key is 9B 4D 80 E0 06 B8 C3 AA 10 6B 29 30 6D 81 18 E2
    9B 4D 80 E0 06 B8 C3 AA
    SessionKey Sized is 24
    The Current session MAC key is 03 9D 20 11 77 A0 1F 0A 8C 96 2D CF DD 81 C3 E8
    03 9D 20 11 77 A0 1F 0A
    Encrypted CardCryptoGram is 4B 0B 62 27 8F 64 24 81 88 9F 9F 58 87 45 8A A2
    A3 AE 08 82 CE 49 7D B6
    External authentication
    Sending CommandAPDU ->84 82 00 00 10 88 9F 9F 58 87 45 8A A2 8C 96 2D
    CF DD 81 C3 E8
    ResponsAPDU sw1 is 63
    ResponsAPDU sw2 is 00
    Response to select is <- 63 00
    Data is null
    Closing Smart CardI tried also with JCop Tools with class com.ibm.jc.GX211CardManager but not work.
    -  /term "winscard:4|TTFN DumbMouse 0"
    --Opening terminal
    /card -a a000000018434d -c com.ibm.jc.GX211CardManagerresetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3F 6D 00 00 80 31 80 65 B0 05 01 02 5E 83 00 90    ?m...1.e....^...
        00                                                 .
    ATR: T=0, N=0, Hist=80318065B00501025E83009000
    => 00 A4 04 00 07 A0 00 00 00 18 43 4D 00             ..........CM.
    (220280 usec)
    <= 6F 18 84 07 A0 00 00 00 18 43 4D A5 0D 9F 6E 06    o........CM...n.
        32 31 03 00 33 30 9F 65 01 FF 90 00                21..30.e....
    Status: No Error
    cm>  set-key 255/1/DES-ECB/cacacacacacacaca2d2d2d2d2d2d2d2d 255/2/DES-ECB/2d2d2d2d2d2d2d2dcacacacacacacaca 255/3/DES-ECB/ca2dca2dca2dca2d2dca2dca2dca2dca
    cm>  init-update 255
    => 80 50 00 00 08 47 98 8A 5F F1 E4 1C 03 00          .P...G.._.....
    (1071816 usec)
    <= 43 4D 03 07 00 01 33 09 00 BD 0D 01 5E D0 94 FE    CM....3.....^...
        6D B3 10 4F 33 EC C5 70 DC F5 01 49 90 00          m..O3..p...I..
    Status: No Error
    cm>  ext-auth plain
    => 84 82 00 00 10 81 64 7C D3 A7 20 6E 69 B3 17 8F    ......d|.. ni...
        58 5B 87 98 AC                                     X[...
    (1174756 usec)
    <= 69 82                                              i.
    Status: Security condition not satisfied
    jcshell: Error code: 6982 (Security condition not satisfied)
    jcshell: Wrong response APDU: 6982
    Unexpected error; aborting executionThanks for the help

  • Error while Accessing Smart Card using Open Card Frame Work

    HI
    Using Open Card Frame work I am trying to access GemAlto provided Smart Card (java card). I downloaded the Open Card Frame work from “http://www.openscdp.org/ocf/download.html”.
    I am executing a basic program to access the data stored in smart card.
    public static void main(String[] args)
                        System.out.println("reading smartcard file...");
                        try {
                        SmartCard.start();
                        CardRequest cr = (FileAccessCardService.class);
                        System.out.println("calling waitforCard");
                        SmartCard sc = SmartCard.waitForCard(cr); //Error comes after this line
                        System.out.println("After waitForCard called");
                        FileAccessCardService facs = (FileAccessCardService)
                        sc.getCardService(FileAccessCardService.class, true);
                        CardFile root = new CardFile(facs);
                        CardFile file = new CardFile(root, ":c009");
                        byte[] data = facs.read(file.getPath(), 0,
                        file.getLength() );
                        sc.close();
                        String entry = new String(data);
                        entry = entry.trim();
                        System.out.println(entry);
                        } catch (Exception e) {
                             e.printStackTrace(System.err);
                        System.exit(0);
    The content of the opencard.properties are :
              OpenCard.services = opencard.opt.util.PassThruCardServiceFactory
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    OpenCard.trace = opencard:5 com.ibm:4 opencard.opt.database:6
    After the line “ SmartCard sc = SmartCard.waitForCard(cr);”
    the program is expecting a card to be inserted but while inserting Smartcard the following error message come :
              calling waitforCard
              [ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardConnect
    --- message
    --- thread Thread[Thread-0,5,main]
    --- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@2e7263
    [ERROR    ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardConnect
    --- message Protocol = 0
    --- thread Thread[Thread-0,5,main
    --- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@2e7263
    Basically the error is coming from the SCardConnect function of OCFPCSC1.cpp file.
    Please reply to my mail id if any body has any idea how to resolve this issue.
    MAIL-ID : [email protected]
    With Regards
    Swarup
    Finacle Archie
    Infosys Technologies Limited,Bhubaneswar,India

    Sounds like an issue that has to do with JavaScript Origin policy. You'll have to use Domain Relaxing for this. Read all about it here:
    http://help.sap.com/saphelp_nw04/helpdata/en/59/87b54064c2742ae10000000a155106/frameset.htm
    here:
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/473d4124b08739e10000000a1550b0/frameset.htm
    and here:
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/f8751d8c6b254dac189f4029c76112/frameset.htm

  • Compilation errors with compat=5

    I am having a problem compiling an application with the option compat=5. I get the following errors:
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 18: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 19: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 19: Error: Multiple declaration for std::exception::exit().
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 20: Error: "," expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 21: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 21: Error: "," expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 22: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 22: Error: "," expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 19: Error: "std::exception::exit()" is expected to return a value.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 27: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 28: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 28: Error: Multiple declaration for std::bad_exception::exit().
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 29: Error: "," expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 30: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 30: Error: "," expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 31: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 31: Error: "," expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 28: Error: "std::bad_exception::exit()" is expected to return a val
    ue.
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 37: Error: "{" expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 37: Error: Too few arguments in call to "std::exit(int)".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 43: Error: "," expected instead of "exit".
    "/opt/SUNWspro/WS6U1/include/CC/./exception", line 46: Error: Badly formed expression.
    "/opt/SUNWspro/WS6U1/include/CC/./new", line 20: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./new", line 21: Error: Use ";" to terminate declarations.
    "/opt/SUNWspro/WS6U1/include/CC/./new", line 21: Error: Multiple declaration for std::std::bad_alloc::exit().
    Compilation aborted, too many Error messages.
    The flags, etc. are as follows:
    /opt/SUNWspro/bin/CC -c -G -KPIC -g -w -I/home/jstrong/dev/include -I/home/jstrong/dev/app/include -I/opt/aCC/include/
    iostream -D_SVR4 -D_DEBUG -D_ora -D_SUNOS aealmem.C -o aealmem.o
    If I compile using compat=4, I can compile and link, but I get a runtime error opening a shared library. Any help would be greatly appreciated!

    Converting old code to the C++ standart is not just a matter of
    compiler flags. Please have a look at:
    "C++ Migration Guide"
    http://docs.sun.com/htmlcoll/coll.32.8/iso-8859-1/CPPMIGRATE/MigrTOC.html
    and Migration Guides in "Technical Articles":
    http://soldc.sun.com/articles/index.html

  • Return code = 00000057 using a gem pc twin reader with OCF

    Hello, i really need help.
    I'm having the famous return code = 00000057 when i try to send an APDU command, I'm using a applet proxy, so it send an select APDU inside the OCF framework, and the result is success, so i'm able to send an select Applet, but when i try to send the following apdu:
    allocateCardChannel();
    // Set up the command APDU and send it to the card.
    getBalanceAPDU.setLength(0);
    getBalanceAPDU.append(MyAPPLET_CLA); // Class
    getBalanceAPDU.append(VERIFY_INS); // Instr'n
    getBalanceAPDU.append((byte) 0x00); // P1
    getBalanceAPDU.append((byte) 0x00); // P2
    getBalanceAPDU.append((byte) 0x00); // Lc
    getBalanceAPDU.append((byte) 0x05); // Le
    // Send command APDU and check the response.
    ResponseAPDU response;
    //response = new ResponseAPDU(07);
    response = sendCommandAPDU(getCardChannel(), MY_CARD_AID,
    getBalanceAPDU);
    i got that error. I pasted, all the debug message below. I already updated the pcsc-wrapper-2.0.jar file, but i'm still having this error, as i said i'm using an gem pc twin cardreader with gemxpresso card. My opencard.properties file:
    # Card service configuration #
    OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory \
    opencard.opt.util.PassThruCardServiceFactory \
    br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
    #OpenCard.services = br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
    # Card terminal configuration #
    #OpenCard.terminals = GemplusCardTerminalFactory
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
    #OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    #OpenCard.terminals=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|myGEMPlus|GEM430PC|SHARED
    # Trace configuration #
    OpenCard.trace = opencard:9
    ----- the debug----
    [DEBUG    ] opencard.core.service.SmartCard.getRegistryEntry
    --- message tag OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.terminal.CardTerminal.<init>
    --- message (Gemplus USB Smart Card Reader 0, PCSC10, )
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.terminal.CardTerminal
    [DEBUG    ] opencard.core.event.EventGenerator.updateTerminals
    --- message new pollable Terminal = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.event.EventGenerator
    [DEBUG    ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.cardInserted
    --- message slotID 0, )
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    [DEBUG    ] opencard.core.event.EventGenerator.updateCards
    --- message card inserted slotID = 0
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.event.EventGenerator
    [DEBUG    ] opencard.core.service.SmartCard.getRegistryEntry
    --- message tag OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory opencard.opt.util.PassThruCardServiceFactory br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.service.CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceFactory
    [DEBUG    ] opencard.core.service.CardServiceRegistry.add
    --- message com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    [DEBUG    ] opencard.core.service.CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceFactory
    [DEBUG    ] opencard.opt.service.OCF11CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.service.OCF11CardServiceFactory
    [DEBUG    ] opencard.core.service.CardServiceRegistry.add
    --- message opencard.opt.util.PassThruCardServiceFactory@94cc7
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    [DEBUG    ] opencard.core.service.CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceFactory
    [DEBUG    ] opencard.core.service.CardServiceRegistry.add
    --- message [email protected]fa0f0
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    [DEBUG    ] opencard.core.service.SmartCard.<start>
    --- message finished
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getSmartCard
    --- message CTEvent opencard.core.event.CardTerminalEvent[source=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr ]
    ---source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    ---id 1
    card inserted in slot 0
    terminal com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
    --- message for slot #0
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    [DEBUG    ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
    --- message new SlotChannel is opencard.core.terminal.SlotChannel@182815a
    + state open
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    [DEBUG    ] opencard.core.service.CardServiceRegistry.allocateCardServiceScheduler
    --- message instantiating CardServiceScheduler
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardServiceScheduler.<init>
    --- message slotChannel opencard.core.terminal.SlotChannel@182815a
    + state open
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceScheduler
    [DEBUG    ] opencard.core.service.CardChannel.<init>
    --- message (opencard.core.terminal.SlotChannel@182815a
    + state open)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardChannel
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getSmartCard
    --- message using CardServiceScheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardServiceScheduler.createSmartCard
    --- message creating SmartCard
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.SmartCard.<init>
    --- message scheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive, cid opencard.core.terminal.CardID@1a5ba75 ATR: 3B 7D 94 00 00 80 31 80 65 B0 83 01 02 90 83 00
    90 00
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.service.SmartCard.getCardService
    --- message (class br.com.neac.petrobras.medidorgas.process.NastekCardProxy)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.SmartCard@fb7efa
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
    --- message for class br.com.neac.petrobras.medidorgas.process.NastekCardProxy from opencard.core.service.SmartCard@fb7efa
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
    --- message checking [email protected]c68b6f
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardService.<init>
    --- message default constructor of br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardService
    [DEBUG    ] opencard.opt.applet.AppletProxy.<init>
    --- message (A0 00 00 00 62 03 01 0C 02,opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.AppletProxy
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.initialize
    --- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.opt.applet.BasicAppletCardService.<init>
    --- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.BasicAppletCardService
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
    --- message allocating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.allocateCardChannel
    --- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.CardChannel.open
    --- message opening CardChannel
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    BasicAppletCardService - allocated CardChannel()
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
    --- message releasing
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.releaseCardChannel
    --- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    ++ channel is allocated
    [DEBUG    ] opencard.core.service.CardChannel.close
    --- message CardChannel closed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
    --- message allocating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.allocateCardChannel
    --- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.CardChannel.open
    --- message opening CardChannel
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
    --- message releasing
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.releaseCardChannel
    --- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    ++ channel is allocated
    [DEBUG    ] opencard.core.service.CardChannel.close
    --- message CardChannel closed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
    --- message factory [email protected]c68b6f produced br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
    --- message allocating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.allocateCardChannel
    --- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.CardChannel.open
    --- message opening CardChannel
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] opencard.opt.applet.BasicAppletCardService.sendCommandAPDU(channel,...)
    --- message sending opencard.core.terminal.CommandAPDU@1d92803
    0000: 00 20 00 00 00 05 . ....
    to <A0 00 00 00 62 03 01 0C 02>
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.BasicAppletCardService
    [DEBUG    ] opencard.opt.applet.BasicAppletCardService.selectApplet
    --- message selecting A0 00 00 00 62 03 01 0C 02
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.BasicAppletCardService
    [DEBUG    ] opencard.opt.applet.ISOAppletSelector.selectApplet
    --- message selecting A0 00 00 00 62 03 01 0C 02
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.ISOAppletSelector
    [DEBUG    ] opencard.core.service.CardChannel.sendCommandAPDU
    --- message opencard.core.terminal.CommandAPDU@1d206f0
    0000: 00 A4 04 00 09 A0 00 00 00 62 03 01 0C 02 00 .........b.....
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, is open, not jammed
    [DEBUG    ] opencard.core.service.CardChannel.response:
    --- message opencard.core.terminal.ResponseAPDU@1f23f8b
    0000: 90 00 ..
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, is open, not jammed
    [DEBUG    ] opencard.opt.applet.ISOAppletSelector.selectApplet
    --- message Selection response sw = 0x9000
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.ISOAppletSelector
    [DEBUG    ] opencard.core.service.CardChannel.sendCommandAPDU
    --- message opencard.core.terminal.CommandAPDU@1d92803
    0000: 00 20 00 00 00 05 . ....
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, is open, not jammed
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
    --- message releasing
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.releaseCardChannel
    --- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    ++ channel is allocated
    [DEBUG    ] opencard.core.service.CardChannel.close
    --- message CardChannel closed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardTransmit: error occurred with SCardTransmit
    return code = 00000057
    at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.translatePcscException(Pcsc10CardTerminal.java:502)

    Hello, i really need help.
    I'm having the famous return code = 00000057 when i try to send an APDU command, I'm using a applet proxy, so it send an select APDU inside the OCF framework, and the result is success, so i'm able to send an select Applet, but when i try to send the following apdu:
    allocateCardChannel();
    // Set up the command APDU and send it to the card.
    getBalanceAPDU.setLength(0);
    getBalanceAPDU.append(MyAPPLET_CLA); // Class
    getBalanceAPDU.append(VERIFY_INS); // Instr'n
    getBalanceAPDU.append((byte) 0x00); // P1
    getBalanceAPDU.append((byte) 0x00); // P2
    getBalanceAPDU.append((byte) 0x00); // Lc
    getBalanceAPDU.append((byte) 0x05); // Le
    // Send command APDU and check the response.
    ResponseAPDU response;
    //response = new ResponseAPDU(07);
    response = sendCommandAPDU(getCardChannel(), MY_CARD_AID,
    getBalanceAPDU);
    i got that error. I pasted, all the debug message below. I already updated the pcsc-wrapper-2.0.jar file, but i'm still having this error, as i said i'm using an gem pc twin cardreader with gemxpresso card. My opencard.properties file:
    # Card service configuration #
    OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory \
    opencard.opt.util.PassThruCardServiceFactory \
    br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
    #OpenCard.services = br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
    # Card terminal configuration #
    #OpenCard.terminals = GemplusCardTerminalFactory
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
    #OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    #OpenCard.terminals=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|myGEMPlus|GEM430PC|SHARED
    # Trace configuration #
    OpenCard.trace = opencard:9
    ----- the debug----
    [DEBUG    ] opencard.core.service.SmartCard.getRegistryEntry
    --- message tag OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory|Autodetect|*|SHARED
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.terminal.CardTerminal.<init>
    --- message (Gemplus USB Smart Card Reader 0, PCSC10, )
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.terminal.CardTerminal
    [DEBUG    ] opencard.core.event.EventGenerator.updateTerminals
    --- message new pollable Terminal = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.event.EventGenerator
    [DEBUG    ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.cardInserted
    --- message slotID 0, )
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    [DEBUG    ] opencard.core.event.EventGenerator.updateCards
    --- message card inserted slotID = 0
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.event.EventGenerator
    [DEBUG    ] opencard.core.service.SmartCard.getRegistryEntry
    --- message tag OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory opencard.opt.util.PassThruCardServiceFactory br.com.neac.petrobras.medidorgas.process.NastekCardProxyFactory
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.service.CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceFactory
    [DEBUG    ] opencard.core.service.CardServiceRegistry.add
    --- message com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    [DEBUG    ] opencard.core.service.CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceFactory
    [DEBUG    ] opencard.opt.service.OCF11CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.service.OCF11CardServiceFactory
    [DEBUG    ] opencard.core.service.CardServiceRegistry.add
    --- message opencard.opt.util.PassThruCardServiceFactory@94cc7
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    [DEBUG    ] opencard.core.service.CardServiceFactory.<init>
    --- message instantiating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceFactory
    [DEBUG    ] opencard.core.service.CardServiceRegistry.add
    --- message [email protected]fa0f0
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    [DEBUG    ] opencard.core.service.SmartCard.<start>
    --- message finished
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getSmartCard
    --- message CTEvent opencard.core.event.CardTerminalEvent[source=com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr ]
    ---source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    ---id 1
    card inserted in slot 0
    terminal com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
    --- message for slot #0
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    [DEBUG    ] com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.openSlotChannel
    --- message new SlotChannel is opencard.core.terminal.SlotChannel@182815a
    + state open
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@1e1df6e
    + name Gemplus USB Smart Card Reader 0
    + type PCSC10
    + addr
    [DEBUG    ] opencard.core.service.CardServiceRegistry.allocateCardServiceScheduler
    --- message instantiating CardServiceScheduler
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardServiceScheduler.<init>
    --- message slotChannel opencard.core.terminal.SlotChannel@182815a
    + state open
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardServiceScheduler
    [DEBUG    ] opencard.core.service.CardChannel.<init>
    --- message (opencard.core.terminal.SlotChannel@182815a
    + state open)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardChannel
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getSmartCard
    --- message using CardServiceScheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardServiceScheduler.createSmartCard
    --- message creating SmartCard
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.SmartCard.<init>
    --- message scheduler opencard.core.service.CardServiceScheduler@4ab8b9, is alive, cid opencard.core.terminal.CardID@1a5ba75 ATR: 3B 7D 94 00 00 80 31 80 65 B0 83 01 02 90 83 00
    90 00
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.SmartCard
    [DEBUG    ] opencard.core.service.SmartCard.getCardService
    --- message (class br.com.neac.petrobras.medidorgas.process.NastekCardProxy)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.SmartCard@fb7efa
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
    --- message for class br.com.neac.petrobras.medidorgas.process.NastekCardProxy from opencard.core.service.SmartCard@fb7efa
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
    --- message checking [email protected]c68b6f
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] opencard.core.service.CardService.<init>
    --- message default constructor of br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.core.service.CardService
    [DEBUG    ] opencard.opt.applet.AppletProxy.<init>
    --- message (A0 00 00 00 62 03 01 0C 02,opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.AppletProxy
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.initialize
    --- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.opt.applet.BasicAppletCardService.<init>
    --- message (opencard.core.service.CardServiceScheduler@4ab8b9, is alive,opencard.core.service.SmartCard@fb7efa,true)
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.BasicAppletCardService
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
    --- message allocating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.allocateCardChannel
    --- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.CardChannel.open
    --- message opening CardChannel
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    BasicAppletCardService - allocated CardChannel()
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
    --- message releasing
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.releaseCardChannel
    --- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    ++ channel is allocated
    [DEBUG    ] opencard.core.service.CardChannel.close
    --- message CardChannel closed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
    --- message allocating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.allocateCardChannel
    --- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.CardChannel.open
    --- message opening CardChannel
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
    --- message releasing
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.releaseCardChannel
    --- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    ++ channel is allocated
    [DEBUG    ] opencard.core.service.CardChannel.close
    --- message CardChannel closed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] opencard.core.service.CardServiceRegistry.getCardServiceInstance
    --- message factory [email protected]c68b6f produced br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceRegistry@1f2ae62++ registered factory [email protected]c68b6f
    ++ registered factory com.ibm.opencard.factory.MFCCardServiceFactory@103368e
    ++ registered factory opencard.opt.util.PassThruCardServiceFactory@94cc7
    ++ registered factory [email protected]fa0f0
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.allocateCardChannel
    --- message allocating
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.allocateCardChannel
    --- message applicant br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    [DEBUG    ] opencard.core.service.CardChannel.open
    --- message opening CardChannel
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    [DEBUG    ] opencard.opt.applet.BasicAppletCardService.sendCommandAPDU(channel,...)
    --- message sending opencard.core.terminal.CommandAPDU@1d92803
    0000: 00 20 00 00 00 05 . ....
    to <A0 00 00 00 62 03 01 0C 02>
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.BasicAppletCardService
    [DEBUG    ] opencard.opt.applet.BasicAppletCardService.selectApplet
    --- message selecting A0 00 00 00 62 03 01 0C 02
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.BasicAppletCardService
    [DEBUG    ] opencard.opt.applet.ISOAppletSelector.selectApplet
    --- message selecting A0 00 00 00 62 03 01 0C 02
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.ISOAppletSelector
    [DEBUG    ] opencard.core.service.CardChannel.sendCommandAPDU
    --- message opencard.core.terminal.CommandAPDU@1d206f0
    0000: 00 A4 04 00 09 A0 00 00 00 62 03 01 0C 02 00 .........b.....
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, is open, not jammed
    [DEBUG    ] opencard.core.service.CardChannel.response:
    --- message opencard.core.terminal.ResponseAPDU@1f23f8b
    0000: 90 00 ..
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, is open, not jammed
    [DEBUG    ] opencard.opt.applet.ISOAppletSelector.selectApplet
    --- message Selection response sw = 0x9000
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source class opencard.opt.applet.ISOAppletSelector
    [DEBUG    ] opencard.core.service.CardChannel.sendCommandAPDU
    --- message opencard.core.terminal.CommandAPDU@1d92803
    0000: 00 20 00 00 00 05 . ....
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, is open, not jammed
    [DEBUG    ] br.com.neac.petrobras.medidorgas.process.NastekCardProxy.releaseCardChannel
    --- message releasing
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source br.com.neac.petrobras.medidorgas.process.NastekCardProxy@8f57a
    [DEBUG    ] opencard.core.service.CardServiceScheduler.releaseCardChannel
    --- message releasing opencard.core.service.CardChannel@9bb457, is open, not jammed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardServiceScheduler@4ab8b9, is alive
    ++ channel is allocated
    [DEBUG    ] opencard.core.service.CardChannel.close
    --- message CardChannel closed
    --- thread Thread[AWT-EventQueue-0,6,main]
    --- source opencard.core.service.CardChannel@9bb457, not open, not jammed
    opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC Exception in method SCardTransmit: error occurred with SCardTransmit
    return code = 00000057
    at com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal.translatePcscException(Pcsc10CardTerminal.java:502)

Maybe you are looking for

  • Infospoke - How to single Logical Filename for all infospokes

    Hello all, I want to only have one logical path and logical filename for all of my infospokes. For example if I have infospokes ZAAA, ZBBB, ZCCC, I want to have only one common setting in the destination properties of TC:RSBO but three different dist

  • How can I stop streaming of a sound?

    Hello, after asking in another Forum without getting an answer, I'm now posting here: I have a Sound var and some buttons (mc's with eventhandlers) on the stage. I have an array including URLs of some mp3 files. For every mp3 there is one button. Whe

  • Solaris 8 : core in /usr/lib/libssasnmp.so.1

    Hello, I have a core file when i use the trap_send_with_more_para() function to send a ColdStart trap in Solaris 8 (with or without the last SNMP patch (108869-18)) with SEA 1.0.3.. I have the same problem in Solaris 7 (SEA 1.0.3) when i add the 1077

  • DVI or VGA

    I just purchased an Acer x233h to use with my MBP 15. I use it mostly for business application. Is there a difference in screen quality using DVI or VGA? Right now its in VGA mode and its nice but was wondering if DVI mode would be better. If I use D

  • Wireless downloads slower with BT Infinity

    I recently upgraded from BT Broadband (ADSL2+ with BT Home Hub 1.0) to BT Infinity. I installed and switched over to the new BT Home Hub 3 before the BT Openreach engineer came, as I was worried about how wireless networking would work as the Hub had