FreeMarker template error: Method public java.lang.String net.jforum.entities.Bbs.getPluginTemplate(java.lang.String) threw an exception when invoked on net.jforum.entities.Bbs object "net.jforum.entities.Bbs@124a6948" with arguments of types [java.lang.String,]. See cause exception. The failing instruction (FTL stack trace): ---------- ==> #include bbs.getPluginTemplate("bbs_t... [in template "default/header.htm" at line 26, column 17] #else [in template "default/header.htm" at line 6, column 1] #include "header.htm" [in template "default/message.htm" at line 12, column 17] #else [in template "default/message.htm" at line 11, column 9] #if bbs?exists [in template "default/message.htm" at line 1, column 1] #include "\${templateName}/message.htm" [in template "exception.html" at line 7, column 9] #if templateName?exists && dateTimeFo... [in template "exception.html" at line 6, column 1] ---------- Java stack trace (for programmers): ---------- freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.beans.OverloadedMethodsModel.exec(OverloadedMethodsModel.java:133) at freemarker.core.MethodCall._eval(MethodCall.java:98) at freemarker.core.Expression.eval(Expression.java:111) at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115) at freemarker.core.Include.accept(Include.java:131) at freemarker.core.Environment.visitByHiddingParent(Environment.java:286) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:86) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.include(Environment.java:1712) at freemarker.core.Include.accept(Include.java:173) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.include(Environment.java:1712) at freemarker.core.Include.accept(Include.java:173) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.IfBlock.accept(IfBlock.java:84) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.MixedContent.accept(MixedContent.java:93) at freemarker.core.Environment.visit(Environment.java:265) at freemarker.core.Environment.process(Environment.java:243) at freemarker.template.Template.process(Template.java:278) at net.jforum.exceptions.ExceptionWriter.handleExceptionData(ExceptionWriter.java:120) at net.jforum.JForum.handleException(JForum.java:451) at net.jforum.JForum.service(JForum.java:371) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:60) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:951) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909) at java.lang.Thread.run(Thread.java:662) Caused by: net.jforum.exceptions.DatabaseException: net.jforum.exceptions.DatabaseException: Database.connection.error at net.jforum.ProxoolPooledConnection.getConnection(ProxoolPooledConnection.java:157) at net.jforum.ProxoolPooledConnection.getConnection(ProxoolPooledConnection.java:118) at net.jforum.JForumExecutionContext.getConnection(JForumExecutionContext.java:160) at net.jforum.JForumExecutionContext.getConnection(JForumExecutionContext.java:151) at net.jforum.dao.generic.GenericPluginDAO.getplugin(GenericPluginDAO.java:226) at net.jforum.repository.PluginRepository.placeCode(PluginRepository.java:144) at net.jforum.repository.PluginRepository.get(PluginRepository.java:85) at net.jforum.entities.Bbs.getPluginTemplate(Bbs.java:927) at net.jforum.entities.Bbs.getPluginTemplate(Bbs.java:900) at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:912) at freemarker.ext.beans.OverloadedMethodsModel.exec(OverloadedMethodsModel.java:103) ... 54 more Caused by: net.jforum.exceptions.DatabaseException: Database.connection.error ... 68 more