jsp程序本地调试没问题,放到不同空间就会出现各种不同问题,也有能正确显示的,但刷新后就出问题了
87:88:<ulclass="u-n">89:<%List<New>list1=dao.FindBySize(11,1,"综合新闻");%>90:<%for(Newn:...
87:
88: <ul class="u-n">
89: <% List<New> list1=dao.FindBySize(11,1,"综合新闻"); %>
90: <%for(New n:list1){
91: %>
92: <li><span>[<%=n.getTime() %>]</span><a href="Article?id=<%=n.getId() %>" target=_blank><%=n.getLongtitle() %></a></li>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause
java.lang.NullPointerException
dao.impl.DaoImplNew.FindBySize(DaoImplNew.java:175)
org.apache.jsp.index_jsp._jspService(index_jsp.java:145)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
我测试过dao.FindBySize(11,1,"综合新闻"),不是空啊,求高手解答 展开
88: <ul class="u-n">
89: <% List<New> list1=dao.FindBySize(11,1,"综合新闻"); %>
90: <%for(New n:list1){
91: %>
92: <li><span>[<%=n.getTime() %>]</span><a href="Article?id=<%=n.getId() %>" target=_blank><%=n.getLongtitle() %></a></li>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause
java.lang.NullPointerException
dao.impl.DaoImplNew.FindBySize(DaoImplNew.java:175)
org.apache.jsp.index_jsp._jspService(index_jsp.java:145)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.
我测试过dao.FindBySize(11,1,"综合新闻"),不是空啊,求高手解答 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询