ecside没有数据是怎么回事啊!请教!

zhongzhihua 2007-03-15
错误信息:
============ org.ecside.easyda.SqlUtil ============
select count(userid) from user_info
where 1=1
#{IF:USERNAME<>EMPTY} and username like #{USERNAME} #{/IF}
#{IF:PASSWD<>EMPTY} and passwd=#{PASSWD} #{/IF}
#{IF:USERROLE<>EMPTY} and userrole=#{USERROLE} #{/IF}
#{IF:GENDER<>EMPTY} and gender=#{GENDER} #{/IF}
select count(userid) from user_info
where 1=1




============ demo.MyEasyListDemo ============
org.h2.jdbc.JdbcSQLException: General error: java.lang.Error: File ID mismatch got=0 expected=19 pos=704 true org.h2.store.DiskFile@ef7d74 blockCount:0 [HY000-41]
at org.h2.message.Message.getSQLException(Message.java:65)
at org.h2.message.Message.convert(Message.java:370)
at org.h2.command.Command.executeQueryLocal(Command.java:75)
at org.h2.command.Command.executeQuery(Command.java:61)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:89)
at org.ecside.easyda.DataAccessModel.executeQueryFunction(DataAccessModel.java:169)
at org.ecside.easyda.DataAccessModel.executeQueryFunction(DataAccessModel.java:117)
at org.ecside.easylist.AbstractEasyListModel.getRecordsNumber(AbstractEasyListModel.java:58)
at org.ecside.easylist.EasyDataAccessHandler.easyList(EasyDataAccessHandler.java:51)
at org.ecside.filter.ECSideFilter.doFilter(ECSideFilter.java:255)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
fins 2007-03-15
应该是 h2的问题

你可以吧 db下的那几个文件删除  然后 用 default里的那几个替换
Global site tag (gtag.js) - Google Analytics