Expand my Community achievements bar.

"content.xml" is throwing a SAX parse exception in AEM 6.2

Avatar

Level 3

Hi,

I took a package of design content from aem 5.6 which was a whole jcr:content node and placed it in my codebase of aem 6.2 as a content.xml file under etc/design/project-folder. It had all the metadata like created by/modified by/replicated by.

The build and deployment is successful in 6.2 while using mvn clean install crx:install but when i am removing the metadata like created by/ modified by and replicated by nodes from content.xml and perform a build and deployment using mvn clean install crx:install it is throwing below error

*ERROR* [qtp1762663299-150] org.apache.jackrabbit.vault.fs.impl.io.GenericArtifactHandler Error while parsing jcr_root/etc/designs/project-folder/.content.xml: {}

org.xml.sax.SAXException: null

06.12.2017 19:13:50.038 *ERROR* [qtp1762663299-150] org.apache.jackrabbit.vault.fs.io.Importer E /etc/designs /project-folder (org.xml.sax.SAXException

java.lang.NullPointerException)

how this removal of data (modified by/created by/replicated by) is making the build failure?

Any help on above would be really appreciated

many thanks

Ranjna

5 Replies

Avatar

Employee

Could you share the original content.xml  and the updated one (via Google drive).

Avatar

Level 3

Hi

Unfortunately i cant share the file but it has data like

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:rep="internal"

    jcr:mixinTypes="[rep:AccessControllable]"

    jcr:primaryType="cq:Page">

    <clientlibs-richtext/>

    <widgets/>

    <favicon.ico/>

    <clientlibs/>

    <jcr:content

        cq:lastReplicationAction="Activate"

        jcr:isCheckedOut="{Boolean}true"

        jcr:mixinTypes="[cq:ReplicationStatus,mix:versionable]"

        jcr:primaryType="nt:unstructured"

        jcr:uuid="jhskdsdfjsdjghdjf12132>

        <homelanding jcr:primaryType="nt:unstructured">

            <main

                jcr:primaryType="nt:unstructured"

                sling:resourceType="foundation/components/parsys"

                components="[/libs/foundation/components/external]

                <section jcr:primaryType="nt:unstructured"/>

            </main>

            <breadcrumb

                jcr:primaryType="nt:unstructured"

                sling:resourceType="foundation/components/breadcrumb"

                absParent="4"

                relParent="0"/>

I had removed modified by , created by and replicated by from the blank section mentioned above

Thanks

Avatar

Employee Advisor

Look at the <main> tag; it's missing the closing ">" before the <section jcr:primaryType="nt:unstructured"/> part.

Avatar

Level 3

Hi,

I am sorry for typo . In actual content.xml it is (">")present before the <section jcr:primaryType="nt:unstructured"/> part and it is displaying the above mentioned error.

Avatar

Employee

Even jcr:uuid value is missing "

jcr:uuid="jhskdsdfjsdjghdjf12132>

If that's also a typo, then I request you to share the correct  content.xml once again.

page footer