Java errors upgrading to version 10.24.1

0
Hi, I am in the process of upgrading an app from Mendix 9.24.28 to 10.24.1. I get the following error when running:  **\javasource\virusscan4mendix\actions\ScanFileDocument.java:13: error: package virusscan4mendix.helpers does not existimport virusscan4mendix.helpers.virusscan4mendixHelper;                               ^**\javasource\saml20\implementation\delegation\XPathExpressionPool.java:81: warning: [removal] finalize() in Object has been deprecated and marked for removal    protected void finalize() throws Throwable {                   ^**\javasource\virusscan4mendix\actions\ScanFileDocument.java:38: error: cannot find symbol    return virusscan4mendixHelper.scan(getContext(), DocumentToScan);           ^  symbol:   variable virusscan4mendixHelper  location: class ScanFileDocumentNote: 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.2 errors1 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 3s   I have tried cleaning the deployment directory. The app already has the latest versions of VirusScan4Mendix and I have updated to the latest SAML (4.1.1).  Any help would be greatly appreciated. Thanks.
asked
3 answers
1

Did you check /userlib for any old versions of the VirusScan4Mendix java libs. If there are two versions, remove the oldest one(s).

answered
1

Check if virusscan4mendixHelper.java exists

  • Path: javasource/virusscan4mendix/helpers/virusscan4mendixHelper.java
  • If missing, reinstall or reimport the VirusScan4Mendix module from the Marketplace.

Regenerate Java actions in Mendix Studio Pro

  • Go to App Explorer > Java
  • Right-click the module → "Synchronize Java Actions"

Clean your build

  • Delete deployment and target folders
  • In Studio Pro: Project > Clean Deployment Folder

Check import statement in ScanFileDocument.java

  • { virusscan4mendix.helpers.virusscan4mendixHelper;Ensure VirusScan4Mendix is compatible with Mendix 10 }
  • Use the latest version that supports Mendix 10.24
answered
0

Good point Tim! I had deleted (and backed up) the userlib folder before upgrading.  Now there are very few lib files because they go in vendorlib.  However, the VirusScan4Mendix files weren't in either directory so I copied them in from the backed up userlib and now it runs.

 

Many thanks!

answered