Quantcast

Could not open Hibernate Session for transaction.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Could not open Hibernate Session for transaction.

Igor Ussov
Hi everybody!

I have problem. If long time I don't send request to tomcat server
then I get this error:

Grails Runtime Exception

Error Details

Error 500:
Servlet: default
URI: /toil2-2.0/j_spring_security_check
Exception Message: Broken pipe
Caused by: Could not open Hibernate Session for transaction; nested
exception is org.hibernate.TransactionException: JDBC begin failed:
Class: GormUserDetailsService
At Line: [67]
Code Snippet:
Stack Trace

org.springframework.transaction.CannotCreateTransactionException:
Could not open Hibernate Session for transaction; nested exception is
org.hibernate.TransactionException: JDBC begin failed:

        at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:596)

        at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTransactionManager.super$3$doBegin(GrailsHibernateTransactionManager.groovy)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:616)

        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)

        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)

If I send request again then everything work fine.

Why?

--
________________________________
Regards Igor

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Could not open Hibernate Session for transaction.

burtbeckwith
Check out this very interesting web site: http://grails.1312388.n4.nabble.com/Grails-user-f1312389.html

Enter "Broken pipe" in the search box.

Burt

> Hi everybody!
>
> I have problem. If long time I don't send request to tomcat server
> then I get this error:
>
> Grails Runtime Exception
>
> Error Details
>
> Error 500:
> Servlet: default
> URI: /toil2-2.0/j_spring_security_check
> Exception Message: Broken pipe
> Caused by: Could not open Hibernate Session for transaction; nested
> exception is org.hibernate.TransactionException: JDBC begin failed:
> Class: GormUserDetailsService
> At Line: [67]
> Code Snippet:
> Stack Trace
>
> org.springframework.transaction.CannotCreateTransactionException:
> Could not open Hibernate Session for transaction; nested exception is
> org.hibernate.TransactionException: JDBC begin failed:
>
> at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:596)
>
> at org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTransactionManager.super$3$doBegin(GrailsHibernateTransactionManager.groovy)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:616)
>
> at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
>
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
>
> If I send request again then everything work fine.
>
> Why?
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...