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

Exception triggered when initialising the simulator along with JCDK #206

Open
shravansukumar opened this issue Jun 27, 2023 · 0 comments
Open

Comments

@shravansukumar
Copy link

I am making a simple java card project with no build tools (gradle, maven etc). Everything seems to be working fine, but when I added the Java card development kit (I need this as I am using using X509 certificates from the JCDK), I get an internal reflection error when I am initialising the simulator. I am calling the below line in the start of my base class:

simulator = new CardSimulator();

And I am getting this error:

  Exception in thread "main" java.lang.RuntimeException: Internal reflection error
  at com.licel.jcardsim.base.SimulatorRuntime.<init>(SimulatorRuntime.java:93)
  at com.licel.jcardsim.base.SimulatorRuntime.<init>(SimulatorRuntime.java:73)
  at com.licel.jcardsim.smartcardio.CardSimulator.<init>(CardSimulator.java:44)
   at InitTerminalApp.initSimulator(InitTerminalApp.java:114)
   at InitTerminalApp.main(InitTerminalApp.java:90)
   Caused by: java.lang.IllegalArgumentException: wrong number of arguments
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at com.licel.jcardsim.base.SimulatorRuntime.<init>(SimulatorRuntime.java:83)`

Is it not recommended to use both libraries together? Some guidance would be great on this!

jcardsim version (3.0.4)
JCDK version (3.1.0)

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

1 participant