Compilation of java actions failed

0
I am trying to build a shopping cart application I have imported(email with templates, encryption, mxmodel reflection,  excel importer and deeplinks)     Buildfile: D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\deployment\build_core.xml compile:     [javac] Compiling 267 source files to D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\deployment\run\bin     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:23: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         final Map<String, Object> mxProfileClaim = JSONObjectUtils.getJSONObject(userInfoJSONObject, MX_USER_PROFILE_V_1);     [javac]                                                                                  ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:30: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setOpenId(JSONObjectUtils.getString(mxProfileClaim, "openid2_id"));     [javac]                                                         ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:31: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setDisplayName(JSONObjectUtils.getString(mxProfileClaim, "display_name"));     [javac]                                                              ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:32: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setAvatarThumbnailUrl(JSONObjectUtils.getString(mxProfileClaim, "avatar_thumb_url"));     [javac]                                                                     ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:33: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setAvatarUrl(JSONObjectUtils.getString(mxProfileClaim, "avatar_url"));     [javac]                                                            ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:34: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setBio(JSONObjectUtils.getString(mxProfileClaim, "bio"));     [javac]                                                      ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:35: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setWebsite(JSONObjectUtils.getString(mxProfileClaim, "website"));     [javac]                                                          ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:36: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setEmailAddress(JSONObjectUtils.getString(mxProfileClaim, "email"));     [javac]                                                               ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:37: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setPhone(JSONObjectUtils.getString(mxProfileClaim, "phone_number"));     [javac]                                                        ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:38: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setJobTitle(JSONObjectUtils.getString(mxProfileClaim, "job_title"));     [javac]                                                           ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:39: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setDepartment(JSONObjectUtils.getString(mxProfileClaim, "job_department"));     [javac]                                                             ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:40: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setLocation(JSONObjectUtils.getString(mxProfileClaim, "location"));     [javac]                                                           ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:41: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setCountry(JSONObjectUtils.getString(mxProfileClaim, "country"));     [javac]                                                          ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:42: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setLinkedIn(JSONObjectUtils.getString(mxProfileClaim, "social_linkedin"));     [javac]                                                           ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:43: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setTwitter(JSONObjectUtils.getString(mxProfileClaim, "social_twitter"));     [javac]                                                          ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:44: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setSkype(JSONObjectUtils.getString(mxProfileClaim, "social_skype"));     [javac]                                                        ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:45: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setCompanyId(JSONObjectUtils.getString(mxProfileClaim, "company_id"));     [javac]                                                            ^     [javac] D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\javasource\mendixsso\implementation\utils\UserProfileUtils.java:46: error: incompatible types: Map<String,Object> cannot be converted to JSONObject     [javac]         userProfile.setCompany(JSONObjectUtils.getString(mxProfileClaim, "company_name"));     [javac]                                                          ^     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: Some input files use 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] 18 errors BUILD FAILED D:\Mendix Required Data\Megamart Online Purchase Management System-main_3\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 11 seconds
asked
1 answers
1

Double check your userlib directory for double Jar files. When importing multiple modules from the appstore you sometimes get the same Jar but with a different version. You should then remove the oldest Jar file and keep the latest. Do try to keep the required file as a mental note that the Jar file is used by more modules.

Regards,

Ronald

 

answered