Skip to main content
Participating Frequently
November 13, 2023
Question

ColdFusion 2023 silent installation fails with NumberFormatException

  • November 13, 2023
  • 2 replies
  • 950 views

When I try to install ColdFusion 2023 on Ubuntu 20 in WSL or in a CentOS 7 VM with a GUI with "./ColdFusion_2023_GUI_WWEJ_linux64.bin -i silent", the installation fails with the following output:

$ ./ColdFusion_2023_GUI_WWEJ_linux64.bin -i silent
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.NumberFormatException: Cannot parse null string
        at java.base/java.lang.Integer.parseInt(Integer.java:630)
        at java.base/java.lang.Integer.parseInt(Integer.java:786)
        at com.macromedia.ia.common.InstallCompleteUtils.setupVariables(InstallCompleteUtils.java:137)
        at com.macromedia.ia.common.InstallCompleteUtils.init(InstallCompleteUtils.java:45)
        at com.macromedia.ia.console.InstallCompleteConsole.<init>(InstallCompleteConsole.java:19)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
        at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
        at java.base/java.lang.Class.newInstance(Class.java:645)
        at com.zerog.ia.installer.actions.InstallConsoleAction.getInstallConsole(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.am(Unknown Source)
        at com.zerog.ia.installer.AAMgrBase.runNextInstallPiece(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
        at com.zerog.ia.installer.ConsoleBasedAAMgr.runPostInstall(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.consoleInstallMain(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
        at com.zerog.ia.installer.Main.main(Unknown Source)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.zerog.lax.LAX.launch(Unknown Source)
        at com.zerog.lax.LAX.main(Unknown Source)

How can I perform a silent installation of ColdFusion 2023 successfully?

Is it possible the installer was querying the system for some detail it needed to determine how to install, and failed to find it?

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    April 5, 2024

    The logs show that your ColdFusion 2023 installation may be picking up stuff from a previous ColdFusion 11 installation. In fact, one may even wonder if the CF2023 installation has attempted to use an outdated Java version.

     

    Before you proceed with the CF2023 installation, is it possible for you to remove or archive any old ColdFusion and Java installations.  

    Charlie Arehart
    Community Expert
    Community Expert
    April 6, 2024

    Let's note first that it's been 5 months since John's last reply here. So John, did you ever resolve it? If not, I have new info that many help with the original problem. 

     

    1) Before that, bkbk you said observed something in John's "logs" referring to cf11, but while he offered no log we might presume you meant the error message/stack trace. Even then, I'd not seen anything in the error about 11. But if you do, can you point it out to help us all?

     

    2) That said, i do see now (thanks to your comment) that John's properly file itself has this line:

    SILENT_PREV_CF_MIGR_DIR=/opt/coldfusion11

     

    I'll admit I'd missed that in all the many lines there, when I was replying in November. So John, that's indeed indicating that you wanted the silent installer to set up migration of previous cf admin settings (of a Cf11 presumed therefore to be on this machine), which would be completed on the first cf admin launch. Do you have a cf11 install on this machine?

     

    I'll say that the full installer would NOT offer that migration (of cf11 into 2023), as each release supports that migration for only a couple previous releases, not four as in these version numbers. And perhaps that's a problem right there. (But I don't think it's THE problem. More on that Ina moment.)

     

    Can you try setting that arg blank? (This would also negate needing to uninstall it, as bkbk proposed.) There are other ways to effect that migration of settings, including automated ones (though the longer the time between versions the more challenging such automation becomes) and manual (but effective) ones. Again, let's wait to hear if you even have the problem still. Perhaps you sorted things out on your own.

     

    3) If not, one more thing that may be important: I'd said in my first reply that you didn't show using the file (in the command line). I know the docs say it picks up the file automatically, but I did some testing yesterday and it did not. Note there's a -f argument which can name a file, or path and file of not in the same folder ass the installer.

     

    4) But finally (having "buried the lede"), I'll note that I also found out that I CAN replicate the original error John reported...by not running the installer as root (sudo). That's wrong, of course. It should fail simply reporting that this is required. (I also found it hung for a few mins before reporting the error, though John did not mention that. Perhaps that's an environmental thing for me.)

     

    So John if you're still with us, was or is that the solution for you? If not consider the above.

     

    Or if anyone else experiencing the error could confirm that running the installer as root/sudo solves it, that would be helpful

    /Charlie (troubleshooter, carehart. org)
    Charlie Arehart
    Community Expert
    Community Expert
    November 13, 2023

    John, let me see if some questions may help, as much as answers:

     

    1) When you refer to doing a "silent" install, that formally means (in CF) doing an install where instead of answering questions (such as in the gui, or via commandline prompts), one would name a properties file that defines all the installer choices you want to make. But you don't refer to using a file of that sort here. I suspect that's the error (but for sure, the error message could be more clear--or really a message telling you that you did not provide the needed file).

     

    2) But what then did you mean in asking how to "perform a silent installation", if you don't provide such a file?  I wonder: in referring to the "gui", I assume you mean the name of the installer you downloaded. And to be clear, if you run this on a headless Linux , you won't see a gui but instead will see prompts at the command line.

     

    But might you mean you wanted to force it from using a gui (on a non-headless Linux) so it instead offers those prompts at the command line? (That's not "silent", but it is possible.)  That's done with the -i console argument instead.

     

    As for more on silent install, see:


    If you still have questions after considering the above, let us know. If it IS jsut a bug in the message, for not providing a properties file, let us know if you'd open a bug report at tracker.adobe.com. Readers could add a vote.

    /Charlie (troubleshooter, carehart. org)
    Participating Frequently
    November 15, 2023

    Thanks for the clarification @Charlie Arehart.

    I am very new to this forum, so please let me know if this is something that should belong in a separate post, rather than as part of this post.

    I created this `silent.properties` file:

    #Silent properties for ColdFusion 2023
    #Based on https://helpx.adobe.com/coldfusion/installing/installing-coldfusion-silently.html
    
    INSTALLER_UI=SILENT
    
    #Valid Values are full/trial/developer
    SILENT_LICENSE_MODE=trail
    SILENT_SERIAL_NUMBER=
    
    #Valid values are ear/war/standalone
    SILENT_INSTALLER_TYPE=standalone
    SILENT_INSTALL_JNBRIDGE=true
    
    SILENT_INSTALL_FOLDER=/opt/coldfusion2023
    
    #Enable one of Prod(secure/prod)/dev profile. These 3 are mutually exclusive and only one of them can be ture and others are false.
    SILENT_ENABLE_PROD_SECURE_PROFILE=true
    SILENT_ENABLE_PROD_DEFAULT_PROFILE=false
    SILENT_ENABLE_DEV_PROFILE=false
    
    #IP addresses from which Administrator can be accessed.
    SILENT_ADMIN_IP=
    
    #Context Root for J2ee Installation
    SILENT_CONTEXT_ROOT=
    SILENT_AUTO_ENABLE_UPDATES=true
    
    #For Linux it would be as /opt/coldfusion11 (Change it as per your path)
    SILENT_PREV_CF_MIGR_DIR=/opt/coldfusion11
    
    #Enable/Disable the servlets depending on if they are not used by your application or not.
    #Applicable only if production OR Production+Secure profile is enabled. For Dev profile, all are enabled by default.
    ENABLE_RDS=false
    ENABLE_WSRP=false
    ENABLE_JSDEBUG=false
    ENABLE_CFR=false
    ENABLE_CFSWF=false
    ENABLE_CFFORMS=false

    When I run the installation, I get this error:

    /linux-installers/ColdFusion_2023_GUI_WWEJ_linux64.bin -f silent.properties -i silent
    Error! - Valid properties/response file not specified in command line and not found in default directory
    Command Line Arguments contain illegal values.
    ... more output with usage information ...

    This error message is not very helpful, as it does not indicate which property/properties in my `silent.properties` file is invalid, or why.

    Can you please help me understand why my `silent.properties` file is invalid, and how to fix it?

    Community Expert
    November 15, 2023

    SILENT_LICENSE_MODE=trail

     

    should be

     

    SILENT_LICENSE_MODE=trial

     

    Dave Watts, Eidolon LLC 

    Dave Watts, Eidolon LLC