org.postgresql.util.PSQLException: ERROR: insert or update on table "epersongroup2workspaceitem" violates foreign key constraint "epersongroup2workspaceitem_workspace_item_id_fkey" Detail: Key (workspace_item_id)=(-1) is not present in table "workspaceitem".

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Sakai JIRA by Jonathan Blood, 1 year ago
ERROR: insert or update on table "epersongroup2workspaceitem" violates foreign key constraint "epersongroup2workspaceitem_workspace_item_id_fkey" Detail: Key (workspace_item_id)=(-1) is not present in table "workspaceitem".
via Sakai JIRA by Jonathan Blood, 1 year ago
ERROR: insert or update on table "epersongroup2workspaceitem" violates foreign key constraint "epersongroup2workspaceitem_workspace_item_id_fkey" Detail: Key (workspace_item_id)=(-1) is not present in table "workspaceitem".
via Google Groups by wang jiahui, 1 month ago
ERROR: duplicate key violates uni que constraint "bitstreamformatregistry_short_description_key"
via Google Groups by Van Ly, 1 month ago
ERROR: duplicate key violates unique constra\ int "metadatafieldregistry_pkey"
via Sakai JIRA by Ivan Masár, 1 year ago
ERROR: update or delete on table "item" violates foreign key constraint "bi_5_dmap_item_id_fkey" on table "bi_5_dmap" Detail: Key (item_id)=(4742) is still referenced from table "bi_5_dmap".
via Sakai JIRA by Ivan Masár, 1 year ago
ERROR: update or delete on table "item" violates foreign key constraint "bi_5_dmap_item_id_fkey" on table "bi_5_dmap" Detail: Key (item_id)=(4742) is still referenced from table "bi_5_dmap".
org.postgresql.util.PSQLException: ERROR: insert or update on table "epersongroup2workspaceitem" violates foreign key constraint "epersongroup2workspaceitem_workspace_item_id_fkey" Detail: Key (workspace_item_id)=(-1) is not present in table "workspaceitem".
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at org.dspace.storage.rdbms.DatabaseManager.execute(DatabaseManager.java:1429)
at org.dspace.storage.rdbms.DatabaseManager.update(DatabaseManager.java:781)
at org.dspace.eperson.Supervisor.add(Supervisor.java:191)
at org.dspace.app.webui.servlet.admin.SuperviseServlet.addSupervisionOrder(SuperviseServlet.java:242)
at org.dspace.app.webui.servlet.admin.SuperviseServlet.doDSPost(SuperviseServlet.java:111)
at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:147)
at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.dspace.app.webui.filter.AdminOnlyFilter.doFilter(AdminOnlyFilter.java:103)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:429)
at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384)
at java.lang.Thread.run(Thread.java:679)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
102 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.