Encryption module errors

0
When trying to use the encryption module to generate key ring pairs using the inbuilt microflows, I am currently seeing the following errors in the console logs:  An error occurred while executing an action of Encryption.Certificate_Generate.actionButton1: Expected response body to be JSON. Instead received: "" Error: An error occurred while executing an action of Encryption.Certificate_Generate.actionButton1: Expected response body to be JSON. Instead received: ""    at http://localhost:8080/mxclientsystem/mxui/mxui.js?638576060351281570:66:234021    at be (http://localhost:8080/mxclientsystem/mxui/mxui.js?638576060351281570:24:6830)    at r (http://localhost:8080/mxclientsystem/mxui/mxui.js?638576060351281570:24:6731)    at E (http://localhost:8080/mxclientsystem/mxui/mxui.js?638576060351281570:64:5069)   Before that error message, there were another 2 error messages - one from the ActionManager:  java.lang.NoSuchMethodError: org.bouncycastle.crypto.engines.AESEngine.newInstance()Lorg/bouncycastle/crypto/MultiBlockCipher;   Another one at M2EE:  java.lang.NoSuchMethodError: org.bouncycastle.crypto.engines.AESEngine.newInstance()Lorg/bouncycastle/crypto/MultiBlockCipher;   It appears that the marketplace encryption module fails to invoke these specific JavaScript actions, which I don't have direct access to. Can you suggest a solution to resolve this issue?
asked
2 answers
1

Did you take a look a the prerequisites / dependencies? If you did not install them, this could mean that some files are missing which may lead to a behavior you described.

Did you install any other marketplace content or update modules? Even with dependencies, it could be that if you install a different version, you end up with multiple 'duplicate' jar files.

In StudioPro go to App | Show App directory in explorer and then go to your userlib folder. Check if you have multiple versions for the same file

image.png

If so, create a backup copy of the entire userlib folder and store it somewhere in case the next step messes up your application.

You should be ok removing the older versions of the files. So in the example shown above, you can remove the io 2.6 jar file and lang 3.7 jar file.

After removing all outdated duplicates, you can select to first clean deployment and then synchronize the app directory (Studio Pro App menu)

 

Hope this helps

answered
0

Hi Micha, 

Thanks for the advice. I've checked through the my userlib folder, removing the older copies of .jar files. I'm currently left with the following files: 

image.png

 

It seems to be working after cleaning the deployment folder and the app directory sync. Thanks

answered