首页上一页 1 下一页尾页 1 条记录 1/1页
hibernate应用开发完全手册>中19章例子运行有问题
发表在JavaWeb图书答疑
2008-05-16
是否精华
是
否
版块置顶:
是
否
2008-5-17 0:18:23 org.apache.catalina.core.AprLifecycleListener init<BR>信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java\jre1.5.0_06\bin;D:\java\apache-tomcat-6.0.16\bin<BR>2008-5-17 0:18:23 org.apache.coyote.http11.Http11Protocol init<BR>信息: Initializing Coyote HTTP/1.1 on http-8080<BR>2008-5-17 0:18:23 org.apache.catalina.startup.Catalina load<BR>信息: Initialization processed in 591 ms<BR>2008-5-17 0:18:23 org.apache.catalina.core.StandardService start<BR>信息: Starting service Catalina<BR>2008-5-17 0:18:23 org.apache.catalina.core.StandardEngine start<BR>信息: Starting Servlet Engine: Apache Tomcat/6.0.16<BR>2008-5-17 0:18:24 org.apache.catalina.core.StandardContext addApplicationListener<BR>信息: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.<BR>2008-5-17 0:18:24 org.apache.catalina.core.StandardContext addApplicationListener<BR>信息: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.<BR>2008-5-17 0:18:24 org.apache.catalina.core.ApplicationContext log<BR>信息: ContextListener: contextInitialized()<BR>2008-5-17 0:18:24 org.apache.catalina.core.ApplicationContext log<BR>信息: SessionListener: contextInitialized()<BR>2008-5-17 0:18:24 org.apache.struts.action.ActionServlet initChain<BR>信息: Loading chain catalog from jar:file:/D:/java/apache-tomcat-6.0.16/webapps/Book/WEB-INF/lib/struts-core-1.3.5.jar!/org/apache/struts/chain/chain-config.xml<BR>2008-5-17 0:18:25 org.apache.catalina.core.StandardContext addApplicationListener<BR>信息: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.<BR>log4j:WARN No appenders could be found for logger (com.sun.faces.config.ConfigureListener).<BR>log4j:WARN Please initialize the log4j system properly.<BR>log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).<BR>log4j:WARN Please initialize the log4j system properly.<BR>log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).<BR>log4j:WARN Please initialize the log4j system properly.<BR>2008-5-17 0:18:31 org.apache.coyote.http11.Http11Protocol start<BR>信息: Starting Coyote HTTP/1.1 on http-8080<BR>2008-5-17 0:18:31 org.apache.jk.common.ChannelSocket init<BR>信息: JK: ajp13 listening on /0.0.0.0:8009<BR>2008-5-17 0:18:31 org.apache.jk.server.JkMain start<BR>信息: Jk running ID=0 time=0/31 config=null<BR>2008-5-17 0:18:31 org.apache.catalina.startup.Catalina start<BR>信息: Server startup in 7826 ms<BR>2008-5-17 0:18:40 org.apache.catalina.core.ApplicationContext log<BR>信息: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'<BR>2008-5-17 0:18:40 org.apache.catalina.core.ApplicationContext log<BR>信息: HTMLManager: init: Global resources are available<BR>2008-5-17 0:18:40 org.apache.catalina.core.ApplicationContext log<BR>信息: HTMLManager: list: Listing contexts for virtual host 'localhost'<BR>Hibernate: select affiche0_.id as id6_, affiche0_.title as title6_, affiche0_.content as content6_, affiche0_.dates as dates6_ from tb_affiche affiche0_<BR>------在检索对象时抛出异常,内容如下:<BR>org.hibernate.HibernateException: IOException occurred reading text<BR> at org.hibernate.type.TextType.get(TextType.java:45)<BR> at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:113)<BR> at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:102)<BR> at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)<BR> at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2046)<BR> at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)<BR> at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)<BR> at org.hibernate.loader.Loader.getRow(Loader.java:1197)<BR> at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)<BR> at org.hibernate.loader.Loader.doQuery(Loader.java:689)<BR> at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)<BR> at org.hibernate.loader.Loader.doList(Loader.java:2211)<BR> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)<BR> at org.hibernate.loader.Loader.list(Loader.java:2090)<BR> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)<BR> at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)<BR> at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)<BR> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)<BR> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)<BR> at mrgf.other.Hibernate.query(Hibernate.java:53)<BR> at org.apache.jsp.a_005flayout_jsp._jspService(a_005flayout_jsp.java:297)<BR> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)<BR> at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)<BR> at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)<BR> at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)<BR> at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:609)<BR> at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)<BR> at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)<BR> at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)<BR> at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)<BR> at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)<BR> at org.apache.jsp.index_jsp._jspx_meth_tiles_005finsert_005f0(index_jsp.java:109)<BR> at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)<BR> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<BR> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<BR> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<BR> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<BR> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<BR> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<BR> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<BR> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<BR> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<BR> at java.lang.Thread.run(Unknown Source)<BR>Caused by: java.io.IOException: Underlying input stream returned zero bytes<BR> at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)<BR> at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)<BR> at sun.nio.cs.StreamDecoder.read(Unknown Source)<BR> at java.io.InputStreamReader.read(Unknown Source)<BR> at com.microsoft.jdbc.base.BaseCharacterStreamWrapper.read(Unknown Source)<BR> at org.hibernate.type.TextType.get(TextType.java:39)<BR> ... 58 more<BR>2008-5-17 0:18:46 org.apache.catalina.core.ApplicationDispatcher invoke<BR>严重: Servlet.service() for servlet debugjsp threw exception<BR>java.lang.NullPointerException<BR> at org.apache.jsp.a_005flayout_jsp._jspService(a_005flayout_jsp.java:302)<BR> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)<BR> at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)<BR> at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)<BR> at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)<BR> at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:609)<BR> at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)<BR> at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)<BR> at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)<BR> at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)<BR> at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)<BR> at org.apache.jsp.index_jsp._jspx_meth_tiles_005finsert_005f0(index_jsp.java:109)<BR> at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)<BR> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<BR> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<BR> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<BR> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<BR> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<BR> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<BR> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<BR> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<BR> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<BR> at java.lang.Thread.run(Unknown Source)<BR>2008-5-17 0:18:46 org.apache.catalina.core.StandardWrapperValve invoke<BR>严重: Servlet.service() for servlet debugjsp threw exception<BR>javax.servlet.jsp.JspException: ServletException in 'a_layout.jsp': null<BR> at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)<BR> at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)<BR> at org.apache.jsp.index_jsp._jspx_meth_tiles_005finsert_005f0(index_jsp.java:109)<BR> at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)<BR> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<BR> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<BR> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<BR> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<BR> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<BR> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<BR> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<BR> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<BR> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<BR> at java.lang.Thread.run(Unknown Source)<BR>