dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23687
Re: import metadata error
Easy, can you share this meta-data XML? are you trying to import users, or
just usergroups? it is currently not possible to import users.
--
Morten
On Sat, Jul 27, 2013 at 11:58 PM, easy <lin_xd@xxxxxxx> wrote:
> import goes well but when go on till importing user group,error occured:
> :54:00 CST 2013, message: Importing 2 UserGroups] (InMemoryNotifier.java
> [taskScheduler-1])
> * ERROR 2013-07-28 00:54:12,479 Unexpected error occurred in scheduled
> task. (TaskUtils.jav
> [taskScheduler-1])
> org.hibernate.TransientObjectException: object references an unsaved
> transient instance - s
> ve the transient instance before flushing: org.hisp.dhis.user.User
> at
> org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(Foreig
> Keys.java:249)
> at org.hibernate.type.EntityType.getIdentifier(EntityType.java:489)
> at
> org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:151)
> at
> org.hibernate.persister.collection.AbstractCollectionPersister.writeElement(Abst
> actCollectionPersister.java:863)
> at
> org.hibernate.persister.collection.AbstractCollectionPersister.recreate(Abstract
> ollectionPersister.java:1253)
> at
> org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreat
> Action.java:58)
> at
> org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:362)
> at
> org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:354)
> at
> org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:279)
> at
> org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(Abs
> ractFlushingEventListener.java:328)
> at
> org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEvent
> istener.java:52)
> at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1233)
> at
> org.hisp.dhis.dxf2.metadata.DefaultImportService.importMetaData(DefaultImportSer
> ice.java:150)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils
> java:317)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(Ref
> ectiveMethodInvocation.java:183)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM
> thodInvocation.java:150)
> at
> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWith
> nvocation(TransactionInterceptor.java:96)
> at
> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithi
> Transaction(TransactionAspectSupport.java:260)
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Transa
> tionInterceptor.java:94)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM
> thodInvocation.java:172)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.j
> va:204)
> at com.sun.proxy.$Proxy130.importMetaData(Unknown Source)
> at
> org.hisp.dhis.importexport.action.util.ImportMetaDataTask.run(ImportMetaDataTask
> java:92)
>
>
> --
> 此致
>
> easy
>
> 莫愁前路无知己,天下谁人不识君。
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
References