There is a similar issue with the Excel Importer module.
Java.lang.NoSuchMethodError: org.apache.logging.log4j.util.LoaderUtil.getClassLoaders()[Ljava/lang/ClassLoader;
It seems the Teamcenter Connector module is conflicting with some common libraries.
Hi Raphael,
What is module you are using to export in excel?
It'is possible that the version of commons.io is to low; you should try to download the last version (2.16.1 I think) and put the jar in your userlib folder.
Hi Vincent
Thank you for answering, i use the Mendix Excel Export Module: https://marketplace.mendix.com/link/component/726
the given org.apache.commons.io is delivered with the Teamcenter Connector Module: https://marketplace.mendix.com/link/component/111627
Therefor i am not sure if i can simply replace or delete the lib without impacting the functionality of TcConnector Module
BR
Raphael
I use teamcenter connector with a newer version of commons.io and I don't have any issue, so it should not be a problem.
You can try to update the Excel Export Module to have the correct version of lib for this module.
Hi Vincent,
Which exact version of commons.io do you use?
Thanks for your help!
BR
Raphael
I use the commons-io-2.11.0 ;-)
Hi Raphael,
The error you're encountering is related to a version conflict between the org.apache.commons.io
library used by the Teamcenter Connector and the one required by Mendix's Excel Export module. This is a common issue when two components rely on different versions of the same library. Here's how you can address it:
Steps to Resolve the Issue
1. Verify Library Version Conflict
org.apache.commons.io-2.3.0.jar
.userlib
folder of your Mendix project.2. Replace the Older Library
Since Mendix 9.24.17 supports more recent versions of libraries, you can try replacing the older org.apache.commons.io-2.3.0.jar
with a newer version that satisfies both components:
commons-io
JAR (e.g., commons-io-2.11.0.jar
) from Apache Commons IO.org.apache.commons.io-2.3.0.jar
file from the userlib
folder.commons-io
JAR file to the same folder.3. Test the Application
Alternative Solution: Isolate the Modules
If the above approach doesn't work or causes issues with the Teamcenter Connector:
commons-io
.Prevent Future Conflicts
If the issue persists, sharing the full stack trace and additional details about the configuration can help pinpoint the exact cause. Let me know how it goes!
Best regards,
Lijo Joseph