Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.13.13
-
None
-
Severity 3 - Minor
-
Description
Issue Summary
When running Confluence 6.x on latest Adopt JDK 8u262 (and Oracle JDK 8u261), Confluence will not start and we can observe the following stack trace in the logs
2020-07-17 16:22:21,319 ERROR [main] [ContainerBase.[Catalina].[localhost].[/confluence]] log Exception sending context initialized event to listener instance of class [com.atlassian.confluence.setup.ConfluenceConfigurationListener] java.lang.ExceptionInInitializerError at com.ibm.icu.text.Collator.<clinit>(Collator.java:946) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.h2.value.CompareMode.<clinit>(CompareMode.java:57) at org.h2.engine.SessionRemote.<init>(SessionRemote.java:95) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:116) at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:100) at org.h2.Driver.connect(Driver.java:69) at org.h2.server.TcpServer.initManagementDb(TcpServer.java:92) at org.h2.server.TcpServer.start(TcpServer.java:238) at org.h2.tools.Server.start(Server.java:484) at com.atlassian.h2.ServerLifecycle.start(ServerLifecycle.java:83) at com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateConfig.getHibernateProperties(ConfluenceHibernateConfig.java:51) at com.atlassian.confluence.setup.DefaultBootstrapManager.getHibernateProperties(DefaultBootstrapManager.java:660) at com.atlassian.confluence.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:343) at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:81) at com.atlassian.confluence.setup.DefaultBootstrapManager.init(DefaultBootstrapManager.java:190) at com.atlassian.config.util.BootstrapUtils.init(BootstrapUtils.java:36) at com.atlassian.confluence.setup.ConfluenceConfigurationListener.initialiseBootstrapContext(ConfluenceConfigurationListener.java:133) at com.atlassian.confluence.setup.ConfluenceConfigurationListener.contextInitialized(ConfluenceConfigurationListener.java:64) ... Caused by: java.lang.IllegalArgumentException: Invalid version number: Version number may be negative or greater than 255 at com.ibm.icu.util.VersionInfo.getInstance(VersionInfo.java:191) at com.ibm.icu.impl.ICUDebug.getInstanceLenient(ICUDebug.java:65) at com.ibm.icu.impl.ICUDebug.<clinit>(ICUDebug.java:69)
This is due to an old version of icu4j https://github.com/unicode-org/icu
<bundles.icu4j.version>3.8-1</bundles.icu4j.version>
This issue has been fixed on
<icu4j.version>64.1</icu4j.version>
In order to support running Confluence 6.x on new JDK 8 versions, we will need to upgrade to a newer version of icu4j
Steps to Reproduce
- download latest version of AdoptOpenJDK 8 https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=hotspot
- set your JAVA_HOME to point to the new downloaded JDK
- run confluence using `atlas-run-standalone`
atlas-run-standalone --jvmargs "-Datlassian.dev.mode=false -Xmx2048m -Dsynchrony.port=9091" --product confluence --version 6.13.13 --http-port 8080 --context-path /confluence --server localhost --ajp-port 8009
Expected Results
Confluence 6.x can start on latest AdoptOpenJDK 8u262
Actual Results
Confluence 6.x fails to start
Workaround
Upgrade to Confluence 7.x
Attachments
Issue Links
- mentioned in
-
Page Loading...