Error: Compilation of Java actions failed

0
Buildfile: C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\deployment\build_core.xml compile:     [javac] Compiling 599 source files to C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\deployment\run\bin     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\DateTime.java:14: error: duplicate class: communitycommons.DateTime     [javac] public class DateTime {     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\ImmutablePair.java:6: error: duplicate class: communitycommons.ImmutablePair     [javac] public class ImmutablePair<T, U>     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\Logging.java:11: error: duplicate class: communitycommons.Logging     [javac] public class Logging {     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\Misc.java:44: error: duplicate class: communitycommons.Misc     [javac] public class Misc {     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\ORM.java:32: error: duplicate class: communitycommons.ORM     [javac] public class ORM {     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\StringUtils.java:44: error: duplicate class: communitycommons.StringUtils     [javac] public class StringUtils {     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\UserThrownException.java:3: error: duplicate class: communitycommons.UserThrownException     [javac] public class UserThrownException extends Exception     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\XPath.java:33: error: duplicate class: communitycommons.XPath     [javac] public class XPath<T>     [javac]        ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons\actions\DecryptString.java:36: error: cannot find symbol     [javac]         return StringUtils.decryptString(key, valueToDecrypt);     [javac]                           ^     [javac]   symbol:   method decryptString(String,String)     [javac]   location: class StringUtils     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons\actions\EncryptString.java:36: error: cannot find symbol     [javac]         return StringUtils.encryptString(key, valueToEncrypt);     [javac]                           ^     [javac]   symbol:   method encryptString(String,String)     [javac]   location: class StringUtils     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\actions\GetIntFromDateTime.java:40: error: incompatible types: communitycommons_2.proxies.DatePartSelector cannot be converted to communitycommons.proxies.DatePartSelector     [javac]         return DateTime.dateTimeToInteger(dateObj, selectorObj);     [javac]                                                    ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\actions\TimeMeasureEnd.java:40: error: incompatible types: communitycommons_2.proxies.LogLevel cannot be converted to communitycommons.proxies.LogLevel     [javac]         return Logging.measureEnd(TimerName, Loglevel, message);     [javac]                                              ^     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\communitycommons_2\actions\XSSSanitize.java:73: error: incompatible types: inference variable T has incompatible bounds     [javac]             .collect(Collectors.toList());     [javac]                     ^     [javac]     equality constraints: communitycommons.proxies.SanitizerPolicy     [javac]     lower bounds: communitycommons_2.proxies.SanitizerPolicy     [javac]   where T is a type-variable:     [javac]     T extends Object declared in method <T>toList()     [javac] C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\encryption\pgp\PGPUtils.java:217: error: incompatible types: Iterator<PGPEncryptedData> cannot be converted to Iterator<PGPPublicKeyEncryptedData>     [javac]         Iterator<PGPPublicKeyEncryptedData> it = enc.getEncryptedDataObjects();     [javac]                                                                             ^     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\javasource\saml20\implementation\common\MendixUtils.java uses unchecked or unsafe operations.     [javac] Note: Recompile with -Xlint:unchecked for details.     [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output     [javac] 14 errors BUILD FAILED C:\UserData\z004nf3u\OneDrive - Siemens AG\Desktop\SFS Starter App-main\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 30 seconds  
asked
1 answers
1

Hey Lakshmi,

 

This looks like Communitycommons in the javasource folder has been duplicated into communitycommons_2, but the packages haven’t been renamed in the Java files. Mendix is seeing duplicates because of this, and is throwing the error you are seeing.

 

Hope it helps!

answered