Hi again,
Solution 3 works. I fixed the bug in the OCF11CardServiceFactory.class
and everything is ok now. BTW: Solution 1 does not work (since I
used a Sun VM when I got my problem:-)
Thanks to you and Peter for your help
Marko
Jesus Paul Tomillo wrote:
>
> Hi,
> I got the same error and posted it to the OCF list 3 days ago!
> I guess you are working with the Microsoft VM (jview), isn't it?
>
> You have 3 solutions:
> 1. Execute your program with the Sun VM
> 2. Recompile the opencard sources with the Microsoft compiler (jvc). Then
> you will not have that problem !!!!?!!!
> 3. Take a look to the mail posted by Peter Bendel today to this mail list.
> Is the response to my/your question: it could be a bug in the Microsoft VM
> and a bug in the OCF11CardServiceFactory class.
>
> --
> Jesus Paul
>
> On Thu, 12 Aug 1999, Marko Schuba wrote:
>
> > 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.
> >
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.