Hi all,
I just started using OCF and have the following problem:
All the little demo programs work fine. However, when I try to
use the PassThruCardService with OCF1.1.1 (i.e. when I set the
parameter OpenCard.services in opencard.properties to
OpenCard.services = opencard.opt.util.PassThruCardServiceFactory)
I am not able to perform a SmartCard.start().
Using e.g. the demo StartOpenCard program I get the error message:
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 demos.samples.StartOpenCard.main(StartOpenCard.java:67)
Is this my fault or the result of the changed CardServiceFactory
interface???
BTW: the debug information produced is
[DEBUG ] opencard.core.service.SmartCard.getRegistryEntry
--- message tag OpenCard.terminals =
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminalFactory
--- thread Thread[main,5,main]
--- source class opencard.core.service.SmartCard
[DEBUG ] opencard.core.terminal.CardTerminal.<init>
--- message (TOWITOKO terminals, PCSCMIG, )
--- thread Thread[main,5,main]
--- source class opencard.core.terminal.CardTerminal
[DEBUG ]
opencard.core.terminal.CardTerminalRegistry.cardTerminalAdded
--- message
(com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal@5caf0704
+ name TOWITOKO terminals
+ type PCSCMIG
+ addr )
--- thread Thread[main,5,main]
--- source opencard.core.terminal.CardTerminalRegistry@324f0704
[DEBUG ] opencard.core.terminal.CardTerminalRegistry.addPollable
--- message
(com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminal@5caf0704
+ name TOWITOKO terminals
+ type PCSCMIG
+ addr )
--- thread Thread[main,5,main]
--- source opencard.core.terminal.CardTerminalRegistry@324f0704
[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.PassThruCardServiceFactory
--- 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
Regards,
Marko
--
-------------------------------------------------------------
Marko Schuba
Research Department EED/R/A
Ericsson Eurolab Deutschland GmbH
Ericsson Allee 1
52134 Herzogenrath, Germany
Phone: +49 2407 575 7782 | Fax: +49 2407 575 400
mailto: [EMAIL PROTECTED]
-------------------------------------------------------------
Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.