An error has occured in this application.
Please contact TimP giving the URL of this page and the information given below.
org.melati.template.TemplateEngineException org.webmacro.PropertyException: Attempt to invoke method public int org.paneris.bibliomania.Chapter.totalPages() on object org.paneris.bibliomania.Chapter raised an exception: org.melati.util.UnexpectedExceptionException org.melati.util.UnexpectedExceptionException: An exception occurred in a context where it was very unexpected: null at /var/cache/jetty6/Jetty_0_0_0_0_8080_b.war__b__.hf633t/webapp/WEB-INF/classes/org/paneris/bibliomania/html/header.wm:36.18
org.melati.template.TemplateEngineException: org.melati.template.TemplateEngineException org.webmacro.PropertyException: Attempt to invoke method public int org.paneris.bibliomania.Chapter.totalPages() on object org.paneris.bibliomania.Chapter raised an exception: org.melati.util.UnexpectedExceptionException org.melati.util.UnexpectedExceptionException: An exception occurred in a context where it was very unexpected: null at /var/cache/jetty6/Jetty_0_0_0_0_8080_b.war__b__.hf633t/webapp/WEB-INF/classes/org/paneris/bibliomania/html/header.wm:36.18 --- org.webmacro.PropertyException: Attempt to invoke method public int org.paneris.bibliomania.Chapter.totalPages() on object org.paneris.bibliomania.Chapter raised an exception: org.melati.util.UnexpectedExceptionException org.melati.util.UnexpectedExceptionException: An exception occurred in a context where it was very unexpected: null at /var/cache/jetty6/Jetty_0_0_0_0_8080_b.war__b__.hf633t/webapp/WEB-INF/classes/org/paneris/bibliomania/html/header.wm:36.18 at org.webmacro.engine.PropertyOperator.invoke(PropertyOperatorCache.java:1063) at org.webmacro.engine.DirectAccessor.get(PropertyOperatorCache.java:1280) at org.webmacro.engine.PropertyOperator.getProperty(PropertyOperatorCache.java:749) at org.webmacro.engine.PropertyOperatorCache.getProperty(PropertyOperatorCache.java:186) at org.webmacro.Context.internalGet(Context.java:387) at org.webmacro.Context.getProperty(Context.java:447) at org.webmacro.engine.PropertyVariable.getValue(PropertyVariable.java:52) at org.webmacro.engine.Variable.write(Variable.java:215) at org.webmacro.engine.Block.write(Block.java:145) at org.webmacro.directive.IfDirective.write(IfDirective.java:216) at org.webmacro.engine.Block.write(Block.java:197) at org.webmacro.engine.WMTemplate.write(WMTemplate.java:333) at org.webmacro.directive.IncludeDirective.write(IncludeDirective.java:406) at org.webmacro.engine.Block.write(Block.java:202) at org.webmacro.engine.WMTemplate.write(WMTemplate.java:333) at org.melati.template.webmacro.WebmacroTemplate.write(WebmacroTemplate.java:86) at org.melati.template.webmacro.WebmacroTemplateEngine.expandTemplate(WebmacroTemplateEngine.java:179) at org.melati.template.webmacro.WebmacroTemplateEngine.expandTemplate(WebmacroTemplateEngine.java:162) at org.melati.servlet.TemplateServlet.doPoemRequest(TemplateServlet.java:138) at org.melati.servlet.PoemServlet$1.run(PoemServlet.java:261) at org.melati.poem.Database$3.run(Database.java:724) at org.melati.poem.PoemThread.inSession(PoemThread.java:159) at org.melati.poem.Database.perform(Database.java:722) at org.melati.poem.Database.inSession(Database.java:786) at org.melati.servlet.PoemServlet.doConfiguredRequest(PoemServlet.java:228) at org.melati.servlet.ConfigServlet.doGetPostRequest(ConfigServlet.java:177) at org.melati.servlet.ConfigServlet.doGet(ConfigServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Caused by: org.melati.util.UnexpectedExceptionException: An exception occurred in a context where it was very unexpected: null at org.paneris.bibliomania.Chapter.totalPages(Chapter.java:325) at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.webmacro.engine.PropertyOperator.invoke(PropertyOperatorCache.java:1029) ... 45 more Caused by: java.lang.NullPointerException at org.paneris.bibliomania.Chapter.totalPages(Chapter.java:322) ... 49 more -- secondary stack trace -- org.melati.util.UnexpectedExceptionException: An exception occurred in a context where it was very unexpected: null --- java.lang.NullPointerException at org.paneris.bibliomania.Chapter.totalPages(Chapter.java:322) at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.webmacro.engine.PropertyOperator.invoke(PropertyOperatorCache.java:1029) at org.webmacro.engine.DirectAccessor.get(PropertyOperatorCache.java:1280) at org.webmacro.engine.PropertyOperator.getProperty(PropertyOperatorCache.java:749) at org.webmacro.engine.PropertyOperatorCache.getProperty(PropertyOperatorCache.java:186) at org.webmacro.Context.internalGet(Context.java:387) at org.webmacro.Context.getProperty(Context.java:447) at org.webmacro.engine.PropertyVariable.getValue(PropertyVariable.java:52) at org.webmacro.engine.Variable.write(Variable.java:215) at org.webmacro.engine.Block.write(Block.java:145) at org.webmacro.directive.IfDirective.write(IfDirective.java:216) at org.webmacro.engine.Block.write(Block.java:197) at org.webmacro.engine.WMTemplate.write(WMTemplate.java:333) at org.webmacro.directive.IncludeDirective.write(IncludeDirective.java:406) at org.webmacro.engine.Block.write(Block.java:202) at org.webmacro.engine.WMTemplate.write(WMTemplate.java:333) at org.melati.template.webmacro.WebmacroTemplate.write(WebmacroTemplate.java:86) at org.melati.template.webmacro.WebmacroTemplateEngine.expandTemplate(WebmacroTemplateEngine.java:179) at org.melati.template.webmacro.WebmacroTemplateEngine.expandTemplate(WebmacroTemplateEngine.java:162) at org.melati.servlet.TemplateServlet.doPoemRequest(TemplateServlet.java:138) at org.melati.servlet.PoemServlet$1.run(PoemServlet.java:261) at org.melati.poem.Database$3.run(Database.java:724) at org.melati.poem.PoemThread.inSession(PoemThread.java:159) at org.melati.poem.Database.perform(Database.java:722) at org.melati.poem.Database.inSession(Database.java:786) at org.melati.servlet.PoemServlet.doConfiguredRequest(PoemServlet.java:228) at org.melati.servlet.ConfigServlet.doGetPostRequest(ConfigServlet.java:177) at org.melati.servlet.ConfigServlet.doGet(ConfigServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)