$conteudo.titulo
Error
VelocityViewServlet : Error processing a template for path '/pensamentos/visualizar-pensamento.vm'
java.lang.RuntimeException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'ordenarListaInversa' in class edu.bj.publicador.webapp.velocity.PublicadorProvider threw exception java.lang.NullPointerException at /pensamentos/../_includes/galeria/index.vm[line 5, column 30]
java.lang.RuntimeException: java.lang.RuntimeException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'ordenarListaInversa' in class edu.bj.publicador.webapp.velocity.PublicadorProvider threw exception java.lang.NullPointerException at /pensamentos/../_includes/galeria/index.vm[line 5, column 30]
at edu.bj.publicador.webapp.velocity.IncludeStructureDirective.render(IncludeStructureDirective.java:120)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.Template.merge(Template.java:328)
at org.apache.velocity.Template.merge(Template.java:235)
at org.apache.velocity.tools.view.servlet.VelocityViewServlet.performMerge(VelocityViewServlet.java:805)
at org.apache.velocity.tools.view.servlet.VelocityViewServlet.mergeTemplate(VelocityViewServlet.java:762)
at edu.bj.publicador.webapp.velocity.PublicadorVelocityServlet.doRequest(PublicadorVelocityServlet.java:117)
at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(VelocityViewServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at edu.bj.webapp.filter.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:34)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at edu.bj.webapp.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:41)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at edu.bj.webapp.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:34)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at edu.bj.webapp.apps.intranet.NetAuthenticationFilter.doFilterInternal(NetAuthenticationFilter.java:27)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at edu.bj.publicador.webapp.trace.TraceFilter.doFilterInternal(TraceFilter.java:47)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'ordenarListaInversa' in class edu.bj.publicador.webapp.velocity.PublicadorProvider threw exception java.lang.NullPointerException at /pensamentos/../_includes/galeria/index.vm[line 5, column 30]
at edu.bj.publicador.webapp.velocity.TemplateDirective.render(TemplateDirective.java:70)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at edu.bj.publicador.webapp.velocity.BodyDirective.render(BodyDirective.java:43)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at edu.bj.publicador.webapp.velocity.AbstractDirective.renderTemplate(AbstractDirective.java:263)
at edu.bj.publicador.webapp.velocity.AbstractDirective.renderTemplate(AbstractDirective.java:278)
at edu.bj.publicador.webapp.velocity.IncludeStructureDirective.render(IncludeStructureDirective.java:112)
... 50 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'ordenarListaInversa' in class edu.bj.publicador.webapp.velocity.PublicadorProvider threw exception java.lang.NullPointerException at /pensamentos/../_includes/galeria/index.vm[line 5, column 30]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:487)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at edu.bj.publicador.webapp.velocity.AbstractDirective.renderTemplate(AbstractDirective.java:263)
at edu.bj.publicador.webapp.velocity.AbstractDirective.renderTemplate(AbstractDirective.java:278)
at edu.bj.publicador.webapp.velocity.TemplateDirective.render(TemplateDirective.java:62)
... 58 more
Caused by: java.lang.NullPointerException
at java.util.Collections.sort(Unknown Source)
at edu.bj.util.ObjectSort.sort(ObjectSort.java:28)
at edu.bj.util.ModelSort.sort(ModelSort.java:20)
at edu.bj.publicador.webapp.velocity.PublicadorProvider.ordenarListaInversa(PublicadorProvider.java:410)
at sun.reflect.GeneratedMethodAccessor2514.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 66 more