Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Remove Item in the Table - SQLContainer
Hi,
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?
Hi,
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)?
-Tepi
Vladimyr Banyas: Hi,
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?
Hi:
Could you solve this issue?