严重: DLOG_VelocityServlet: 127.0.0.1 => ERROR:Unknown Velocity Error,url=http://localhost:8093/(Mon Jul 22 16:40:57 CST 2013) ?

发布于 2021-11-25 10:13:37 字数 8894 浏览 767 评论 14

@红薯 你好,想跟你请教个问题:

1.启动tomcat之后报错如下,网上查了一下,有的说是表里面没有对应的域(Unknown column 'sitebean0_.friend_status' in 'field list')————但错误信息里面好像看不到具体是哪个表缺少域,而且就算是缺少对应的域的话,那么该如何解决呢?

2.如果是其他的原因,那又该如何解决呢?



错误信息:

七月 22, 2013 4:40:57 下午 org.hibernate.cache.StandardQueryCache <init>
信息: starting query cache at region: dlog_home_info
七月 22, 2013 4:40:57 下午 org.hibernate.cache.StandardQueryCache <init>
信息: starting query cache at region: query.newest.sites
七月 22, 2013 4:40:57 下午 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1054, SQLState: 42S22
七月 22, 2013 4:40:57 下午 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: Unknown column 'sitebean0_.friend_status' in 'field list'
七月 22, 2013 4:40:57 下午 org.apache.catalina.core.ApplicationContext log
信息:  Velocity  [error] Method list_newest_sites threw exception for reference $DLOG4J_tool in template /dlog/_sub/_module_side_new_sites.vm at  [5,31]
七月 22, 2013 4:40:57 下午 org.apache.catalina.core.ApplicationContext log
信息:  Velocity  [error] VelocityViewServlet: Exception processing the template: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'list_newest_sites' in  class com.liusoft.dlog4j.velocity.DLOG_Home_VelocityTool threw exception org.hibernate.exception.SQLGrammarException: could not execute query @ /dlog/_sub/_module_side_new_sites.vm[5,44]
七月 22, 2013 4:40:57 下午 org.apache.catalina.core.ApplicationContext log
严重: DLOG_VelocityServlet: 127.0.0.1 => ERROR:Unknown Velocity Error,url=http://localhost:8093/(Mon Jul 22 16:40:57 CST 2013)
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(Unknown Source)
at org.hibernate.exception.JDBCExceptionHelper.convert(Unknown Source)
at org.hibernate.loader.Loader.doList(Unknown Source)
at org.hibernate.loader.Loader.listUsingQueryCache(Unknown Source)
at org.hibernate.loader.Loader.list(Unknown Source)
at org.hibernate.loader.hql.QueryLoader.list(Unknown Source)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(Unknown Source)
at org.hibernate.engine.query.HQLQueryPlan.performList(Unknown Source)
at org.hibernate.impl.SessionImpl.list(Unknown Source)
at org.hibernate.impl.QueryImpl.list(Unknown Source)
at com.liusoft.dlog4j.dao.DAO.executeNamedQueryCacheable(DAO.java:455)
at com.liusoft.dlog4j.dao.SiteDAO.listNewestSites(SiteDAO.java:165)
at com.liusoft.dlog4j.velocity.DLOG_Home_VelocityTool.list_newest_sites(DLOG_Home_VelocityTool.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.Parse.render(Parse.java:224)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.directive.Parse.render(Parse.java:224)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at org.apache.velocity.Template.merge(Template.java:254)
at org.apache.velocity.tools.view.servlet.VelocityLayoutServlet.mergeTemplate(VelocityLayoutServlet.java:224)
at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(VelocityViewServlet.java:551)
at com.liusoft.dlog4j.servlet.DLOG_VelocityServlet.doRequest(DLOG_VelocityServlet.java:107)
at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityViewServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liusoft.dlog4j.servlet.DLOG_HomeFilter.doFilter(DLOG_HomeFilter.java:121)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.liusoft.dlog4j.servlet.DLOG_HibernateFilter.doFilter(DLOG_HibernateFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:881)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:674)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:541)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:722)
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'sitebean0_.friend_status' in 'field list'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1403)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(Unknown Source)
at org.hibernate.loader.Loader.getResultSet(Unknown Source)
at org.hibernate.loader.Loader.doQuery(Unknown Source)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Unknown Source)
... 67 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(14

别再吹冷风 2021-11-26 22:41:01

数据库字符集已经设置成了utf8,怎么还会乱码。。。

无边思念无边月 2021-11-26 22:41:01

文档要跟上啊。。。起码安装说明要更新下么。。。。

我也碰到一样的问题了。。。

因为看清所以看轻 2021-11-26 22:41:01

数据库脚本要用dlog4j_e32/doc/Update_sql/mysql_script.sql

文档说的目录下的脚本再mysql 5.6下无法运行的

奢华的一滴泪 2021-11-26 22:40:57

mysql> show variables like 'character%';

+--------------------------+----------------------------------------------------

-----+

| Variable_name            | Value

     |

+--------------------------+----------------------------------------------------

-----+

| character_set_client     | latin1

     |

| character_set_connection | latin1

     |

| character_set_database   | utf8

     |

| character_set_filesystem | binary

     |

| character_set_results    | latin1

     |

| character_set_server     | latin1

     |

| character_set_system     | utf8

     |

| character_sets_dir       | C:Program FilesMySQLMySQL Server 5.1sharechars

ets |

+--------------------------+----------------------------------------------------

-----+

8 rows in set (0.00 sec)

mysql>

筱果果 2021-11-26 22:40:55

1.的确如此,我按照安装说明里的步骤做的,结果那个sql文件是以前的,要用更新之后的版本 2.你登陆首页出现的标签显示错误,我没有出现;但我把alter database dlog character set utf8之后,注册时和写日志时的中文都是问号……

醉生梦死 2021-11-26 22:40:51

回复
我创建数据库即utf8,注册的时候没有发现乱码

断爱 2021-11-26 22:40:09

@米粉 哎。

各自安好 2021-11-26 22:32:30

回复
同样有此问题 都是??? 问号

感情旳空白 2021-11-26 22:31:42

遇到相同问题,解决了没?

回忆凄美了谁 2021-11-26 22:05:03

遇到相同问题,解决了没?

明月松间行 2021-11-26 21:45:50

遇到相同问题,解决了没?

泛滥成性 2021-11-26 09:12:09

1.在这里下的(就是下面的软件下载链接),网址都是一样的; 2.楼下的说数据库不完整,应该不是这个原因……

刘备忘录 2021-11-25 22:19:50

遇到相同问题,解决了没?

冷默言语 2021-11-25 18:30:01

遇到相同问题,解决了没?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文