java.lang.ClassCastException when installing Confluence unattended

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

1 answer

This widget could not be displayed.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

519 views 7 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you