Upgrading Confluence from version 6.6.2 to 6.10.1 fails to start
Asked by Serey Khun:

Good afternoon,

I am trying to upgrade my Confluence test instance from version 6.6.2 to version 6.10.1 and get the following error log with the following details:

In screen "Upgrade Check List \[Form\]", property "Pre-activation expression":  
java.lang.NullPointerException  
at com.install4j.runtime.beans.styles.FormStyle.visitControlButtons(FormStyle.java:184)  
at com.install4j.runtime.beans.styles.FormStyle.setControlButtonText(FormStyle.java:111)  
at com.install4j.runtime.installer.frontend.ScreenEnvelope.setControlButtonText(ScreenEnvelope.java:254)  
at com.install4j.runtime.installer.frontend.WizardScreenExecutor.setControlButtonText(WizardScreenExecutor.java:104)  
at com.install4j.runtime.installer.frontend.WizardScreenExecutor.setNextButtonText(WizardScreenExecutor.java:170)  
at com.install4j.script.I4jScript_Internal_232.eval(I4jScript_Internal_232.java:1)  
at com.install4j.script.I4jScript_Internal_232.evaluate(I4jScript_Internal_232.java:\*24)  
at com.install4j.runtime.installer.helper.Script.evaluate(Script.java:33)  
at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:201)  
at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:195)  
at com.install4j.runtime.installer.ContextImpl.runBooleanScript(ContextImpl.java:57)  
at com.install4j.runtime.installer.ContextImpl.runBooleanScript(ContextImpl.java:234)  
at com.install4j.runtime.installer.frontend.ScreenEnvelope.activate(ScreenEnvelope.java:157)  
at com.install4j.runtime.wizard.WizardBase.setScreen(WizardBase.java:121)  
at com.install4j.runtime.installer.frontend.WizardScreenExecutor.execute(WizardScreenExecutor.java:293)  
at com.install4j.runtime.installer.controller.Controller$1.run(Controller.java:147)  
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)  
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)  
at java.awt.EventQueue.access$500(EventQueue.java:97)  
at java.awt.EventQueue$3.run(EventQueue.java:709)  
at java.awt.EventQueue$3.run(EventQueue.java:703)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)  
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)  
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)  
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)  
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)  
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)  
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)  
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I have Confluence running as a Windows Service. One thing I noticed when running the upgrade from the installer, it does not update the Confluence Windows Service to point the executable to tomcat9.exe so I had to run the service.bat remove and install commands.

I have uploaded the logs from my home and installation directories here:

<https://www.dropbox.com/s/2hdnwcqbvb2484t/Logs.zip?dl=0>

if someone can assist with troubleshooting this issue.

Thank you!


Answers:
author: Timothy
body: Based on your full logs, there could be a couple of things wrong:

```
2018-07-26 14:38:54,937 ERROR [FelixDispatchQueue] [osgi.container.felix.FelixOsgiContainerManager] frameworkEvent Framework error in bundle net.customware.reporting.core
org.osgi.framework.BundleException: Unresolved constraint in bundle net.customware.reporting.core [264]: Unable to resolve 264.0: missing requirement [264.0] osgi.wiring.package; (&(osgi.wiring.package=org.randombits.filtering.core.criteria)(version>=1.2.0)(!(version>=2.0.0)))
```

This is probably because of a plugin incompatibility.

But your upgrade problem is mosts probably this:

```
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The database name component of the object qualifier must be the name of the current database.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:260)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1547)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:528)
```

Things you can check is the Supported Platforms (<https://confluence.atlassian.com/doc/supported-platforms-207488198.html>) for your target Confluence version. You could be using a wrong version MSSQL.

Or try this:

* <https://confluence.atlassian.com/confkb/the-component-of-the-database-name-of-the-object-qualifier-must-be-the-name-of-the-current-database-error-on-upgrade-to-confluence-6-1-902076143.html>

comments: author: Serey Khun
body: Thank you Tim,

Looks like it was an issue with the database name not matching (case sensitive) in the config.


Tags: confluence-server

server