Programação


Error

VelocityViewServlet : Error processing a template for path '/noticias-e-eventos/evento.vm'

org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [select c from edu.bj.metadado.model.ConteudoFormulario_faen_evento_programacoes as c where dtHoraValidade>=current_date() and dtHoraPublicacao<=current_date() and c.situacao.sigla = 'aprovado' and c.siteClasseConteudo.nomeCodificado=:param_0 and exists (SELECT 0 FROM edu.bj.gestaoconteudo.model.ConteudoListaMetadado cm WHERE cm.metadado.tag='evento' and cm.conteudoMestre.id=c.id and cm.conteudo.id in()) order by dtHoraConteudo asc]
java.lang.RuntimeException: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [select c from edu.bj.metadado.model.ConteudoFormulario_faen_evento_programacoes as c  where dtHoraValidade>=current_date() and dtHoraPublicacao<=current_date() and c.situacao.sigla = 'aprovado'  and c.siteClasseConteudo.nomeCodificado=:param_0 and exists (SELECT 0 FROM edu.bj.gestaoconteudo.model.ConteudoListaMetadado cm WHERE cm.metadado.tag='evento' and cm.conteudoMestre.id=c.id and cm.conteudo.id in())  order by dtHoraConteudo asc]
	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 edu.bj.publicador.webapp.servlet.SiteConfigurationFilter.doFilterInternal(SiteConfigurationFilter.java:52)
	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.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: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [select c from edu.bj.metadado.model.ConteudoFormulario_faen_evento_programacoes as c  where dtHoraValidade>=current_date() and dtHoraPublicacao<=current_date() and c.situacao.sigla = 'aprovado'  and c.siteClasseConteudo.nomeCodificado=:param_0 and exists (SELECT 0 FROM edu.bj.gestaoconteudo.model.ConteudoListaMetadado cm WHERE cm.metadado.tag='evento' and cm.conteudoMestre.id=c.id and cm.conteudo.id in())  order by dtHoraConteudo asc]
	at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)
	at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)
	at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)
	at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:258)
	at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:183)
	at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:134)
	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
	at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
	at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)
	at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
	at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
	at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1650)
	at edu.bj.dao.hibernate.BaseDaoHibernate.createQuery(BaseDaoHibernate.java:263)
	at edu.bj.gestaoconteudo.dao.hibernate.ConteudoDaoHibernate.findByParametersMap(ConteudoDaoHibernate.java:531)
	at edu.bj.gestaoconteudo.service.impl.ConteudoManagerImpl.findByParametersMap(ConteudoManagerImpl.java:176)
	at sun.reflect.GeneratedMethodAccessor610.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
	at com.sun.proxy.$Proxy749.findByParametersMap(Unknown Source)
	at edu.bj.publicador.webapp.velocity.PublicadorLoopDirective.render(PublicadorLoopDirective.java:117)
	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)
	... 48 more