AEM 6.2: Exception when using foundation components in responsivegrid | Community
Skip to main content
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

FredrickDominy
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

amitshukla753
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.

manojs24803215
July 25, 2018

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

smacdonald2008
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.