columnTimeStamp.setEditorComponent(dateField);
[/code]The grid displays the data correctly, but when I double click for editing its show this error:
java.lang.ClassCastException: java.sql.Timestamp cannot be cast to java.time.temporal.Temporal at com.vaadin.ui.AbstractDateField.doSetValue(AbstractDateField.java:73)[140:com.vaadin.server:8.1.1]
at com.vaadin.ui.AbstractField.setValue(AbstractField.java:140)[140:com.vaadin.server:8.1.1]
at com.vaadin.ui.AbstractField.setValue(AbstractField.java:53)[140:com.vaadin.server:8.1.1]
at com.vaadin.data.Binder$BindingImpl.initFieldValue(Binder.java:893)
at com.vaadin.data.Binder$BindingImpl.access$100(Binder.java:766)
at com.vaadin.data.Binder.lambda$readBean$2(Binder.java:1386)
at java.lang.Iterable.forEach(Iterable.java:75)[:1.8.0_112]
at com.vaadin.data.Binder.readBean(Binder.java:1386)
at com.vaadin.ui.components.grid.EditorImpl.doEdit(EditorImpl.java:224)
at com.vaadin.ui.components.grid.EditorImpl$1.bind(EditorImpl.java:150)
Well, as the Stack Trace so kindly says, somewhere in your code you are trying to implicitly cast an object of type java.sql.Timestamp to java.time.temporal.Temporal. I would assume that this happens either in line 6 or 7 of the code you posted. A ClassCastException means that the types you are trying to convert from and to are incompatible for this operation. Casting is always only possible from a subclass to a superclass or superinterface, but never from a superclass or -interface to a subclass or -interface. It is neither possible to cast to a completely unrelated (in hierarchy tree) class/interface.