dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #00115
Fwd: [Dhis-dev] Export process from 1.4 to 2.0
Hi Lars,
Thanks for this.
I opted for the first option. Here is the result.
Exception (java.lang.RuntimeException): Failed to set configuration
* org.hisp.dhis.importexport.dhis14.file.configuration.DefaultIbatisConfigurationManager.setIbatisConfiguration(DefaultIbatisConfigurationManager.java:142)
* org.hisp.dhis.importexport.action.dhis14.SetDhis14ConfigurationAction.execute(SetDhis14ConfigurationAction.java:99)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown source)
* sun.reflect.NativeMethodAccessorImpl.invoke(Unknown source)
* sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown source)
* java.lang.reflect.Method.invoke(Unknown source)
* com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
* com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.webwork.interceptor.WebWorkDisplayPropertyInterceptor.intercept(WebWorkDisplayPropertyInterceptor.java:90)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.webwork.interceptor.WebWorkSortOrderInterceptor.intercept(WebWorkSortOrderInterceptor.java:124)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.security.intercept.WebWorkSecurityInterceptor.intercept(WebWorkSecurityInterceptor.java:98)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.webwork.interceptor.WebWorkExceptionInterceptor.intercept(WebWorkExceptionInterceptor.java:89)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
* com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:273)
* com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
* org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
* org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
* org.hisp.dhis.security.filter.RequiredLoginFilter.doFilter(RequiredLoginFilter.java:131)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccessFilter.java:107)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
* org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
* org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
* org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
* org.hisp.dhis.servlet.filter.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:71)
* org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
* org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
* org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
* org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
* org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
* org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
* org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
* org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
* org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
* org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
* org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
* org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
* org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
* java.lang.Thread.run(Unknown source)
[-] Caused by (org.hisp.dhis.external.location.LocationManagerException):
External directory not set
* org.hisp.dhis.external.location.DefaultLocationManager.getFileForWriting(DefaultLocationManager.java:195)
* org.hisp.dhis.external.location.DefaultLocationManager.getOutputStream(DefaultLocationManager.java:166)
* org.hisp.dhis.importexport.dhis14.file.configuration.DefaultIbatisConfigurationManager.setIbatisConfiguration(DefaultIbatisConfigurationManager.java:136)
* org.hisp.dhis.importexport.action.dhis14.SetDhis14ConfigurationAction.execute(SetDhis14ConfigurationAction.java:99)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown source)
* sun.reflect.NativeMethodAccessorImpl.invoke(Unknown source)
* sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown source)
* java.lang.reflect.Method.invoke(Unknown source)
* com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
* com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.webwork.interceptor.WebWorkDisplayPropertyInterceptor.intercept(WebWorkDisplayPropertyInterceptor.java:90)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.webwork.interceptor.WebWorkSortOrderInterceptor.intercept(WebWorkSortOrderInterceptor.java:124)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.security.intercept.WebWorkSecurityInterceptor.intercept(WebWorkSecurityInterceptor.java:98)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* org.hisp.dhis.webwork.interceptor.WebWorkExceptionInterceptor.intercept(WebWorkExceptionInterceptor.java:89)
* com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
* com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
* com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:273)
* com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
* org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
* org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
* org.hisp.dhis.security.filter.RequiredLoginFilter.doFilter(RequiredLoginFilter.java:131)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccessFilter.java:107)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
* org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
* org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
* org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
* org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
* org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
* org.hisp.dhis.servlet.filter.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:71)
* org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
* org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
* org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
* org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
* org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
* org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
* org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
* org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
* org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
* org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
* org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
* org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
* org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
* java.lang.Thread.run(Unknown source)
Here are the details of the system..
Current user:
admin
Version:
2.0.1-SNAPSHOT
Build date:
2009-03-03 17:07
User agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6)
Gecko/2009011913 Firefox/3.0.6
External configuration directory:
Not set
Environment variable:
DHIS2_HOME
Database type:
H2
Database name:
dhis2
Database user:
sa
I do not have a real database setup yet. I am thinking that this may
have to do with the lack of an external configuration directory.
Let me try and set it, but I assume that there should be a more
graceful error returned. :)
Regards,
Jason
---------- Forwarded message ----------
From: Lars Helge Øverland <larshelge@xxxxxxxxx>
Date: Sun, Mar 8, 2009 at 9:16 AM
Subject: Re: [Dhis-dev] Export process from 1.4 to 2.0
To: dhis-dev@xxxxxxxxx
Instructions on moving data from DHIS 1.4 to 2.0
---------------------------------------------------------------
There are two approaches:
1) Import from DHIS 1.4 data file
This step requires that you are running Windows and that the relevant
data file is on your computer.
- In DHIS 2.0 go to "DHIS 1.4 File Configuration", enter the path to
the 1.4 data file (eg C:\Dhis14\DHIS_#ZA_LIMPOPO.mdb) and the other
options if necessary.
- In "DHIS 1.4 File Import" click Import.
2) Import from DHIS 1.4 XML file (.zip format)
- Make sure you are running DHIS 1.4 build 112 or later.
- When exporting data from DHIS 1.4, make sure you select DHIS 2 as
export file format.
- When exporting meta data (Advanced export), make sure you select
"Zip archive" as type after clicking "Export".
Make sure that the export file you get is of type ".zip" as this is
the accepted format in DHIS 2.
- In DHIS 2.0, go to "DHIS 1.4 XML Import", select your export file
and click "Import".
Lars
Follow ups