Issues after replace Encryption Module

0
  Cant run locally after replace encryption module, any clue?   Buildfile: C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\deployment\build_core.xml compile:     [javac] Compiling 255 source files to C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\deployment\run\bin     [javac] C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\javasource\encryption\actions\ValidatePrivateKeyRing.java:39: error: incompatible types: InputStream cannot be converted to Map     [javac]         new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(Core.getFileDocumentContent(getContext(), this.PrivateKeyRing.getMendixObject()) ), new BcKeyFingerprintCalculator());     [javac]                                                                ^     [javac] C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\javasource\encryption\pgp\PGPUtils.java:75: error: incompatible types: InputStream cannot be converted to Map     [javac]         PGPPublicKeyRingCollection keyRingCollection = new PGPPublicKeyRingCollection(PGPUtil.getDecoderStream(in), new BcKeyFingerprintCalculator());     [javac]                                                                                                               ^     [javac] C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\javasource\encryption\pgp\PGPUtils.java:114: error: incompatible types: InputStream cannot be converted to Map     [javac]         PGPSecretKeyRingCollection keyRingCollection = new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(in), new BcKeyFingerprintCalculator());     [javac]                                                                                                               ^     [javac] C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\javasource\encryption\pgp\PGPUtils.java:166: error: incompatible types: InputStream cannot be converted to Map     [javac]         PGPSecretKeyRingCollection pgpSec = new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(keyIn), new BcKeyFingerprintCalculator());     [javac]                                                                                                    ^     [javac] C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\javasource\encryption\pgp\PGPUtils.java:420: error: incompatible types: InputStream cannot be converted to Map     [javac]         PGPPublicKeyRingCollection pgpRing = new PGPPublicKeyRingCollection(PGPUtil.getDecoderStream(keyIn), new BcKeyFingerprintCalculator());     [javac]                                                                                                     ^     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output     [javac] 5 errors BUILD FAILED C:\UserData\z00244yx\Documents\Mendix\WorkOrders_System_AM-MS-AL-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 6 seconds  
asked
2 answers
4

Hi Carlos,

This probably has to do with the java libraries that are used in the module. Could you check in the userlib folder of your project directory whether you have different versions of the bcpg-jdk15on jar file. You can try removing the old one (make a copy in case that doesn't work) and see if it works after that.

answered
0

Ran in to the same issue. Deleting that jar did the trick for me. Upvoted.

answered