Java compilation fails in OpenAIConnector module

0
Hi all, I have just added OpenAIConnector module v7.3.0 to my project. I also have Encryption module and GenAICommons.I use Mx 10.24.4.   When I run my app, it fails at Compiling Java Actions with message as below. Has anyone else encountered this?   C:\Users\{projectlocation}\javasource\openaiconnector\actions\Response_SetToolArguments.java:86: error: cannot find symbolIterator<Map.Entry<String, JsonNode>> fields = arguments.properties().iterator();^symbol: method properties()location: variable arguments of type JsonNode Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.1 error1 warning FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':compile'.> Compilation failed; see the compiler error output for details. * Try:> Run with --scan to get full insights. BUILD FAILED in 10s
asked
2 answers
2

Before applying any changes, make sure to take a backup of the userlib folder. The issue is likely caused by older Jackson JARs (such as jackson-databind, jackson-core, or jackson-annotations) located in userlib, which override the Jackson version expected by OpenAIConnector v7.3.0. Since this older Jackson version does not contain the JsonNode.properties() method, the Java compilation fails. After backing up userlib, remove these Jackson-related JARs, then run Clean Deployment Directory in Studio Pro and start the application again. This will allow Mendix to use its bundled, compatible Jackson version and should resolve the compilation error.

answered
1

I would suggest reinstalling the dependencies to make sure you have the latest versions of the required modules.

 

These would be 

  • GenAI Commons
  • Encryption
  • Community Commons

Once you have done this, go to App->Clean Deployment Directory, then rebuild your app.

 

Good luck!

answered