Mail Archive Home | exo-portal List | March 2008 Index
| <-- Date Index --> | <-- Thread Index --> |
I'm getting an SQLGrammarException from Hibernate when I load portal. I
suspect the
problem is with mysql server. I'm using version 4.1.12.
Below is the exception report.
Nick
javax.servlet.ServletException: org.hibernate.exception.SQLGrammarException:
could not execute query
com.virtua.knowesis.web.common.SessionInViewFilter.doFilter(SessionInViewFilter.java:65)
root cause
org.hibernate.exception.SQLGrammarException: could not execute query
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:65)
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
org.hibernate.loader.Loader.doList(Loader.java:2148)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
org.hibernate.loader.Loader.list(Loader.java:2024)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1129)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
com.virtua.knowesis.data.hibernate.GenericHibernateObjectHandler.getQueryResult(GenericHibernateObjectHandler.java:151)
com.virtua.knowesis.data.hibernate.HibernateCategoryHandler.findCategoryByExternalId(HibernateCategoryHandler.java:56)
com.virtua.knowesis.web.common.portlet.RequestInfo.getCategory(RequestInfo.java:269)
com.virtua.knowesis.web.common.portlet.RequestInfo.getTargetURL(RequestInfo.java:140)
com.virtua.knowesis.portal.UrlFilter.doFilter(UrlFilter.java:161)
com.virtua.knowesis.web.common.SessionInViewFilter.doFilter(SessionInViewFilter.java:32)
root cause
java.sql.SQLException: Unknown column 'category0_2_.internal_uuid' in 'field
list'
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
com.mchange.v2.sql.filter.FilterPreparedStatement.executeQuery(FilterPreparedStatement.java:68)
com.mchange.v2.c3p0.impl.C3P0PooledConnection$2.executeQuery(C3P0PooledConnection.java:567)
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:139)
org.hibernate.loader.Loader.getResultSet(Loader.java:1669)
org.hibernate.loader.Loader.doQuery(Loader.java:662)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
org.hibernate.loader.Loader.doList(Loader.java:2145)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
org.hibernate.loader.Loader.list(Loader.java:2024)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1129)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
com.virtua.knowesis.data.hibernate.GenericHibernateObjectHandler.getQueryResult(GenericHibernateObjectHandler.java:151)
com.virtua.knowesis.data.hibernate.HibernateCategoryHandler.findCategoryByExternalId(HibernateCategoryHandler.java:56)
com.virtua.knowesis.web.common.portlet.RequestInfo.getCategory(RequestInfo.java:269)
com.virtua.knowesis.web.common.portlet.RequestInfo.getTargetURL(RequestInfo.java:140)
com.virtua.knowesis.portal.UrlFilter.doFilter(UrlFilter.java:161)
com.virtua.knowesis.web.common.SessionInViewFilter.doFilter(SessionInViewFilter.java:32)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.10 logs.
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.