Author | Message |
---|---|
tloi
Posts: 16
|
Posted 23:54 Apr 24, 2012 |
I run testng and get error message like this:
java.lang.RuntimeException: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [-- DB Creation Script for CSNS what is the problem it could be?
|
cysun
Posts: 2935
|
Posted 11:31 Apr 25, 2012 |
The error says relation "roles" already exists. This may indicate that the csns2test database is not empty (maybe because your csns-drop script failed last time). Make sure csns2test is empty before you run the tests. |
Fatemah
Posts: 59
|
Posted 21:33 Apr 25, 2012 |
Dear professor, I got this message after I run TestNG Suite. What does that mean?
[TestNG] Running:
java.lang.RuntimeException: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [-- DB Creation Script for CSNS
org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [ Last edited by Fatemah at
21:52 Apr 25, 2012.
|
cysun
Posts: 2935
|
Posted 21:49 Apr 25, 2012 |
It basically means there's something wrong with your db scripts. Check the changes you made to csns-create.sql and csns-drop.sql. |