Public bug reported:

Steps to reproduce. May be specific to my setup but would be good to
test.

1) Export Organisation units, Orgunit groups, orgunit group sets, orgunit 
levels. 
2) Export as DXF. 
3) Create blank DB. 
4) Restart DHIS2 with newly created DB. 
5) Import DXF. 
6) Fail with 

java.lang.RuntimeException: The object named 'ce Prisons Health Post' does not e
xist
        at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.veri
fyIdentifier(DefaultObjectMappingGenerator.java:477)
        at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getM
apping(DefaultObjectMappingGenerator.java:421)
        at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getO
rganisationUnitMapping(DefaultObjectMappingGenerator.java:284)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:309)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:196)
        at $Proxy56.getOrganisationUnitMapping(Unknown Source)
        at org.hisp.dhis.importexport.dxf.converter.DXFConverter.read(DXFConvert
er.java:805)
        at org.hisp.dhis.importexport.DefaultImportService.importData(DefaultImp
ortService.java:181)
        at org.hisp.dhis.importexport.ImportInternalProcess.executeStatements(Im
portInternalProcess.java:89)
        at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
(AbstractStatementInternalProcess.java:91)
        at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
(AbstractStatementInternalProcess.java:40)
        at org.amplecode.cave.process.ProcessExecutor.run(ProcessExecutor.java:1
25)
        at java.lang.Thread.run(Thread.java:662)
java.lang.RuntimeException: The object named 'ce Prisons Health Post' does not e
xist
        at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.veri
fyIdentifier(DefaultObjectMappingGenerator.java:477)
        at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getM
apping(DefaultObjectMappingGenerator.java:421)
        at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getO
rganisationUnitMapping(DefaultObjectMappingGenerator.java:284)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:309)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:196)
        at $Proxy56.getOrganisationUnitMapping(Unknown Source)
        at org.hisp.dhis.importexport.dxf.converter.DXFConverter.read(DXFConvert
er.java:805)
        at org.hisp.dhis.importexport.DefaultImportService.importData(DefaultImp
ortService.java:181)
        at org.hisp.dhis.importexport.ImportInternalProcess.executeStatements(Im
portInternalProcess.java:89)
        at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
(AbstractStatementInternalProcess.java:91)
        at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
(AbstractStatementInternalProcess.java:40)
        at org.amplecode.cave.process.ProcessExecutor.run(ProcessExecutor.java:1
25)
        at java.lang.Thread.run(Thread.java:662)
Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl queryExecut
ed
INFO: HQL: null, time: 4ms, rows: 0
Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl queryExecut
ed
INFO: HQL: null, time: 3ms, rows: 0
Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl queryExecut
ed

** Affects: dhis2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/705349

Title:
  cannot-import-orgunitDXF-exportedbyDHIS2

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  Steps to reproduce. May be specific to my setup but would be good to
  test.

  1) Export Organisation units, Orgunit groups, orgunit group sets, orgunit 
levels. 
  2) Export as DXF. 
  3) Create blank DB. 
  4) Restart DHIS2 with newly created DB. 
  5) Import DXF. 
  6) Fail with 

  java.lang.RuntimeException: The object named 'ce Prisons Health Post' does 
not e
  xist
          at 
org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.veri
  fyIdentifier(DefaultObjectMappingGenerator.java:477)
          at 
org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getM
  apping(DefaultObjectMappingGenerator.java:421)
          at 
org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getO
  rganisationUnitMapping(DefaultObjectMappingGenerator.java:284)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
          at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
  on(AopUtils.java:309)
          at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
  cAopProxy.java:196)
          at $Proxy56.getOrganisationUnitMapping(Unknown Source)
          at 
org.hisp.dhis.importexport.dxf.converter.DXFConverter.read(DXFConvert
  er.java:805)
          at 
org.hisp.dhis.importexport.DefaultImportService.importData(DefaultImp
  ortService.java:181)
          at 
org.hisp.dhis.importexport.ImportInternalProcess.executeStatements(Im
  portInternalProcess.java:89)
          at 
org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:91)
          at 
org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:40)
          at 
org.amplecode.cave.process.ProcessExecutor.run(ProcessExecutor.java:1
  25)
          at java.lang.Thread.run(Thread.java:662)
  java.lang.RuntimeException: The object named 'ce Prisons Health Post' does 
not e
  xist
          at 
org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.veri
  fyIdentifier(DefaultObjectMappingGenerator.java:477)
          at 
org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getM
  apping(DefaultObjectMappingGenerator.java:421)
          at 
org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getO
  rganisationUnitMapping(DefaultObjectMappingGenerator.java:284)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
          at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
  on(AopUtils.java:309)
          at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
  cAopProxy.java:196)
          at $Proxy56.getOrganisationUnitMapping(Unknown Source)
          at 
org.hisp.dhis.importexport.dxf.converter.DXFConverter.read(DXFConvert
  er.java:805)
          at 
org.hisp.dhis.importexport.DefaultImportService.importData(DefaultImp
  ortService.java:181)
          at 
org.hisp.dhis.importexport.ImportInternalProcess.executeStatements(Im
  portInternalProcess.java:89)
          at 
org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:91)
          at 
org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:40)
          at 
org.amplecode.cave.process.ProcessExecutor.run(ProcessExecutor.java:1
  25)
          at java.lang.Thread.run(Thread.java:662)
  Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl 
queryExecut
  ed
  INFO: HQL: null, time: 4ms, rows: 0
  Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl 
queryExecut
  ed
  INFO: HQL: null, time: 3ms, rows: 0
  Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl 
queryExecut
  ed



_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to