← Back to team overview

openjdk team mailing list archive

Bug#755893: Is pcscd running?

 

I get the same None result with every JDK I tried (6-HEAD, 6-1.13, 7-2.4, 7-2.5, 7-HEAD with libpcsclite linked).

Then I tried on a RHEL 6 box and got a different result. Going back
to the original machine, it turned out neither the pcscd service
or socket (systemd) were running at first. Start pcscd up and I get:

TerminalFactory for type PC/SC from provider SunPCSC
Exception in thread "main" javax.smartcardio.CardException: list() failed
	at sun.security.smartcardio.PCSCTerminals.list(PCSCTerminals.java:126)
	at javax.smartcardio.CardTerminals.list(CardTerminals.java:72)
	at CardTerminals.main(CardTerminals.java:6)
Caused by: sun.security.smartcardio.PCSCException: SCARD_E_NO_READERS_AVAILABLE
	at sun.security.smartcardio.PCSC.SCardListReaders(Native Method)
	at sun.security.smartcardio.PCSCTerminals.list(PCSCTerminals.java:80)
	... 2 more

so you should get a different result even without a card reader.

With pcscd running, I get the same results from all JDKs, whether or not libpcsclite
is linked.

To me, it seems more likely that this is down to the daemon not running or the socket
not being listened on than it is down to a minor release bump on the same IcedTea
version. However, I would be interested to know what the changes are between -2 and -3.

Thanks,
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07