Java error caused by Encryption module

1
Hi guys   I have added sftp module module to the project and since then i get Java errors, indicating that some input files uses/overrides deprecated API. After updating the app store modules (including encryption), I already deleted elder JAR's in userlib, but that didnt help. Anyone an idea?   compile: [javac] Compiling 350 source files to C:\...\deployment\run\bin [javac] C:\Users\...\javasource\encryption\actions\GeneratePGPKeyRing.java:74: error: cannot find symbol [javac] char pass[] = this.PrivateKey.getPassPhrase_Plain().toCharArray(); [javac] ^ [javac] symbol: variable PrivateKey [javac] C:...\\javasource\encryption\actions\GeneratePGPKeyRing.java:75: error: cannot find symbol [javac] PGPKeyRingGenerator krgen = generateKeyRingGenerator(this.PrivateKey.getEmailAddress(), pass); [javac] ^ [javac] symbol: variable PrivateKey [javac] C:...\\javasource\encryption\actions\GeneratePGPKeyRing.java:91: error: cannot find symbol [javac] Core.storeFileDocumentContent(getContext(), this.PublicKey.getMendixObject(), pubFilename, new FileInputStream(tempASC)); [javac] ^ [javac] symbol: variable PublicKey [javac] C:...\\javasource\encryption\actions\GeneratePGPKeyRing.java:109: error: cannot find symbol [javac] Core.storeFileDocumentContent(getContext(), this.PrivateKey.getMendixObject(), skrFilename, new FileInputStream(tempSKR)); [javac] ^ [javac] symbol: variable PrivateKey [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: ...\\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 errors  
asked
2 answers
3

Solved it by:

1 - deploy for eclipse

2 - check errors in eclipse -> renaming parameter names in GeneratePGPKeyRing.Java to PrivateKeyParameter1 and  forPublicKeyParameter1 was the trick

3 - save, run

answered
0

Do you use entities in your domain model that are called PrivateKey or PublicKey? They will cause conflicts.

answered