Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
svettwer opened this issue Mar 25, 2019 · 0 comments
Open

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

svettwer opened this issue Mar 25, 2019 · 0 comments
Labels
good first issue A good point to start from for new contributrs Prio: Medium READY Type: Enhancement

Comments

@svettwer
Copy link
Contributor

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.

@svettwer svettwer added Type: Enhancement good first issue A good point to start from for new contributrs Prio: Medium READY labels Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A good point to start from for new contributrs Prio: Medium READY Type: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant