<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Failure to start/restart Mango - thread exception]]></title><description><![CDATA[<p dir="auto">I'm running Mango 2.7.10 on the Raspberry Pi version 4.1.18-v7+. I originally had a startup problem about a month ago but after that the system ran OK - until yesterday.</p>
<p dir="auto">Yesterday it became non-responsive. Restarting Mango was not successful. I also restarted Linux several times - to no avail. Mango is set to auto-start on bootup too - and, of course, it didn't.</p>
<p dir="auto">I see the following in my command window after startup.</p>
<p dir="auto">INFO  2016-04-20 13:33:59,593 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...<br />
Exception in thread "high-pool-1-thread-2" java.lang.NullPointerException<br />
at com.serotonin.m2m2.CoreLicenseDefinition$2.run(CoreLicenseDefinition.java:149)<br />
at com.serotonin.timer.sync.Synchronizer$TaskWrapper.run(Synchronizer.java:155)<br />
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br />
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br />
at java.lang.Thread.run(Thread.java:745)<br />
INFO  2016-04-20 13:33:59,726 (com.serotonin.m2m2.Lifecycle.terminate:446) - Mango Lifecycle terminated.<br />
INFO  2016-04-20 13:33:59,731 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...<br />
ma-start: no restart flag found, not restarting MA<br />
ma-start: MA done</p>
<p dir="auto"><strong>The ma.log file now shows this...</strong></p>
<pre><code>at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
... 12 more
</code></pre>
<p dir="auto">INFO  2016-04-20 13:33:59,593 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...<br />
INFO  2016-04-20 13:33:59,726 (com.serotonin.m2m2.Lifecycle.terminate:446) - Mango Lifecycle terminated.<br />
INFO  2016-04-20 13:33:59,731 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...</p>
<p dir="auto"><strong>Earlier the startup process showed this...</strong></p>
<p dir="auto">INFO  2016-04-20 13:33:59,593 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...<br />
Exception in thread "high-pool-1-thread-2" java.lang.NullPointerException<br />
at com.serotonin.m2m2.CoreLicenseDefinition$2.run(CoreLicenseDefinition.java:149)<br />
at com.serotonin.timer.sync.Synchronizer$TaskWrapper.run(Synchronizer.java:155)<br />
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br />
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br />
at java.lang.Thread.run(Thread.java:745)<br />
INFO  2016-04-20 13:33:59,726 (com.serotonin.m2m2.Lifecycle.terminate:446) - Mango Lifecycle terminated.<br />
INFO  2016-04-20 13:33:59,731 (com.serotonin.m2m2.Lifecycle.terminate:344) - Mango Lifecycle terminating...<br />
ma-start: no restart flag found, not restarting MA<br />
ma-start: MA done</p>
<p dir="auto">I was suspicious of the "high-pool-1-thread-2" exception. Just before it would not run properly I noticed a total Exceptions of about 27,000 - which seemed like a huge number.</p>
<p dir="auto">Meanwhile the H2 database is up to 593 MB, which I assume is partly because of the alerts (alerts may be the wrong word - maybe "exceptions")  logged within.</p>
<p dir="auto">Questions:</p>
<ul>
<li>
<p dir="auto">Any comment on the "high-pool..." exception? Could it be caused by the large number of alerts?</p>
</li>
<li>
<p dir="auto">Is there any way to clean out the alerts manually?</p>
</li>
</ul>
<p dir="auto">Any suggestions to fix this problem?</p>
]]></description><link>https://forum.mango-os.com/topic/2222/failure-to-start-restart-mango-thread-exception</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 19:43:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2222.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Apr 2016 17:54:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Failure to start/restart Mango - thread exception on Thu, 21 Apr 2016 20:22:55 GMT]]></title><description><![CDATA[<p dir="auto">This should help:  <a href="http://help.infiniteautomation.com/m/55730/l/519384-about-the-h2-database" rel="nofollow ugc">http://help.infiniteautomation.com/m/55730/l/519384-about-the-h2-database</a></p>
]]></description><link>https://forum.mango-os.com/post/11464</link><guid isPermaLink="true">https://forum.mango-os.com/post/11464</guid><dc:creator><![CDATA[JoelHaggar]]></dc:creator><pubDate>Thu, 21 Apr 2016 20:22:55 GMT</pubDate></item><item><title><![CDATA[Reply to Failure to start/restart Mango - thread exception on Thu, 21 Apr 2016 20:21:01 GMT]]></title><description><![CDATA[<p dir="auto">I was able to access the database using H2 db tools. However I'm unable to see the data tables. Below is a snapshot of my connection.<br />
![alt text](<img src="https://camo.nodebb.org/20b8a7df2518974966476ab2d711ea6442ff8066?url=https%3A%2F%2Fi.imgur.com%2F3FbXzVX.png" alt="0_1461269857704_Screen Shot 2016-04-21 at 4.10.26 PM.png" class=" img-fluid img-markdown" /> image url)</p>
<p dir="auto">Here's what I see after connecting:<br />
<img src="https://camo.nodebb.org/bc0372d1dfa020e3048df8255342030ec7295f67?url=https%3A%2F%2Fi.imgur.com%2FEUr4F77.png" alt="0_1461270014566_Screen Shot 2016-04-21 at 4.03.50 PM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What am I missing? Why don't the data tables show up as in your example?</p>
]]></description><link>https://forum.mango-os.com/post/11463</link><guid isPermaLink="true">https://forum.mango-os.com/post/11463</guid><dc:creator><![CDATA[mlavelle42]]></dc:creator><pubDate>Thu, 21 Apr 2016 20:21:01 GMT</pubDate></item><item><title><![CDATA[Reply to Failure to start/restart Mango - thread exception on Wed, 20 Apr 2016 22:10:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mlavelle42" aria-label="Profile: mlavelle42">@<bdi>mlavelle42</bdi></a> said in <a href="/topic/2222/failure-to-start-restart-mango-thread-exception/1">Failure to start/restart Mango - thread exception</a>:</p>
<blockquote>
<ul>
<li>Any comment on the "high-pool..." exception? Could it be caused by the large number of alerts?</li>
</ul>
</blockquote>
<p dir="auto">This is probably some sympathetic exception message the real problem must be earlier in the log file.  Mango has chosen to shut down and is having issues because it was not fully initialized.</p>
<blockquote>
<ul>
<li>Is there any way to clean out the alerts manually?</li>
</ul>
</blockquote>
<p dir="auto">Yes there is a shell script at bin/h2-web-console.sh that will open up a port that you can connect to via a web browser.  Read the script first before executing it.  This will provide you with an SQL console that you can explore and modify the database.  Use at your own risk.</p>
]]></description><link>https://forum.mango-os.com/post/11459</link><guid isPermaLink="true">https://forum.mango-os.com/post/11459</guid><dc:creator><![CDATA[terrypacker]]></dc:creator><pubDate>Wed, 20 Apr 2016 22:10:55 GMT</pubDate></item></channel></rss>