Errror after update confluence to latest version
Asked by paulschroffi:

I did update confluence to the latest version on my server (Debian) - now i get an error message.

[![logo](http://li-ti.co:8082/images/logo/confluence_48_white.png "Confluence")go](http://li-ti.co:8082/)System Error {#toc-hId-1819281346}
-------------------------------------------------------------------------------------------------------------------------------------------

A system error has occurred --- our apologies!

For immediate troubleshooting, consult our **[knowledge base](http://confluence.atlassian.com/display/CONFKB/Confluence+Knowledge+Base+Home)** for a solution.

If you would like to receive support from Atlassian's support team, ask your **[Confluence administrator](http://li-ti.co:8082/contactadministrators.action)** to create a support issue on [Atlassian's support system](http://support.atlassian.com/) with the following information:

1. a description of your problem and what you were doing at the time it occurred
2. a copy of the error and system information found below
3. a copy of the application logs (if possible).

Your Confluence administrator can use the **[support request form](http://li-ti.co:8082/admin/raisesupportrequest.action)** to create a support ticket which will include this information.

We will respond as promptly as possible.  
Thank you!

[**Return to site homepage...**](http://li-ti.co:8082/)

### Cause {#toc-hId--929389120}

java.lang.reflect.UndeclaredThrowableException  
at com.sun.proxy.$Proxy98.permissionExists(Unknown Source)

caused by: java.lang.reflect.InvocationTargetException  
at sun.reflect.GeneratedMethodAccessor365.invoke(Unknown Source)

caused by: org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL \[n/a\]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet  
at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:224)

caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet  
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)

caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'spacepermi0_.PERMALLUSERSSUBJECT' in 'field list'  
at sun.reflect.GeneratedConstructorAccessor286.newInstance(Unknown Source)

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

```
java.lang.reflect.UndeclaredThrowableException	at com.sun.proxy.$Proxy98.permissionExists(Unknown Source)	at com.atlassian.confluence.security.access.DefaultConfluenceAccessManager.hasGlobalPermissionAsUser(DefaultConfluenceAccessManager.java:127)	at com.atlassian.confluence.security.access.DefaultConfluenceAccessManager.anonymousCanUseConfluence(DefaultConfluenceAccessManager.java:103)	at com.atlassian.confluence.security.access.DefaultConfluenceAccessManager.getAccessStatusForAnonymous(DefaultConfluenceAccessManager.java:63)	at com.atlassian.confluence.security.access.DefaultConfluenceAccessManager.getUserAccessStatusNoExemptions(DefaultConfluenceAccessManager.java:55)	at com.atlassian.confluence.security.access.CachingConfluenceAccessManager.getUserAccessStatusNoExemptions(CachingConfluenceAccessManager.java:38)	at sun.reflect.GeneratedMethodAccessor363.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:302)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)	at com.sun.proxy.$Proxy97.getUserAccessStatusNoExemptions(Unknown Source)	at com.atlassian.confluence.security.DefaultPermissionManager.canUseConfluence(DefaultPermissionManager.java:140)	at com.atlassian.confluence.security.DefaultPermissionManager.hasPermissionNoExemptions(DefaultPermissionManager.java:92)	at com.atlassian.confluence.security.DefaultPermissionManager.hasPermission(DefaultPermissionManager.java:48)	at com.atlassian.confluence.security.DefaultPermissionManager.isSystemAdministrator(DefaultPermissionManager.java:232)	at sun.reflect.GeneratedMethodAccessor352.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:302)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)	at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)	at com.sun.proxy.$Proxy100.isSystemAdministrator(Unknown Source)	at sun.reflect.GeneratedMethodAccessor352.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.$Proxy220.isSystemAdministrator(Unknown Source)	at sun.reflect.GeneratedMethodAccessor352.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:302)	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:179)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	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:179)	at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)	at com.sun.proxy.$Proxy2129.isSystemAdministrator(Unknown Source)	at com.atlassian.confluence.plugins.baseurl.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:42)	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)	at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)	at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:24)	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)	at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:24)	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)		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.security.persistence.dao.hibernate.HibernateSpacePermissionDao.lambda$executeSpacePermissionQueryBySubject$3(HibernateSpacePermissionDao.java:153)	at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:359)	... 318 moreCaused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'spacepermi0_.PERMALLUSERSSUBJECT' in 'field list'	at sun.reflect.GeneratedConstructorAccessor286.newInstance(Unknown Source)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:389)	at com.mysql.jdbc.Util.getInstance(Util.java:372)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:980)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3835)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3771)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2535)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1911)	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2034)	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:379)	at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:71)	... 335 more        
```

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

Unknown


Answers:
author: Daniel Eads
body: Hey Paul,

Looks like you have a problem with database collation. You can run the following queries against your database to check for this - if any results are returned, then this is the issue!

```
USE information_schema;

SELECT schema_name, default_character_set_name, default_collation_name FROM schemata WHERE schema_name = 'confluence' AND (default_character_set_name <> 'utf8' OR default_collation_name <> 'utf8_bin');

SELECT table_name, table_collation, engine FROM tables WHERE table_schema = '<DATABASE_NAME>' AND table_collation <> 'utf8_bin';

SELECT table_name, column_name, character_set_name, collation_name FROM columns WHERE table_schema = '<DATABASE_NAME>' and data_type in ('varchar', 'text') and (character_set_name <> 'utf8' OR collation_name <> 'utf8_bin');
```

If you get any results, the collation is incorrect. Follow [our documentation](https://confluence.atlassian.com/confkb/how-to-fix-the-collation-and-character-set-of-a-mysql-database-670958160.html) to fix this:

1. [Changes at the **database** level](https://confluence.atlassian.com/confkb/mysql-collation-repair-database-level-changes-670958163.html)
2. [Changes at the individual **table** level](https://confluence.atlassian.com/confkb/mysql-collation-repair-table-level-changes-670958169.html)
3. [Changes at the **column** level](https://confluence.atlassian.com/confkb/mysql-collation-repair-column-level-changes-670958189.html)

Have a go and let me know if Confluence is able to start after these changes!

Cheers,  
Daniel


Tags: confluence-server

server