Embedded Jopr
  1. Embedded Jopr
  2. EMBJOPR-344

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

    Details

    • Type: Feature Request Feature Request
    • Status: Open Open (View Workflow)
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Bugzilla Update:
      Perform
    • Similar Issues:
      Show 10 results 

      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)

        Activity

        Hide
        RH Bugzilla Integration
        added a comment -

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

        Show
        RH Bugzilla Integration
        added a comment - John Mazzitelli <mazz@redhat.com> changed the Status of bug 824773 from NEW to ASSIGNED
        Hide
        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
        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
        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
        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
        RH Bugzilla Integration
        added a comment -

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

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

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

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

          People

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

            Dates

            • Created:
              Updated: