Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid date (or are we parsing it wrong??) #75

Open
ismaeltoe opened this issue Jul 11, 2021 · 1 comment
Open

Invalid date (or are we parsing it wrong??) #75

ismaeltoe opened this issue Jul 11, 2021 · 1 comment

Comments

@ismaeltoe
Copy link

ismaeltoe commented Jul 11, 2021

I'm getting this error when trying to use my card which expiration date is 11/23 (11 for month and 23 for year).

java.lang.IllegalArgumentException: Invalid date (or are we parsing it wrong??)
at com.github.devnied.emvnfccard.parser.apdu.impl.DataFactory.calculateCplcDate(DataFactory.java:107)
at com.github.devnied.emvnfccard.parser.apdu.impl.DataFactory.getDate(DataFactory.java:73)
at com.github.devnied.emvnfccard.parser.apdu.impl.DataFactory.getObject(DataFactory.java:158)
at com.github.devnied.emvnfccard.parser.apdu.impl.AbstractByteBean.parse(AbstractByteBean.java:97)
at com.github.devnied.emvnfccard.utils.CPLCUtils.parse(CPLCUtils.java:63)
at com.github.devnied.emvnfccard.parser.EmvTemplate.readCPLCInfos(EmvTemplate.java:385)
at com.github.devnied.emvnfccard.parser.EmvTemplate.readEmvCard(EmvTemplate.java:360)
at com.XXXX.XXX.smartcard.UEPSCard.initUEPSCard(UEPSCard.java:82)
at com.XXXX.XXX.peripheral.FullCardReader$1$1.run(FullCardReader.java:77)
at java.util.Timer$TimerImpl.run(Timer.java:284)

@giannism13
Copy link

Sorry for the necro, but I'm having the same problem. Strangely enough, it seems to be happening only with Visa cards. Mastercards don't throw any exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants