Caused by: java.sql.SQLException: Connection handle has been closed and is unusable

Error:

23:37:54,980 INFO  [STDOUT] 23:37:54,970 INFO  
[DefaultLoadEventListener] Error performing load command
org.hibernate.exception.GenericJDBCException: could not load an
 entity: [com.app.model.ExampleEntity#Example.dat]
    at org.hibernate.exception.SQLStateConverter.
    handledNonSpecificException(SQLStateConverter.java:103)
    
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.sql.SQLException: Connection handle has been 
closed and is unusable
    at org.jboss.resource.adapter.jdbc.WrappedConnection.
    checkStatus(WrappedConnection.java:845)

    ... 57 more
23:37:55,101 INFO  [STDOUT] 23:37:55,101 ERROR [LoggingHandler] 
org.springframework.integration.MessageHandlingException: javax.
persistence.PersistenceException: org.hibernate.exception.
GenericJDBCException: could not load an entity: [com.app.model.
ExampleEntity#Example.dat]
    at org.springframework.integration.handler.
    MethodInvokingMessageProcessor.processMessage(
    MethodInvokingMessageProcessor.java:76) 
    
    at java.lang.Thread.run(Thread.java:662)
Caused by: javax.persistence.PersistenceException: org.hibernate.
exception.GenericJDBCException: could not load an entity: [com.
app.model.ExampleEntity#Example.dat]
    at org.hibernate.ejb.AbstractEntityManagerImpl.
    throwPersistenceException(AbstractEntityManagerImpl.java:614)

    ... 31 more
Caused by: org.hibernate.exception.GenericJDBCException: 
could not load an entity: [com.app.model.ExampleEntity#Example.dat]
    at org.hibernate.exception.SQLStateConverter.
    handledNonSpecificException(SQLStateConverter.java:103)

    ... 45 more
Caused by: java.sql.SQLException: Connection handle has been 
closed and is unusable
    at org.jboss.resource.adapter.jdbc.WrappedConnection.
    checkStatus(WrappedConnection.java:845)



Solution:

public synchronized boolean testMethod(Message<?> message) {

I expect your comment on this topic and other questions relating to this topic...

--
"Connection handle has been closed and is unusable" when usi | JBoss AS | JBoss Community