[hibernate-dev] in.relation.to error when posting a new blog entry

Davide D'Alto davide at hibernate.org
Mon Feb 23 11:38:09 EST 2015


I've finally found out the culprit of the constraint violation.

You should be able to post new blog entries now.

Thanks everyone for the help.

Cheers

On Fri, Feb 20, 2015 at 5:12 PM, Davide D'Alto <davide at hibernate.org> wrote:

> I've tried to restart the server and it doesn't help.
>
> I'm thinking that I should disable foreign keys while running the query
> and see what happens.
>
> Any better idea?
>
> On Fri, Feb 20, 2015 at 3:35 PM, Davide D'Alto <davide at hibernate.org>
> wrote:
>
>> It's not going well,
>> I'm not sure how to solve this issue,
>>
>> It seems it's trying to delete something (from the log):
>>
>> Caused by: org.hibernate.exception.ConstraintViolationException: could
>> not delete: [org.jboss.seam.wiki.core.model.WikiCommentFeedEntry#40142]
>>
>> And that it is causing:
>>
>> Caused by:
>> com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
>> Cannot delete or update a parent row: a foreign key constraint fails
>> (`inrelationto`.`FEED_FEEDENTRY`,CONSTRAINT
>> `FK_FEED_FEEDENTRY_FEEDENTRY_ID` FOREIGN KEY (`FEEDENTRY_ID`) REFERENCES
>> `FEEDENTRY` (`FEEDENTRY_ID`))
>>
>>
>> I've attached the complete stacktrace.
>>
>> Should I restart everything?
>> I'm open to suggestion.
>>
>>
>>
>>
>> On Fri, Feb 20, 2015 at 1:20 PM, Hardy Ferentschik <hardy at hibernate.org>
>> wrote:
>>
>>> On Fri, Feb 20, 2015 at 11:56:13AM +0000, Davide D'Alto wrote:
>>> > I'm currently trying to fix it
>>>
>>> Cool. I was about to ask what the status is on this. Let me know how it
>>> goes.
>>> I am preparing a HV release blog. Would be nice to be able to publish it
>>> as well.
>>>
>>> --Hardy
>>>
>>
>>
>


More information about the hibernate-dev mailing list