Skip to content

JpaObjectRetrievalFailureException: Unable to find nl.tudelft.queue.model.QueueSession with id 6382; nested exception is javax.persis...

The problem seems to be that a user can have requests in the history that is displayed on a request page, that belong to an already (soft-deleted) lab.

A possible solution could be to also soft-delete the requests that belong to a deleted lab.

Sentry Issue: QUEUE-3D

EntityNotFoundException: Unable to find nl.tudelft.queue.model.QueueSession with id 6382
    at nl.tudelft.queue.repository.LabRequestRepository.findAllPreviousRequests(LabRequestRepository.java:102)
    at nl.tudelft.queue.controller.RequestController.getRequestView(RequestController.java:220)
    at nl.tudelft.queue.controller.RequestController$$FastClassBySpringCGLIB$$1efe40fc.invoke(<generated>)
    at nl.tudelft.queue.controller.RequestController$$EnhancerBySpringCGLIB$$4354e2b3.getRequestView(<generated>)
...
(206 additional frame(s) were not displayed)

JpaObjectRetrievalFailureException: Unable to find nl.tudelft.queue.model.QueueSession with id 6382; nested exception is javax.persistence.EntityNotFoundException: Unable to find nl.tudelft.queue.model.QueueSession with id 6382
    at nl.tudelft.queue.repository.LabRequestRepository.findAllPreviousRequests(LabRequestRepository.java:102)
    at nl.tudelft.queue.controller.RequestController.getRequestView(RequestController.java:220)
    at nl.tudelft.queue.controller.RequestController$$FastClassBySpringCGLIB$$1efe40fc.invoke(<generated>)
    at nl.tudelft.queue.controller.RequestController$$EnhancerBySpringCGLIB$$4354e2b3.getRequestView(<generated>)
...
(157 additional frame(s) were not displayed)

A Request (/request/214054) raised an exception