Could not Install Package from AEM 5.6.1 to AEM 6.3 | Community
Skip to main content
CT1012
Level 4
Jul 31, 2017 7:57 PM UTC
Solved

Could not Install Package from AEM 5.6.1 to AEM 6.3

Q1:    I'm trying to install a "redirect" page component package from AEM 5.6.1 to AEM 6.3 through package manager. Getting an error

"javax.jcr.nodetype.ConstraintViolationException: OakConstraint0021: /apps/******/components/page/redirect/dialog/items/tabs/items/leftNav/items/leftNavURL/items/link/component-a/component-a.jsp/jcr:content[[nt:resource]]: Mandatory property jcr:data not found in a new node"

Q2:  Another non-container component named "component-a" is linked under dialog item "leftNavUrl".under redirect page component. Is it possible to do so in 6.3.

link under leftNavURL which is causing the exception.

<link

                                    jcr:primaryType="cq:Widget"

                                    fieldDescription="Select file from the Content Finder or enter complete URL."

                                    itemId="webURL"

                                    name="./directLink"

                                    xtype="pathfield">

                                    <template-a

                                        cq:isContainer="{Boolean}false"

                                        jcr:description="Component A"

                                        jcr:primaryType="cq:Component"

                                        jcr:title="Component A"

                                        sling:resourceSuperType="foundation/components/page">

                                        <dialog

                                            jcr:primaryType="cq:Dialog"

                                            height="400"

                                            stateful="false"

                                            xtype="dialog">

                                            <items jcr:primaryType="cq:WidgetCollection">

                                                <tabs jcr:primaryType="cq:TabPanel">

                                                    <items jcr:primaryType="cq:WidgetCollection">

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
VeenaVikraman
VeenaVikramanAccepted solution
New Participant
Aug 2, 2017 8:49 PM UTC

I removed the error causing node and installed the package and it is installed now properly. I am investigating on what would be the expected node structure for that the one which is causing issue .

CT1012 Can you please paste a screenshot of the node structure for template-a.jsp ​here ?

11 replies

VeenaVikraman
New Participant
Aug 3, 2017 3:33 AM UTC

@CT1012 the template-a and its node sturcture clearly says its a mistake ..  hope you can figure out if something is wrong

thanks

Veena

Translate
CT1012
CT1012Author
Level 4
Aug 3, 2017 2:05 AM UTC

I believe the same. Will keep you posted if i find any authoring errors after installing the modified component.

Translate
CT1012
CT1012Author
Level 4
Aug 3, 2017 2:01 AM UTC

Since it is a part of upgrade, no other developer is familiar with reasons and structures developed in 5.6.1. Initially i thought it was a mistake and installed it in AEM 6.3 without that error causing node.

For my future development concern just want to clear the air around this error, posted the same here to know the reason if anyone can clear the exception(unknown to me).

Appreciate your efforts veena and macdonald. Thank you

Translate
VeenaVikraman
New Participant
Aug 2, 2017 9:31 PM UTC

CT1012​

     Do you think the node structure you packaged and installing is correct ? do you think someone might have accidentally dragged and dropped a component inside your dialog node. Because what I see here in your node structure doesn't make sense to me

Because what I see here just makes me believe this was a total mistake in your node structure  

Translate
smacdonald2008
Level 10
Aug 2, 2017 9:04 PM UTC

AN FYI--- it works on 6.1 not 6.2 or 6.3. Remove the node as suggested by Veena.

You can use a tool like WinRaw:

Translate
VeenaVikraman
VeenaVikramanAccepted solution
New Participant
Aug 2, 2017 8:49 PM UTC

I removed the error causing node and installed the package and it is installed now properly. I am investigating on what would be the expected node structure for that the one which is causing issue .

CT1012 Can you please paste a screenshot of the node structure for template-a.jsp ​here ?

Translate
smacdonald2008
Level 10
Aug 2, 2017 8:34 PM UTC

I am seeing the error too - looking deeper into this,

Translate
VeenaVikraman
New Participant
Aug 2, 2017 8:15 PM UTC

I am looking into it now ..

Translate
CT1012
CT1012Author
Level 4
Aug 2, 2017 7:44 PM UTC

Please access the following link Sample-component.zip - Google Drive

Translate
VeenaVikraman
New Participant
Aug 2, 2017 7:06 PM UTC

Yes , Please share a sample code as scott explained. May be we can figure out the fix .

Translate