An Error Occurred:

javax.el.ELException: /revista.xhtml @17,111 rendered="#{revistaAction.getUltimNumero() == revistaAction.ultimaRevista_id}": javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection

+ Stack Trace

javax.faces.FacesException: javax.el.ELException: /revista.xhtml @17,111 rendered="#{revistaAction.getUltimNumero() == revistaAction.ultimaRevista_id}": javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:393)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:924)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
	at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
	at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
	at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
	at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
	at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
	at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
	at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
	at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
	at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
	at java.lang.Thread.run(Thread.java:701)
Caused by: javax.el.ELException: /revista.xhtml @17,111 rendered="#{revistaAction.getUltimNumero() == revistaAction.ultimaRevista_id}": javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
	at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
	... 55 more
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
	at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:108)
	at org.jboss.seam.framework.EntityQuery.initSingleResult(EntityQuery.java:102)
	at org.jboss.seam.framework.EntityQuery.getSingleResult(EntityQuery.java:93)
	at rdg.action.RevistaAction.getUltimNumero(RevistaAction.java:875)
	at sun.reflect.GeneratedMethodAccessor3336.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
	at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
	at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
	at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
	at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
	at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
	at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
	at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
	at rdg.action.RevistaAction_$$_javassist_1.getUltimNumero(RevistaAction_$$_javassist_1.java)
	at sun.reflect.GeneratedMethodAccessor3335.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
	at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:274)
	at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
	at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
	at org.jboss.el.parser.AstEqual.getValue(AstEqual.java:21)
	at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
	... 56 more
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
	at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
	at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
	at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
	at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
	at org.hibernate.loader.Loader.doQuery(Loader.java:673)
	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
	at org.hibernate.loader.Loader.doList(Loader.java:2220)
	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
	at org.hibernate.loader.Loader.list(Loader.java:2099)
	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
	at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
	at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:82)
	... 87 more
Caused by: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:
	at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
	at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
	... 101 more

+ Component Tree

<AjaxViewRoot id="_viewRoot" immediate="false" locale="en" renderKitId="HTML_BASIC" renderRegionOnly="false" rendered="true" selfRendered="false" submitted="false" transient="false" viewId="/revista.xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Revista de Girona</title> <link href="stylesheet/theme.css" rel="stylesheet" type="text/css"/> <link href="stylesheet/divs.css" rel="stylesheet" type="text/css"/> <link href="stylesheet/format.css" rel="stylesheet" type="text/css"/> <link href="stylesheet/divs_superior.css" rel="stylesheet" type="text/css"/> <link href="stylesheet/divs_peu.css" rel="stylesheet" type="text/css"/> <link href="stylesheet/divs_content.css" rel="stylesheet" type="text/css"/> <script> function showOpinio(e){ if(document.getElementById(e).style.display == "none" || document.getElementById(e).style.display == ""){ document.getElementById(e).style.display = "block"; }else document.getElementById(e).style.display = "none"; } </script> </head> <body id="#{tabClasse}"> <div id="container"> <div id="capcalera"> <div id="marca"> <p class="descriptor">Edita: <a href="http://www.ddgi.cat" target="_blank">Diputació de Girona</a></p> <div id="menu_lat_esq"> <ul> <li id="hemeroteca"><a href="hemeroteca.seam"><span>Hemeroteca</span></a></li> <li id="contacte"><a href="contacte.seam"><span>Contacte</span></a></li> <li id="home"><a href="home.seam"><span>Home</span></a></li> </ul> </div> <div id="menu_lat_dr"> <ul> <li id="credits"> <p class="links"><a href="credits.seam">Crèdits</a></p> </li> <li id="contacte"> <p class="links"><a href="contacte.seam">Contacte</a></p> </li> </ul> </div> <div id="menu_ppal"> <ul> <li id="num_act"><a href="home.seam"><span>Número actual</span></a></li> <li id="num_ant"><a href="revistes.seam"><span>Números anteriors</span></a></li> <li id="hemeroteca"><a href="hemeroteca.seam"><span>Hemeroteca</span></a></li> <li id="normes"><a href="normes.seam"><span>Normes de redacció</span></a></li> <li id="punts"><a href="punts.seam"><span>Punts de venda</span></a></li> </ul> </div> </div> </div> <div id="main"> <div id="content">
<!-- Columna esquerra -->
<HtmlOutputText escape="true" id="j_id3" transient="false" value="">
<div id="columna_esq"> <div id="columna_esq_portada"> <h2><span>Portada</span></h2> <div id="columna_esq_portada_content"> <img src="#{revistaAction.getPortada(ultimaRevista_id, ultimaRevista_any)}" alt="Portada" width="183" height="241" border="0"/> <!--<img src="img/portada_act.gif" alt="Portada" width="183" height="241" border="0" />--> <p class="quadre">Número #{ultimaRevista_id}</p> <p class="quadre">#{ultimaRevista_any}</p> </div> </div> <div id="columna_esq_sumari"> <h2> <a href="sumari-portada.seam"><span>Sumari</span></a> </h2> </div> <div id="columna_esq_ciber"> <h2><span>Rdglink</span></h2> <div id="columna_esq_ciber_content"> <p class="quadre">Consulteu els continguts complementaris de la revista impresa, i informació addicional</p> <div id="boto_ciber"><a href="ciber-portada.seam"><span>CiberRdG</span></a></div> </div> </div> <div id="columna_esq_eArt"> <h2><span>Rdglink</span></h2> <div id="columna_esq_eArt_content"> <p class="quadre">Consulteu articles i imatges que no apareixen a la versió impresa de la <i>Revista de Girona</i></p> <div id="boto_eArt"><a href="eArticles.seam"><span>CiberRdG</span></a></div> </div> </div> <div id="columna_esq_videos"> <h2><span>Vídeos</span></h2> <div id="columna_esq_videos_content"> <!--<img src="img/video.gif" alt="Video" width="130" height="98" border="0" />--> <p class="quadre">En aquest apartat podeu consultar diferents documents audiovisuals que considerem que poden ser d’interès per als nostres lectors</p> <div id="boto_videos"><a href="videos.seam"><span>Veure vídeos</span></a></div> </div> </div> </div>
</HtmlOutputText>
<HtmlOutputText escape="true" id="j_id5" transient="false" value="">
<div id="columna_esq"> <div id="columna_esq_portada"> <h2><span>Portada</span></h2> <div id="columna_esq_portada_content"> <img src="#{revistaAction.getPortada(ultimaRevista_id, ultimaRevista_any)}" alt="Portada" width="183" height="241" border="0"/> <p class="quadre">Número #{ultimaRevista_id}</p> <p class="quadre">#{ultimaRevista_any}</p> </div> </div> <div id="columna_esq_sumari"> <h2> <a href="sumari.seam"><span>Sumari</span></a> </h2> </div> <div id="columna_esq_ciber"> <h2><span>Rdglink</span></h2> <div id="columna_esq_ciber_content"> <p class="quadre">Consulteu els continguts complementaris de la revista impresa, i informació addicional</p> <div id="boto_ciber"><a href="ciber.seam"><span>CiberRdG</span></a></div> </div> </div> </div>
</HtmlOutputText>
<div id="columna_cent"> <div>
<HtmlMessages globalOnly="true" id="j_id8" layout="list" rendered="true" showDetail="false" showSummary="true" styleClass="message" tooltip="false" transient="false"/>
</div>
<UIRepeat id="j_id10" offset="0" rendered="false" size="-1" transient="false" var="art">
<div id="article_ud"> <h1 class="nom_ud">#{art.article_web_tipus_fk}</h1> <p class="subtitol_ud"/> <h2 class="titol_ud">#{art.article_web_titol}</h2> <p class="autor_ud">#{art.article_web_autor}</p> <p class="text_ud">#{art.article_web_text}</p> <br/>
<HtmlOutputLink disabled="false" id="j_id12" rendered="false" target="_blank" transient="false" value="http://www.revistadegirona.cat/recursos/articleWeb//">
<img src="http://www.revistadegirona.cat/recursos/articleWeb/#{art.article_web_revista_fk}/#{art.article_web_foto}" width="266" class="img"/>
</HtmlOutputLink>
</div>
</UIRepeat>
</div>
<!-- Columna Dreta --> <div id="columna_dr"> <div id="columna_dr_opinio"> <h2><span>Opinió</span></h2> <div id="columna_dr_opinio_content"> <p class="quadre"> L'espai en que els lectors de Revista de Girona poden expressar les seves opinions i comentaris </p> <div id="boto_opinio"> <a href="opinio.seam"><span>Opinió</span></a> </div> </div> </div> <div id="columna_dr_hemeroteca"> <h2><span>Hemeroteca</span></h2> <div id="columna_dr_hemeroteca_content"> <label for="s">Paraules clau / títol:</label>
<HtmlForm enctype="application/x-www-form-urlencoded" id="cerca_paraula" prependId="true" rendered="true" submitted="false" transient="false">
<!--<input type="text" value="" name="s" id="s" />-->
<HtmlInputText disabled="false" id="searchString" immediate="false" localValueSet="false" maxlength="-2147483648" readonly="false" rendered="true" required="false" size="-2147483648" style="width: 165px;" transient="false" valid="true" value=""/>
<div id="boto_hemeroteca"> <!--<a href="resultat_cerca.seam"><span>Hemeroteca</span></a>-->
<HtmlCommandLink action="#{revistaAction.cercarRevista}" actionExpression="#{revistaAction.cercarRevista}" disabled="false" id="j_id19" immediate="false" rendered="true" transient="false" value=""/>
</div>
</HtmlForm>
<p class="quadre">Si voleu fer cerques avançades a l'hemeroteca feu clic <a href="hemeroteca.seam">aquí</a></p> </div> </div> <div id="columna_dr_subscripcio"> <h2><span>Subscripció</span></h2> <div id="columna_dr_subscripcio_content"> <p class="quadre">Podeu descarregar-vos el formulari (PDF) de subscripció a la versió impresa de la <i>Revista de Girona</i></p> <div id="boto_subscripcio"><a href="subscripcio.seam"><span>Subscripció</span></a></div> </div> </div> <div id="columna_dr_newsletter"> <h2><span>Butlletí</span></h2> <div id="columna_dr_newsletter_content"> <p class="quadre">Si voleu rebre el butlletí informatiu de la <i>Revista de Girona</i> a la vostra adreça electrònica ompliu el següent formulari</p> <p class="quadre"/> <br/>
<HtmlForm enctype="application/x-www-form-urlencoded" id="j_id22" prependId="true" rendered="true" submitted="false" transient="false">
<label for="s">Nom:</label>
<HtmlInputText disabled="false" id="but_nom" immediate="false" localValueSet="false" maxlength="-2147483648" readonly="false" rendered="true" required="false" size="-2147483648" transient="false" valid="true"/>
<label for="s">Adreça electrònica:</label>
<HtmlInputText disabled="false" id="but_mail" immediate="false" localValueSet="false" maxlength="-2147483648" readonly="false" rendered="true" required="false" size="-2147483648" transient="false" valid="true"/>
<div id="boto_newsletter">
<HtmlCommandLink action="#{butlletiAction.subscriure}" actionExpression="#{butlletiAction.subscriure}" disabled="false" id="j_id26" immediate="false" rendered="true" transient="false" value=""/>
</div>
</HtmlForm>
<!-- <p class="quadre">Per donar-vos de baixa o modificar les vostres dades, feu click aquí</p> --> </div> </div> </div> <div id="clear"/> </div> </div> </div> <div id="footer"> <div id="footer_content"> <p class="peu">Copyright 2008 Revista de Girona - Diputació de Girona</p> <p class="peu"><a href="home.seam">Número actual</a> | <a href="revistes.seam">Números anteriors</a> | <a href="hemeroteca.seam">Hemeroteca</a> | <a href="normes.seam">Normes de redacció</a> | <a href="punts.seam">Punts de venda</a></p> <p class="peu"><a href="contacte.seam">Contacte</a> | <a href="credits.seam">Crèdits</a> | <a href="avis_legal.seam">Avís legal</a></p> <div id="rss"><p class="peu"><a href="rss.xml">RSS</a></p></div> <div id="mapa"><p class="peu"><a href="mapa.seam">Mapa del web</a></p> </div> </div> </div> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-340666-21']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!--<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-6135003-1"); pageTracker._trackPageview(); </script>--> </body> </html>
</AjaxViewRoot>

+ Scoped Variables

Request Parameters
NameValue
cid263768
Request Attributes
NameValue
ajaxContextorg.ajax4jsf.context.AjaxContextImpl@1b94c60
Session Attributes
NameValue
havePromofalse
nearPageOkfalse
nextPageOkfalse
nom_galNo hi han galeries
revExistsfalse
revistaActionrdg.action.RevistaAction@455870
ultimaRevista_any
ultimaRevista_id0
Application Attributes
NameValue
revistaGironaEntityManagerFactoryorg.jboss.seam.persistence.EntityManagerFactory@1dc8d87
securityRulesorg.jboss.seam.drools.RuleBase@cfbff3
Nov 18, 2018 6:01:56 PM - Generated by Facelets