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

  • Import/export and property management
    2011/10/05 13:53

    pilak <p> Hi all,</p> <p> I&#39;m looking for trying to manage in a container a kind of property in definition.cnd like :</p> <p> - j:myProperty (string) protected</p> <p> All works very well until I&#39;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.</p> <p> My question is Why it does not specify it and how I can make it work ?</p> <p> Thanks for all.</p> <p> Best regards,</p> <p> Pierre, Jahia 6.1.1 EE - r38450</p>

  • Number of messages  14
    Registration date Oct 5, 2011
    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.

  • Re: Import/export and property management
    2011/10/11 08:24

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

  • Number of messages  14
    Registration date Oct 6, 2011
    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