glassfish
  1. glassfish
  2. GLASSFISH-20140

BATCH CLI: asadmin list-batch-job-executions <instanceid> with a running job instance id not shows the job execution details

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b82_EE7MS7
    • Fix Version/s: 4.0_b85
    • Component/s: batch
    • Labels:
      None

      Description

      Tested with latest nightly b83.

      1) Start any job
      2) Get the instance id of the currently running job(instanceid)
      3) In CLI asadmin list-batch-job-executions -l <instanceid>

      Issue: Command executed successfully, but no job executions displayed. May be if not possible to display running job execution details, user should get some error message.

      Same case for asadmin list-batch-job-steps -l <executionid>(of a running Job)

        Activity

        Hide
        Mahesh Kannan added a comment -

        Nice catch! For running jobs, jobExecution.getEndTime() returns null causing an NPE in CLI.
        Will fix it tomorrow.

        Show
        Mahesh Kannan added a comment - Nice catch! For running jobs, jobExecution.getEndTime() returns null causing an NPE in CLI. Will fix it tomorrow.
        Hide
        Mahesh Kannan added a comment -

        This is resovled. Basically, for a running job, the end time returns null and hence the NPE.

        svn commit -m "Integrate b23 jars for Batch. Also fix GlassFish-20139 and GlassFish-20140. QL Passed"
        Sending appserver/batch/glassfish-batch-commands/src/main/java/org/glassfish/batch/ListBatchJobExecutions.java
        Sending appserver/batch/glassfish-batch-commands/src/main/java/org/glassfish/batch/ListBatchJobSteps.java
        Sending appserver/batch/glassfish-batch-commands/src/main/java/org/glassfish/batch/ListBatchJobs.java
        Sending appserver/batch/glassfish-batch-connector/src/main/java/org/glassfish/batch/spi/impl/BatchRuntimeHelper.java
        Sending appserver/batch/glassfish-batch-connector/src/main/java/org/glassfish/batch/spi/impl/GlassFishBatchSecurityHelper.java
        Sending appserver/pom.xml
        Transmitting file data ......
        Committed revision 61166.

        Show
        Mahesh Kannan added a comment - This is resovled. Basically, for a running job, the end time returns null and hence the NPE. svn commit -m "Integrate b23 jars for Batch. Also fix GlassFish-20139 and GlassFish-20140. QL Passed" Sending appserver/batch/glassfish-batch-commands/src/main/java/org/glassfish/batch/ListBatchJobExecutions.java Sending appserver/batch/glassfish-batch-commands/src/main/java/org/glassfish/batch/ListBatchJobSteps.java Sending appserver/batch/glassfish-batch-commands/src/main/java/org/glassfish/batch/ListBatchJobs.java Sending appserver/batch/glassfish-batch-connector/src/main/java/org/glassfish/batch/spi/impl/BatchRuntimeHelper.java Sending appserver/batch/glassfish-batch-connector/src/main/java/org/glassfish/batch/spi/impl/GlassFishBatchSecurityHelper.java Sending appserver/pom.xml Transmitting file data ...... Committed revision 61166.

          People

          • Assignee:
            Mahesh Kannan
            Reporter:
            arunkumar_s
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: