Hi Rami,
You are experiencing a problem where javax.comm (the Java communications
package, used to access the serial ports) attempts to use a port which is
locked by another windows application.
In this case, it is likely to be a native driver for the PCT-200 which is
locking the port, making it unavailable to java. (You can check if this is
the case by plugging the terminal into COM2, changing the
opencard.properties entry accordingly, and trying again. Do this without
rebooting. Another option is booting the PC with the PCT-200 unplugged, and
plugging it in after booting - with option a, the native driver won't
interfere, with option b it won't load. This is your workaround... let me
know how it works).
C A R L E S
> -----Original Message-----
> From: Rami Honig [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, January 23, 2000 5:44 PM
> To: [EMAIL PROTECTED]
> Subject: [OCF] Newbie problem starting opencard
>
> Hi there,
>
> I'm trying to write the most basic app that uses OpenCard and can't seem
>
> to get it going.
>
> Right now I get an exception as soon as I call SmartCard.start(). The
> stack trace is as follows:
>
> com.gieseckedevrient.opencard.terminal.io.SerialIO::init: Cannot create
> tty object - No serial port for 0
> opencard.core.terminal.TerminalInitException: Cannot get I/O agent to
> identify card terminal type
> at
> com.gieseckedevrient.opencard.terminal.GDCardTerminalFactory.createCardTer
> minals(GDCardTerminalFactory.java:140)
>
> at
> opencard.core.service.SmartCard.handleTerminalFactoryEntries(Compiled
> Code)
> at
> opencard.core.service.SmartCard.configureTerminalRegistry(Compiled Code)
>
> at opencard.core.service.SmartCard.start(SmartCard.java:527)
> at com.sun.IDCardGUI.IDCardGUIFrame.main(IDCardGUIFrame.java:93)
>
> I'm using a G & D PCT200 card reader with a G&D SmartCafe card. It works
>
> OK when I run an applet from within their IDE,
> but I can't get it to work without the IDE
>
> The stack trace seems to indicate a problem reading from the com port.
>
> Can anyone suggest anything?
> Thanks
>
>
>
>
>
> ---
> > 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.
---
> 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.