[ 
https://issues.apache.org/jira/browse/ARTEMIS-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Graf updated ARTEMIS-544:
----------------------------------
    Description: 
When shutting down the hook to shutdown derby runs too early causing a 
exception in JDBCJournalImpl thread.
{noformat}
20:32:27,245 WARN  [org.apache.activemq.artemis.journal] AMQ142021: Error on IO 
callback, DATABASE TRANSACTION FAILED
20:32:28,483 ERROR [org.apache.activemq.artemis.core.server] AMQ224008: Failed 
to store id: ActiveMQUnsupportedPacketException[errorType=UNSUPPORTED_PACKET 
message=DATABASE TRANSACTION FAILED]
        at 
org.apache.activemq.artemis.api.core.ActiveMQExceptionType$2.createException(ActiveMQExceptionType.java:40)
 [artemis-commons-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.api.core.ActiveMQExceptionType.createException(ActiveMQExceptionType.java:231)
 [artemis-commons-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.journal.impl.SimpleWaitIOCallback.waitCompletion(SimpleWaitIOCallback.java:63)
 [artemis-journal-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.jdbc.store.journal.JDBCJournalImpl.appendRecord(JDBCJournalImpl.java:293)
 [artemis-jdbc-store-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.jdbc.store.journal.JDBCJournalImpl.appendAddRecord(JDBCJournalImpl.java:351)
 [artemis-jdbc-store-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.storeID(AbstractJournalStorageManager.java:797)
 [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.persistence.impl.journal.BatchingIDGenerator.storeID(BatchingIDGenerator.java:148)
 [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.persistence.impl.journal.BatchingIDGenerator.persistCurrentID(BatchingIDGenerator.java:65)
 [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.persistence.impl.journal.JDBCJournalStorageManager.stop(JDBCJournalStorageManager.java:76)
 [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:776)
 [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:654)
 [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:547)
 [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.stop(JMSServerManagerImpl.java:407)
 [artemis-jms-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.integration.FileBroker.stop(FileBroker.java:79) 
[artemis-cli-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.activemq.artemis.cli.commands.Run$2.run(Run.java:166) 
[artemis-cli-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
{noformat}


  was:
When shutting down the hook to shutdown derby runs too early causing a lot of 
exceptions in journal sync threads.
{noformat}
21:09:48,714 ERROR [org.apache.activemq.artemis.journal] Error performing 
rollback: java.sql.SQLNonTransientConnectionException: No current connection.
        at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) 
[derby.jar:]
        at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) 
[derby.jar:]
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
Source) [derby.jar:]
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
Source) [derby.jar:]
        at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source) 
[derby.jar:]
        at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown 
Source) [derby.jar:]
        at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown 
Source) [derby.jar:]
        at org.apache.derby.impl.jdbc.EmbedConnection.rollback(Unknown Source) 
[derby.jar:]
        at 
org.apache.activemq.artemis.jdbc.store.journal.JDBCJournalImpl.performRollback(JDBCJournalImpl.java:265)
 [artemis-jdbc-store-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.jdbc.store.journal.JDBCJournalImpl.sync(JDBCJournalImpl.java:223)
 [artemis-jdbc-store-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at 
org.apache.activemq.artemis.jdbc.store.journal.JDBCJournalSync.run(JDBCJournalSync.java:33)
 [artemis-jdbc-store-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at java.util.TimerThread.mainLoop(Timer.java:555) [rt.jar:1.8.0_92]
        at java.util.TimerThread.run(Timer.java:505) [rt.jar:1.8.0_92]
Caused by: ERROR 08003: No current connection.
        at org.apache.derby.iapi.error.StandardException.newException(Unknown 
Source) [derby.jar:]
        at 
org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown
 Source) [derby.jar:]
        ... 13 more

{noformat}



> Derby shutdown to early causing nasty exceptions
> ------------------------------------------------
>
>                 Key: ARTEMIS-544
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-544
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.3.0
>            Reporter: Benjamin Graf
>
> When shutting down the hook to shutdown derby runs too early causing a 
> exception in JDBCJournalImpl thread.
> {noformat}
> 20:32:27,245 WARN  [org.apache.activemq.artemis.journal] AMQ142021: Error on 
> IO callback, DATABASE TRANSACTION FAILED
> 20:32:28,483 ERROR [org.apache.activemq.artemis.core.server] AMQ224008: 
> Failed to store id: 
> ActiveMQUnsupportedPacketException[errorType=UNSUPPORTED_PACKET 
> message=DATABASE TRANSACTION FAILED]
>         at 
> org.apache.activemq.artemis.api.core.ActiveMQExceptionType$2.createException(ActiveMQExceptionType.java:40)
>  [artemis-commons-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.api.core.ActiveMQExceptionType.createException(ActiveMQExceptionType.java:231)
>  [artemis-commons-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.journal.impl.SimpleWaitIOCallback.waitCompletion(SimpleWaitIOCallback.java:63)
>  [artemis-journal-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.jdbc.store.journal.JDBCJournalImpl.appendRecord(JDBCJournalImpl.java:293)
>  [artemis-jdbc-store-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.jdbc.store.journal.JDBCJournalImpl.appendAddRecord(JDBCJournalImpl.java:351)
>  [artemis-jdbc-store-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.storeID(AbstractJournalStorageManager.java:797)
>  [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.persistence.impl.journal.BatchingIDGenerator.storeID(BatchingIDGenerator.java:148)
>  [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.persistence.impl.journal.BatchingIDGenerator.persistCurrentID(BatchingIDGenerator.java:65)
>  [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.persistence.impl.journal.JDBCJournalStorageManager.stop(JDBCJournalStorageManager.java:76)
>  [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:776)
>  [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:654)
>  [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.stop(ActiveMQServerImpl.java:547)
>  [artemis-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.stop(JMSServerManagerImpl.java:407)
>  [artemis-jms-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at 
> org.apache.activemq.artemis.integration.FileBroker.stop(FileBroker.java:79) 
> [artemis-cli-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
>         at org.apache.activemq.artemis.cli.commands.Run$2.run(Run.java:166) 
> [artemis-cli-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to