Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
HST Sitemap Component 1.03.02
Hippo CMS 7.8.2
Description
I'm trying to enable the "HST Sitemap Crawler" [1] in a 7.8.2-based project.
I added the HST Sitemap Component to the cms and site modules as
instructed at [2]. This adds some HST configuration, apparently
defaulting to the "Basic Sitemap" when I request /sitemap.xml.
[1] actually does not mention how to change this into "HST Sitemap
Crawler". I assume I need to change
/hst:hst/hst:configurations/hst:default/hst:sitemap/sitemap.xml/@componentconfigurationid
into 'hst:components/forge-sitemap-based-on-hst-configuration-feed',
so I did. According to [1], there are no required parameters, so I
added none. This results in an NPE when I request /sitemap.xml:
INFO] [talledLocalContainer] 21.05.2013 10:25:59 WARN
[org.hippoecm.hst.core.container.HstComponentInvokerImpl.invokeBeforeRender():151]
Component exception caught on window
forge-sitemap-based-on-hst-configuration-feed with component
org.onehippo.forge.sitemap.components.SitemapFeedBasedOnHstSitemap:
java.lang.NullPointerException at
org.onehippo.forge.sitemap.components.SitemapFeedBasedOnHstSitemap.createSitemapGenerator(SitemapFeedBasedOnHstSitemap.java:111)
Could it be that this component is not compatible with 7.8? Looking at
the code, a SiteMapFeedBasedOnHstSiteMapParameters object seems to be
null. It is retrieved using a deprecated method
org.hippoecm.hst.component.support.bean.BaseHstComponent.getParametersInfo(HstRequest).
[1] http://sitemap.forge.onehippo.org/hstsitemapcrawler.html
[2] http://sitemap.forge.onehippo.org/usage.html