<< Back to previous view

[QB-3370] Getting error trying to restore on a new machine
Created: 01/Apr/19  Updated: 03/Apr/19

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 9.0.4
Fix Version/s: None

Type: Bug Priority: Major
Reporter: John Szakmeister Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
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?

 Comments   
Comment by Robin Shen [ 01/Apr/19 11:13 PM ]
Can you please send your backup to [robin AT pmease DOT com] for my diagnostics?
Comment by John Szakmeister [ 02/Apr/19 08:31 PM ]
Just letting you know I sent the file you requested this morning. Hope it helps!
Comment by 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.
Comment by Robin Shen [ 02/Apr/19 11:43 PM ]
This property should be set to "none"
Comment by 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!
Comment by 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.
Generated at Thu Apr 25 23:26:05 UTC 2024 using JIRA 189.