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

Key: QB-1236
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Blocker Blocker
Assignee: Robin Shen
Reporter: Grzegorz Dancewicz
Votes: 0
Watchers: 1
Operations

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

ValidationException while restore from qb 2.0.6 db backup into qb 4.0.31

Created: 19/Mar/12 01:00 PM   Updated: 27/Dec/12 07:46 AM
Component/s: None
Affects Version/s: 4.0.31
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows XP, java version "1.6.0_03", Java(TM) SE Runtime Environment (build 1.6.0_03-b05), Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)


 Description  « Hide
I'm trying to migrate from QB 2.0.6 to QB 4.0.31 and while executing migration steps - restore from baked configuration, I got following exception:
...
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: , / \ : * ? " < > | [ ]'}
...

I checked, the configurations.xml is correct, it doesn't contain any of mentioned vorbidden characters...
This is currently blockimg me from using QB4, which is already bought by my company...
Please help ASAP!

Full stact trace from sys-out:
2012-03-19 13:43:35,296 INFO - Importing configuration 'root/M+H Control Centre/b_PI_PLATFORM_D22/Build Distributions'... 2012-03-19 13:43:35,312 INFO - Importing configuration 'root/M+H Control Centre/b_PI_PLATFORM_D22/Release Build'... 2012-03-19 13:43:35,328 INFO - Importing configuration 'root/M+H Control Centre/b_PI_PLATFORM_D22/fix build'... 2012-03-19 13:43:35,531 INFO - Stopping QuickBuild server... 2012-03-19 13:43:35,531 INFO - Stopping task scheduler... 2012-03-19 13:43:35,531 INFO - Closing session factory... 2012-03-19 13:43:35,531 INFO - QuickBuild server stopped. 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:161) at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:94) at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:178) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:72) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216) at com.pmease.quickbuild.entitymanager.impl.DefaultDataManager.importData(DefaultDataManager.java:685) at com.pmease.quickbuild.Quickbuild.importData(Quickbuild.java:590) at com.pmease.quickbuild.bootstrap.Restore$1.execute(Restore.java:71) at com.pmease.quickbuild.Quickbuild.startServer(Quickbuild.java:244) at com.pmease.quickbuild.Quickbuild.access$3(Quickbuild.java:226) at com.pmease.quickbuild.Quickbuild$2.run(Quickbuild.java:161) at java.lang.Thread.run(Unknown Source) Press any key to continue . . . C:\Program Files\quickbuild-4.0.31\bin>restore.bat E:\qb2\backup\backup_19_03_ok.zip > restore.log java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) 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:161) at org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(BeanValidationEventListener.java:94) at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:178) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:72) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216) at com.pmease.quickbuild.entitymanager.impl.DefaultDataManager.importData(DefaultDataManager.java:685) at com.pmease.quickbuild.Quickbuild.importData(Quickbuild.java:590) at com.pmease.quickbuild.bootstrap.Restore$1.execute(Restore.java:71) at com.pmease.quickbuild.Quickbuild.startServer(Quickbuild.java:244) at com.pmease.quickbuild.Quickbuild.access$3(Quickbuild.java:226) at com.pmease.quickbuild.Quickbuild$2.run(Quickbuild.java:161) at java.lang.Thread.run(Unknown Source)

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [20/Mar/12 12:43 AM]
Can you please send your database backup to [support AT pmease DOT com]. With the backup, I should be able to quickly find out the problem and get it fixed.

Robin Shen [23/Apr/12 06:17 AM]
Close the issue for now. Please reopen it and send the database backup if you experience this issue again.