i have an old jetty based app, i recently updated b4j to latest release 9.80 and I get this error: (java.security.InvalidKeyException: Wrong key size) when the app is launched from the build folder created with create package standalone, while the problem does not exist if run in debug mode in B4J.
the app uses the encryption 1.10 library
and #AdditionalJar: bcprov-jdk15on-154
I manually copied the bcprov-jdk15on-154.jar file to the bin, lib and root folders of the app but the problem persists
I attach error log:
Caused by: java.security.InvalidKeyException: Wrong key size
at java.base/com.sun.crypto.provider.DESedeCrypt.init(Unknown Source)
at java.base/com.sun.crypto.provider.CipherBlockChaining.init(Unknown Source)
at java.base/com.sun.crypto.provider.CipherCore.init(Unknown Source)
at java.base/com.sun.crypto.provider.DESedeCipher.engineInit(Unknown Source)
at java.base/javax.crypto.Cipher.implInit(Unknown Source)
at java.base/javax.crypto.Cipher.chooseProvider(Unknown Source)
at java.base/javax.crypto.Cipher.init(Unknown Source)
at java.base/javax.crypto.Cipher.init(Unknown Source)
at b4j/anywheresoftware.b4a.agraham.encryption.CipherWrapper.doFinal(Unknown Source)
at b4j/anywheresoftware.b4a.agraham.encryption.CipherWrapper.Decrypt(Unknown Source)
at b4j/b4j.example.webservice1._decrypt(Unknown Source)
at b4j/b4j.example.webservice1._handle(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
the app uses the encryption 1.10 library
and #AdditionalJar: bcprov-jdk15on-154
I manually copied the bcprov-jdk15on-154.jar file to the bin, lib and root folders of the app but the problem persists
I attach error log:
Caused by: java.security.InvalidKeyException: Wrong key size
at java.base/com.sun.crypto.provider.DESedeCrypt.init(Unknown Source)
at java.base/com.sun.crypto.provider.CipherBlockChaining.init(Unknown Source)
at java.base/com.sun.crypto.provider.CipherCore.init(Unknown Source)
at java.base/com.sun.crypto.provider.DESedeCipher.engineInit(Unknown Source)
at java.base/javax.crypto.Cipher.implInit(Unknown Source)
at java.base/javax.crypto.Cipher.chooseProvider(Unknown Source)
at java.base/javax.crypto.Cipher.init(Unknown Source)
at java.base/javax.crypto.Cipher.init(Unknown Source)
at b4j/anywheresoftware.b4a.agraham.encryption.CipherWrapper.doFinal(Unknown Source)
at b4j/anywheresoftware.b4a.agraham.encryption.CipherWrapper.Decrypt(Unknown Source)
at b4j/b4j.example.webservice1._decrypt(Unknown Source)
at b4j/b4j.example.webservice1._handle(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
Last edited: