Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Issue in sightly component after upgrade from 6.0 to 6.2

diptinarang
Level 3
Level 3

We are experiencing issues in sightly components, wherever we have referenced Java classes like this - "global.Packages.com.xyz.wcm.utils.ABCClient"

 

Exception:

GET /content/xyz/ab/new.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

java.lang.NoClassDefFoundError: Could not initialize class com.xyz.wcm.utils.ABCClient

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)

    

 

I couldn't find any deprecations related to this in following documents:

https://docs.adobe.com/docs/en/aem/6-2/develop/ref/javadoc/deprecated-list.html#package

https://docs.adobe.com/docs/en/aem/6-2/release-notes/deprecated-removed-features.html

https://docs.adobe.com/docs/en/aem/6-2/develop/ref/diff-previous/changes.html

 

Also the fix mentioned here, didn't work:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

1 Accepted Solution
diptinarang
Correct answer by
Level 3
Level 3

The issue is resolved by granting admin like rights to system user. But the error message thrown was bit misleading and that's why I suspected that issue is in sightly.

Thanks everyone for your valuable inputs.

View solution in original post

9 Replies
daniel_henriqu1
Level 4
Level 4

Hi, Dipti.

To which classes/packages are you referring to? Are they part of the AEM core or are they custom/3rd-party?

What is the status of the bundle that export those packages/classes? Is it active?

Regards,

Daniel.

diptinarang
Level 3
Level 3

Thanks for reverting Daniel. These are our custom classes and they are working fine when referenced in JSP or other Java code.

I checked the status of bundle which export this class and it is active.

Thanks, Dipti

Jörg_Hoh
Employee
Employee

Hi,

what is this class "ABCClient" specifically? Is it a WCMUse Pojo, a SlingModel? Or just a random class which is referenced from your Javascript (?) models?

Jörg

diptinarang
Level 3
Level 3

Jörg Hoh wrote...

Hi,

what is this class "ABCClient" specifically? Is it a WCMUse Pojo, a SlingModel? Or just a random class which is referenced from your Javascript (?) models?

Jörg

 

It's a random class.

Thanks, Dipti

Jörg_Hoh
Employee
Employee

Hi Dipti,

does this happen only for some classes or for all? In any way I recommend you to open a ticket at Adobe support.

Jörg

Feike_Visser1
Employee
Employee

Can you also try to test this on a vanilla 6.2 instance?

diptinarang
Correct answer by
Level 3
Level 3

The issue is resolved by granting admin like rights to system user. But the error message thrown was bit misleading and that's why I suspected that issue is in sightly.

Thanks everyone for your valuable inputs.

View solution in original post

Feike_Visser1
Employee
Employee

You mean on the OS?, since 6.2/6.1 the compiled files are saved on the OS.