Uploaded image for project: 'Survey'
  1. Survey
  2. SURVEY-156

Ibatis error when accessing the database

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • 2.0.0
    • None
    • None
    • None

      Caused by: org.apache.ibatis.exceptions.PersistenceException: 
      ### Error querying database.  Cause: java.lang.IllegalStateException: Pool not open
      ### The error may exist in /org/ametys/plugins/survey/data/survey-answers.xml
      ### The error may involve SurveyAnswer.getSessionCount
      ### The error occurred while executing a query
      ### Cause: java.lang.IllegalStateException: Pool not open
      	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:122)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:113)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:73)
      	at org.ametys.plugins.survey.data.SurveyAnswerDao.getSessionCount(SurveyAnswerDao.java:103)
      	at org.ametys.plugins.survey.dao.SurveyDAO.getStatistics(SurveyDAO.java:666)
      	... 103 more
      Caused by: java.lang.IllegalStateException: Pool not open
      	at org.apache.commons.pool2.impl.BaseGenericObjectPool.assertOpen(BaseGenericObjectPool.java:672)
      	at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:412)
      	at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
      	at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:134)
      	at org.apache.ibatis.transaction.jdbc.JdbcTransaction.openConnection(JdbcTransaction.java:140)
      	at org.apache.ibatis.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:62)
      	at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:315)
      	at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:75)
      	at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:61)
      	at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:303)
      	at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:154)
      	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:102)
      	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:82)
      	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:120)
      	... 107 more

            Unassigned Unassigned
            quentin Quentin Glinel-Mortreuil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: