glassfish
  1. glassfish
  2. GLASSFISH-19869

Batch RI : Batch Exceptions : NoSuchJobExecutionException not thrown when restarting a job with non-existing executionId

    Details

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

      Description

      Tested with latest nightly : glassfish-4.0-b80-03_13_2013

      Steps:

      1) Run jo.restart(executionId) with a non existing execution Id

      Issue --> Throws null pointer exception with the following server logs

      [2013-03-14T18:26:07.015+0530] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=28 _ThreadName=http-listener-1(1)] [timeMillis: 1363265767015] [levelValue: 900] [[
      StandardWrapperValve[JobSubmitterServlet]: Servlet.service() for servlet JobSubmitterServlet threw exception
      java.lang.NullPointerException
      at com.ibm.jbatch.container.api.impl.JobOperatorImpl.restart(JobOperatorImpl.java:323)
      at com.oracle.javaee7.samples.batch.simple.JobSubmitterServlet.restartBatchJobExecution(JobSubmitterServlet.java:300)
      at com.oracle.javaee7.samples.batch.simple.JobSubmitterServlet.processRequest(JobSubmitterServlet.java:118)
      at com.oracle.javaee7.samples.batch.simple.JobSubmitterServlet.doPost(JobSubmitterServlet.java:368)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:176)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
      at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
      at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
      at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
      at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
      at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
      at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
      at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
      at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
      at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
      at java.lang.Thread.run(Thread.java:722)
      ]]

        Activity

        Hide
        ScottKurz added a comment -

        Fixed in 1.0-b21

        Show
        ScottKurz added a comment - Fixed in 1.0-b21
        Hide
        Mahesh Kannan added a comment -

        Arun, I have integrated b21 into GF

        Could you verify and close this issue?

        Show
        Mahesh Kannan added a comment - Arun, I have integrated b21 into GF Could you verify and close this issue?
        Hide
        arunkumar_s added a comment -

        Mahesh,

        Now its throwing javax.batch.operations.JobExecutionNotMostRecentException instead of NoSuchJobExecutionException

        Show
        arunkumar_s added a comment - Mahesh, Now its throwing javax.batch.operations.JobExecutionNotMostRecentException instead of NoSuchJobExecutionException
        Hide
        ScottKurz added a comment -

        Can you please try again with b22 integrated? I thought this as in b21 but maybe not...just ran my own on b22 level and caught NoSuchJobExecutionException.

        Show
        ScottKurz added a comment - Can you please try again with b22 integrated? I thought this as in b21 but maybe not...just ran my own on b22 level and caught NoSuchJobExecutionException.
        Hide
        Mahesh Kannan added a comment -

        Should have been fixed in b22

        Show
        Mahesh Kannan added a comment - Should have been fixed in b22

          People

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

            Dates

            • Created:
              Updated:
              Resolved: