Confluence 8.0 h2 DbConsole error: class com.atlassian.sal.core.rdbms.WrappedConnection cannot be cast to class org.h2.jdbc.JdbcConnection

Hi,
Hello, I’m developing an app on Confluence 8.0 Server/Data Center.

My environment:

JDK 11
Atlassian Plugin SDK 8.2.7
pom.xml:
    Confluence 8.0.0
    AMPS any version of 8.3.0 - 8.9.0 

Confluence app start with h2 db successfully, but DbConsole show error as follows:

class com.atlassian.sal.core.rdbms.WrappedConnection cannot be cast to class
org.h2.jdbc.JdbcConnection (com.atlassian.sal.core.rdbms.WrappedConnection
is in unnamed module of loader 

org.apache.catalina.loader.ParallelWebappClassLoader @7505dcab;
org.h2.jdbc.JdbcConnection is in unnamed module of loader
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @277217d)

Hi @XingGuo,

It’s broken and it doesn’t look like it’ll be fixed soon. You can see a workaround in tickets like

Regards,
James