Imagem Notícias

$conteudoNoticia.titulo $conteudoNoticia.chamada

Compartilhe esta notícia:   

$conteudoNoticia.conteudo


Galeria de imagens


Error

VelocityViewServlet : Error processing a template for path '/noticia.vm'

java.lang.RuntimeException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'ordenarListaInversa' in class edu.bj.publicador.webapp.velocity.PublicadorProvider threw exception org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: edu.bj.gestaoconteudo.model.Conteudo.imagens, no session or session was closed at /galeria/galeria-aberta/index.vm[line 11, 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 org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: edu.bj.gestaoconteudo.model.Conteudo.imagens, no session or session was closed at /galeria/galeria-aberta/index.vm[line 11, 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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
	at edu.bj.publicador.webapp.servlet.URLAmigavelServlet.handleRequest(URLAmigavelServlet.java:55)
	at edu.bj.publicador.webapp.servlet.URLAmigavelServlet.doGet(URLAmigavelServlet.java:24)
	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 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.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 org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: edu.bj.gestaoconteudo.model.Conteudo.imagens, no session or session was closed at /galeria/galeria-aberta/index.vm[line 11, 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 org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:92)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
	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)
	... 44 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'ordenarListaInversa' in  class edu.bj.publicador.webapp.velocity.PublicadorProvider threw exception org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: edu.bj.gestaoconteudo.model.Conteudo.imagens, no session or session was closed at /galeria/galeria-aberta/index.vm[line 11, 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)
	... 55 more
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: edu.bj.gestaoconteudo.model.Conteudo.imagens, no session or session was closed
	at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:380)
	at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:372)
	at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:365)
	at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:108)
	at org.hibernate.collection.PersistentBag.toArray(PersistentBag.java:280)
	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.GeneratedMethodAccessor2101.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)
	... 63 more