Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-25774

EAP Installer - NPE when the input/output of auto installation is piped to another file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 8.0.0.GA-CR2, 8.0.0.GA
    • 8.0.0.GA-CR1
    • Installer
    • None

      Although this is kind of a edge case, it's possible that the installer throws NPE when used for example like this: 

      java -jar jboss-eap-8.0.0.GA-redhat-SNAPSHOT-installer.jar /tmp/auto.xml | tee /tmp/log.txt

      The reason seems to be usage of console in here: https://github.com/jbossas/eap-installer/blob/main/src/main/java/org/jboss/installer/auto/InstallationDataSerializer.java#L332

      I'm not saying that we need to change the console to stdin or stdout but maybe we should add a custom error message to inform the user that the installer can't be used like that

            spyrkob Bartosz Spyrko-Smietanko
            ogerzica@redhat.com Ondrej Gerzicak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: