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&nbsp; 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>&nbsp;at org.hibernate.type.TextType.get(TextType.java:45)<BR>&nbsp;at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:113)<BR>&nbsp;at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:102)<BR>&nbsp;at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)<BR>&nbsp;at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2046)<BR>&nbsp;at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1371)<BR>&nbsp;at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1299)<BR>&nbsp;at org.hibernate.loader.Loader.getRow(Loader.java:1197)<BR>&nbsp;at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:568)<BR>&nbsp;at org.hibernate.loader.Loader.doQuery(Loader.java:689)<BR>&nbsp;at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)<BR>&nbsp;at org.hibernate.loader.Loader.doList(Loader.java:2211)<BR>&nbsp;at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)<BR>&nbsp;at org.hibernate.loader.Loader.list(Loader.java:2090)<BR>&nbsp;at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)<BR>&nbsp;at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)<BR>&nbsp;at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)<BR>&nbsp;at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)<BR>&nbsp;at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)<BR>&nbsp;at mrgf.other.Hibernate.query(Hibernate.java:53)<BR>&nbsp;at org.apache.jsp.a_005flayout_jsp._jspService(a_005flayout_jsp.java:297)<BR>&nbsp;at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR>&nbsp;at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)<BR>&nbsp;at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)<BR>&nbsp;at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)<BR>&nbsp;at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)<BR>&nbsp;at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:609)<BR>&nbsp;at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)<BR>&nbsp;at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)<BR>&nbsp;at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)<BR>&nbsp;at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)<BR>&nbsp;at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)<BR>&nbsp;at org.apache.jsp.index_jsp._jspx_meth_tiles_005finsert_005f0(index_jsp.java:109)<BR>&nbsp;at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)<BR>&nbsp;at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR>&nbsp;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<BR>&nbsp;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<BR>&nbsp;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<BR>&nbsp;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<BR>&nbsp;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<BR>&nbsp;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<BR>&nbsp;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<BR>&nbsp;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<BR>&nbsp;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<BR>&nbsp;at java.lang.Thread.run(Unknown Source)<BR>Caused by: java.io.IOException: Underlying input stream returned zero bytes<BR>&nbsp;at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)<BR>&nbsp;at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)<BR>&nbsp;at sun.nio.cs.StreamDecoder.read(Unknown Source)<BR>&nbsp;at java.io.InputStreamReader.read(Unknown Source)<BR>&nbsp;at com.microsoft.jdbc.base.BaseCharacterStreamWrapper.read(Unknown Source)<BR>&nbsp;at org.hibernate.type.TextType.get(TextType.java:39)<BR>&nbsp;... 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>&nbsp;at org.apache.jsp.a_005flayout_jsp._jspService(a_005flayout_jsp.java:302)<BR>&nbsp;at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR>&nbsp;at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)<BR>&nbsp;at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)<BR>&nbsp;at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)<BR>&nbsp;at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)<BR>&nbsp;at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:609)<BR>&nbsp;at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)<BR>&nbsp;at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)<BR>&nbsp;at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)<BR>&nbsp;at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)<BR>&nbsp;at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)<BR>&nbsp;at org.apache.jsp.index_jsp._jspx_meth_tiles_005finsert_005f0(index_jsp.java:109)<BR>&nbsp;at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)<BR>&nbsp;at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR>&nbsp;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<BR>&nbsp;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<BR>&nbsp;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<BR>&nbsp;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<BR>&nbsp;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<BR>&nbsp;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<BR>&nbsp;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<BR>&nbsp;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<BR>&nbsp;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<BR>&nbsp;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>&nbsp;at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)<BR>&nbsp;at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)<BR>&nbsp;at org.apache.jsp.index_jsp._jspx_meth_tiles_005finsert_005f0(index_jsp.java:109)<BR>&nbsp;at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)<BR>&nbsp;at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)<BR>&nbsp;at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)<BR>&nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<BR>&nbsp;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<BR>&nbsp;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<BR>&nbsp;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<BR>&nbsp;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<BR>&nbsp;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<BR>&nbsp;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<BR>&nbsp;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<BR>&nbsp;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<BR>&nbsp;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<BR>&nbsp;at java.lang.Thread.run(Unknown Source)<BR>
分享到:
精彩评论 1
许久1
学分:0 LV1
2008-05-17
沙发
<P>根据以上错误提示,是否在您的D:\java目录下安装了JDK及tomcat,并以jre1.5.0_06目录来存放JDK安装文件;以apache-tomcat-6.0.16目录来存放tomcat安装文件。</P>
<P>&nbsp;</P>
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照