-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: HTTP Status 500 Exception
PostPosted: Tue Mar 14, 2006 5:25 am 
Newbie

Joined: Wed Mar 08, 2006 4:45 pm
Posts: 5
Hallo Leute,

ich habe eine Webapplication mit Tomcat und Hibernate.
Es funktioniert auch alles prima.
Wenn ich aber die Application die ganze nacht an habe und Morgens mich einloggen will kommt diese Fehlermeldung und ich muss neustarten:


Code:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: #{loginBean.actionTriggeredLogin}: javax.faces.el.EvaluationException: org.hibernate.exception.JDBCConnectionException: could not execute query
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
   de.dts.tm.jsf.login.LoginFilter.doFilter(LoginFilter.java:29)

root cause

javax.faces.FacesException: #{loginBean.actionTriggeredLogin}: javax.faces.el.EvaluationException: org.hibernate.exception.JDBCConnectionException: could not execute query
   com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
   javax.faces.component.UICommand.broadcast(UICommand.java:312)
   javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
   javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
   com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
   com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
   com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
   de.dts.tm.jsf.login.LoginFilter.doFilter(LoginFilter.java:29)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
Apache Tomcat/5.5.9



An was kann das liegen?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 15, 2006 5:06 am 
Newbie

Joined: Wed Mar 08, 2006 4:45 pm
Posts: 5
Weil das stille schweigen noch im Raum steht glaube ich das ich zu wenig information gegeben habe.
Deshalb Poste ich mal meine hibernate.cfg
Kann es sein das ich einen Connection Pool drauche?
Weil das sieht so aus das er die Verbindung zur Datenbank verliehrt und die nicht wieder aufbauen kann.

Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost/lod?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF-8</property>
        <property name="hibernate.connection.username">root</property>
        <property name="hibernate.connection.password"></property>
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="transaction.factory_class">
             org.hibernate.transaction.JDBCTransactionFactory
        </property>
        <property name="hibernate.cache.provider_class">
             org.hibernate.cache.HashtableCacheProvider
        </property>


        <!-- Print SQL to stdout. -->
        <property name="show_sql">false</property>
        <property name="format_sql">false</property>

        <!-- Drop and then re-create schema on SessionFactory build, for testing.
        <property name="hbm2ddl.auto">update</property>-->

        <!-- Bind the getCurrentSession() method to the thread. -->
        <property name="current_session_context_class">thread</property>

        <mapping resource="de/dts/tm/hibernate/login/User.hbm.xml"/>
        <mapping resource="de/dts/tm/hibernate/document/Documents.hbm.xml"/>
        <mapping resource="de/dts/tm/hibernate/document/Language.hbm.xml"/>
        <mapping resource="de/dts/tm/hibernate/document/State.hbm.xml"/>
        <mapping resource="de/dts/tm/hibernate/document/MasterDocuments.hbm.xml"/>
        <mapping resource="de/dts/tm/hibernate/document/MasterText.hbm.xml"/>
        <mapping resource="de/dts/tm/hibernate/document/DocumentText.hbm.xml"/>
    </session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 15, 2006 12:56 pm 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
Hi,
ich vermute, dass Du auf nen timeout bei deiner connection läufst.

Kannst Du bitte mal ein komplettes debug log posten. Alternativ kannst Du ja auch mal nen vernünftigen connection pool wie c3po oder proxool anbinden. wie das geht ist hier dokumentiert:
http://www.hibernate.org/hib_docs/v3/re ... ernatejdbc

Aber wie gesagt: ohne log ist das alles nur ne Vermutung

_________________
Please don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.