Closed petrs closed 3 weeks ago
I'm afraid I can't test this myself since I do not have a reader nor a smartcard any more. 😞
Somehow, the pro.javacard.AID
package used by JCProfilerNext was not compatible with GPPro that JCProfilerNext used. However, that should not happen because I did not change versions of these dependencies since they were introduced in the codebase. 🤔 The main reason is that newer versions no longer support Java 8.
Some ideas:
CLASSPATH
environment variable in any way?edit: add more context
Thank you for looking at that. I did not edited build.gradle (tried later but with no success and still same issue). The version of gppro reported in error log is # GlobalPlatformPro 325fe84
which is 20.08.12 as set in build.gradle
We shall get you reader and card so you can still test it.
I have probably found the cause. Could you try the profiling with 4aef4cf reverted, please?
yes, this works and fixed the problem! Thank you for finding the issue
An exception Exception in thread "main" java.lang.NoClassDefFoundError: pro/javacard/AID at pro.javacard.gp.GPSession.discover(GPSession.java:166) is thrown when using jcprofilernext with real card. Same command with
--simulator
is finishing correctly.The problem might be caused by move of pro/javacard/AID to pro/javacard/captools/AID in GPTools at some point in time with inconsistency introduced.
Two different cards and readers tested (with same issue persisting)
Thank you very much for looking at this issue