History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3370
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: John Szakmeister
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Getting error trying to restore on a new machine

Created: 01/Apr/19 03:01 PM   Updated: 03/Apr/19 12:13 AM
Component/s: None
Affects Version/s: 9.0.4
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

 Description  « Hide
I'm getting an error when trying to restore on a new machine:

Exception in thread "main" javax.validation.ConstraintViolationException: Validation failed for classes [com.pmease.quickbuild.model.Configuration] during persist time for groups [javax.validation.groups.Default, ]
List of constraint violations:[
ConstraintViolationImpl{interpolatedMessage='Name can not contain any of below characters:
, / \ : * ? " < > | [ ]', propertyPath=name, rootBeanClass=class com.pmease.quickbuild.model.Configuration, messageTemplate='Name can not contain any of below characters:
, / \ : * ? " < > | [ ]'}
at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate(BeanValidationEventListener.java:160)
at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:95)
at org.hibernate.action.internal.EntityInsertAction.preInsert(EntityInsertAction.java:218)
at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:97)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
at com.pmease.quickbuild.entitymanager.impl.DefaultDataManager.importData(DefaultDataManager.java:1021)
at com.pmease.quickbuild.Quickbuild.importData(Quickbuild.java:1044)
at com.pmease.quickbuild.bootstrap.Restore$1.execute(Restore.java:51)
at com.pmease.quickbuild.Quickbuild$3.run(Quickbuild.java:755)
at java.base/java.lang.Thread.run(Thread.java:834)

I don't believe we have any names that violate this constraint. Any guidance on how to troubleshoot/fix this?

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [01/Apr/19 11:13 PM]
Can you please send your backup to [robin AT pmease DOT com] for my diagnostics?

John Szakmeister [02/Apr/19 08:31 PM]
Just letting you know I sent the file you requested this morning. Hope it helps!

Robin Shen [02/Apr/19 11:43 PM]
Thanks for sending the backup. I restored it successfully at my side. Please open "conf/hibernate.properties" and search for "javax.persistence.validation.mode" to see what value it currently takes.

Robin Shen [02/Apr/19 11:43 PM]
This property should be set to "none"

John Szakmeister [03/Apr/19 12:08 AM]
Yikes! Somehow in my cleaning up of the hibernate.properties files (we changed databases and it was a little painful to dig through all the settings for the other databases), I managed to remove all the settings at the end of the file. Once I put all of those back, it works fine. I'm so sorry for the noise!

Robin Shen [03/Apr/19 12:13 AM]
No problem. QB does the validation internally and does not rely on this setting. Closing it now.