Hello,
recently problems were reported on the OpenCard mailing list, where an exception
like this is thrown:
Exception in thread "main" java.lang.IllegalAccessError: try to access field ope
>
ncard/core/service/CardServiceFactory.class$opencard$core$service$CardServiceFac
> tory from class opencard/opt/service/OCF11CardServiceFactory
> at
opencard.opt.service.OCF11CardServiceFactory.<init>(OCF11CardServiceFactory.java:67)
> at
opencard.opt.util.PassThruCardServiceFactory.<init>(PassThruCardServiceFactory.java:81)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:241)
> at
opencard.core.service.SmartCard.configureServiceRegistry(SmartCard.java,
Compiled Code)
> at opencard.core.service.SmartCard.start(SmartCard.java:528)
> at GetProperties.main(GetProperties.java:66)
This problem is fixed in OCF 1.2 which will be released soon.
For now, please replace the class OCF11CardServiceFactory by this one:
(See attached file: OCF11CardServiceFactory.java)(See attached file:
OCF11CardServiceFactory.class)
Best regards,
Thomas
Thomas Schaeck
IBM Pervasive Computing Division - Smart Card Solutions
E-mail: [EMAIL PROTECTED] Tel.: ++49-7031-16-3479 Fax.:
++49-7031-16-4888
Address: IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032
Boeblingen, Germany
[EMAIL PROTECTED] on 18.01.2000 06:12:44
Please respond to james terry <[EMAIL PROTECTED]>
To: Erik-Oliver Blass <[EMAIL PROTECTED]>, Erik-Oliver Blass
<[EMAIL PROTECTED]>, [EMAIL PROTECTED]
cc: (bcc: Thomas Schaeck/Germany/IBM)
Subject: Re: [OCF] Towitoko Problems
i've got this problem too. i'm using a gcr415 (pretending to be a 410) &
javax.comm. i started seeing this after trying to use the passthru service.
[EMAIL PROTECTED]
On Mon, 17 Jan 2000, Erik-Oliver Blass wrote:
> Dear List,
>
>
> after trying for serveral hours I'm desperate:
>
> Exception in thread "main" java.lang.IllegalAccessError: try to access field
ope
>
ncard/core/service/CardServiceFactory.class$opencard$core$service$CardServiceFac
> tory from class opencard/opt/service/OCF11CardServiceFactory
> at
opencard.opt.service.OCF11CardServiceFactory.<init>(OCF11CardServiceF
> actory.java:67)
> at
opencard.opt.util.PassThruCardServiceFactory.<init>(PassThruCardServi
> ceFactory.java:81)
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:241)
> at
opencard.core.service.SmartCard.configureServiceRegistry(SmartCard.ja
> va, Compiled Code)
> at opencard.core.service.SmartCard.start(SmartCard.java:528)
> at GetProperties.main(GetProperties.java:66)
>
>
>
> is the Exception I get from Towitoko Chipdrive Mini, Win NT 4.0, Jdk 1.2,
> OCF 1.1.1 after starting GetProperties from the samples directory.
>
> My opencard.proberties contains:
> OpenCard.services = opencard.opt.util.PassThruCardServiceFactory
> OpenCard.terminals
=com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminalFactory
>
> readers.cfg is:
> Reader[1]
> PORT_NUMBER = 2
> READER_NAME = TOWITOKO terminals
> DLL_NAME = gen_twk.dll
>
> everything as described in the Towitoko manuals.
>
> My classpath is:
>
classpath=.;d:\opencard\ocf1.1.1\lib\base-core.jar;d:\opencard\ocf1.1.1\lib\base
>
-opt.jar;d:\opencard\ocf1.1.1\lib\reference-services.jar;d:\opencard\ocf1.1.1\li
> b\reference-terminals-windows.jar;c:\program
files\javasoft\jre\1.2\lib\comm.jar
>
;d:\opencard\ocf1.1.1\lib\ibmservices.jar;d:\opencard\ocf1.1.1\lib\migterminals.
> jar
>
> Can you help me out ?
>
>
> Best regards,
> Erik, Karlsruhe/Germany
>
> P.S.: The debug messages just before the exception are:
>
> [...]
> [DEBUG ] opencard.core.terminal.CardTerminalRegistry.cardTerminalAdded
> --- message (com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal@feb6a8fd
> + name TOWITOKO terminals
> + type PCSCMIG
> + addr )
> --- thread Thread[main,5,main]
> --- source opencard.core.terminal.CardTerminalRegistry@f792a8fd
>
> [DEBUG ] opencard.core.terminal.CardTerminalRegistry.addPollable
> --- message (com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal@feb6a8fd
> + name TOWITOKO terminals
> + type PCSCMIG
> + addr )
> --- thread Thread[main,5,main]
> --- source opencard.core.terminal.CardTerminalRegistry@f792a8fd
>
> [DEBUG ] opencard.core.service.CardServiceRegistry.<init>
> --- message instantiating
> --- thread Thread[main,5,main]
> --- source class opencard.core.service.CardServiceRegistry
>
> [DEBUG ] opencard.core.service.SmartCard.getRegistryEntry
> --- message tag OpenCard.services =
opencard.opt.util.PassThruCardServiceFacto
> ry
> --- thread Thread[main,5,main]
> --- source class opencard.core.service.SmartCard
>
> [DEBUG ] opencard.core.service.CardServiceFactory.<init>
> --- message instantiating
> --- thread Thread[main,5,main]
> --- source class opencard.core.service.CardServiceFactory
>
>
>
> ---
> > 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.
OCF11CardServiceFactory.java
OCF11CardServiceFactory.class