Skip to content

Dashboard crashes after a day of operation #1237

Description

@kasunbg

Description:
The dashboard keeps crashing after a day of operation. Following error log was observed in logs. We need to upgrade eclipselink jpa library.

05:26:21.444 [https-jsse-nio-8443-exec-6] ERROR org.wso2.testgrid.web.api.ProductService - Error occurred while fetching the Product statuses 
org.wso2.testgrid.dao.TestGridDAOException: Error occurred when searching for entity.
	at org.wso2.testgrid.dao.repository.AbstractRepository.findAll(AbstractRepository.java:165) ~[org.wso2.testgrid.dao-1.0.5-SNAPSHOT.jar:1.0.5-SNAPSHOT]
	at org.wso2.testgrid.dao.repository.ProductRepository.findAll(ProductRepository.java:104) ~[org.wso2.testgrid.dao-1.0.5-SNAPSHOT.jar:1.0.5-SNAPSHOT]
	at org.wso2.testgrid.dao.uow.ProductUOW.getProducts(ProductUOW.java:82) ~[org.wso2.testgrid.dao-1.0.5-SNAPSHOT.jar:1.0.5-SNAPSHOT]
	at org.wso2.testgrid.web.api.ProductService.getAllProductStatuses(ProductService.java:125) [classes/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]
	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) [jersey-server-2.22.2.jar:?]
....
Caused by: java.lang.NullPointerException
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeDeferredEvents(AbstractSession.java:1189) ~[org.eclipse.persistence.core-2.2.0.jar:2.2.0.v20110202-r8913]
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2843) ~[org.eclipse.persistence.core-2.2.0.jar:2.2.0.v20110202-r8913]
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1521) ~[org.eclipse.persistence.core-2.2.0.jar:2.2.0.v20110202-r8913]
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1503) ~[org.eclipse.persistence.core-2.2.0.jar:2.2.0.v20110202-r8913]
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1477) ~[org.eclipse.persistence.core-2.2.0.jar:2.2.0.v20110202-r8913]
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:484) ~[org.eclipse.persistence.jpa-2.2.0.jar:2.2.0.v20110202-r8913]
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:741) ~[org.eclipse.persistence.jpa-2.2.0.jar:2.2.0.v20110202-r8913]
	at org.wso2.testgrid.dao.repository.AbstractRepository.findAll(AbstractRepository.java:163) ~[org.wso2.testgrid.dao-1.0.5-SNAPSHOT.jar:1.0.5-SNAPSHOT]
	... 54 more

Suggested Labels:

Suggested Assignees:

Affected Product Version:

OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions