<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script Task within a loop causing StackOverflowError in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36619#M15456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After writing the recursive logic, the stack will be expanded, so StackOverflowError will occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about&amp;nbsp;increasing the thread stack size with JVM parameters?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;-Xss:10m&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionX.html" title="https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionX.html" rel="nofollow noopener noreferrer"&gt;-X Command-line Options&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2018 13:08:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-29T13:08:40Z</dc:date>
    <item>
      <title>Script Task within a loop causing StackOverflowError</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36618#M15455</link>
      <description>We have a simple script task in a BPMN that is within a loop that is designed to loop around 500 times. The script task simply creates a string variable. We can see when we&amp;nbsp;don't mark the script as asynchronous, we see a StackOverflowError after around 30 loops occur. If we mark it as asynchronous,</description>
      <pubDate>Mon, 29 Jan 2018 12:43:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36618#M15455</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2018-01-29T12:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script Task within a loop causing StackOverflowError</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36619#M15456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After writing the recursive logic, the stack will be expanded, so StackOverflowError will occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about&amp;nbsp;increasing the thread stack size with JVM parameters?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;-Xss:10m&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionX.html" title="https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionX.html" rel="nofollow noopener noreferrer"&gt;-X Command-line Options&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 13:08:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36619#M15456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-29T13:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script Task within a loop causing StackOverflowError</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36620#M15457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is also something&amp;nbsp;but we would need to be able to scale the stack if request and load increases on activiti, which is why I was wondering if there was something specific that only seems to cause it with script tasks in a loop, or indeed if there is an activiti element that can stop it occuring?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 14:53:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36620#M15457</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2018-01-29T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script Task within a loop causing StackOverflowError</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36621#M15458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the Xss option is related to the maximum value, I think the thread size will be expanded as necessary.&lt;/P&gt;&lt;P&gt;If we need to&amp;nbsp;&lt;SPAN&gt;examin&amp;nbsp;&lt;/SPAN&gt;why the stack will be expanded, we need to check your script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 20:00:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36621#M15458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-30T20:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script Task within a loop causing StackOverflowError</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36622#M15459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense. The script was simply creating an integer variable and&amp;nbsp;adding 1&amp;nbsp;to it, but it is possible it can run thousands of times due it it being in a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:18:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36622#M15459</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2018-02-02T12:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script Task within a loop causing StackOverflowError</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36623#M15460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, please upload the reproduction code (&amp;gt;_&amp;lt;) if you wanto to resolve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 21:19:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/script-task-within-a-loop-causing-stackoverflowerror/m-p/36623#M15460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T21:19:26Z</dc:date>
    </item>
  </channel>
</rss>

