java.lang.NullPointerException: null

Spring JIRA | Elryk | 1 year ago
  1. 0

    On Spring Batch Admin 2.0.0-M1, a GET to http://localhost:8080/batch/executions.json returns a NullPointerException message : {code:json} [ "java.util.ArrayList", [ { "@class": "org.springframework.hateoas.VndErrors$VndError", "logref": "NullPointerException", "message": "NullPointerException", "links": [ "java.util.ArrayList", [] ] } ] ] {code} Here is the stacktrace: {code:java} 21:14:36.215 [ERROR] [qtp346861221-16] [] o.s.b.admin.web.RestControllerAdvice - Caught exception while handling a request java.lang.NullPointerException: null at org.springframework.batch.admin.domain.JobExecutionInfoResource.<init>(JobExecutionInfoResource.java:146) ~[spring-batch-admin-domain-2.0.0.M1.jar:na] at org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.instantiateResource(JobExecutionInfoResourceAssembler.java:63) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] at org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.instantiateResource(JobExecutionInfoResourceAssembler.java:36) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] at org.springframework.hateoas.mvc.ResourceAssemblerSupport.createResourceWithId(ResourceAssemblerSupport.java:89) ~[spring-hateoas-0.16.0.RELEASE.jar:na] at org.springframework.hateoas.mvc.ResourceAssemblerSupport.createResourceWithId(ResourceAssemblerSupport.java:81) ~[spring-hateoas-0.16.0.RELEASE.jar:na] at org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.toResource(JobExecutionInfoResourceAssembler.java:48) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] at org.springframework.batch.admin.web.BatchJobExecutionsController.getJobExecutionInfoResource(BatchJobExecutionsController.java:208) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] {code} As you can seen on the nullpointerexception.jpg screenshot, the jobExecution.getEndTime() is null for a jobExecution in an UNKNOWN status.

    Spring JIRA | 1 year ago | Elryk
    java.lang.NullPointerException: null
  2. 0

    On Spring Batch Admin 2.0.0-M1, a GET to http://localhost:8080/batch/executions.json returns a NullPointerException message : {code:json} [ "java.util.ArrayList", [ { "@class": "org.springframework.hateoas.VndErrors$VndError", "logref": "NullPointerException", "message": "NullPointerException", "links": [ "java.util.ArrayList", [] ] } ] ] {code} Here is the stacktrace: {code:java} 21:14:36.215 [ERROR] [qtp346861221-16] [] o.s.b.admin.web.RestControllerAdvice - Caught exception while handling a request java.lang.NullPointerException: null at org.springframework.batch.admin.domain.JobExecutionInfoResource.<init>(JobExecutionInfoResource.java:146) ~[spring-batch-admin-domain-2.0.0.M1.jar:na] at org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.instantiateResource(JobExecutionInfoResourceAssembler.java:63) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] at org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.instantiateResource(JobExecutionInfoResourceAssembler.java:36) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] at org.springframework.hateoas.mvc.ResourceAssemblerSupport.createResourceWithId(ResourceAssemblerSupport.java:89) ~[spring-hateoas-0.16.0.RELEASE.jar:na] at org.springframework.hateoas.mvc.ResourceAssemblerSupport.createResourceWithId(ResourceAssemblerSupport.java:81) ~[spring-hateoas-0.16.0.RELEASE.jar:na] at org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.toResource(JobExecutionInfoResourceAssembler.java:48) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] at org.springframework.batch.admin.web.BatchJobExecutionsController.getJobExecutionInfoResource(BatchJobExecutionsController.java:208) ~[spring-batch-admin-manager-2.0.0.M1.jar:na] {code} As you can seen on the nullpointerexception.jpg screenshot, the jobExecution.getEndTime() is null for a jobExecution in an UNKNOWN status.

    Spring JIRA | 1 year ago | Elryk
    java.lang.NullPointerException: null
  3. 0

    HQL Exception (org.hibernate.dialect.Dialect$3)

    Stack Overflow | 4 years ago | Hari
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error loading model properties in JPA on play 2.0.3

    Stack Overflow | 4 years ago | Chappies
    java.lang.NullPointerException: null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.springframework.batch.admin.domain.JobExecutionInfoResource.<init>()
    2. org.springframework.batch
      JobExecutionInfoResourceAssembler.instantiateResource
      1. org.springframework.batch.admin.domain.JobExecutionInfoResource.<init>(JobExecutionInfoResource.java:146)[spring-batch-admin-domain-2.0.0.M1.jar:na]
      2. org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.instantiateResource(JobExecutionInfoResourceAssembler.java:63)[spring-batch-admin-manager-2.0.0.M1.jar:na]
      3. org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.instantiateResource(JobExecutionInfoResourceAssembler.java:36)[spring-batch-admin-manager-2.0.0.M1.jar:na]
      3 frames
    3. Spring Hateoas
      ResourceAssemblerSupport.createResourceWithId
      1. org.springframework.hateoas.mvc.ResourceAssemblerSupport.createResourceWithId(ResourceAssemblerSupport.java:89)[spring-hateoas-0.16.0.RELEASE.jar:na]
      2. org.springframework.hateoas.mvc.ResourceAssemblerSupport.createResourceWithId(ResourceAssemblerSupport.java:81)[spring-hateoas-0.16.0.RELEASE.jar:na]
      2 frames
    4. org.springframework.batch
      BatchJobExecutionsController.getJobExecutionInfoResource
      1. org.springframework.batch.admin.web.resource.JobExecutionInfoResourceAssembler.toResource(JobExecutionInfoResourceAssembler.java:48)[spring-batch-admin-manager-2.0.0.M1.jar:na]
      2. org.springframework.batch.admin.web.BatchJobExecutionsController.getJobExecutionInfoResource(BatchJobExecutionsController.java:208)[spring-batch-admin-manager-2.0.0.M1.jar:na]
      2 frames