Error with ZIP data import

Hello, I am trying to import some demo-data from 2 ZIP files.
I as need most of the demo data but not everything, i’ve done theses 2 files one with XML one with CSV the I have the following error. Do you have any idea ?

I have axelor v7.2.6

also, I join the screenshots of the files, thank you very much !

Anomalie
com.thoughtworks.xstream.io.StreamException: 
Erreur
com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
Cause
org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:2) 
Trace
com.thoughtworks.xstream.io.StreamException: 
   at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
   at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
   at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
   at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
   at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65)
   at com.thoughtworks.xstream.io.AbstractDriver.createReader(AbstractDriver.java:74)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1363)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1315)
   at com.axelor.data.csv.CSVConfig.parse(CSVConfig.java:91)
   at com.axelor.data.csv.CSVImporter.<init>(CSVImporter.java:109)
   at com.axelor.data.csv.CSVImporter.<init>(CSVImporter.java:88)
   at com.axelor.apps.base.service.imports.importer.ImporterCSV.process(ImporterCSV.java:33)
   at com.axelor.apps.base.service.imports.importer.Importer.run(Importer.java:116)
   at com.axelor.apps.base.service.imports.importer.Importer.run(Importer.java:123)
   at com.axelor.apps.base.service.imports.ImportService.run(ImportService.java:38)
   at com.axelor.apps.base.web.ImportConfigurationController.run(ImportConfigurationController.java:45)
   at com.axelor.apps.base.web.ImportConfigurationController$$EnhancerByGuice$$1258557722.GUICE$TRAMPOLINE(<generated>)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74)
   at com.axelor.apps.base.module.ControllerMethodInterceptor.invoke(ControllerMethodInterceptor.java:36)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
   at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55)
   at com.axelor.apps.base.web.ImportConfigurationController$$EnhancerByGuice$$1258557722.run(<generated>)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   at com.axelor.meta.ActionHandler.call(ActionHandler.java:247)
   at com.axelor.meta.schema.actions.ActionMethod.evaluate(ActionMethod.java:77)
   at com.axelor.meta.schema.actions.Action.execute(Action.java:101)
   at com.axelor.meta.schema.actions.Action.wrap(Action.java:114)
   at com.axelor.meta.schema.actions.ActionGroup.evaluate(ActionGroup.java:236)
   at com.axelor.meta.schema.actions.Action.execute(Action.java:97)
   at com.axelor.meta.schema.actions.Action.wrap(Action.java:114)
   at com.axelor.meta.ActionHandler.execute(ActionHandler.java:516)
   at com.axelor.meta.ActionExecutor.execute(ActionExecutor.java:58)
   at com.axelor.meta.ActionExecutor$$EnhancerByGuice$$41841996.GUICE$TRAMPOLINE(<generated>)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74)
   at com.axelor.rpc.ResponseInterceptor.invoke(ResponseInterceptor.java:61)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
   at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55)
   at com.axelor.meta.ActionExecutor$$EnhancerByGuice$$41841996.execute(<generated>)
   at com.axelor.web.service.ActionService.execute(ActionService.java:79)
   at com.axelor.web.service.ActionService$$EnhancerByGuice$$45479636.GUICE$TRAMPOLINE(<generated>)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74)
   at com.axelor.rpc.RequestFilter.invoke(RequestFilter.java:56)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
   at com.axelor.rpc.ResponseInterceptor.invoke(ResponseInterceptor.java:70)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
   at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55)
   at com.axelor.web.service.ActionService$$EnhancerByGuice$$45479636.execute(<generated>)
   at jdk.internal.reflect.GeneratedMethodAccessor891.invoke(Unknown Source)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
   at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
   at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
   at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524)
   at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474)
   at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
   at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476)
   at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:434)
   at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:408)
   at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:69)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492)
   at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
   at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
   at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
   at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
   at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
   at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:249)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:60)
   at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
   at com.axelor.db.tenants.AbstractTenantFilter.doFilter(AbstractTenantFilter.java:71)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
   at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)
   at io.buji.pac4j.filter.SecurityFilter.lambda$doFilter$1(SecurityFilter.java:79)
   at org.pac4j.core.engine.DefaultSecurityLogic.perform(DefaultSecurityLogic.java:140)
   at com.axelor.auth.pac4j.AxelorSecurityLogic.perform(AxelorSecurityLogic.java:82)
   at io.buji.pac4j.filter.SecurityFilter.doFilter(SecurityFilter.java:77)
   at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)
   at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
   at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
   at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
   at org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)
   at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450)
   at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
   at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
   at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
   at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
   at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
   at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
   at com.axelor.app.internal.AppFilter.doFilter(AppFilter.java:88)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
   at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:94)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
   at com.axelor.db.tenants.AbstractTenantFilter.doFilter(AbstractTenantFilter.java:71)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
   at com.axelor.web.servlet.CorsFilter.doFilter(CorsFilter.java:138)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
   at com.axelor.web.servlet.ProxyFilter.doFilter(ProxyFilter.java:44)
   at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
   at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
   at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:670)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
   at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
   at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
   at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1794)
   at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
   at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
   at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:2) 
   at io.github.xstream.mxparser.MXParser.parseProlog(MXParser.java:1528)
   at io.github.xstream.mxparser.MXParser.nextImpl(MXParser.java:1406)
   at io.github.xstream.mxparser.MXParser.next(MXParser.java:1104)
   at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
   ... 132 more


Hello,

only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P… @1:2)

In the case of XML, the error message indicates that the parser found unauthorized content before the start of the XML document. According to the XML specification, only empty spaces are allowed before the start tag of the document. It is necessary to remove unauthorized content. Also ensure that the XML document is correctly structured and valid according to the XML specification.

Regards,

1 « J'aime »