Jahia Dev Forum > error while importing...

0 (0 Good)
0 (0 Bad)

error while importing page / website -

by  surajz »  2011/06/07 20:42

I get this error when I try to import page.

org.xml.sax.SAXParseException: Attribute "lastPublisher" bound to namespace "http://www.jahia.org/" was already specified for element "headerBox". Jahia is generating export_en.xml file incorrectly. I see many jahia:lastPublisher attributes in one element (attached below).

 

Here is my relevant cnd

[hmh_templates:headerBox] > jnt:container

- title (string,text)

- mainTagLine (string,text) 

- smallTagLine (string,text) 

+ basicLink (hmh_templates:basicLink) * 

 

[hmh_templates:list] > jnt:page, hmh_templates:headerModule, hmh_templates:footerModule

+ navLink (jnt:navLink) *

+ columnA_box (jnt:filesBox,jnt:textsBox) *

+ footerBox (hmh_templates:footerBoxLink) *

+ headerBox (hmh_templates:headerBox)

 

--

2010-03-26 09:27:31,836: WARN [JahiaQuartzScheduler_Worker-1] ImportExportBaseService, org.jahia.services.importexport.ImportExportBaseService: Cannot import document

org.xml.sax.SAXParseException: Attribute "lastPublisher" bound to namespace "http://www.jahia.org/" was already specified for element "headerBox".

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

at org.jahia.services.importexport.ImportExportBaseService.importDocument(ImportExportBaseService.java:1100)

at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:966)

at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:727)

at org.jahia.services.importexport.ImportExportBaseService$$FastClassByCGLIB$$de1c40f7.invoke(<generated>)

at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

 

-- Here is the export from export_en.xml

<headerBox jcr:primaryType="hmh_templates:headerBox" jcr:uuid="867f08ff-d045-4054-8585-b8b880e8e4a4" jahia:originalUuid="bb266741-4abb-4f6c-a6a2-ecae5b328180" jahia:lastPublishingDate="2010-03-25T15:07:01" jcr:lastModified="2010-03-25T15:07:01" jahia:lastPublisher="admin" jahia:lastModifiedBy="admin" jahia:lastModifiedBy="admin" jahia:lastPublisher="admin" jahia:lastPublisher="admin" jahia:lastModifiedBy="admin" jahia:lastPublisher="admin" jahia:lastModifiedBy="admin">

  (surajz)

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

Re: error while importing page / website -

by  shyrkov »  2011/06/07 20:42

Hello surajz,

could you, please, specify on which version and build number of Jahia this problem happens?
And do not hesitate to create an entry in our JIRA if you consider this as a malfunction behaviour.

Kind regards
Sergiy

  • Re: error while importing page / website -
    2011/07/08 15:03

    shyrkov <p> Hello surajz,<br /> <br /> could you, please, specify on which version and build number of Jahia this problem happens?<br /> And do not hesitate to create an entry in our&nbsp;<a href="http://jira.jahia.org/">JIRA</a>&nbsp;if you consider this as a malfunction behaviour.<br /> <br /> Kind regards<br /> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: error while importing page / website -

    by  surajz »  2011/06/07 20:42

    I am using the Jahia_EE_v6_SP1_r28889 with jahia-hotfix-6.0.1_2_r30226.
    I had to use a script to remove invalid attributes from export_1.xml file, and repackage the file in the zip file.

    I can stop the problem at XMLWriter.writeAttributes(Attributes) method by adding validation, but I am trying to find out why this is happening, and maybe fix it at higher level.

    I see this error when I try to export a page that includes child pages with the same template as parent page.
    (I don't see this problem on the leaf page on my virtual website).

    Thanks,

      (surajz)

    Number of messages  30
    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