Hi
I have removed the previous version of teh dashboard add-on and added the latest version. However, the database Entity is not created and throwing the following excepton:
com.haulmont.cuba.core.global.RemoteException:
---
javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.3.2-cuba): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: relation "dashboard_persistent_dashboard" does not exist
Position: 357
Error Code: 0
Call: SELECT t1.ID AS a1, t1.REFERENCE_NAME AS a2, t1.CREATE_TS AS a3, t1.CREATED_BY AS a4, t1.DELETE_TS AS a5, t1.DELETED_BY AS a6, t1.IS_AVAILABLE_FOR_ALL_USERS AS a7, t1.NAME AS a8, t1.UPDATE_TS AS a9, t1.UPDATED_BY AS a10, t1.VERSION AS a11, t1.GROUP_ID AS a12, t0.ID AS a13, t0.DELETE_TS AS a14, t0.DELETED_BY AS a15, t0.NAME AS a16, t0.VERSION AS a17 FROM DASHBOARD_PERSISTENT_DASHBOARD t1 LEFT OUTER JOIN DASHBOARD_DASHBOARD_GROUP t0 ON (t0.ID = t1.GROUP_ID) WHERE (((t1.IS_AVAILABLE_FOR_ALL_USERS = ?) OR (t1.CREATED_BY = ?)) AND (t1.DELETE_TS IS NULL)) ORDER BY t1.NAME LIMIT ? OFFSET ?
bind => [true, admin-assurance, 50, 0]
Query: ReadAllQuery(referenceClass=PersistentDashboard sql="SELECT t1.ID AS a1, t1.REFERENCE_NAME AS a2, t1.CREATE_TS AS a3, t1.CREATED_BY AS a4, t1.DELETE_TS AS a5, t1.DELETED_BY AS a6, t1.IS_AVAILABLE_FOR_ALL_USERS AS a7, t1.NAME AS a8, t1.UPDATE_TS AS a9, t1.UPDATED_BY AS a10, t1.VERSION AS a11, t1.GROUP_ID AS a12, t0.ID AS a13, t0.DELETE_TS AS a14, t0.DELETED_BY AS a15, t0.NAME AS a16, t0.VERSION AS a17 FROM DASHBOARD_PERSISTENT_DASHBOARD t1 LEFT OUTER JOIN DASHBOARD_DASHBOARD_GROUP t0 ON (t0.ID = t1.GROUP_ID) WHERE (((t1.IS_AVAILABLE_FOR_ALL_USERS = ?) OR (t1.CREATED_BY = ?)) AND (t1.DELETE_TS IS NULL)) ORDER BY t1.NAME LIMIT ? OFFSET ?")
FetchGroup(){deleteTs, code, updatedBy, createdBy, name, createTs, id, isAvailableForAllUsers, updateTs, version, deletedBy, group => {class java.lang.Object=FetchGroup(group){deleteTs, name, id, version, deletedBy}}}
---
org.eclipse.persistence.exceptions.DatabaseException:
Internal Exception: org.postgresql.util.PSQLException: ERROR: relation "dashboard_persistent_dashboard" does not exist
Position: 357
Error Code: 0
Call: SELECT t1.ID AS a1, t1.REFERENCE_NAME AS a2, t1.CREATE_TS AS a3, t1.CREATED_BY AS a4, t1.DELETE_TS AS a5, t1.DELETED_BY AS a6, t1.IS_AVAILABLE_FOR_ALL_USERS AS a7, t1.NAME AS a8, t1.UPDATE_TS AS a9, t1.UPDATED_BY AS a10, t1.VERSION AS a11, t1.GROUP_ID AS a12, t0.ID AS a13, t0.DELETE_TS AS a14, t0.DELETED_BY AS a15, t0.NAME AS a16, t0.VERSION AS a17 FROM DASHBOARD_PERSISTENT_DASHBOARD t1 LEFT OUTER JOIN DASHBOARD_DASHBOARD_GROUP t0 ON (t0.ID = t1.GROUP_ID) WHERE (((t1.IS_AVAILABLE_FOR_ALL_USERS = ?) OR (t1.CREATED_BY = ?)) AND (t1.DELETE_TS IS NULL)) ORDER BY t1.NAME LIMIT ? OFFSET ?
bind => [true, admin-assurance, 50, 0]
Query: ReadAllQuery(referenceClass=PersistentDashboard sql="SELECT t1.ID AS a1, t1.REFERENCE_NAME AS a2, t1.CREATE_TS AS a3, t1.CREATED_BY AS a4, t1.DELETE_TS AS a5, t1.DELETED_BY AS a6, t1.IS_AVAILABLE_FOR_ALL_USERS AS a7, t1.NAME AS a8, t1.UPDATE_TS AS a9, t1.UPDATED_BY AS a10, t1.VERSION AS a11, t1.GROUP_ID AS a12, t0.ID AS a13, t0.DELETE_TS AS a14, t0.DELETED_BY AS a15, t0.NAME AS a16, t0.VERSION AS a17 FROM DASHBOARD_PERSISTENT_DASHBOARD t1 LEFT OUTER JOIN DASHBOARD_DASHBOARD_GROUP t0 ON (t0.ID = t1.GROUP_ID) WHERE (((t1.IS_AVAILABLE_FOR_ALL_USERS = ?) OR (t1.CREATED_BY = ?)) AND (t1.DELETE_TS IS NULL)) ORDER BY t1.NAME LIMIT ? OFFSET ?")
FetchGroup(){deleteTs, code, updatedBy, createdBy, name, createTs, id, isAvailableForAllUsers, updateTs, version, deletedBy, group => {class java.lang.Object=FetchGroup(group){deleteTs, name, id, version, deletedBy}}}
---
org.postgresql.util.PSQLException: ERROR: relation "dashboard_persistent_dashboard" does not exist
Position: 357
at com.haulmont.cuba.core.sys.ServiceInterceptor.aroundInvoke(ServiceInterceptor.java:129)
at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)