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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,644 views 25 10
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