首页上一页 1 下一页尾页 1 条记录 1/1页
NullPointerException
发表在JavaWeb图书答疑
2016-09-09
是否精华
是
否
版块置顶:
是
否
老师您好:
《Java Web开发实战(2016年1月第三次印刷)》340页 实例13.6.3,无论是自己写的项目还是将实例13.14
导入Eclipse中都显示如附件所示的NullPointerException。[font color=#FF0000]是不是表不存在啊老师?这个程序具有自动建表功能吗:[/font]
INFO: HHH000397: Using ASTQueryTranslatorFactory
Hibernate: select tbmessage0_.id as id1_0_, tbmessage0_.writer as writer2_0_, tbmessage0_.content as content3_0_, tbmessage0_.sendTime as sendTime4_0_ from tb_message tbmessage0_ order by tbmessage0_.sendTime DESC
九月 09, 2016 6:55:20 下午 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARN: SQL Error: 1146, SQLState: 42S02
九月 09, 2016 6:55:20 下午 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
[strong]ERROR: Table 'hibernate.tb_message' doesn't exist[/strong]
[strong]查询时的错误信息:could not extract ResultSet[/strong]
九月 09, 2016 6:55:20 下午 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
九月 09, 2016 6:55:20 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [com.wgh.servlet.MessageServlet] in context with path [/13.15] threw exception [An exception occurred processing JSP page /listMessage.jsp at line 39
36: <td width="81%" align="center" bgcolor="#FFFFFF">留言内容</td>
37: <td width="8%" align="center" bgcolor="#FFFFFF">修改</td>
38: </tr>
39: <%for(int i=0;i<list.size();i++){
40: TbMessage m=(TbMessage)list.get(i);
41: %>
42: <tr>
Stacktrace:] with root cause
java.lang.NullPointerException
请您协助,谢谢[font color=#0000FF][/font]
《Java Web开发实战(2016年1月第三次印刷)》340页 实例13.6.3,无论是自己写的项目还是将实例13.14
导入Eclipse中都显示如附件所示的NullPointerException。[font color=#FF0000]是不是表不存在啊老师?这个程序具有自动建表功能吗:[/font]
INFO: HHH000397: Using ASTQueryTranslatorFactory
Hibernate: select tbmessage0_.id as id1_0_, tbmessage0_.writer as writer2_0_, tbmessage0_.content as content3_0_, tbmessage0_.sendTime as sendTime4_0_ from tb_message tbmessage0_ order by tbmessage0_.sendTime DESC
九月 09, 2016 6:55:20 下午 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
WARN: SQL Error: 1146, SQLState: 42S02
九月 09, 2016 6:55:20 下午 org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
[strong]ERROR: Table 'hibernate.tb_message' doesn't exist[/strong]
[strong]查询时的错误信息:could not extract ResultSet[/strong]
九月 09, 2016 6:55:20 下午 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
九月 09, 2016 6:55:20 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [com.wgh.servlet.MessageServlet] in context with path [/13.15] threw exception [An exception occurred processing JSP page /listMessage.jsp at line 39
36: <td width="81%" align="center" bgcolor="#FFFFFF">留言内容</td>
37: <td width="8%" align="center" bgcolor="#FFFFFF">修改</td>
38: </tr>
39: <%for(int i=0;i<list.size();i++){
40: TbMessage m=(TbMessage)list.get(i);
41: %>
42: <tr>
Stacktrace:] with root cause
java.lang.NullPointerException
请您协助,谢谢[font color=#0000FF][/font]