visually deletion and database deletion

Hi,
I’am having trouble to delete a record from my database. I do a
removeItem
and visually it disappears from the UI Table, but I’am not able to delete it from the database.
Here is some snippet:

theTable.addListener(new Property.ValueChangeListener() {
	public void valueChange(ValueChangeEvent event) {

		Object selectedObj = theTable.getValue();  
                
		Container theContainer = theTable.getContainerDataSource();                                
			theContainer.removeItem(selectedObj);                                
		theTable.select(null);

		//Here is the problem, I get an Hibernate exception!!!
		MyApplication.getInstance().administratorService.delete((Administrator)selectedObj);

	}            
});

Could somebody provide some hint?

Thanks

Problem solved suppressing line
theTable.select(null);