problem with team calendar
Asked by Pawel Pulka:

Hi Team,

I have a problem with team calendar . I made an upgrade from Confluence 5.2.3 to 7.2.1. After upgrade from restore file I didn't see any fields in calendar. When I choose Calendar I got "$calendarHtml" on the screen. When I choose add new calendar I got information below:

### Cause {#toc-hId-1116888689}

com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle \[com.atlassian.confluence.extra.team-calendars\]  
at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:94)

caused by: org.springframework.orm.hibernate5.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL \[n/a\]; SQL state \[25P02\]; error code \[0\]; could not extract ResultSet; nested exception is org.hibernate.exception.GenericJDBCException: could not extract ResultSet  
at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:254)

caused by: org.hibernate.exception.GenericJDBCException: could not extract ResultSet  
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)

caused by: org.postgresql.util.PSQLException: B??D: bie??ca transakcja zosta?a przerwana, polecenia ignorowane do ko?ca bloku transakcji  
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2497)

caused by: org.postgresql.util.PSQLException: B??D: kolumna "LAST_MODIFIED" nie istnieje Position: 8  
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2497)

#### Stack Trace:\[hide\] {#toc-hId-1807450163}

```
com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.atlassian.confluence.extra.team-calendars]	at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:94)	at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:85)	at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38)	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)	at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$withRequestContext$1(VCacheRequestContextOperations.java:59)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)	at java.lang.Thread.run(Thread.java:748)Caused by: org.springframework.orm.hibernate5.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [25P02]; error code [0]; could not extract ResultSet; nested exception is org.hibernate.exception.GenericJDBCException: could not extract ResultSet	at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:254)	at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:391)	at org.springframework.orm.hibernate5.HibernateTemplate.execute(HibernateTemplate.java:336)	at com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.getRecord(HibernateConfluenceBandanaRecordDao.java:48)	at com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.getPersistent(HibernateConfluenceBandanaRecordDao.java:71)	at com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.saveOrUpdate(HibernateConfluenceBandanaRecordDao.java:31)	at com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.store(ConfluenceDaoBandanaPersister.java:76)	at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)	at com.sun.proxy.$Proxy75.store(Unknown Source)	at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.store(ConfluenceCachingBandanaPersister.java:140)	at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.store(ConfluenceCachingBandanaPersister.java:118)	at com.atlassian.bandana.DefaultBandanaManager.setValue(DefaultBandanaManager.java:48)	at sun.reflect.GeneratedMethodAccessor623.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)	at com.sun.proxy.$Proxy562.setValue(Unknown Source)	at sun.reflect.GeneratedMethodAccessor623.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)	at com.sun.proxy.$Proxy562.setValue(Unknown Source)	at com.atlassian.sal.confluence.pluginsettings.ConfluencePluginSettings.lambda$put$1(ConfluencePluginSettings.java:49)	at com.atlassian.sal.spring.component.SpringHostContextAccessor.lambda$doInTransaction$0(SpringHostContextAccessor.java:70)	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)	at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:68)	at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.access$001(ConfluenceSpringHostContextAccessor.java:21)	at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$3(ConfluenceSpringHostContextAccessor.java:72)	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)	at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:72)	at sun.reflect.GeneratedMethodAccessor532.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)	at com.sun.proxy.$Proxy365.doInTransaction(Unknown Source)	at sun.reflect.GeneratedMethodAccessor532.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)	at com.sun.proxy.$Proxy365.doInTransaction(Unknown Source)	at com.atlassian.sal.confluence.pluginsettings.ConfluencePluginSettings.put(ConfluencePluginSettings.java:47)	at com.atlassian.activeobjects.internal.SalModelVersionManager.update(SalModelVersionManager.java:46)	at com.atlassian.activeobjects.internal.ActiveObjectUpgradeManagerImpl.lambda$upgrade$0(ActiveObjectUpgradeManagerImpl.java:67)	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:21)	at com.atlassian.sal.spring.component.SpringHostContextAccessor.lambda$doInTransaction$0(SpringHostContextAccessor.java:70)	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)	at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:68)	at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.access$001(ConfluenceSpringHostContextAccessor.java:21)	at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$3(ConfluenceSpringHostContextAccessor.java:72)	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)	at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:72)	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:18)	at sun.reflect.GeneratedMethodAccessor251.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)	at com.sun.proxy.$Proxy201.execute(Unknown Source)	at sun.reflect.GeneratedMethodAccessor251.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)	at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)	at com.sun.proxy.$Proxy1124.execute(Unknown Source)	at com.atlassian.activeobjects.internal.SalTransactionManager.inTransaction(SalTransactionManager.java:42)	at com.atlassian.activeobjects.internal.AbstractLoggingTransactionManager.doInTransaction(AbstractLoggingTransactionManager.java:16)	at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.executeInTransaction(EntityManagedActiveObjects.java:204)	at com.atlassian.activeobjects.internal.ActiveObjectUpgradeManagerImpl.upgrade(ActiveObjectUpgradeManagerImpl.java:62)	at com.atlassian.activeobjects.internal.ActiveObjectUpgradeManagerImpl.upgrade(ActiveObjectUpgradeManagerImpl.java:34)	at com.atlassian.activeobjects.internal.DataSourceProviderActiveObjectsFactory.upgrade(DataSourceProviderActiveObjectsFactory.java:84)	at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory.create(AbstractActiveObjectsFactory.java:65)	at com.atlassian.activeobjects.internal.DelegatingActiveObjectsFactory.create(DelegatingActiveObjectsFactory.java:32)	at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:90)	... 9 moreCaused by: org.hibernate.exception.GenericJDBCException: could not extract ResultSet	at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)	at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:80)	at org.hibernate.loader.Loader.getResultSet(Loader.java:2123)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1911)	at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1887)	at org.hibernate.loader.Loader.doQuery(Loader.java:932)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:349)	at org.hibernate.loader.Loader.doList(Loader.java:2615)	at org.hibernate.loader.Loader.doList(Loader.java:2598)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2430)	at org.hibernate.loader.Loader.list(Loader.java:2425)	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:502)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:370)	at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)	at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1481)	at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1441)	at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1410)	at com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.lambda$getRecord$0(HibernateConfluenceBandanaRecordDao.java:52)	at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:384)	... 104 moreCaused by: org.postgresql.util.PSQLException: B??D: bie??ca transakcja zosta?a przerwana, polecenia ignorowane do ko?ca bloku transakcji	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2497)	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2233)	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:310)	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:446)	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:370)	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:149)	at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:108)	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)	at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:71)	... 121 moreCaused by: org.postgresql.util.PSQLException: B??D: kolumna "LAST_MODIFIED" nie istnieje  Position: 8	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2497)	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2233)	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:310)	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:446)	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:370)	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:149)	at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:108)	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:431)	at net.java.ao.EntityManager.find(EntityManager.java:672)	at net.java.ao.EntityManager.find(EntityManager.java:622)	at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.find(EntityManagedActiveObjects.java:140)	at com.atlassian.confluence.extra.calendar3.upgrade.task.aomigration.impl.DefaultCalendarContentTypeMigrationManager.getParentSubCalendarEnttity(DefaultCalendarContentTypeMigrationManager.java:66)	at com.atlassian.confluence.extra.calendar3.upgrade.task.aomigration.impl.DefaultCalendarContentTypeMigrationManager.doMigrate(DefaultCalendarContentTypeMigrationManager.java:29)	at com.atlassian.confluence.extra.calendar3.upgrade.task.CalendarContentTypeReindexingUpgradeTask.upgrade(CalendarContentTypeReindexingUpgradeTask.java:43)	at com.atlassian.activeobjects.internal.DataSourceProviderActiveObjectsFactory$PostgresActiveObjectsUpgradeTask.configureConnectionAndRun(DataSourceProviderActiveObjectsFactory.java:241)	at com.atlassian.activeobjects.internal.DataSourceProviderActiveObjectsFactory$PostgresActiveObjectsUpgradeTask.upgrade(DataSourceProviderActiveObjectsFactory.java:188)	at com.atlassian.activeobjects.internal.ActiveObjectUpgradeManagerImpl.lambda$upgrade$0(ActiveObjectUpgradeManagerImpl.java:64)	... 53 more        
```

### Referer URL {#toc-hId-1796947059}

<http://10.0.20.94:8090/calendar/mycalendar.action>

Any Ideas , any help

best regards

Poul


Answers:
author: Diego
body: Hello [@Pawel Pulka](/t5/user/viewprofilepage/user-id/3711632) !

Looking at the description of your issue, I am inclined to believe that we have a ++*problem between Confluence and the database*++. Coming from 5.2.x straight into 7.x is quite a big jump, some things can go awry.

A few things that we need to check before doing anything else:
> 1. *What version of PostgreSQL are you running?*
> 2. *What version of Java are you running?*
> 3. *How did you perform this upgrade?*
> 4. *What version of Team Calendars are you running?*
> 5. *Are you able to normally access Confluence? (ignoring the problem with team calendars)*

For more information on how to setup PostgreSQL for Confluence server and what environment is supported by Confluence 7.x, take a look here:
> * ++**[\[Confluence Server\]Supported Platforms 7.2](https://confluence.atlassian.com/doc/supported-platforms-207488198.html)**++
> * ++**[\[Confluence Server\] Database setup for PostgreSQL](https://confluence.atlassian.com/doc/database-setup-for-postgresql-173244522.html)**++

Looking at a similar behavior, there is a chance that you are affected by this:
> * ++**[\[Confluence Server\] AO tables are created using the incorrect VARCHAR datatype in SQL server](https://jira.atlassian.com/browse/CONFSERVER-38232)**++

I hope this steers you in the right direction! Looking forward to your reply.

comments: author: Pawel Pulka
body: Hi,

Thank You for read my post.

1. Now is PostgreSQL 12

2. Java version is 1.8.0 jdk

3. I perform clean install confluence 7.2.1 and I made restore from backup file.zip

4. At the old version confluence 5.2.3 - used TC 4.2 but at confluence I Used 6.0.47 TC

5. Yes I have normally access to Confluence. After clean install confluence 7.2.1 TC 6.0.47 working fine . Problems are when I restore data from old Confluence. First time when I run Confluence 7.2.1 with data I got information that my TC 6.0.7 has incompatible license , TC working but this working is still there. After upgrade license ,TC crashed. I didn't have any warning but TC doesn't work - I have white screen without any days.

best regards

Poul


Tags: confluence-server

server