MuleSoft · Database Connector
XML-24509: Duplicated definition
Short answer
XML-24509 Duplicated definition is an XML parsing error that appears when a Mule app uses Oracle XML extensions with Database Connector. Add xmlparserv2.jar as a plugin dependency, or point the JAXP factories at the Xerces implementation.
VerifiedLast verified
01Error text
XML-24509: (Error) Duplicated definition for...02Likely causes
- The app uses Oracle XML extensions, and the Oracle XML parser conflicts with XML parsing in the application.
03How to fix it
- Add
xmlparserv2.jaras a plugin dependency. - Or set the system properties
javax.xml.parsers.SAXParserFactoryandjavax.xml.parsers.DocumentBuilderFactoryto the Xerces implementation classes. - Redeploy the app.
04Official documentation
→Related errors
- DB:QUERY_EXECUTIONDB:QUERY_EXECUTION means the database accepted the connection but the execution of the query failed. Turn on verbose logging for Database Connector to see the database's own message, then fix the query, its parameters or its timeout.
- DB:CANNOT_LOAD_DRIVERDB:CANNOT_LOAD_DRIVER means Database Connector cannot load the JDBC driver for the connection. Make sure the driver for your database is available to the application.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer