<?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[How to abort a logging attempt?]]></title><description><![CDATA[<p dir="auto">If a point triggers an update to a meta point and before or during the processing of the script one of the points in context is disabled and script exits, how can I abort the point value logging for this event?</p>
]]></description><link>https://forum.mango-os.com/topic/3333/how-to-abort-a-logging-attempt</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 15:36:25 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3333.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Mar 2018 12:17:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to abort a logging attempt? on Fri, 09 Mar 2018 02:56:40 GMT]]></title><description><![CDATA[<p dir="auto">Will do,  Thanks</p>
]]></description><link>https://forum.mango-os.com/post/17678</link><guid isPermaLink="true">https://forum.mango-os.com/post/17678</guid><dc:creator><![CDATA[Phillip Weeks]]></dc:creator><pubDate>Fri, 09 Mar 2018 02:56:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to abort a logging attempt? on Thu, 08 Mar 2018 22:17:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi Phillip,</p>
<p dir="auto">There were a couple issues fixed in 3.3.2 / 3.3.3 that are worth updating for. If you're on 3.3 I would encourage you to update to 3.3.3 if you are not on it.</p>
]]></description><link>https://forum.mango-os.com/post/17673</link><guid isPermaLink="true">https://forum.mango-os.com/post/17673</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 08 Mar 2018 22:17:42 GMT</pubDate></item><item><title><![CDATA[Reply to How to abort a logging attempt? on Thu, 08 Mar 2018 21:33:58 GMT]]></title><description><![CDATA[<p dir="auto">Yes indeed,  I am trying to stop one of our cloud servers from it's daily out of memory crash which started occurring March 5th.  The crash log had reported script errors with a meta datasource's context point being disabled ...<br />
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]<br />
ERROR 2018-03-08T16:49:10,221 (com.serotonin.m2m2.meta.JavaScriptPointLocatorRT.createContext:108) - Point with id 370 for variable named 'HVAC' is disabled<br />
com.serotonin.m2m2.rt.script.DataPointStateException: Point with id 370 for variable named 'HVAC' is disabled at com.serotonin.m2m2.rt.script.ScriptExecutor.convertScriptContext(ScriptExecutor.java:57) ~[mango-3.3.2.jar:?]</p>
<p dir="auto">so I added if (point1.enabled) { do stuff } which stopped the errors but I was logging 0 if the point was disabled.<br />
I will change it so it returns UNCHANGED.</p>
<p dir="auto">Interestingly, both servers are configured with exactly the same thread and NoSQL configuration.  One server is 2.8.8 has been running for months without issue and the other is v3.3 with the same setup and crashes out daily running out of memory.    I might be grasping at straws here but at least the script errors went away.. Thanks for the quick response.  I am experimenting with G1GC now vs ConcMarkSweepGC.</p>
]]></description><link>https://forum.mango-os.com/post/17670</link><guid isPermaLink="true">https://forum.mango-os.com/post/17670</guid><dc:creator><![CDATA[Phillip Weeks]]></dc:creator><pubDate>Thu, 08 Mar 2018 21:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to abort a logging attempt? on Thu, 08 Mar 2018 17:41:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi Phillip,</p>
<p dir="auto">For a meta point, you should be able to do something like</p>
<pre><code>/* other scripting, get 'value' */
function isAnyPointNowDisabled() {
    for(var varName in CONTEXT_POINTS)
        if(!RuntimeManager.isDataPointEnabled(this[varName].getDataPointWrapper().getXid()))
            return true;
    return false;
}

if( isAnyPointNowDisabled() )
    return UNCHANGED;
return value;
</code></pre>
<p dir="auto">Interesting thing to want to do. The meta point won't execute if a context point was disabled when it was supposed to begin execution.</p>
]]></description><link>https://forum.mango-os.com/post/17668</link><guid isPermaLink="true">https://forum.mango-os.com/post/17668</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 08 Mar 2018 17:41:08 GMT</pubDate></item></channel></rss>