Uploaded image for project: 'Embedded Jopr'
  1. Embedded Jopr
  2. EMBJOPR-344

If script returns -1, operation fails without details. Let's display stderr.

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If some shell script returns something else than 0, embjopr operation only says "Exit code was '1', see operation results for details", but there are no op results - that applies for JON.

      The admin console should show some info about how to use the script, not fail with this generic message.
      This might apply to all scripts which do not behave so by default (like classpath.sh).

      STR:

      1) run the wsprovide.sh with no arguments .

      java.lang.Exception: Exit code was '1', see operation results for details
      at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)

        Gliffy Diagrams

          Activity

          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          John Mazzitelli <mazz@redhat.com> changed the Status of bug 824773 from NEW to ASSIGNED

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - John Mazzitelli <mazz@redhat.com> changed the Status of bug 824773 from NEW to ASSIGNED
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          John Mazzitelli <mazz@redhat.com> made a comment on bug 824773

          i'm working on this. should be easy to fix

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - John Mazzitelli <mazz@redhat.com> made a comment on bug 824773 i'm working on this. should be easy to fix
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          John Mazzitelli <mazz@redhat.com> made a comment on bug 824773

          git master commit : 31ec51e

          we now show the results (as defined by the plugin metadata) in the UI, even if the operation failed. This is helpful in cases like this where the results contain data that might be helpful to the user to figure out why the failure occurred.

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - John Mazzitelli <mazz@redhat.com> made a comment on bug 824773 git master commit : 31ec51e we now show the results (as defined by the plugin metadata) in the UI, even if the operation failed. This is helpful in cases like this where the results contain data that might be helpful to the user to figure out why the failure occurred.
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          John Mazzitelli <mazz@redhat.com> changed the Status of bug 824773 from ASSIGNED to ON_QA

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - John Mazzitelli <mazz@redhat.com> changed the Status of bug 824773 from ASSIGNED to ON_QA
          Hide
          jira-bugzilla-migration RH Bugzilla Integration added a comment -

          Mike Foley <mfoley@redhat.com> changed the Status of bug 824773 from ON_QA to CLOSED

          Show
          jira-bugzilla-migration RH Bugzilla Integration added a comment - Mike Foley <mfoley@redhat.com> changed the Status of bug 824773 from ON_QA to CLOSED

            People

            • Assignee:
              ccrouch Charles Crouch
              Reporter:
              ozizka Ondrej Zizka
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development