Skip to content

Invalid XML Data set does not throw an appropriate exception #41

@svettwer

Description

@svettwer

If you define a XML Result set during a JDBC response, it should look like this:

<dataset>
  <row>
    <whateverColumn>value</whateverColumn>
  </row>
</dataset>

If you leave out the row tag, the XmlDataSetProducer does not throw an appropriate exception, which states that the dataset specification is invalid.

Instead, a dataset with empty rows is produced causing a null pointer during data access in the result set.

This makes it hard for the user to find out, that the dataset specification is invalid.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions