I use a relation of SQLContainer, TableQuery, Table.
When Comit of removing Item from Table throws a java.lang.NullPointerException:
Caused by: java.lang.NullPointerException
at com.vaadin.data.util.sqlcontainer.query.generator.DefaultSQLGenerator.generateDeleteQuery(DefaultSQLGenerator.java:235)
at com.vaadin.data.util.sqlcontainer.query.TableQuery.removeRow(TableQuery.java:603)
at com.vaadin.data.util.sqlcontainer.SQLContainer.commit(SQLContainer.java:891)
Visually deletion occurs, but really from the database (PostgreeSQL) nothing is deleted.
In what may be the reason?
the stack trace location indicates that it’s got something to do with the version column. Have you defined one and does it also have valid content (no nulls or such)?