We are facing the issue while accessing the pillar item editor screen through the cuba application.
Please find below a screenshot. In the below screen shot, we were able to open the Process pillar
and see the data, but when trying to double-click on it, it was not able to open following an error…
Detailed Error Log:
com.haulmont.cuba.core.global.RemoteException:
javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.3.18-cuba): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: syntax error at or near “)”
Position: 314
Error Code: 0
Call: SELECT ID, ASSOCIATED_WITH, AUTHOR, CREATE_TS, CREATED_BY, DELETE_TS, DELETED_BY, DOC_DATE, DOC_NO, DOCUMENT_ID, IS_RECORD, NAME, DOC_TYPE, UPDATE_TS, UPDATED_BY, VERSION, ASSET_ID, ASSOCIATED_ENTITY_ID, ENTITY_ID, LOCATION_ID, PERSON_ID, POSITION_ID, TASK_INSTANCE_ID, FILE_ID FROM ALIGN_DOCUMENT WHERE ((ID IN ()) AND (0=0))
Query: ReadAllQuery(name=“associatedDoc” referenceClass=Document sql=“SELECT ID, ASSOCIATED_WITH, AUTHOR, CREATE_TS, CREATED_BY, DELETE_TS, DELETED_BY, DOC_DATE, DOC_NO, DOCUMENT_ID, IS_RECORD, NAME, DOC_TYPE, UPDATE_TS, UPDATED_BY, VERSION, ASSET_ID, ASSOCIATED_ENTITY_ID, ENTITY_ID, LOCATION_ID, PERSON_ID, POSITION_ID, TASK_INSTANCE_ID, FILE_ID FROM ALIGN_DOCUMENT WHERE ((ID IN ?) AND (0=0))”)
org.eclipse.persistence.exceptions.DatabaseException:
Internal Exception: org.postgresql.util.PSQLException: ERROR: syntax error at or near “)”
Position: 314
Error Code: 0
Call: SELECT ID, ASSOCIATED_WITH, AUTHOR, CREATE_TS, CREATED_BY, DELETE_TS, DELETED_BY, DOC_DATE, DOC_NO, DOCUMENT_ID, IS_RECORD, NAME, DOC_TYPE, UPDATE_TS, UPDATED_BY, VERSION, ASSET_ID, ASSOCIATED_ENTITY_ID, ENTITY_ID, LOCATION_ID, PERSON_ID, POSITION_ID, TASK_INSTANCE_ID, FILE_ID FROM ALIGN_DOCUMENT WHERE ((ID IN ()) AND (0=0))
Query: ReadAllQuery(name=“associatedDoc” referenceClass=Document sql=“SELECT ID, ASSOCIATED_WITH, AUTHOR, CREATE_TS, CREATED_BY, DELETE_TS, DELETED_BY, DOC_DATE, DOC_NO, DOCUMENT_ID, IS_RECORD, NAME, DOC_TYPE, UPDATE_TS, UPDATED_BY, VERSION, ASSET_ID, ASSOCIATED_ENTITY_ID, ENTITY_ID, LOCATION_ID, PERSON_ID, POSITION_ID, TASK_INSTANCE_ID, FILE_ID FROM ALIGN_DOCUMENT WHERE ((ID IN ?) AND (0=0))”)
It throws the error message exactly as the question title. When I take the text of the base Query and the String SQL and enter them in my PostgreSQL app exactly (replacing the question marks with actual values), it retrieves the table perfectly. Where is the syntax error here?
We tried to upgrade the driver version as well, but still facing the issue