Site becomes disconnected from CMS repository and without CSS

73 views
Skip to first unread message

Rakesh Kumar

unread,
Dec 10, 2017, 10:20:21 PM12/10/17
to Hippo Community
After running for a while site looses the connection to the repository and renders ftl without css styling.  Below is the log:

[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.922 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [cms] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.979 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cms] appears to have started a thread named [Transient File Reaper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
[INFO] [talledLocalContainer]  java.lang.Object.wait(Native Method)
[INFO] [talledLocalContainer]  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
[INFO] [talledLocalContainer]  java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
[INFO] [talledLocalContainer]  org.apache.jackrabbit.util.TransientFileFactory$ReaperThread.run(TransientFileFactory.java:192)
[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.980 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cms] appears to have started a thread named [Wicket-PageSavingThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
[INFO] [talledLocalContainer]  sun.misc.Unsafe.park(Native Method)
[INFO] Scanning for projects...
[INFO] [talledLocalContainer]  java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
[INFO] [talledLocalContainer]  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
[INFO] [talledLocalContainer]  java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
[INFO] [talledLocalContainer]  org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:345)
[INFO] [talledLocalContainer]  java.lang.Thread.run(Thread.java:748)
[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.980 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cms] appears to have started a thread named [Wicket-PageSavingThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
[INFO] [talledLocalContainer]  sun.misc.Unsafe.park(Native Method)
[INFO] [talledLocalContainer]  java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
[INFO] [talledLocalContainer]  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [cms] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped.[INFO] [talledLocalContainer]  java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
[INFO] [talledLocalContainer]  org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:345)
[INFO] [talledLocalContainer]  java.lang.Thread.run(Thread.java:748)
[INFO] [talledLocalContainer] 09-Dec-2017 09:31:47.945 INFO [http-nio-8080-exec-1] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/cms]
[INFO] [talledLocalContainer] 09-Dec-2017 09:31:54.035 INFO [http-nio-8080-exec-9] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/ec2-user/NewSLJ/sljtv/newsljtv/target/tomcat8x/webapps/cms.war
[INFO] [talledLocalContainer] 09-Dec-2017 09:32:01.634 INFO [http-nio-8080-exec-9] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/ec2-user/NewSLJ/sljtv/newsljtv/target/tomcat8x/webapps/cms.war has finished in 7,599 ms
[INFO] [talledLocalContainer] 09.12.2017 09:32:09 WARN  EventListenersContainerSessionChecker-1 [EventListenersContainerImpl.doInit:304] The repository is not available. It will try initialization next time. javax.jcr.RepositoryException: javax.jcr.LoginException: Failed to borrow session from the pool. javax.jcr.RepositoryException: Repository not initialized yet.
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 WARN  http-nio-8080-exec-8 [HstComponentInvokerImpl.invokeBeforeRender:158] Component exception caught on window videopage with component org.newslj.components.SljvController: java.lang.IllegalStateException: Cannot get ObjectBeanManager. Cause : 'javax.jcr.RepositoryException: javax.jcr.LoginException: Failed to borrow session from the pool. javax.jcr.RepositoryException: Repository not initialized yet.' at org.hippoecm.hst.site.request.HstRequestContextImpl.getObjectBeanManager(HstRequestContextImpl.java:801)
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 WARN  http-nio-8080-exec-8 [AbstractBaseOrderableValve.handleComponentExceptions:299] Component exception(s) found in page request, 'Request{ method='GET', scheme='http', host='tv.slj.com', requestURI='/site/', queryString='null'}'.
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 WARN  http-nio-8080-exec-8 [DefaultPageErrorHandler.logWarningsForEachComponentExceptions:51] Component exception on org.newslj.components.SljvController : java.lang.IllegalStateException: Cannot get ObjectBeanManager. Cause : 'javax.jcr.RepositoryException: javax.jcr.LoginException: Failed to borrow session from the pool. javax.jcr.RepositoryException: Repository not initialized yet.'
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 ERROR http-nio-8080-exec-8 [HstWebFileTag.doEndTag:136] Missing service for 'org.onehippo.cms7.services.webfiles.WebFilesService'. Cannot create web file url.
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 ERROR http-nio-8080-exec-8 [HstWebFileTag.doEndTag:136] Missing service for 'org.onehippo.cms7.services.webfiles.WebFilesService'. Cannot create web file url.
[INFO] [talledLocalContainer] 09.12.2017 09:32:23 ERROR http-nio-8080-exec-8 [HstWebFileTag.doEndTag:136] Missing service for 'org.onehippo.cms7.services.webfiles.WebFilesService'. Cannot create web file url.

The site was running fine for a while but suddenly started behaving like this. I have also attached the log file. Can anybody please help me?
nohup.out

Jeroen Hoffman

unread,
Dec 11, 2017, 3:32:02 AM12/11/17
to hippo-c...@googlegroups.com
Hi,
Seems that the cms war, that includes the repository, was shut down somehow: "org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/cms]". 

HTH
Jeroen

--
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-community@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-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

Minos Chatzidakis

unread,
Dec 11, 2017, 5:53:15 AM12/11/17
to Hippo Community
Hi,

On Mon, Dec 11, 2017 at 9:31 AM, Jeroen Hoffman <jeroen....@bloomreach.com> wrote:
Hi,
Seems that the cms war, that includes the repository, was shut down somehow: "org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/cms]". 

Plus, it didn't shut down properly:

[WARNING] [talledLocalContainer] 09-Dec-2017 09:31:46.922 WARNING [http-nio-8080-exec-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [cms] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. 

And then the container decided to unregister the db driver (which obviously makes a Repository not available, then you get "Repository not initialized yet"):

To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

I'd suggest you stop Tomcat, take a look at running processes for anything suspicious and then start Tomcat
--



Minos Chatzidakis

Product consultant

email-sig-logo.png

p.

e.

+31 20 522 44 66 

minos.chatzidakis@bloomreach.com

_________________________________________________________________________________

Rakesh Kumar

unread,
Dec 11, 2017, 3:37:15 PM12/11/17
to Hippo Community
Thank you for the response.
Any Plausible reason why the CMS would be abruptly shutting down? Or could you please let me know what I should verify or check to identify the issue?
 
Rakesh
Hi,

 

HTH
Jeroen

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.

--
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.



--



Minos Chatzidakis

Product consultant

email-sig-logo.png

p.

e.

+31 20 522 44 66 

_________________________________________________________________________________

Marijan Milicevic

unread,
Dec 11, 2017, 5:15:03 PM12/11/17
to hippo-c...@googlegroups.com
On Mon, Dec 11, 2017 at 9:37 PM, Rakesh Kumar <rakesh...@gmail.com> wrote:
Thank you for the response.
Any Plausible reason why the CMS would be abruptly shutting down? Or could you please let me know what I should verify or check to identify the issue?
 

well,, this is your local environment, so, rebuilding your project etc. can cause the issue. 
If you need to have a stable environment, you will need separate tomcat/mysql configuration [1], debugging local cargo setup wouldn't be my priority 
(unless it  crashes so often that you can't test anything)
cheers
marijan

 
To post to this group, send email to hippo-community@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-community+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages