Menu

#453 Table 'EMPLOYEES' not found in tableMap=org.dbunit.dataset.OrderedTableNameMap

v3.0.x
closed-invalid
None
(not fixed)
3
2025-10-06
2025-10-02
No

Hi,
Config : W11 Eclipse 2025-06 Jdk-17 Oracle 19.21
I use for the first time DbUnit with 2.7.3 and I change because the table employees in the schema DBUNIT but the ResultSet contains all tables in SYS, so table not found exception raised.
I use the obsolete databaseTester.setSchema("DBUNIT"); and change version Dbunit to 3.0.0 and the exception raised at Table 'EMPLOYEES' not found in tableMap ... see files.
Best Regards
Pascal

2 Attachments

Discussion

  • Pascal VILTARD

    Pascal VILTARD - 2025-10-02

    Sorry I miss the xml file

     
  • Pascal VILTARD

    Pascal VILTARD - 2025-10-02

    I missed to create the table :-( but I use databaseTester.setSchema("DBUNIT");

     
    • Jeff Jensen

      Jeff Jensen - 2025-10-03

      If the cause of the error is the table was did not exist, then dbUnit is behaving correctly and this is not a bug.

       
  • Jeff Jensen

    Jeff Jensen - 2025-10-03
    • status: open --> pending
    • assigned_to: Jeff Jensen
     
  • Pascal VILTARD

    Pascal VILTARD - 2025-10-06

    OK, it’s running. Indeed the Setter setSchema is obsolete, but allows reading only the tables of the "DBUNIT" schema. Otherwise, it reads certain XDB tables such as: XDB$ATTRIBUTE, XDB$IMPORT_NM_INFO.

     
    • Jeff Jensen

      Jeff Jensen - 2025-10-06

      Thanks for the update, sounds like correct behavior.

       
  • Jeff Jensen

    Jeff Jensen - 2025-10-06
    • status: pending --> closed-invalid
     
  • Pascal VILTARD

    Pascal VILTARD - 2025-10-06

    OK Thank you for your help.