Improve error logging for Java Action Execute Query - Mendix Forum

Improve error logging for Java Action Execute Query

5

At the moment, the Execute Query Java action produces very ambiguous error messages under the following two circumstances I have identified:

  1. Column names do not match exactly to the Mendix object you are mapping to (spelling error, or even case-sensitivity issues)
  2. Attempting to retrieve a row from the database that has a property that is NULL

The erorr message given is simply that a NullPointerException has occured in the microflow.

I propose that better error logging be introduced.

For circumstance 1, it could be flagged that no database column was found the specific property, and alert the developer to which property this.
This forum question is example of somebody facing this issue.

For circumstance 2, it could be flagged which column it was that had the NULL inside it.

I was only able to identify that these two issues were the root of my problem through many hours wasted, and trial and error. I now identify this ambiguous error with those circumstances, but other's should not have to waste their time trying to identify this too.

asked
0 answers