IBM Support

Exception in thread "main" java.lang.NoClassDefFoundError: org.dom4j.io.SAXReader

Troubleshooting


Problem

SDK Sample to show the names of datasources which are included in a package does not work

Symptom

E:\Program Files\Cognos\V10.1RP1\sdk\java\Testdatasource>run
***************************************************
[1] Package defaultName: Ventes VA (requête)
[1] Package searchPath: /content/folder[@name='Exemples']/folder[@name='Modèles'
]/package[@name='Ventes VA (requête)']
[1] Package datasources:
Exception in thread "main" java.lang.NoClassDefFoundError: org.dom4j.io.SAXReader
at GetPackageDatasources.getModel(GetPackageDatasources.java:182)
at GetPackageDatasources.getDatasources(GetPackageDatasources.java:87)
at GetPackageDatasources.getPackageDatasources(GetPackageDatasources.java:76)
...

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Software Development Kit","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.1.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SS6G84","label":"IBM Cognos Analytics on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
07 May 2025

UID

swg21667324