Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2956

Hide exception stack trace for invalid version update

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • 7.8.0.GA
    • None
    • Upgrade Tool
    • None
    • 2020 Week 19-21 (from May 4), 2020 Week 22-24 (from May 25)

      When trying to update a component version not updatable with the Update Tool version the tool shows a message like the one below. We should avoid showing the stack trace as it doesn't add any valid data to the user and could be misleading.

      [almorale@localhost rhpam-7.7.1-update]$ ./apply-updates.sh ../kie-server/kie-server.war/ rhpam-kie-server-ee8
      Using Java binary found at /usr/lib/jvm/java-1.8.0-openjdk/jre/bin/java
      17:02:46.579 [main] INFO  - File blacklist.txt found at /home/almorale/Documentos/Jira/RHPAM-2239/rhpam-7.7.1-update/blacklist.txt.
      17:02:46.691 [main] WARN  - Security policies directory couldn't be found: bin
      17:02:46.696 [main] ERROR - Error occurred during the execution!
      org.jboss.brmsbpmsuite.patching.client.InvalidVersionException: The patch is not valid for the distribution and version!
      	at org.jboss.brmsbpmsuite.patching.client.GeneralDistributionPatcher.checkVersion(GeneralDistributionPatcher.java:49)
      	at org.jboss.brmsbpmsuite.patching.phase.DistributionPatchingPhaseRunner.run(DistributionPatchingPhaseRunner.java:24)
      	at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.runPhases(ClientPatcherRunner.java:67)
      	at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.runDistributionPatcher(ClientPatcherRunner.java:55)
      	at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.run(ClientPatcherRunner.java:40)
      	at org.jboss.brmsbpmsuite.patching.client.ClientPatcherApp.commonMain(ClientPatcherApp.java:53)
      	at org.jboss.brmsbpmsuite.patching.client.BPMSuiteClientPatcherApp.main(BPMSuiteClientPatcherApp.java:6)
      
      Usage: apply-updates.[sh|bat] <path-to-distribution-root> <type-of-distribution>
      

            almorale Alberto Morales Pérez (Inactive)
            almorale Alberto Morales Pérez (Inactive)
            Martin Cimbalek Martin Cimbalek
            Martin Cimbalek Martin Cimbalek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: