Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2724

HstFilter throws NPE when no jcr session is available

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.28.00
    • 2.28.00-alpha-1, 2.28.00
    • None

    Description

      22.10.2013 14:05:53 WARN [org.hippoecm.hst.configuration.model.HstManagerImpl.synchronousBuild():294] Model was possibly not build correctly. A total rebuild will be done now after flushing all caches.
      org.hippoecm.hst.configuration.model.ModelLoadingException: Could not load hst node model due to Runtime Exception :
      at org.hippoecm.hst.configuration.model.HstManagerImpl.buildSites(HstManagerImpl.java:375)
      at org.hippoecm.hst.configuration.model.HstManagerImpl.synchronousBuild(HstManagerImpl.java:291)
      at org.hippoecm.hst.configuration.model.HstManagerImpl.getVirtualHosts(HstManagerImpl.java:274)
      at org.hippoecm.hst.container.HstFilter.doFilter(HstFilter.java:273)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.hippoecm.hst.container.XSSUrlFilter.doFilter(XSSUrlFilter.java:49)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: org.hippoecm.hst.configuration.model.ModelLoadingException: Repository exception while getting jcr session
      at org.hippoecm.hst.configuration.cache.HstNodeLoadingCache$LazyCloseableSession.getSession(HstNodeLoadingCache.java:203)
      at org.hippoecm.hst.configuration.cache.HstNodeLoadingCache.getNode(HstNodeLoadingCache.java:101)
      at org.hippoecm.hst.configuration.hosting.VirtualHostsService.<init>(VirtualHostsService.java:146)
      at org.hippoecm.hst.configuration.model.HstManagerImpl.buildSites(HstManagerImpl.java:353)
      ... 25 more
      Caused by: javax.jcr.LoginException: LoginModule could not perform authentication: Not initialized.
      at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1493)
      at org.hippoecm.repository.impl.RepositoryDecorator.login(RepositoryDecorator.java:58)
      at org.hippoecm.repository.HippoRepositoryImpl.login(HippoRepositoryImpl.java:110)
      at org.hippoecm.repository.HippoRepositoryImpl.login(HippoRepositoryImpl.java:127)
      at org.hippoecm.hst.core.jcr.pool.JcrHippoRepository.login(JcrHippoRepository.java:195)
      at org.hippoecm.hst.configuration.cache.HstNodeLoadingCache$LazyCloseableSession.getSession(HstNodeLoadingCache.java:201)
      ... 28 more
      Caused by: javax.security.auth.login.LoginException: LoginModule could not perform authentication: Not initialized.
      at org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:94)
      at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1465)
      ... 33 more
      Caused by: java.lang.IllegalStateException: Not initialized.
      at org.hippoecm.repository.security.user.AbstractUserManager.getUser(AbstractUserManager.java:147)
      at org.hippoecm.repository.security.SecurityManager.authenticate(SecurityManager.java:272)
      at org.hippoecm.repository.security.HippoLoginModule.login(HippoLoginModule.java:138)
      at org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:86)
      ... 34 more
      22.10.2013 14:05:53 WARN [org.hippoecm.hst.configuration.model.HstManagerImpl.invalidateAll():412] deprecated. Not used any more
      22.10.2013 14:05:53 WARN [org.hippoecm.hst.container.HstFilter.doFilter():509] Fatal error encountered while processing request '/site/':
      java.lang.NullPointerException
      at org.hippoecm.hst.container.HstFilter.doFilter(HstFilter.java:281)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.hippoecm.hst.container.XSSUrlFilter.doFilter(XSSUrlFilter.java:49)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)

      Attachments

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            bvdschans Bart van der Schans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: