I found solution for this. My problem was that I had incorrect Group table name. So as an advice if you get this kind of error in future make sure that your JDBC Realm configs and tables with their columns are correct.
This page helped to find the real cause of the error.