java.lang.ClassCastException when installing Confluence unattended

Tim Straub December 6, 2017

Hi,

 

I would like to install Confluence in unattended mode.

 

Using the response.varfile which have been created during an normal installation shows an error during launching confluence:

 

Launching Confluence ...
In action "Check if app is running. [Run script]" (screen "Display progress"), property "Script":
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
at I4jScript_Internal_122.eval(I4jScript_Internal_122.java:20)
at I4jScript_Internal_122.evaluate(I4jScript_Internal_122.java:32)
at com.install4j.runtime.installer.helper.Script.evaluate(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
at com.install4j.runtime.beans.actions.control.RunScriptAction.execute(Unknown Source)
at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(Unknown Source)
at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.performAction(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.executeActions(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.handleCommand(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.start(Unknown Source)
at com.install4j.runtime.installer.Installer.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.Launcher.main(Unknown Source)
Dec 06, 2017 12:06:32 PM com.atlassian.modzdetector.HashRegistry store
INFO: wrote 933 hashes to /opt/atlassian/confluence/install.reg
Finishing installation ...

 

The response.varfile is

#install4j response file for Confluence 6.2.2
launch.application=true
rmiPort=8000
app.install.service=true
existingInstallationDir=/opt/Confluence
sys.confirmedUpdateInstallationString=false
sys.languageId=en
sys.installationDir=/opt/atlassian/confluence
app.confHome=/var/atlassian/application-data/confluence
executeLauncherAction=true
httpPort=8090
portChoice=default

 

I start the unattenden installion with this command:

cd /root

./atlassian-confluence-6.2.2-x64.bin -q -varfile response.varfile

 

Does anyone know a solution for this?

 

Regards,

 

Tim

2 answers

0 votes
Natarajan Sankaraiya September 21, 2020

ensure that the port variables are suffixed with $Long

rmiPort$Long=8000

httpPort$Long=8090

0 votes
kristof117 March 15, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events