单例计时器抛出计​​时器异常

时间:2014-11-03 05:15:15

标签: java mysql jboss singleton

我使用singleton bean从日志文件中读取数据,将其存储在Mysql DB中,

@Schedule(minute = "*/15", hour = "*", persistent = false) @SuppressWarnings("empty-statement")

如果它读取单个日志文件工作正常但多个文件它会在ps = mycon.prepareStatement(Query)

行引发下面提到的异常

服务器中出现异常:

2014-11-03 14:35:20,101 ERROR [STDERR] (pool-15-thread-1) org.jboss.util.NestedSQLException: Transaction TransactionImple < ac, BasicAction: 0:ffffc0a80ac1:126a:54572251:184 status: ActionStatus.ABORTED > cannot proceed STATUS_ROLLEDBACK; - nested throwable: (javax.transaction.RollbackException: Transaction TransactionImple < ac, BasicAction: 0:ffffc0a80ac1:126a:54572251:184 status: ActionStatus.ABORTED > cannot proceed STATUS_ROLLEDBACK)

  

2014-11-03 14:35:20,102 org.jboss.resource.adapter.jdbc.WrapperDataSource.checkTransactionActive(WrapperDataSource.java:165)中的错误[STDERR](pool-15-thread-1)

     

2014-11-03 14:35:20,102 org.jboss.resource.adapter.jdbc.WrappedConnection.checkTransactionActive(WrappedConnection.java:843)中的错误[STDERR](pool-15-thread-1)

     

2014-11-03 14:35:20,103 org.jboss.resource.adapter.jdbc.WrappedConnection.checkStatus(WrappedConnection.java:858)中的错误[STDERR](pool-15-thread-1)

     

2014-11-03 14:35:20,103 org.jboss.resource.adapter.jdbc.WrappedConnection.checkTransaction(WrappedConnection.java:835)中的错误[STDERR](pool-15-thread-1)

     

2014-11-03 14:35:20,103 org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:250)中的ERROR [STDERR](pool-15-thread-1)

     

2014-11-03 14:35:20,104错误[STDERR](pool-15-thread-1)at com.pms.single.PmsLogInsert.avgRespTimeRead(PmsLogInsert.java:1058)

     

2014-11-03 14:35:20,104错误[STDERR](pool-15-thread-1)at com.pms.single.PmsLogInsert.createIndex(PmsLogInsert.java:438)

     

2014-11-03 14:35:20,129 ERROR [STDERR](pool-15-thread-1)引起:javax.transaction.RollbackException:Transaction TransactionImple&lt; ac,BasicAction:0:ffffc0a80ac1:126a:54572251:184 status:ActionStatus.ABORTED&gt;无法继续STATUS_ROLLEDBACK

0 个答案:

没有答案