Friday, September 23, 2011

Table not found in statement

When creating a table in Grails, I used "password" as a column name, then when connecting to Oracle and try to create table for the first time, I got the following error:

 java.sql.SQLException: Table not found in statement [...

After searching online and randomly trying to fix it, I finally come to change the column name to "myPassword", and it worked. I could only wish the error message could be more helpful.


Friday, September 16, 2011

STS and Grails error

When I changed the .grails and .ivy2 folder from my home directory to another location, I got the following compiling error:
The type groovy.lang.GroovyObject cannot be resolved. It is indirectly referenced from required .class files.

To solve this problem, right click the project, grail tools -> refresh dependencies fixed it.