licel / jcardsim

https://jcardsim.org
224 stars 123 forks source link

Exception when trying to initialise CardSimulator class #196

Open lwinch2006 opened 2 years ago

lwinch2006 commented 2 years ago

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 commented 2 years ago

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

pongpet-licel commented 1 year ago

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