8 Replies Latest reply on Mar 15, 2012 9:31 AM by MatheusOliveira

    Generic Error at Image Mapping at CRXDE Component Extractor

    MatheusOliveira Level 1

      When I try to map a image from this website I just imported at CRXDE Lite at CQ5.4 (Component Extractor), I got this generic error message.

      I've already try to map the image with image component, flash component and others, everytime with the same error.

      Both the component folder and the Path folder exists. Can somebody help me?

       

      Imagem mapping.jpg

        • 1. Re: Generic Error at Image Mapping at CRXDE Component Extractor
          MatheusOliveira Level 1

          And more, happens to all imagens, text or any other componet I try to map.

          • 2. Re: Generic Error at Image Mapping at CRXDE Component Extractor
            hypnotec Adobe Employee

            please provide the error.log output for the affected action.

            • 3. Re: Generic Error at Image Mapping at CRXDE Component Extractor
              MatheusOliveira Level 1

              Here's the error.log output for this situation:

               

               

              14.03.2012 14:43:04.060 *ERROR* [0:0:0:0:0:0:0:1 [1331746984029] POST /libs/wcm/bin/siteimporter/generate HTTP/1.1] com.day.cq.wcm.siteimporter.servlet.PageGeneratorServlet Could not generate page component java.lang.IllegalArgumentException: relPath is not a relative path: {}{}etc{}designs{}logo.jpg
              at org.apache.jackrabbit.spi.commons.name.PathFactoryImpl.create(PathFactoryImpl.java:47)
              at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:62)
              at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:37)
              at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
              at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
              at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java:1783)
              at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1735)
              at com.day.cq.wcm.siteimporter.util.PageGenerator.replace(PageGenerator.java:175)
              at com.day.cq.wcm.siteimporter.servlet.PageGeneratorServlet.doPost(PageGeneratorServlet.java :113)
              at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.ja va:148)
              at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)
              at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)
              at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:529)
              at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
              at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )
              at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:269)
              at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
              at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:185)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:119)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:84)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:161)
              at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:183)
              at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)
              at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
              at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)
              at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
              at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
              at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
              at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)
              at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:148)
              at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:228)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
              at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)
              at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)
              at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)
              at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)
              at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )
              at java.lang.Thread.run(Unknown Source)

               

               

              I've already tried the follow paths to my component:

               

                /etc/designs/

                /etc/designs (with and without last character "/")

                /etc/designs/logo.jpg

                /etc/designs/test (with and without last character "/")

                /etc/designs/test/logo.jpg

               

              Can anybody help me figure out what's going on?

               

              Thanks.

              • 4. Re: Generic Error at Image Mapping at CRXDE Component Extractor
                MatheusOliveira Level 1

                I got another try, removing the first "/", and there is another exception in the log:

                 

                 

                14.03.2012 15:07:56.028 *ERROR* [0:0:0:0:0:0:0:1 [1331748475903] POST /libs/wcm/bin/siteimporter/generate HTTP/1.1] com.day.cq.wcm.siteimporter.servlet.PageGeneratorServlet Could not generate page component java.lang.NullPointerException

                    at com.day.cq.wcm.siteimporter.util.PageGenerator.generate(PageGenerator.java:304)

                    at com.day.cq.wcm.siteimporter.servlet.PageGeneratorServlet.doPost(PageGeneratorServlet.java :116)

                    at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.ja va:148)

                    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)

                    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)

                    at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:529)

                    at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

                    at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )

                    at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:269)

                    at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

                    at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:185)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:119)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:84)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)

                    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                    at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:161)

                    at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:183)

                    at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

                    at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

                    at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

                    at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

                    at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                    at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

                    at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

                    at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

                    at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

                    at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)

                    at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:148)

                    at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:228)

                    at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)

                    at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)

                    at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)

                    at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)

                    at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)

                    at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)

                    at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)

                    at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )

                    at java.lang.Thread.run(Unknown Source)

                • 5. Re: Generic Error at Image Mapping at CRXDE Component Extractor
                  hypnotec Adobe Employee

                  if you could also provide a screenshot of the site importer entry form with the used configuration so i may reproduce locally.

                  • 6. Re: Generic Error at Image Mapping at CRXDE Component Extractor
                    MatheusOliveira Level 1

                    Hypnotec,

                     

                    I only imported the website directly from an url and went to this screen. Below the steps to get the error:

                     

                    • Click on the "Select" option, in the superior menu;
                    • Select the logo image (or any other component of the page);
                    • Drag and drop the "Image" componente from the left menu on the image at the webpage;
                    • Automatically, the CRX generates the Mapping properties in the bottom menu (except by the path, that you must input);
                    • After input a path (already tried a lot of paths, everytime with some existing directory), click on the button "Generate", and the error dialog just show up after

                    nearly two second of processing (Generate Page Pop-up)

                     

                    Windows Server 2008-2012-03-15-12-34-48.png

                     

                    Windows Server 2008-2012-03-15-12-40-31.png

                     

                    Maybe i'm doing something wrong or forgetting some step, in the dev.day site there is just a superficial tutorial, telling me to exactly this, but don't telling

                    how to choose a "right" path, a valid one.

                     

                    So, any help is a lot welcome.

                     

                    Thanks very much.

                    • 7. Re: Generic Error at Image Mapping at CRXDE Component Extractor
                      hypnotec Adobe Employee

                      you are misunderstanding the "Path" field for the mapping entry. read [0].

                       

                      the path specifies the name of the node under which the content of the component you mapped will be stored. so for the image, e.g. enter "image". it is not a reference to a design page or anything. the path must not contain slashes (i admit the name "path" is confusing here").

                       

                      [0] http://dev.day.com/docs/en/cq/current/developing/site_importer.html#Creating a Mapping to a Component

                      • 8. Re: Generic Error at Image Mapping at CRXDE Component Extractor
                        MatheusOliveira Level 1

                        Hypnotec,

                         

                        Exactly!

                         

                        Works perfectly now.

                         

                        Thank you very much for your help and patience.