jdon2.5游客无法发表新帖

10-05-07 aura521521
如题:我刚装了jdon2.5的代码。当初是无法发表新帖的。经过调试,对于注册用户现在可以了。但是对于游客如果点击发表新帖,则会抛出异常。

个人感觉这样应该不大对劲,希望大家帮帮忙。

我是将post.jsp中的javabean的属性范围改为了application,然后解决了部分问题。

现在的问题是游客点击发帖会出现异常。

谢谢大家。

com.jivesoftware.forum.UserNotFoundException

at com.jivesoftware.forum.database.DbUser.<init>(DbUser.java:202)

at com.jivesoftware.forum.database.DbUserManager.getUser(DbUserManager.java:118)

at com.jivesoftware.forum.UserManagerProxy.getUser(UserManagerProxy.java:55)

at org.apache.jsp.post_jsp._jspService(org.apache.jsp.post_jsp:163)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)

at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

at java.lang.Thread.run(Thread.java:619)

猜你喜欢