Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM 6.4 Content fragment proxy component

Avatar

Level 4

Hi All, I am trying to use the contentfragment component (core component) in my project. Below are the steps that I followed.

1. Created an aem project using archetype 15.

2. Created a new content fragment proxy component  as below.

1667064_pastedImage_0.png

3. Created  a new editable template from the empty page template that was created by the archetype .

4. Created a new policy and enabled the newly created content fragment component.

5. Create the page using the template created in step 4.

6. Edit the page and add the content fragment component.  This is giving the below error.

Core component version: 2.2.0

AEM version : 6.4

Am is missing any steps??

Error during include of component '/apps/zzzzz/components/content/contentfragment'

Error Message:

org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment_html.java:Line 28, column 1306 : Only a type can be imported. com.adobe.cq.wcm.core.components.extension.contentfragment.models.ContentFragment resolves to a packageLine 47, column 2092 : ContentFragment cannot be resolved to a type

Processing Info:

Page

=

/content/zzzzz/thirdResource Path

=

/content/zzzzz/third/jcr:content/root/contentfragmentCell

=

contentfragmentCell Search Path

=

page|basicpage/root|responsivegrid/contentfragmentComponent Path

=

/apps/zzzzz/components/content/contentfragmentSling Request Progress:

      0 TIMER_START{Request Processing}      8 COMMENT timer_end format is {<elapsed microseconds>,<timer name>} <optional message>     45 LOG Method=GET, PathInfo=null    106 TIMER_START{ResourceResolution}    448 TIMER_END{338,ResourceResolution} URI=/content/zzzzz/third/jcr:content/root/contentfragment.html resolves to Resource=JcrNodeResource, type=zzzzz/components/content/contentfragment, superType=null, path=/content/zzzzz/third/jcr:content/root/contentfragment    459 LOG Resource Path Info: SlingRequestPathInfo: path='/content/zzzzz/third/jcr:content/root/contentfragment', selectorString='null', extension='html', suffix='null'    460 TIMER_START{ServletResolution}    465 TIMER_START{resolveServlet(/content/zzzzz/third/jcr:content/root/contentfragment)}    488 TIMER_END{20,resolveServlet(/content/zzzzz/third/jcr:content/root/contentfragment)} Using servlet /apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment.html    495 TIMER_END{34,ServletResolution} URI=/content/zzzzz/third/jcr:content/root/contentfragment.html handled by Servlet=/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment.html    500 LOG Applying Requestfilters    506 LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl    518 LOG Calling filter: org.apache.sling.security.impl.ContentDispositionFilter    524 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter    527 LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter    565 LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter    570 LOG Calling filter: com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker    576 LOG Calling filter: com.adobe.cq.history.impl.HistoryRequestFilter    798 LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter    819 LOG Calling filter: com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet    826 LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter    834 LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet    838 LOG Calling filter: com.adobe.cq.social.commons.cors.CORSAuthenticationFilter    846 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter    850 LOG Calling filter: com.xyz.cms.assets.zzzzz.core.filters.LoggingFilter    856 LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter    861 LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl    870 LOG Calling filter: com.adobe.granite.csrf.impl.CSRFFilter    875 LOG Calling filter: com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter    881 LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl    892 LOG Calling filter: com.adobe.granite.rest.impl.servlet.ApiResourceFilter   1097 LOG Calling filter: com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler   1102 LOG Calling filter: com.day.cq.dam.core.impl.servlet.ActivityRecordHandler   1126 LOG Calling filter: com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet   1133 LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter   1142 LOG Applying Componentfilters   1144 LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter   1148 LOG Calling filter: com.day.cq.wcm.core.impl.PageLockFilter   1152 LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter   1816 LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter   1829 TIMER_START{/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment.html#0}  77168 LOG SCRIPT ERROR: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment_html.java:/Line 28, column 1306 : Only a type can be imported. com.adobe.cq.wcm.core.components.extension.contentfragment.models.ContentFragment resolves to a package/Line 47, column 2092 : ContentFragment cannot be resolved to a type  77296 TIMER_END{75464,/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment.html#0}  85791 LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html], order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobile: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=mobiledebug, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobiledebug: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=contentsync, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-contentsync: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), serializer=Config(type=htmlwriter, config={}))}  86132 TIMER_END{86128,Request Processing} Dumping SlingRequestProgressTracker Entries

Full Exception:

org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment_html.java:Line 28, column 1306 : Only a type can be imported. com.adobe.cq.wcm.core.components.extension.contentfragment.models.ContentFragment resolves to a packageLine 47, column 2092 : ContentFragment cannot be resolved to a typeat org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:510)at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552)at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:192)at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:159)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:375)at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:190)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.PageLockFilter.doFilter(PageLockFilter.java:91)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:282)at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:71)at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:109)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet.doFilter(SaferSlingPostServlet.java:114)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at com.day.cq.dam.core.impl.servlet.ActivityRecordHandler.doFilter(ActivityRecordHandler.java:154)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler.doFilter(AdhocAssetShareAuthHandler.java:437)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.rest.impl.servlet.ApiResourceFilter.doFilter(ApiResourceFilter.java:70)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.requests.logging.impl.RequestLoggerImpl.doFilter(RequestLoggerImpl.java:134)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter.doFilter(AssetContentDispositionFilter.java:96)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.csrf.impl.CSRFFilter.doFilter(CSRFFilter.java:217)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.java:372)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:248)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.xyz.cms.assets.zzzzz.core.filters.LoggingFilter.doFilter(LoggingFilter.java:56)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:107)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at com.adobe.cq.social.commons.cors.CORSAuthenticationFilter.doFilter(CORSAuthenticationFilter.java:91)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:226)at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:138)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:76)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:226)at com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet.doFilter(CoreFormHandlingServlet.java:126)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:122)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker.doFilter(CampaignCopyTracker.java:100)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:87)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:81)at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:60)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:131)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.security.impl.ContentDispositionFilter.doFilter(ContentDispositionFilter.java:152)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.doFilter(ResourceResolverHelperImpl.java:83)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:151)at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:247)at com.adobe.cq.dam.cfm.impl.updateprocessor.modules.PreRenderModule.render(PreRenderModule.java:36)at com.adobe.cq.dam.cfm.impl.updateprocessor.modules.PreRenderModule.process(PreRenderModule.java:51)at com.adobe.cq.dam.cfm.impl.updateprocessor.ProcessorImpl.process(ProcessorImpl.java:143)at com.adobe.cq.dam.cfm.impl.updateprocessor.InstanceUpdaterImpl.execute(InstanceUpdaterImpl.java:56)at com.adobe.cq.dam.cfm.impl.servlets.FragmentInstancePostProcessor.process(FragmentInstancePostProcessor.java:138)at org.apache.sling.servlets.post.impl.operations.AbstractPostOperation.run(AbstractPostOperation.java:104)at org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:228)at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:146)at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:342)at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:374)at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552)at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:156)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:375)at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:190)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.PageLockFilter.doFilter(PageLockFilter.java:91)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:282)at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:71)at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:109)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet.doFilter(SaferSlingPostServlet.java:126)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at com.day.cq.dam.core.impl.servlet.ActivityRecordHandler.doFilter(ActivityRecordHandler.java:154)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.dam.core.impl.assetlinkshare.AdhocAssetShareAuthHandler.doFilter(AdhocAssetShareAuthHandler.java:437)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.rest.impl.servlet.ApiResourceFilter.doFilter(ApiResourceFilter.java:70)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.requests.logging.impl.RequestLoggerImpl.doFilter(RequestLoggerImpl.java:134)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.rest.assets.impl.AssetContentDispositionFilter.doFilter(AssetContentDispositionFilter.java:96)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.csrf.impl.CSRFFilter.doFilter(CSRFFilter.java:217)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.java:372)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:248)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.xyz.cms.assets.zzzzz.core.filters.LoggingFilter.doFilter(LoggingFilter.java:56)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:107)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at com.adobe.cq.social.commons.cors.CORSAuthenticationFilter.doFilter(CORSAuthenticationFilter.java:91)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:226)at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:138)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:76)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.foundation.forms.FormsHandlingServletHelper.handleFilter(FormsHandlingServletHelper.java:226)at com.adobe.cq.wcm.core.components.internal.servlets.CoreFormHandlingServlet.doFilter(CoreFormHandlingServlet.java:126)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:122)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.cq.mcm.campaign.servlets.CampaignCopyTracker.doFilter(CampaignCopyTracker.java:100)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:87)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:81)at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:60)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:131)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.security.impl.ContentDispositionFilter.doFilter(ContentDispositionFilter.java:152)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.doFilter(ResourceResolverHelperImpl.java:83)at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:151)at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:234)at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:120)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:86)at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:328)at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:96)at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:131)at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)at org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:116)at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:72)at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)at org.apache.sling.engine.impl.parameters.RequestParameterSupportConfigurer.doFilter(RequestParameterSupportConfigurer.java:63)at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)at org.apache.felix.http.base.internal.dispatch.Dispatcher$1.doFilter(Dispatcher.java:147)at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager.invokePreprocessors(WhiteboardManager.java:1000)at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:91)at org.apache.felix.http.base.internal.dispatch.DispatcherServlet.service(DispatcherServlet.java:49)at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)at org.eclipse.jetty.server.Server.handle(Server.java:534)at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)at java.lang.Thread.run(Unknown Source)Caused by: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment_html.java:Line 28, column 1306 : Only a type can be imported. com.adobe.cq.wcm.core.components.extension.contentfragment.models.ContentFragment resolves to a packageLine 47, column 2092 : ContentFragment cannot be resolved to a typeat org.apache.sling.scripting.sightly.impl.engine.SightlyJavaCompilerService.compileSource(SightlyJavaCompilerService.java:183)at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.internalCompile(SightlyScriptEngine.java:157)at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.compile(SightlyScriptEngine.java:89)at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:379)at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184)at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491)... 205 moreCaused by: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/core/wcm/extension/components/contentfragment/v1/contentfragment/contentfragment_html.java:Line 28, column 1306 : Only a type can be imported. com.adobe.cq.wcm.core.components.extension.contentfragment.models.ContentFragment resolves to a packageLine 47, column 2092 : ContentFragment cannot be resolved to a typeat org.apache.sling.scripting.sightly.impl.engine.SightlyJavaCompilerService.compileSource(SightlyJavaCompilerService.java:173)... 210 more

1 Accepted Solution

Avatar

Correct answer by
Level 10

It works fine on We-retail site

v2.2.0 goes with 6.4.2.0 and extension v1.0.8

check if the versions are appropriate for mvn, java, libraries in pom.xml for your custom project

bounce the server and check if it resolves or try we-retail one if it works?

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

It works fine on We-retail site

v2.2.0 goes with 6.4.2.0 and extension v1.0.8

check if the versions are appropriate for mvn, java, libraries in pom.xml for your custom project

bounce the server and check if it resolves or try we-retail one if it works?

Avatar

Level 4

Can you check if all the bundles are running in felix console? Also what was the core component version before installing the archetype 15 project.

Avatar

Level 4

All, Tried creating the project with Archetype 13 (This had the core component version 2.0.4) and this seems to be working with AEM 6.4 + SP 6.4.3.