Jahia in English > Import/export and...

0 (0 Good)
0 (0 Bad)

Import/export and property management

by  pilak »  2011/10/05 13:53

Hi all,

I'm looking for trying to manage in a container a kind of property in definition.cnd like :

- j:myProperty (string) protected

All works very well until I'm exporting/importing a content with it. During the import operation, I have a SAX parsing exception on that container telling me j: is not a declared namespace. As my export_fr.xml does not specify it, I understand the error.

My question is Why it does not specify it and how I can make it work ?

Thanks for all.

Best regards,

Pierre, Jahia 6.1.1 EE - r38450

  (pilak)

Number of messages  14
Registration date
0 (0 Good)
0 (0 Bad)

Re: Import/export and property management

by  shuber »  2011/10/06 07:15

Hi Pierre, 

Could you post an extract of the SAX exception please, I'm interested in seeing the stack trace ?

Regards,

  Serge Huber.

Serge Huber (shuber)

Number of messages  271
Registration date
0 (0 Good)
0 (0 Bad)

Re: Import/export and property management

by  pilak »  2011/10/06 09:56

Thank you for replying Serge,

Here are the logs :

2011-10-06 11:53:50,342: WARN  [ImportExportBaseService] - Cannot import document
org.xml.sax.SAXParseException: The prefix "j" for element "j:myProperty" is not bound.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
    at org.jahia.services.importexport.ImportExportBaseService.importDocument(ImportExportBaseService.java:1151)
    at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:1017)
    at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:752)
    at org.jahia.services.importexport.ImportExportBaseService$$FastClassByCGLIB$$de1c40f7.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    at org.jahia.services.importexport.ImportExportBaseService$$EnhancerByCGLIB$$34778df6.importFile(<generated>)
    at org.jahia.services.importexport.ImportJob.executeJahiaJob(ImportJob.java:93)
    at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:152)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

 

 

Regards,

Pierre.

  (pilak)

Number of messages  14
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page