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

SystemException on installing applet #125

Open
behnejad opened this issue Jun 9, 2018 · 3 comments
Open

SystemException on installing applet #125

behnejad opened this issue Jun 9, 2018 · 3 comments

Comments

@behnejad
Copy link

behnejad commented Jun 9, 2018

Hi.
i am getting this SystemException when my applet class is going to install.
Exception in thread "main" javacard.framework.SystemException at javacard.framework.SystemException.throwIt(Unknown Source) at com.licel.jcardsim.base.Simulator.createApplet(Simulator.java:179) at com.licel.jcardsim.base.Simulator.installApplet(Simulator.java:219) at com.licel.jcardsim.base.Simulator.installApplet(Simulator.java:195)

my applet works on real java card (both version 2.2 and 3) but it failed to install on simulation.
does it come from my applet or something else?

@stone-ktsujino
Copy link

stone-ktsujino commented Jul 27, 2018

I am having same above issue.

@somebodyLi
Copy link

Hi.
i am getting this SystemException when my applet class is going to install.
Exception in thread "main" javacard.framework.SystemException at javacard.framework.SystemException.throwIt(Unknown Source) at com.licel.jcardsim.base.Simulator.createApplet(Simulator.java:179) at com.licel.jcardsim.base.Simulator.installApplet(Simulator.java:219) at com.licel.jcardsim.base.Simulator.installApplet(Simulator.java:195)

my applet works on real java card (both version 2.2 and 3) but it failed to install on simulation.
does it come from my applet or something else?

have you solved ??

@gahcep
Copy link

gahcep commented Feb 9, 2021

Hi @liyanhrxy
Successfully passed the installApplet function call while previously got stuck on the same System Exception.
In my case the applet itself causes this by invoking a crypto function (Signature.getInstance(....)) with a non-existing (I mean on simulator's JCVM) parameter's value. So I had to add additional handling just for the jcardsim
And @behnejad probably had the same issue. Usually smartcards have their own HW blocks and proprietary JC libs implementations.
Anyway, thanks @licel for his work.

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

4 participants