Thanks a lot Aswartha,

by changing the .properties the problem is always the same,
so I disabled my smart card reader but now the same program (GetCardID) has the following errror:

[DEBUG    ] com.gemplus.opencard.terminal.GemplusSerialCardTerminal.open
--- message   new baud rate= 38400
--- thread    Thread[main,5,main]
--- source    class com.gemplus.opencard.terminal.GemplusSerialCardTerminal


CardTerminalException:

opencard.core.terminal.CardTerminalException: No reader found!

Do you have another idea??

Best regards

Rachel



"Aswartha Narayana" <[EMAIL PROTECTED]>

15/10/2003 10:20

       
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: [OCF + GEMPLUS] PortInUseException



Hi,
 
The problem is windows 2000 detects your smart card reader and initialize/enable that reader's driver.   One option for this is to change your opencard.properties
 
OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
The other option is to go with
    >OpenCard.terminals = com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1
 
From
 Control Panel >> System >> Hardware >> Device Manager >> SmartCard readers >> XXX reader    - disable the reader.
 
Hope this works out your problem
 
with best wishes
Aswarth
-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, October 15, 2003 1:35 PM
To:
[EMAIL PROTECTED]
Subject:
[OCF + GEMPLUS] PortInUseException


Hi,


I'm new in smart card and smart card reader, and I encountered some problem I am not able to solve

My environment:

windows 2000 SP4

a GemPC Twin smart card reader

OCF1.2 and comm.jar


I'm just trying tu use the samples provided by OCF but no one runs. Here are the tracks obtain with the GetCardID program:


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


start use case: get a card ID


[DEBUG    ] opencard.core.service.SmartCard.getRegistryEntry

--- message   tag OpenCard.terminals = com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1

--- thread    Thread[main,5,main]

--- source    class opencard.core.service.SmartCard


[DEBUG    ] opencard.core.terminal.CardTerminal.<init>

--- message   (mygcr, GCR410, COM1)

--- thread    Thread[main,5,main]

--- source    class opencard.core.terminal.CardTerminal


[INFO     ] com.gemplus.opencard.terminal.GemplusSerialCardTerminal.open

--- message   open terminal: mygcr
--- thread    Thread[main,5,main]

--- source    class com.gemplus.opencard.terminal.GemplusSerialCardTerminal


[DEBUG    ] com.gemplus.opencard.terminal.GemplusSerialCardTerminal.open

--- message   opening serial port COM1

--- thread    Thread[main,5,main]

--- source    class com.gemplus.opencard.terminal.GemplusSerialCardTerminal


CardTerminalException:


javax.comm.PortInUseException: Port currently owned by Unknown Windows Application


finished use case: get a card ID


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


I seen that in this case I had to disable the smart card resource manager or something like that.

I don't know exactly wath it is but I stop the smart card service in control panel/admin tool/services and

the result is the same.


So I don't know what i can do.............

Does anybody have the same smart card reader, is my opencard.properties file well configured because I don't know

if the type of the GemPC Twin reader is GCR410 or another one:


#OpenCard.property = new_value

#OpenCard.property.override = true


###############################

# Card service configuration  #

###############################


#OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory

#OpenCard.services = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory

OpenCard.services = opencard.opt.util.PassThruCardServiceFactory


###############################

# Card terminal configuration #

###############################


OpenCard.terminals = com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1


polling = usesthread


###############################

# Trace configuration         #

###############################


#OpenCard.trace = opencard:8

OpenCard.trace = opencard:8 com.ibm:8 com.gemplus.opencard.terminal:8


Any suggestion will be very appreciated


Thanks


Rachel
--- > 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.

Reply via email to