Movie was not saved. The following validation errors occurred: •org.hibernate.exception.ConstraintViolationException: could not insert: [com.craigworks.domain.person.Person]
There "name" field has a unique constrainst which could be causing the issue. A couple of questions: 1) What version of MbC are your running? 2) What movie were you trying to import? Please provide the title/year or UPC. I will try to reproduce it here.
this has now happened to several movies for me, and i believe i know why.
to replacate the issue: import from web, when you click save click on refresh page and then resend info, try adding the movie again.
the reason: on several movies (for me) after clicking on save it gets to the rotten tomatoe scrapper and hangs, i try to refresh page and resend the info and get an error 500 message [code] 500 Unexpected problem running servlet: java.lang.NullPointerException
1) The page refresh did not stop the save which continues to run on the server. This is why the constraint violation showed up on subsequent imports. Eventually the movie should save successfully. In a future release I will see how I can improve this.
the movies that errored out still havent added to the list nor will it allow me to re add them im still getting the same error message when trying to readd them.
is there a way to connect to the database and edit it directly?
i tried to use razorSQL to connect to the HSQLDB but its not wanting to connect for some reason, what version jdbcDriver are you using to create the db?
Using the same build and your data.script, I had no issues importing the 4 movies in your post. Can you also supply the data.log file. Maybe something in there is causing it. Thanks.
i have deleted the log file and was able to add the movies without fail. so the error seems to be there.
HERE is the log file
so this issue is resolved, now to figure out why it was happening, i will continue to add movies and if i get the same error again i will make a copy of the log/data files and shoot them over to you.