Null pointer exception on HstDelegateeFilterBeanb when Hippo 11 deployed to live server

37 views
Skip to first unread message

alasdair009

unread,
Dec 1, 2016, 11:44:35 AM12/1/16
to Hippo Community, robert.cu...@jagex.com
When our Hippo11 project is deployed to our live test server the following NPE is shown in the log...

01-Dec-2016 14:52:26.683 SEVERE [http-nio-8090-exec-9] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.ser
vice
() for servlet [default] in context with path [/site] threw exception
 java
.lang.NullPointerException
        at org
.hippoecm.hst.container.HstDelegateeFilterBean.doFilter(HstDelegateeFilterBean.java:199)
        at org
.hippoecm.hst.container.DelegatingFilter.doFilter(DelegatingFilter.java:84)
        at org
.hippoecm.hst.container.HstFilter.doFilter(HstFilter.java:51)
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org
.hippoecm.hst.container.XSSUrlFilter.doFilter(XSSUrlFilter.java:51)
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org
.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
        at org
.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org
.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
        at org
.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
        at org
.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
        at org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
        at org
.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
        at org
.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
        at org
.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
        at org
.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org
.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
        at org
.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
        at org
.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
        at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org
.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java
.lang.Thread.run(Thread.java:745)

This stops any of the site content being rendered but the CMS and CONSOLE can still be accessed

Victor Louie

unread,
Dec 1, 2016, 7:47:18 PM12/1/16
to Hippo Community, robert.cu...@jagex.com
Have you checked if your hst:hosts is setup correctly?


Take a look at the grey box.

Ard Schrijvers

unread,
Dec 2, 2016, 4:43:35 AM12/2/16
to hippo-c...@googlegroups.com
On Thu, Dec 1, 2016 at 5:44 PM, 'alasdair009' via Hippo Community
<hippo-c...@googlegroups.com> wrote:
> When our Hippo11 project is deployed to our live test server the following
> NPE is shown in the log...
>
> 01-Dec-2016 14:52:26.683 SEVERE [http-nio-8090-exec-9]
> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.ser
> vice() for servlet [default] in context with path [/site] threw exception
> java.lang.NullPointerException
> at
> org.hippoecm.hst.container.HstDelegateeFilterBean.doFilter(HstDelegateeFilterBean.java:199)
> at

This is quite odd because it would imply
org.hippoecm.hst.configuration.model.HstManagerImpl#getVirtualHosts(boolean)
returns null. Can you look at the logs *before* you get the NPE? Most
likely something fails during loading the hst model. The logging about
loading the model is quite explanatory and pretty much always telling
where to find the culprit

HTH,

Regards Ard
> --
> Hippo Community Group: The place for all discussions and announcements about
> Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to hippo-c...@googlegroups.com
> RSS:
> https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> ---
> You received this message because you are subscribed to the Google Groups
> "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hippo-communi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/hippo-community.
> For more options, visit https://groups.google.com/d/optout.



--
Hippo Netherlands, Oosteinde 11, 1017 WT Amsterdam, Netherlands
Hippo USA, Inc. 71 Summer Street, 2nd Floor Boston, MA 02110, United
states of America.

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
Reply all
Reply to author
Forward
0 new messages