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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Issue in sightly component after upgrade from 6.0 to 6.2

Avatar

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

Avatar

Correct answer by
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

Avatar

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.

Avatar

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

Avatar

Employee Advisor

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

Avatar

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

Avatar

Employee Advisor

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

Avatar

Correct answer by
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.

Avatar

Employee

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