Closed GoogleCodeExporter closed 9 years ago
Next perfectly works on a 1.7.0_09:
package test.integ.be.fedict.commons.eid.client;
import static org.junit.Assert.*;
import java.util.List;
import javax.smartcardio.CardTerminal;
import javax.smartcardio.CardTerminals;
import javax.smartcardio.TerminalFactory;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
public class PCSCTest {
private static final Log LOG = LogFactory.getLog(PCSCTest.class);
@Test
public void testListCardTerminals() throws Exception {
LOG.debug("java version: " + System.getProperty("java.version"));
TerminalFactory terminalFactory = TerminalFactory.getDefault();
CardTerminals cardTerminals = terminalFactory.terminals();
List<CardTerminal> cardTerminalList = cardTerminals.list();
LOG.debug("number of card terminals: " + cardTerminalList.size());
for (CardTerminal cardTerminal : cardTerminalList) {
LOG.debug("card terminal name: " + cardTerminal.getName());
}
cardTerminals.list();
}
}
Original comment by frank.co...@gmail.com
on 19 Oct 2012 at 11:27
Indeed new explosions on Mac OS X:
- method: 0x0000000114026480 {method} 'SCardListReaders'
'(J)[Ljava/lang/String;' in 'sun/security/smartcardio/PCSC'
- exceptions: 0x0000000113801d50
R14=0x00007f9fe916c1d8 is an unknown value
R15=0x0000000000000000 is an unknown value
Stack: [0x0000000177ae3000,0x0000000177be3000], sp=0x0000000177be2720, free
space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libj2pcsc.dylib+0x166e] pcsc_multi2jstring+0x11
C [libj2pcsc.dylib+0x17f9]
Java_sun_security_smartcardio_PCSC_SCardListReaders+0x72
j sun.security.smartcardio.PCSC.SCardListReaders(J)[Ljava/lang/String;+0
j sun.security.smartcardio.PCSCTerminals.waitForChange(J)Z+70
j sun.security.smartcardio.PCSCTerminals.waitForChange(J)Z+53
j be.fedict.commons.eid.client.CardAndTerminalManager.handlePCSCEvents()V+111
j be.fedict.commons.eid.client.CardAndTerminalManager.run()V+17
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
V [libjvm.dylib+0x28893f]
V [libjvm.dylib+0x288e1c]
V [libjvm.dylib+0x288f56]
V [libjvm.dylib+0x2bf8d0]
V [libjvm.dylib+0x478694]
V [libjvm.dylib+0x479b7a]
V [libjvm.dylib+0x3b5595]
C [libsystem_c.dylib+0x14782] _pthread_start+0x147
C [libsystem_c.dylib+0x11c1] thread_start+0xd
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.security.smartcardio.PCSC.SCardListReaders(J)[Ljava/lang/String;+0
j sun.security.smartcardio.PCSCTerminals.waitForChange(J)Z+70
j sun.security.smartcardio.PCSCTerminals.waitForChange(J)Z+53
j be.fedict.commons.eid.client.CardAndTerminalManager.handlePCSCEvents()V+111
j be.fedict.commons.eid.client.CardAndTerminalManager.run()V+17
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
Original comment by frank.co...@gmail.com
on 19 Oct 2012 at 11:34
Is there already a complete build with this patch available?
Original comment by fredmatr...@gmail.com
on 29 Oct 2012 at 1:47
FedICT will soon issue an official communication for this.
Original comment by frank.co...@gmail.com
on 1 Nov 2012 at 6:01
[deleted comment]
any news on this?
Original comment by debre...@gmail.com
on 14 Nov 2012 at 3:11
We will release an eID Applet version 1.1.0.Beta2 containing fixes for both Mac
OS X and Windows 8.
Original comment by frank.co...@gmail.com
on 20 Dec 2012 at 10:51
The patch introduces a small bug. Fixed via:
http://code.google.com/p/eid-applet/source/detail?r=746
Original comment by frank.co...@gmail.com
on 15 Jan 2013 at 3:22
Hi,
Thanks for the patch :), will there be a eid-applet-js build download?
Or do we need to check this out manually and build it?
Thanks
Original comment by hoor...@gmail.com
on 16 Jan 2013 at 1:27
The latest eID Applet release (1.1.0.Beta4 already) contains this patch.
Original comment by frank.co...@gmail.com
on 28 Jan 2013 at 11:21
Where can I find this 1.1.0 beta 4 applet? I can't find it on this pages...
Original comment by fredmatr...@gmail.com
on 30 Jan 2013 at 9:30
http://www.e-contract.be/maven2/be/fedict/eid-applet/
Original comment by frank.co...@gmail.com
on 30 Jan 2013 at 2:32
Original comment by frank.co...@gmail.com
on 27 Feb 2013 at 1:31
Hi, I have the same error on MAC OS X 10.8.2 Java 7 64 bit. I also applied your
suggestion, but still get the same error. Is the problem in PCSC driver
(libj2pcsc.dylib)?
Best Regards
Valentin Ivanov
Original comment by Valentin...@gmail.com
on 15 Mar 2013 at 2:41
Original issue reported on code.google.com by
wim.vand...@gmail.com
on 17 Oct 2012 at 1:27Attachments: