DBConnect.Exceptions.ReferentialIntegrityError (NON-recoverable)

An instance of class Application.Expiration.Model.Grantee is referenced with foreign key 628 but no according entry exists in the underlying database table 'Grantee'. This indicates a referential integrity violation. You should validate the database entries involved.


Request Details:


Stack Trace:

	DBConnect.Exceptions.ReferentialIntegrityError (NON-recoverable)
	at DBConnect.Runtime.Factories.EntityFactory.doRetrieve(EntityFactory.java:278)
	at DBConnect.EntityModelling.Entity$State.get(Entity.java:101)
	at DBConnect.EntityModelling.Entity$State.get(Entity.java:86)
	at DBConnect.EntityModelling.BasicEntity.get(BasicEntity.java:52)
	at Helper.DBConnect.XML.EntityNodeWriter.writeChildNode(EntityNodeWriter.java:66)
	at Helper.XML.Writer.BasicNodeWriter.writeContent(BasicNodeWriter.java:95)
	at Helper.DBConnect.XML.EntityNodeWriter.write(EntityNodeWriter.java:44)
	at Helper.XML.Mapper.add(Mapper.java:227)
	at Helper.XML.Mapper.add(Mapper.java:138)
	at Helper.DBConnect.XML.Mapper.add(Mapper.java:87)
	at ISCore.App.Entry.Common.Export.addEntries(Export.java:204)
	at ISCore.App.Entry.Common.Export.addEntries(Export.java:228)
	at ISCore.App.Entry.Common.Export.addEntries(Export.java:228)
	at ISCore.App.Entry.Common.Export.addEntries(Export.java:228)
	at ISCore.App.Entry.Common.Export.addEntries(Export.java:228)
	at ISCore.App.Entry.Common.Export.addEntries(Export.java:228)
	at ISCore.App.Entry.Common.Export.executeExport(Export.java:174)
	at ISCore.App.Entry.Common.Export.execute(Export.java:140)
	at ISCore.App.Command.perform(Command.java:54)
	at EDispatch.RequestHandler.dispatch(RequestHandler.java:111)
	at ISCore.App.Entry.RequestHandler.doDispatch(RequestHandler.java:87)
	at ISCore.App.Entry.RequestHandler.dispatch(RequestHandler.java:142)
	at Application.Milestone.App.Entry.RequestHandler.dispatch(RequestHandler.java:94)
	at Application.Milestone.App.Entry.RequestHandler.dispatch(RequestHandler.java:94)
	at EDispatch.Dispatcher.dispatch(Dispatcher.java:123)
	at EDispatch.HTTP.EServlet.service(EServlet.java:103)
	at ISCore.App.Servlet.service(Servlet.java:351)
	at EDispatch.HTTP.EServlet.service(EServlet.java:69)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
	at org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
	at org.apache.jserv.JServConnection.run(JServConnection.java:188)
	at java.lang.Thread.run(Thread.java:536)

[More Bugs...]