Expand my Community achievements bar.

SOLVED

non backwards compatible code -org.apache.sling.scripting.sightly

Avatar

Level 3

Hi All,

I'm working in an 6.1 to 6.4 in-pace upgrade activity. As part of this, while I'm fixing the issues raised by pattern detector I found the below issue and I'm unable to fix this. Can any one help me to fix this? Appreciate your help

1534602_pastedImage_0.png

Regards,

Vijay Selvaraj

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

When you compile the code against the 6.4 uber.jar, does the resulting bundle then resolve on AEM 6.4? If yes, everything should be fine.

jörg

View solution in original post

9 Replies

Avatar

Employee Advisor

The java package version has changed. Recompiling the code with the proper uber.jar should solve this issue.

Avatar

Level 10

When you want to use components built for an older AEM version - you have to update your components - such as HTL components - for AEM 6.4. This means rebuilding them and using the UBER 6.4 JAR file as discussed here -- Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13

Avatar

Level 3

Hi Jorg Hoh,

The code base has been built in Java 1.8 and I have already run the uber.jar for AEM 6.4. But still facing this issue alone.

Thanks,

Vijay

Avatar

Level 3

Hi Donald,

Are you saying that I should rebuild the HTL components with maven archtype-13 as part of in-place upgrade to solve this issue?

Right now my application has been built for AEM 6.1 ,java version is 1.8 & maven archtype is 10.

Can you guide me somemore detail on this, if I'm wrong..

Thanks,

Vijay

Avatar

Employee Advisor

Hi Vijay,

I understood that you ran the pattern detector on AEM 6.1, and that screenshot you posted originates from there. If you say now "still facing the issue", what have you done and what have you tested?

Jörg

Avatar

Employee Advisor

You should not switch to HTL directly now (probably too much work without any benefit). But on the long run you should consider switching.

Regarding archetype version 10: When you switch to AEM 6.4, you might want to check the latest archetypes and see what plugin versions they are not using. That's not absolutely necessary, but I would recommend to keep your maven plugins up-to-date.

Jörg

Avatar

Level 3

Hi Jorg,

Below are steps I have done and tested,

1) pattern detector installed in 6.1 and ran.

2) It shows some list of defects (like deprecated sling resource type for components..and so on) and we fixed all the issue except this. Since I don't know how to fix this.

3) Ran uber jar 6.4 and ran again pattern detector - still it shows the error which i have posted here.

based on your last comment, I will not work anything on the HTL part now.  Expecting your help!

Thanks,

Vijay

Avatar

Correct answer by
Employee Advisor

When you compile the code against the 6.4 uber.jar, does the resulting bundle then resolve on AEM 6.4? If yes, everything should be fine.

jörg