AEM 6.2: Exception when using foundation components in responsivegrid | Community
Skip to main content
Level 2
Oct 17, 2016 11:32 AM UTC
Solved

AEM 6.2: Exception when using foundation components in responsivegrid

I get a class not found for ValueMap when adding a foundation component to responsivegrid. My custom components however work fine and all Sling bundles are activated. Any ideas whats wrong?

 

17.10.2016 13:28:26.103 *ERROR* [0:0:0:0:0:0:0:1 [1476703706098] GET /content/sample2/en/home/jcr:content/root/responsivegrid/columns_2/par_col2_1/text.html HTTP/1.1] org.apache.sling.scripting.javascript.wrapper.ScriptableResource Unable to adapt object.
java.lang.ClassNotFoundException: [JavaPackage org.apache.sling.api.resource.ValueMap]
    at org.apache.sling.commons.classloader.impl.ClassLoaderFacade.loadClass(ClassLoaderFacade.java:149)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.apache.sling.scripting.javascript.wrapper.ScriptableResource.jsFunction_adaptTo(ScriptableResource.java:298)
    at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:387)...

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 19, 2016 2:09 PM UTC

THis looks like some sort of bug. I would report this by opening a ticket. 

16 replies

smacdonald2008
Level 10
Jul 25, 2018 3:07 PM UTC

As I mentioned earlier - best to talk to support via a ticket. Most of the community is on newer AEM versions and using HTL/Core components vs Foundation components.

Translate
manojs24803215
New Participant
Jul 25, 2018 1:57 PM UTC

I have also faced the same issue,any update from support team

Translate
amitshukla753
New Participant
Jul 23, 2018 9:34 AM UTC

Do we have any solution for this now?
I am getting this and tried all the suggestion given here not working for me.

Translate
FredrickDominy
New Participant
Feb 3, 2018 5:02 PM UTC

I had the same exception crop up mysteriously too. It bugged our dev server but locally everything was fine.  The problem was resolved by hitting the Refresh Packages button in /system/console/configMgr

Translate
SDharmaraj
Level 2
Feb 1, 2018 8:20 PM UTC

Thanks benjamin.cherian . I also faced the same issue and i did Offline compaction , the issue resolved. This issue started after installing SP1 & CFP1 on top of AEM6.3.

Translate
New Participant
Dec 13, 2017 3:46 PM UTC

did you ever get this resolve. We are facing the same issue in our AEM 6.3 env. It seems to only happen after package installation.

Translate
benjamin_cheria
Level 2
Oct 4, 2017 7:37 PM UTC

I ran into this issue today using AEM 6.3 with Oak 1.6.3. Resolved it by running offline compaction. Not sure why this happened. I had added some package dependencies and then removed them before the issue started.

Translate
Employee
Jun 21, 2020 5:15 AM UTC
Thanks benjamin. running offline compaction helped get rid-off of this exception for me too.
Translate
Level 2
Jul 19, 2017 11:27 AM UTC

Has there been any response from the dev team? I am facing the same issue on o.t.b. image and richtext components.

I am using AEM 6.3

Translate
Level 2
Jul 19, 2017 11:24 AM UTC

We are also facing the same issue on foundation image and richtext components. Class Not Found exception on ValueMap.

Translate
Level 3
Jul 12, 2017 4:39 AM UTC

Hi,

Is this issue resolved? We are facing same issue in one of our dev environments while it works fine in local instances.

Thanks,

Srikanth

Translate