补充:我是迁移了内置数据库内容这些的,然后再同步用户管理,出现的以下问题,本地计算机,没有连接外接数据库的时候,一切都是正常的,但远程计算机,是设置了外接数据库的,也搬迁了数据库内容,然后出现的这个问题, 不知道是 bug,还是我哪里设置错了!!!在进行同步用户数据集的时候,出现这样的问题,Null值被分配到一个属性提示失败,具体错误代码为:com.fr.third.org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.fr.decision.authority.entity.UserEntity.enable at com.fr.third.org.hibernate.property.access.spi.SetterFieldImpl.set(SetterFieldImpl.java:44) at com.fr.third.org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:713) at com.fr.third.org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:205) at com.fr.third.org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:4690) at com.fr.third.org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:183) at com.fr.third.org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:125) at com.fr.third.org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1139) at com.fr.third.org.hibernate.loader.Loader.processResultSet(Loader.java:998) at com.fr.third.org.hibernate.loader.Loader.doQuery(Loader.java:936) at com.fr.third.org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:342) at com.fr.third.org.hibernate.loader.Loader.doList(Loader.java:2622) at com.fr.third.org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2464) at com.fr.third.org.hibernate.loader.Loader.list(Loader.java:2426) at com.fr.third.org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:501) at com.fr.third.org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371) at com.fr.third.org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216) at com.fr.third.org.hibernate.internal.SessionImpl.list(SessionImpl.java:1338) at com.fr.third.org.hibernate.internal.QueryImpl.list(QueryImpl.java:87) at com.fr.stable.db.session.DAOSessionStore$1.find(Unknown Source) at com.fr.stable.db.dao.BaseDAO.find(Unknown Source) at com.fr.decision.authority.controller.AbstractController.findUserByEntityCondition(Unknown Source) at com.fr.decision.authority.controller.UserControllerImpl.find(Unknown Source) at com.fr.decision.sync.PlatformData.init(Unknown Source) at com.fr.decision.sync.TableDataSyncAction.execute(Unknown Source) at com.fr.decision.authority.controller.personnel.PersonnelActionManager.doWork(Unknown Source) at com.fr.decision.authority.AuthorityContext.doPersonnelWork(Unknown Source) at com.fr.decision.webservice.v10.user.SyncService.synchronize(Unknown Source) at com.fr.decision.webservice.v10.user.sync.SyncUserJob.run(Unknown Source) at com.fr.scheduler.job.FineScheduleJob.execute(Unknown Source) at com.fr.third.v2.org.quartz.core.JobRunShell.run(JobRunShell.java:203) at com.fr.third.v2.org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) Caused by: java.lang.IllegalArgumentException: Can not set boolean field com.fr.decision.authority.entity.UserEntity.enable to null value at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) at sun.reflect.UnsafeBooleanFieldAccessorImpl.set(UnsafeBooleanFieldAccessorImpl.java:80) at java.lang.reflect.Field.set(Field.java:764) at com.fr.third.org.hibernate.property.access.spi.SetterFieldImpl.set(SetterFieldImpl.java:38) ... 30 more