banq 请看,论坛查搜报错

08-01-03 xbzgb
2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - java.lang.NullPointerException

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.jivejdon.model.query.QueryCriteria.toString(QueryCriteria.java:153)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.jivejdon.manager.QueryManager.getHotThreadKeys(QueryManager.java:69)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.jivejdon.manager.QueryManager.getHotThreadPageKeys(QueryManager.java:50)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.jivejdon.service.imp.message.ForumMessageQueryServiceImp.getThreads(ForumMessageQueryServiceImp.java:95)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at java.lang.reflect.Method.invoke(Method.java:585)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.MethodInvokerUtil.execute(MethodInvokerUtil.java:54)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.ProxyMethodInvocation.methodInvoke(ProxyMethodInvocation.java:108)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:76)

xbzgb
2008-01-03 16:29
2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.interceptor.SessionContextInterceptor.invoke(SessionContextInterceptor.java:76)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.interceptor.StatefulInterceptor.invoke(StatefulInterceptor.java:82)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.interceptor.PoolInterceptor.invoke(PoolInterceptor.java:91)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.jivejdon.auth.PermissionInterceptor.invoke(PermissionInterceptor.java:94)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:58)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.reflection.ProxyMethodInvocation.proceed(ProxyMethodInvocation.java:84)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.aop.AopClient.invoke(AopClient.java:95)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving.invoke(DynamicProxyWeaving.java:62)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at $Proxy171.getThreads(Unknown Source)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.jivejdon.presentation.action.query.ThreadQueryAction.getPageIterator(ThreadQueryAction.java:66)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.strutsutil.ModelListAction.execute(ModelListAction.java:69)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

xbzgb
2008-01-03 16:29
2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

banq
2008-01-04 17:06
>2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - java.lang.NullPointerException

2008-01-03 16:22:39 ERROR [LoggerStream.java:152] STDERR.write() - at com.jdon.jivejdon.model.query.QueryCriteria.toString(QueryCriteria.java:153)

在QueryCriteria.java的第153行出现空指针

使用Eclipse断点跟踪调试,看看是哪个变量为空

xbzgb
2008-01-07 11:09
我仔细看了演习一下程序,原来并不是程序问题而是使用问题,但最终还是程序有些问题,比如查询帖子日期必须输入,但是页面上并没有这样的提示,显得不够友好!而如果没有录入日期也没有错误提示,可能太偏向技术操作,实用性上有些问题!

猜你喜欢
2Go 1 2 下一页