Open leijue222 opened 5 years ago
2019-04-01 10:30:38.423 ERROR 13964 --- [ XNIO-2 task-7] o.h.i.ExceptionMapperStandardImpl : HHH000346: Error during managed flush [Validation failed for classes [cc.ryanc.halo.model.domain.Category] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='分类路径不能为空', propertyPath=cateUrl, rootBeanClass=class cc.ryanc.halo.model.domain.Category, messageTemplate='分类路径不能为空'} ConstraintViolationImpl{interpolatedMessage='分类名称不能为空', propertyPath=cateName, rootBeanClass=class cc.ryanc.halo.model.domain.Category, messageTemplate='分类名称不能为空'} ]] 2019-04-01 10:30:38.427 ERROR 13964 --- [ XNIO-2 task-7] c.r.h.w.c.core.InstallController : Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction
https://app.leanboard.io/board/0851ec69-2a9d-4013-99f0-30aa50f6d226
doInstall方法里final Category category = new Category();下面另外两个值的对象写错了
2019-04-01 10:30:38.423 ERROR 13964 --- [ XNIO-2 task-7] o.h.i.ExceptionMapperStandardImpl : HHH000346: Error during managed flush [Validation failed for classes [cc.ryanc.halo.model.domain.Category] during persist time for groups [javax.validation.groups.Default, ] List of constraint violations:[ ConstraintViolationImpl{interpolatedMessage='分类路径不能为空', propertyPath=cateUrl, rootBeanClass=class cc.ryanc.halo.model.domain.Category, messageTemplate='分类路径不能为空'} ConstraintViolationImpl{interpolatedMessage='分类名称不能为空', propertyPath=cateName, rootBeanClass=class cc.ryanc.halo.model.domain.Category, messageTemplate='分类名称不能为空'} ]] 2019-04-01 10:30:38.427 ERROR 13964 --- [ XNIO-2 task-7] c.r.h.w.c.core.InstallController : Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction
https://app.leanboard.io/board/0851ec69-2a9d-4013-99f0-30aa50f6d226