Failed to Create Build

0
Hi all,   Apologies we are quite new to mendix and seem to be struggling since our upgrade to Mendix 10.18.3.   We have attempted to update Java from 11 to 21, but we are receiving an error - Would someone be able to help us understand where we are going wrong with the below?   =================== BUILD OUTPUT START ===================== Pipeline created at 2025-02-25T11:40:04Z [teamserver-discovery] 2025-02-25T11:40:09.508512731Z Project: 3eb13593-d4d0-4876-9c7c-b3fb235dabc0 [teamserver-discovery] 2025-02-25T11:40:09.508551044Z Determining repository type... [teamserver-discovery] 2025-02-25T11:40:09.860314733Z Found type: git [teamserver-discovery] 2025-02-25T11:40:09.861214967Z Found URL: https://git.api.mendix.com/3eb13593-d4d0-4876-9c7c-b3fb235dabc0.git [teamserver-checkout] 2025-02-25T11:40:20.262017789Z Project: 3eb13593-d4d0-4876-9c7c-b3fb235dabc0 [teamserver-checkout] 2025-02-25T11:40:20.262022376Z Branch: main [teamserver-checkout] 2025-02-25T11:40:20.262025829Z Revision: 5339b9ff9d130641d404a178a131ea20a889ea65 [teamserver-checkout] 2025-02-25T11:40:20.262033302Z Getting temporary access URL... [teamserver-checkout] 2025-02-25T11:40:20.511130774Z Cloning repository... [teamserver-checkout] 2025-02-25T11:40:29.751933903Z Checked out revision 5339b9ff9d130641d404a178a131ea20a889ea65 [teamserver-checkout] 2025-02-25T11:40:30.392792294Z Finding MPR file... [teamserver-checkout] 2025-02-25T11:40:30.404958516Z Found: /workspace/build/source/TLUC Perfecta-Eos.mpr [teamserver-checkout] 2025-02-25T11:40:30.407911840Z Mendix version: 10.18.3.58900 [compile] 2025-02-25T11:40:46.891995536Z Using Java 21 [compile] 2025-02-25T11:40:47.105182033Z [compile] 2025-02-25T11:40:47.106665916Z __ __ ____ _ _ _ [compile] 2025-02-25T11:40:47.108041824Z | \/ | | _ \ (_) | | | [compile] 2025-02-25T11:40:47.109386918Z | \ / |_ _| |_) |_ _ _| | __| | [compile] 2025-02-25T11:40:47.110648935Z | |\/| \ \/ / _ <| | | | | |/ _` | [compile] 2025-02-25T11:40:47.112065614Z | | | |> <| |_) | |_| | | | (_| | [compile] 2025-02-25T11:40:47.113455087Z |_| |_/_/\_\____/ \__,_|_|_|\__,_| [compile] 2025-02-25T11:40:47.114682398Z [compile] 2025-02-25T11:40:47.184037916Z v10.18.3.58900 [compile] 2025-02-25T11:40:47.185356012Z [compile] 2025-02-25T11:40:50.848404846Z Starting build for Mendix Project file: /workspace/build/source/TLUC Perfecta-Eos.mpr [compile] 2025-02-25T11:40:50.849906111Z Using the following options: [compile] 2025-02-25T11:40:50.852517305Z * Build target: Package [compile] 2025-02-25T11:40:50.853034936Z * Deployment package file: /workspace/build/dist/9b51cdcf-ae01-441e-a822-aa7613f16199.mda [compile] 2025-02-25T11:40:50.855702750Z * Model version: 1.0.0.5339b9ff [compile] 2025-02-25T11:40:50.864125032Z * Model description: [compile] 2025-02-25T11:40:50.867247228Z * Generating software bill of materials (SBOM) [compile] 2025-02-25T11:40:50.868753706Z Reading project file... [compile] 2025-02-25T11:40:59.286695448Z Building and packaging project... [compile] 2025-02-25T11:40:59.291442306Z Executing step 'Synchronize with file system' [compile] 2025-02-25T11:40:59.297436184Z Synchronizing with file system... [compile] 2025-02-25T11:41:00.700152205Z Executing step 'Initialize' [compile] 2025-02-25T11:41:00.712217133Z Preparing deployment... [compile] 2025-02-25T11:41:00.758329445Z Executing step 'Check prerequisites' [compile] 2025-02-25T11:41:00.759853611Z Checking for errors... [compile] 2025-02-25T11:41:04.005266270Z 2025-02-25 11:41:03.9969 ERROR Mendix.Modeler.Main.ModelerSettingsManager Failed to load settings. Using default settings. [compile] 2025-02-25T11:41:04.006885057Z System.UnauthorizedAccessException: Access to the file or directory '/workspace/build/.local/share/Mendix' is denied. [compile] 2025-02-25T11:41:04.008327154Z at Mendix.Modeler.Utility.WhitelistAware.EnsurePathSafety(String path) in Mendix.Modeler.Utility\WhitelistAware.cs:line 65 [compile] 2025-02-25T11:41:04.009851365Z at Mendix.Modeler.Utility.FileSystem.CreateDirectory(String path) in Mendix.Modeler.Utility\FileSystem.cs:line 180 [compile] 2025-02-25T11:41:04.011378908Z at Mendix.Modeler.Main.ModelerSettingsManager.CreateSettingsFile() in Mendix.Modeler.Core\Main\ModelerSettingsManager.cs:line 375 [compile] 2025-02-25T11:41:04.012846288Z at Mendix.Modeler.Main.ModelerSettingsManager.DoLoad(ModelerSettings settings) in Mendix.Modeler.Core\Main\ModelerSettingsManager.cs:line 177 [compile] 2025-02-25T11:41:04.014572433Z at Mendix.Modeler.Main.ModelerSettingsManager.LoadSettings() in Mendix.Modeler.Core\Main\ModelerSettingsManager.cs:line 162 [compile] 2025-02-25T11:41:05.749182993Z Executing step 'Clean deployment directory' [compile] 2025-02-25T11:41:05.750959208Z Cleaning deployment directory... [compile] 2025-02-25T11:41:16.322101890Z Cleaning ml deployment directory... [compile] 2025-02-25T11:41:16.323528550Z Cleaning web deployment directory... [compile] 2025-02-25T11:41:16.324818534Z Cleaning source web deployment directory... [compile] 2025-02-25T11:41:16.326287909Z Executing step 'Perform model transformations' [compile] 2025-02-25T11:41:16.328867010Z Applying model transformations... [compile] 2025-02-25T11:41:16.383862060Z Executing step 'Generate deployment files' [compile] 2025-02-25T11:41:16.385785696Z Writing files... [compile] 2025-02-25T11:41:22.881582756Z Executing step 'Prepare deployment' [compile] 2025-02-25T11:41:22.883166024Z Generating styles for icons [compile] 2025-02-25T11:41:22.885232762Z Cleaning web deployment directory... [compile] 2025-02-25T11:41:22.914295830Z Executing step 'Build deployment structure' [compile] 2025-02-25T11:41:22.992223450Z Exporting ml models to ml deployment directory... [compile] 2025-02-25T11:41:22.994887971Z Compiling theme files... [compile] 2025-02-25T11:41:22.997873592Z Exporting a theme... [compile] 2025-02-25T11:41:23.430681131Z Generating font files for icons [compile] 2025-02-25T11:41:23.432143351Z Exporting pages... [compile] 2025-02-25T11:41:25.348294437Z Exporting metadata... [compile] 2025-02-25T11:41:25.350130561Z Exporting microflows model... [compile] 2025-02-25T11:41:25.935623862Z Exporting custom widgets... [compile] 2025-02-25T11:41:26.170662847Z Bundling custom widgets... [compile] 2025-02-25T11:41:27.696617849Z Executing step 'Save model to deployment directory' [compile] 2025-02-25T11:41:27.697942264Z Saving model to deployment directory... [compile] 2025-02-25T11:41:28.555374811Z Executing step 'Finalize deployment structure' [compile] 2025-02-25T11:41:28.557718713Z Post-processing generation results... [compile] 2025-02-25T11:41:28.560571468Z Generating software bill of materials [compile] 2025-02-25T11:41:30.038687354Z Executing step 'Bundle application' [compile] 2025-02-25T11:41:30.042777550Z Compiling Java... [compile] 2025-02-25T11:41:48.479362524Z Executing step 'Clean up' [compile] 2025-02-25T11:41:48.481033346Z Cleaning up... [compile] 2025-02-25T11:41:48.992161417Z ERROR: An error occurred while compiling Java actions [compile] 2025-02-25T11:41:48.993776701Z /workspace/build/source/javasource/excelimporter/reader/readers/ExcelXLSReaderHeaderSecondPassListener.java:107: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [compile] 2025-02-25T11:41:48.995213168Z ExcelColumn column = new ExcelColumn(new Integer(col), String.valueOf(value)); [compile] 2025-02-25T11:41:48.996812974Z ^ [compile] 2025-02-25T11:41:48.998192704Z /workspace/build/source/javasource/emailtemplate/actions/SendEmail.java:183: error: cannot assign a value to final variable PlainBody [compile] 2025-02-25T11:41:48.999595046Z this.PlainBody = ConvertHTMLBodyToPlainText.removeHTML(this.HtmlBody); [compile] 2025-02-25T11:41:49.000860930Z ^ [compile] 2025-02-25T11:41:49.002249691Z /workspace/build/source/javasource/xlsreport/actions/GenerateExcelDoc.java:148: error: cannot assign a value to final variable OutputDocument [compile] 2025-02-25T11:41:49.003656512Z OutputDocument = new FileDocument(getContext()); [compile] 2025-02-25T11:41:49.004991403Z ^ [compile] 2025-02-25T11:41:49.006320700Z Note: Some input files use or override a deprecated API. [compile] 2025-02-25T11:41:49.007579682Z Note: Recompile with -Xlint:deprecation for details. [compile] 2025-02-25T11:41:49.008773482Z Note: Some input files use unchecked or unsafe operations. [compile] 2025-02-25T11:41:49.010038549Z Note: Recompile with -Xlint:unchecked for details. [compile] 2025-02-25T11:41:49.011218760Z 2 errors [compile] 2025-02-25T11:41:49.012380537Z 1 warning [compile] 2025-02-25T11:41:49.013544139Z [compile] 2025-02-25T11:41:49.014846624Z FAILURE: Build failed with an exception. [compile] 2025-02-25T11:41:49.016172534Z [compile] 2025-02-25T11:41:49.017551593Z * What went wrong: [compile] 2025-02-25T11:41:49.018922283Z Execution failed for task ':compile'. [compile] 2025-02-25T11:41:49.020299432Z > Compilation failed; see the compiler error output for details. [compile] 2025-02-25T11:41:49.023133256Z [compile] 2025-02-25T11:41:49.024620045Z * Try: [compile] 2025-02-25T11:41:49.026053688Z > Run with --scan to get full insights. [compile] 2025-02-25T11:41:49.027637860Z [compile] 2025-02-25T11:41:49.029045556Z BUILD FAILED in 18s [compile] 2025-02-25T11:41:49.030680477Z [compile] 2025-02-25T11:41:49.033451417Z [compile] 2025-02-25T11:41:49.034709907Z BUILD FAILED ==================== BUILD OUTPUT END ======================
asked
1 answers
0

This looks like you have some out-of-date modules that don't work with Mendix 10 as there are some Java compilation errors.

 

I can see you have the Email Templates module in there. This has been replaced with the Email Connector module. There are migration tools out there to help move your existing data across. 

https://docs.mendix.com/appstore/modules/email-connector/

 

You also need to update your Excel Importer module.

 

I hope this helps. Good luck!

answered