martinpaljak / nfc4pc

NFC for Personal Computers
https://superuser.com/questions/1756090/how-to-open-nfc-tags-on-windows-like-a-mobile-phone-would
GNU General Public License v3.0
13 stars 0 forks source link

Error reading tags #9

Closed nullvalue0 closed 6 months ago

nullvalue0 commented 6 months ago

Seems regardless of the tag type I use (tried with Classic 1K, NTAG213 and NTAG424), I get the following error as soon as I tap it:

22:40:44:508 [ACS ACR122 0] [ERROR] NFCReader - Could not connect to or read: newPosition < 0: (-2 < 0) java.lang.IllegalArgumentException: newPosition < 0: (-2 < 0) at java.base/java.nio.Buffer.createPositionException(Buffer.java:341) at java.base/java.nio.Buffer.position(Buffer.java:316) at java.base/java.nio.ByteBuffer.position(ByteBuffer.java:1516) at jnasmartcardio.Smartcardio$JnaCardChannel.transmitImpl(Smartcardio.java:809) at jnasmartcardio.Smartcardio$JnaCardChannel.transmit(Smartcardio.java:690) at apdu4j.pcsc.CardBIBO.transceive(CardBIBO.java:130) at apdu4j.core.APDUBIBO.transmit(APDUBIBO.java:35) at pro.javacard.nfc4pc.NDEF.getType2(NDEF.java:42) at pro.javacard.nfc4pc.NFCReader.tryToRead(NFCReader.java:120) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) WARNING: Could not read: newPosition < 0: (-2 < 0)

I am using a ACR-122U reader. What could be causing this?

martinpaljak commented 6 months ago

https://github.com/martinpaljak/NFC4PC/wiki/Supported-readers get a different reader. See a similar issue: https://github.com/martinpaljak/GlobalPlatformPro/issues/307