AEM 6.2: Exception when using foundation components in responsivegrid | Community
Skip to main content
New Participant
October 17, 2016
Solved

AEM 6.2: Exception when using foundation components in responsivegrid

  • October 17, 2016
  • 14 replies
  • 9691 views

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.
Best answer by smacdonald2008

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

14 replies

smacdonald2008
New Participant
July 25, 2018

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.

manojs24803215
New Participant
July 25, 2018

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

amitshukla753
New Participant
July 23, 2018

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

FredrickDominy
New Participant
February 3, 2018

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

SDharmaraj
New Participant
February 1, 2018

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.

New Participant
December 13, 2017

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.

benjamin_cheria
New Participant
October 4, 2017

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.

Employee
June 21, 2020
Thanks benjamin. running offline compaction helped get rid-off of this exception for me too.
New Participant
July 19, 2017

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

New Participant
July 19, 2017

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

New Participant
July 12, 2017

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