I'm having this fantastic problem (one of MANY that I've had with this) 
trying to develop using OCF 1.2 with either a GemSafe GemPC410 reader or a 
Bull SmarTLP3 reader, trying to run the GPKTest program that came with the 
Gemsafe kit.  I'm using Borland JBuilder 3.

I'll get one of two things happening:

1) This message will be displayed about twice a second, at infinitum:
(I'm using the ibm PCSC10 (updated, the old one didn't even get this far) 
driver for the Bull SmarTLP3 reader with a GPK8000 card):

[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@79ac1f00

opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC 
Exception in method SCardGetStatusChange: error executing SCardGetStatusChange
return code = 8010002e

---or---

2) (This one is even better).  The program will simply bail out and die, 
apparently it's trying to throw an exception, but it never makes it 
out.  The program will run, try to execute Smartcard.start() and then go to 
the last line of the catch() block, look like it's executing code but it 
won't, then go to the finally block and execute from there.  On tracing 
here's what happens:

GPKTest.java - main(...) - SmartCard.start();
\OpenCard\OCF1.2\components\base-core\src\opencard\core\service\SmartCard.java 
[534] - in start() - enter configureTerminalRegistry();
\OpenCard\OCF1.2\components\base-core\src\opencard\core\service\SmartCard.java 
[261] - in configureTerminalRegistry() - enter 
handleTerminalFactoryEntries(...);
\OpenCard\OCF1.2\components\base-core\src\opencard\core\service\SmartCard.java 
[432] - in handleTerminalFactoryEntries(...) - enter 
aFactory.createCardTerminals(...)
\OpenCard\OCF1.2\components\gemplus-terminals\src\com\gemplus\opencard\terminal\GemplusCardTerminalFactory.java
 
[150] - in createCardTerminals(...) - create new GemCoreCardTerminal(...)

at this point, even if I try to trace into or step over this line it 
returns to the main program immediately, highlights the last line in my 
catch() block (see code below, it doesn't matter WHAT is in the catch 
block, it'll always highlight the last line), not execute it, then proceed 
to the finally() block...  I have NO idea why it dies like this.

Anyone have ANY ideas to help?  I'm already half bald here...

Thanks!

--Sean

----------------------------------

        public static void main(String[] args)
        {
        try
        {
             System.out.println("\nStarting smartcard");
                SmartCard.start();

                        // wait for a smartcard with file access support
                        System.out.println("Creating CardRequest");
                        CardRequest cr = new CardRequest();

                        // Deprecated fot FOR OCF 1.2. Uncomment above instead
                        // CardRequest cr = new CardRequest(CardRequest.ANYCARD, null, 
null);
                        System.out.println("Waiting for card");
                        SmartCard   card = SmartCard.waitForCard(cr);
                        
                        System.out.println("\nstarting Tests");
                        
                        //For MPCOS: GPKTest test1 = new GPKTest(card, TEST_DIR);
                        GPKTest test1 = new GPKTest(card, TEST_ALL);
                        
                        test1.run();

     }
     catch(Exception e)
     {
        e.printStackTrace();
         try { System.in.read(); } catch (Exception eee) {}
         System.out.println("Howdy " + e.getMessage());
     }
     finally
     {
        try
        {
             System.out.println("--- Program Finished ---");
             System.in.read();
                SmartCard.shutdown();
                System.exit(0);
        }
        catch(Exception e)
        {
                e.printStackTrace();
        }
     }


output is as follows when the program is run:

Starting smartcard
--- Program Finished ---



---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to