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:
Solved! Go to Solution.
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.
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
It is happening for all classes.
Views
Replies
Total Likes
Can you also try to test this on a vanilla 6.2 instance?
Views
Replies
Total Likes
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.
You mean on the OS?, since 6.2/6.1 the compiled files are saved on the OS.
Views
Replies
Total Likes
Views
Likes
Replies