[Hippo-cms7-user] Re: Adding a block to a generic page gives exception

Ard Schrijvers a.schrijvers at onehippo.com
Mon Feb 8 10:22:13 CET 2010


Hello Mansour,

I thought I fixed this some time ago already. I'll take a look at it
right now, and if not yet fixed, I'll make sure an empty
"hst:referencename" won't break anymore. If I cannot reproduce it I
think you were using an older version. I'll do a follow up with my
findings,

Regards Ard and thanks for pointing out the issue

On Sat, Feb 6, 2010 at 9:23 AM, Mansour Al Akeel
<mansour.alakeel at gmail.com> wrote:
> The issue resolved.
>
> When creating a new webpage or adding component/templates to it the HST
> editor adds the property "hst:referencename" to the corresponding node.
> This is what causing the issue in a webpage that acts as a generic page
> or a theme (ie, standard).
> When these properties are  deleted from the concole, it works fine.
>
> And by the way, the tutorial code at
> http://www.onehippo.org/site-toolkit/getting+started/start+project/document+list.html
> needs to import HippoFolderBean instead of HippoFolder.
>
> import org.hippoecm.hst.content.beans.standard.HippoFolder;
>
> Should be
>
> import org.hippoecm.hst.content.beans.standard.HippoFolderBean;
>
>
>
>
> On Fri Feb 05,2010 04:26 pm, Mansour Al Akeel wrote:
>> Hello All:
>>
>> I am working on a small site with HST. I have created the components I am
>> trying to move them to a generic page that works as a theme and
>> placeholder, where I can add the body/contens later in specific pages.
>> However, when I move a component (Block) from my HomePage to the generic component I get an
>> error when I try to view the site. I tried to track down this issue, and
>> got the demosuite running. I tried to remove and add again a component
>> (header) to the "standard" in the "Web Page Designer", and got the same issue.
>> I didn't change anything, just removed the header from
>> "Web Page Designer > standart" saved the parent node, and Added it back again.
>> am I missing something or doing something wrong ?
>>
>> 2010-02-05 16:09:10.471:/site:WARN:  HstContainerServlet: Fatal error encountered while processing request: org.hippoecm.hst.core.container.ContainerException: java.lang.NullPointerException
>> org.hippoecm.hst.core.container.ContainerException: java.lang.NullPointerException
>>       at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:68)
>>       at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:30)
>>       at org.hippoecm.hst.container.HstContainerServlet.doGet(HstContainerServlet.java:186)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>>       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
>>       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
>>       at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>       at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>       at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
>>       at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334)
>>       at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>>       at org.hippoecm.hst.container.HstVirtualHostsFilter.doFilter(HstVirtualHostsFilter.java:129)
>>       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
>>       at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
>>       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>>       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
>>       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
>>       at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>       at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>       at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
>>       at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>>       at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>       at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>       at org.mortbay.jetty.Server.handle(Server.java:326)
>>       at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>>       at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
>>       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
>>       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>>       at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>>       at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>       at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
>> Caused by: java.lang.NullPointerException
>>       at org.hippoecm.hst.core.container.ContextResolvingValve.invoke(ContextResolvingValve.java:67)
>>       at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:93)
>>       at org.hippoecm.hst.core.container.SiteResolvingValve.invoke(SiteResolvingValve.java:61)
>>       at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:93)
>>       at org.hippoecm.hst.core.container.HstURLValve.invoke(HstURLValve.java:48)
>>       at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:93)
>>       at org.hippoecm.hst.core.container.HstSitePipeline.invokeValves(HstSitePipeline.java:62)
>>       at org.hippoecm.hst.core.container.HstSitePipeline.invoke(HstSitePipeline.java:53)
>>       at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:64)
>>       ... 33 more
>> 2010-02-05 16:09:10.477::WARN:  /site/home
>> org.hippoecm.hst.core.container.ContainerException: java.lang.NullPointerException
>>       at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:68)
>>       at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:30)
>>       at org.hippoecm.hst.container.HstContainerServlet.doGet(HstContainerServlet.java:186)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>>       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
>>       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
>>       at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>       at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>       at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
>>       at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334)
>>       at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>>       at org.hippoecm.hst.container.HstVirtualHostsFilter.doFilter(HstVirtualHostsFilter.java:129)
>>       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
>>       at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
>>       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>>       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
>>       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
>>       at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>       at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>       at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
>>       at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>>       at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>>       at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>       at org.mortbay.jetty.Server.handle(Server.java:326)
>>       at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>>       at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
>>       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
>>       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>>       at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>>       at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>       at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
>> Caused by: java.lang.NullPointerException
>>       at org.hippoecm.hst.core.container.ContextResolvingValve.invoke(ContextResolvingValve.java:67)
>>       at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:93)
>>       at org.hippoecm.hst.core.container.SiteResolvingValve.invoke(SiteResolvingValve.java:61)
>>       at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:93)
>>       at org.hippoecm.hst.core.container.HstURLValve.invoke(HstURLValve.java:48)
>>       at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:93)
>>       at org.hippoecm.hst.core.container.HstSitePipeline.invokeValves(HstSitePipeline.java:62)
>>       at org.hippoecm.hst.core.container.HstSitePipeline.invoke(HstSitePipeline.java:53)
>>       at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:64)
>>       ... 33 more
>>
>>
>>
>> Thank you in advance.
>>
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html
>



More information about the Hippo-cms7-user mailing list