Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2439 | major | always | 02-14-08 16:20 | 02-19-08 11:00 | |
|
|||||
Reporter: | ckchris | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.5 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.5 | ||
|
|||||
Summary: | 0002439: com.caucho.sql.UserStatement.clearWarnings throwing NPE | ||||
Description: |
Trying to install JForum and testing it out. After configuring and starting up JForum, I encountered the attached exception error. jforum's DbUtils.close() method code is as follows: public static void close(Statement st) { if (st != null) { try { st.clearWarnings(); st.close(); } catch (SQLException e) { } } } Resin is somehow not playing nice. |
||||
Steps To Reproduce: | |||||
Additional Information: |
java.lang.NullPointerException at com.caucho.sql.UserStatement.clearWarnings(UserStatement.java:107) at net.jforum.util.DbUtils.close(DbUtils.java:89) at net.jforum.dao.generic.GenericUserDAO.getTotalUsers(GenericUserDAO.java:638) at net.jforum.repository.ForumRepository.loadUsersInfo(ForumRepository.java:789) at net.jforum.repository.ForumRepository.start(ForumRepository.java:131) at net.jforum.ForumStartup.startForumRepository(ForumStartup.java:100) at net.jforum.JForum.init(JForum.java:111) at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:814) at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:716) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94) at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) at java.lang.Thread.run(Thread.java:595) [2008/02/14 16:05:13.228] javax.servlet.ServletException: net.jforum.exceptions.ForumStartupException: Error while starting jforum [2008/02/14 16:05:13.228] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:752) [2008/02/14 16:05:13.228] at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:94) [2008/02/14 16:05:13.228] at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59) [2008/02/14 16:05:13.228] at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) [2008/02/14 16:05:13.228] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181) [2008/02/14 16:05:13.228] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) [2008/02/14 16:05:13.228] at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435) [2008/02/14 16:05:13.228] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603) [2008/02/14 16:05:13.228] at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) [2008/02/14 16:05:13.228] at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) [2008/02/14 16:05:13.228] at java.lang.Thread.run(Thread.java:595) [2008/02/14 16:05:13.228] Caused by: net.jforum.exceptions.ForumStartupException: Error while starting jforum [2008/02/14 16:05:13.228] at com.caucho.sql.UserStatement.clearWarnings(UserStatement.java:107) [2008/02/14 16:05:13.228] at net.jforum.util.DbUtils.close(DbUtils.java:89) [2008/02/14 16:05:13.228] at net.jforum.dao.generic.GenericUserDAO.getTotalUsers(GenericUserDAO.java:638) [2008/02/14 16:05:13.228] at net.jforum.repository.ForumRepository.loadUsersInfo(ForumRepository.java:789) [2008/02/14 16:05:13.228] at net.jforum.repository.ForumRepository.start(ForumRepository.java:131) [2008/02/14 16:05:13.228] at net.jforum.ForumStartup.startForumRepository(ForumStartup.java:100) [2008/02/14 16:05:13.228] at net.jforum.JForum.init(JForum.java:111) [2008/02/14 16:05:13.228] at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:814) [2008/02/14 16:05:13.228] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:716) [2008/02/14 16:05:13.228] ... 10 more [2008/02/14 16:05:13.228] Caused by: net.jforum.exceptions.RepositoryStartupException: Error while trying to start ForumRepository: java.lang.NullPointerException [2008/02/14 16:05:13.228] ... 19 more [2008/02/14 16:05:13.228] Caused by: java.lang.NullPointerException [2008/02/14 16:05:13.228] ... 19 more |
||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |