java.sql.SQLIntegrityConstraintViolationException: INSERT on table 'JFSRSLICE' caused a violation of foreign key constraint 'FLOWSPACERULE_TO_SLICE_FK' for key (-1). The statement has been rolled back.

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 GitHub by CarolinaFernandez
, 10 months ago
INSERT on table 'JFSRSLICE' caused a violation of foreign key constraint 'FLOWSPACERULE_TO_SLICE_FK' for key (-1). The statement has been rolled back.
via db-derby-user by smcintyre@esriaustralia.com.au, 1 year ago
The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'PK_BOOKMARK' defined on 'BOOKMARK'.
via db-derby-user by Malte.Kempff@de.equens.com, 1 year ago
The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'PK_BOOKMARK' defined on 'BOOKMARK'.
via manifoldcf-user by Karl Wright, 1 year ago
The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'XXXXXXXX' defined on 'EVENTS'.
via manifoldcf-user by Karl Wright, 1 year ago
The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'XXXXXXXX' defined on 'EVENTS'.
via Mirth Project by Eric Butterfield, 1 year ago
INSERT on table 'D_MC2' caused a violation of foreign key constraint 'MC2_FKEY' for key (2,1). The statement has been rolled back.
java.sql.SQLIntegrityConstraintViolationException: INSERT on table 'JFSRSLICE' caused a violation of foreign key constraint 'FLOWSPACERULE_TO_SLICE_FK' for key (-1). The statement has been rolled back.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.flowvisor.config.FlowSpaceImpl.insert(FlowSpaceImpl.java:919)
at org.flowvisor.config.FlowSpaceImpl.fromJson(FlowSpaceImpl.java:686)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.flowvisor.config.FVConfigProxy.invoke(FVConfigProxy.java:21)
at undefined.$Proxy2.fromJson(Unknown Source)
at org.flowvisor.config.FVConfig.readFromFile(FVConfig.java:113)
at org.flowvisor.config.LoadConfig.main(LoadConfig.java:139)

Users with the same issue

Once, 5 months ago
Once, 7 months ago
Once, 7 months ago
Once, 1 year ago
81 times, 1 year ago
1 more bugmates

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