[Muscle] SunPCSC
Sunil Pilani
spilani at gmx.net
Mon Apr 21 07:22:06 PDT 2008
Thanks for your reply. It was indeed the service which had to be started manually. I was not aware of this. I switched to Win XP with my program and the NoSuchAlgorithmException is removed.
Earlier the stack trace had
PCSCException: SCARD_E_NO_SERVICE
which is not there anymore.
Still the program doesn't work and breaks with
PCSCException: SCARD_E_NO_READERS_AVAILABLE
when I try to list the terminals available with
TerminalFactory.getDefault().terminals.list()
It cannot find where "cref" is running it seems. What else is needed for the communication to work?
Linus
----- Original Message -----
From: Michael StJohns
To: MUSCLE
Sent: Saturday, April 19, 2008 6:28 PM
Subject: Re: [Muscle] SunPCSC
Have you tried just using the default provider?
E.g. Terminal Factory tf = TerminalFactory.getDefault();
I tried your code on winxp with SP 2 and java 1.6_04 and it worked fine. So its probably not java, its your machine.
I'd try printing out your exceptions stack trace to try and find out where things are going wrong.
Its also possible that windows is confused - http://www.lazybit.com/index.php/2007/12/19/windows_xp_re_install_smart_card_service?blog=2 describes how to reinstall the smart card system under XP - there may be a similar one for Vista.
At 06:02 AM 4/19/2008, Sunil Pilani wrote:
Hello,
I have a question about SunPCSC. I am stuck with the NoSuchAlgorithmException. I am working on Win Vista, using JDK 6 and I am making you use of the javax.smartcardio.* package.
I want to get a reference to a TerminalFactory using SunPCSC to eventually make it work with java card tool kit components(cref, jcwde)
TerminalFactory factory = TerminalFactory.getInstance( "PC/SC", null);
This line throws the following exception:
java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
I understand that there is an implementation of the provider(SunPCSC) is available but somehow the "PCSC" part fails. Can somebody please help me understand the problem better and possible help me out with it?
Linus
_______________________________________________
Muscle mailing list
Muscle at lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
------------------------------------------------------------------------------
_______________________________________________
Muscle mailing list
Muscle at lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drizzle.com/pipermail/muscle/attachments/20080421/6bd46535/attachment.html
More information about the Muscle
mailing list