-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Utilizzo sul Mac #1
Labels
help wanted
Extra attention is needed
Comments
Since Java9 SunPKCS11 constructor doesn't accept the input stream anymore.
Check the java release and if you are using a release newer than 8 you
should refactor Pkcs11SignatureToken.
…On Mon, Apr 20, 2020 at 2:13 PM forlando952 ***@***.***> wrote:
Salve anzitutto complimenti per il software.
Volevo segnalare che su Mac Os Catilina, utilizzando Token Usb Key4-c ed
eseguendo tutte le istruzioni mi da il seguente errore
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.NoSuchMethodError:
sun.security.pkcs11.SunPKCS11.(Ljava/io/InputStream;)V
at
eu.europa.esig.dss.token.Pkcs11SignatureToken.installProvider(Pkcs11SignatureToken.java:154)
at
eu.europa.esig.dss.token.Pkcs11SignatureToken.getProvider(Pkcs11SignatureToken.java:130)
at
eu.europa.esig.dss.token.Pkcs11SignatureToken.getKeyStore(Pkcs11SignatureToken.java:174)
at
eu.europa.esig.dss.token.AbstractKeyStoreTokenConnection.getKeys(AbstractKeyStoreTokenConnection.java:24)
at com.unical.digitalsignature.Main.sign(Main.java:191)
at com.unical.digitalsignature.Main.main(Main.java:113)
... 5 more
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDB5CGU6EY7S2HFAWBAVLLRNR7DFANCNFSM4MMTXGYQ>
.
|
I have Java 8 update 251
…--
Pisanina Hockins
On 20 aprile 2020 a 19:36:09, Miguel Carboni ([email protected])
scritto:
Since Java9 SunPKCS11 constructor doesn't accept the input stream anymore.
Check the java release and if you are using a release newer than 8 you
should refactor Pkcs11SignatureToken.
|
Hi, I used Java 8 update 181. I think @miguelius's suggestion is correct (Thanks @miguelius for your comment). |
It's a guess... rather outrageous... But it looks like the library is
beeing called from an app running in a different java runtime than the one
mentioned above
|
AlessioScarfone
added
help wanted
Extra attention is needed
and removed
bug
Something isn't working
labels
Apr 23, 2020
digidoc4j should be updated for a release supporting java9+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Salve anzitutto complimenti per il software.
Volevo segnalare che su Mac Os Catilina, utilizzando Token Usb Key4-c ed eseguendo tutte le istruzioni mi da il seguente errore
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.NoSuchMethodError: sun.security.pkcs11.SunPKCS11.(Ljava/io/InputStream;)V
at eu.europa.esig.dss.token.Pkcs11SignatureToken.installProvider(Pkcs11SignatureToken.java:154)
at eu.europa.esig.dss.token.Pkcs11SignatureToken.getProvider(Pkcs11SignatureToken.java:130)
at eu.europa.esig.dss.token.Pkcs11SignatureToken.getKeyStore(Pkcs11SignatureToken.java:174)
at eu.europa.esig.dss.token.AbstractKeyStoreTokenConnection.getKeys(AbstractKeyStoreTokenConnection.java:24)
at com.unical.digitalsignature.Main.sign(Main.java:191)
at com.unical.digitalsignature.Main.main(Main.java:113)
... 5 more
The text was updated successfully, but these errors were encountered: