the stack trace says, "I've got a SQLGrammarException. it's caused by a BatchUpdateException, and this one is caused by ...". you should dig out the inner Exception, and finding out the problem would be much easier. here is my suggestion:
try {
...// your code
} catch (SQLGrammarException e) {
for (Throwable ex = e; ex != null; ex = e.getCause())
ex.printStackTrace();
}
this would print much more stack trace. paste the full stack trace here, that would help.
manpreet
Best Answer
2 years ago
Hi I'm running a java project using hibernate with postgresql 9.2, when i try to insert it will display: