The following book definition is the location wherein you should put your
opencard.properties file. Depending on the configuration on how did you set your JDK,
etc.
I attached a code to determine exactly where you should put your opencard.properties
file.. Hope this helps...
>[java.home]/lib/opencard.properties
>[user.home]/.opencard.properties
>[user.dir]/opencard.properties
>[user.dir]/.opencard.properties
7/20/01 2:37:27 AM, "Dharanendra S Pandit" <[EMAIL PROTECTED]> wrote:
>Hello,
>I am facing with a very unusual problem, NullPointerException. The problem
>is happening when SmartCard.start( ), is being called. I feel it is
>happening when it is trying to �Configure the CardTerminal Registry�. In
>the opencard.properties file I have specified,
>
>#Configure the CardTerminal Registry:
>OpenCard.terminals
>=com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1
>
>I am using the reader provided by Gemplus, model type being GemPC410. The
>Reader is connected to COM1 port only.
>
>The stack trace is given below:
>opencard.core.terminal.CardTerminalException: java.lang.NullPointerException
>at
>com.gemplus.opencard.terminal.GemplusCardTerminal.open(GemplusCardTerminal.j
>ava, Compiled Code)
> at
>com.gemplus.opencard.terminal.GemplusCardTerminal.open(GemplusCardTerminal.j
>ava:230)
> at
>opencard.core.terminal.CardTerminalRegistry.add(CardTerminalRegistry.java:13
>2)
> at
>com.gemplus.opencard.terminal.GemplusCardTerminalFactory.createCardTerminals
>(GemplusCardTerminalFactory.java, Compiled Code)
> at
>opencard.core.service.SmartCard.handleTerminalFactoryEntries(SmartCard.java,
>Compiled Code)
> at
>opencard.core.service.SmartCard.configureTerminalRegistry(SmartCard.java,
>Compiled Code)
> at opencard.core.service.SmartCard.start(SmartCard.java:527)
> at ReadFile.main(ReadFile.java:14)
>
>
>I have another doubt.
>
>When SmartCard.start( ) is called, in what directories does the
>OpenCardPropertyFileLoader.loadProperties( ) method, looks for
>�opencard.properties� file? The book says it looks in,
>[java.home]/lib/opencard.properties
>[user.home]/.opencard.properties
>[user.dir]/opencard.properties
>[user.dir]/.opencard.properties
>
>Can you explain the meaning of each statement?
>
>
>Rgds,
>Dharanendra S. Pandit
>
>
>
>---
>> 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.
>
findOCF.java