Skip to content
New issue

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

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

Already on GitHub? # to your account

Exception when trying to initialise CardSimulator class #196

Open
lwinch2006 opened this issue Oct 19, 2022 · 2 comments
Open

Exception when trying to initialise CardSimulator class #196

lwinch2006 opened this issue Oct 19, 2022 · 2 comments

Comments

@lwinch2006
Copy link

lwinch2006 commented Oct 19, 2022

I'm getting exception when trying to write simple unit test using CardSimulator based on this guide "Quick Start Guide: Simulator API";

What I found from debugging that during initialisation it attempts to call APDU class constructor with false (short APDU) and true (extended APDU) parameters but as far as I see in decompiled source APDU class constructor is parameterless.

JC SDK used 3.0.4

    @Test
    public void test() {
        CardSimulator simulator = new CardSimulator();
    }

See attached picture for more details
Screenshot 2022-10-19 at 12 38 40

Screenshot 2022-10-19 at 12 38 04

Screenshot 2022-10-19 at 12 28 01

Screenshot 2022-10-19 at 12 29 11

@mfadal
Copy link

mfadal commented Nov 12, 2022

hello, did you fix this?
I'm facing the same issue.

@pongpet-licel
Copy link
Collaborator

pongpet-licel commented Dec 8, 2022

Have you tried with jcardsim package https://github.com/licel/jcardsim/packages/1650016 ?
Also remove out JavaCard SDK from project dependencies.

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

No branches or pull requests

3 participants