Questions asked by nvcuong01https://answers.axonivy.com/questions/asked-by/1183/nvcuong01/?type=rssQuestions asked by <a href="/users/1183/nvcuong01" >nvcuong01</a>enWed, 04 Dec 2019 05:58:36 -0500Exception when calling sub process on javahttps://answers.axonivy.com/questions/4231/exception-when-calling-sub-process-on-java<p>Hi guy,</p> <p>I am using java to call a sub process (1). On sub process, it calls another process on async mode and wait for this async process finished. But it gets an exception </p> <p><code>ClassCastException: java.lang.Object cannot be cast to ch.ivyteam.ivy.scripting.objects.util.IIvyDataObject BpmError: ivy:error:system IvyRuntimeException: BpmError ivy:error:system Unique ID: 16ED0879C1F1D89D Process Element: Wait for the other business processes to end &lt;16ECF9C19BDDE0E4-f6&gt; Process Call Stack: callServiceCheck() &lt;16ECF9C19BDDE0E4-f0&gt; ch.ivyteam.util.IvyRuntimeException: BpmError ivy:error:system Unique ID: 16ED0879C1F1D89D Process Element: Wait for the other business processes to end &lt;16ECF9C19BDDE0E4-f6&gt; Process Call Stack: callServiceCheck() &lt;16ECF9C19BDDE0E4-f0&gt;</code></p> <p>But it can work well if I trigger the start link (2) directly</p> <p><img alt="alt text" src="https://lh3.googleusercontent.com/QNaXkDI24FP4P6lVFeshsr_aBnuw2iPEhnm9L5CK8n6hfPSah08x0nXFmxdHiSttVeDs6c0RKFKqTeEmR2sXCyLX6ykKxscULJMm3rsmsKValTgGncX6KdT_PUEE-EuV5egV18A_-JjXYlOrMRsE7lwWam0MEnuir3rRrD94NEGlkTzPSOzN8sSRzxYjQts3l3Jutl2C-qP-gJUhNiTBEvxXGMM-sGiLOsfOteiB2AmIx9tNiAzSLqP3Lh_jddFmtOFf98m6lbM8UkMDOt_SbNYrg9ByhSqouM8L5PkrQWcRKPMF4uSmLDLcFGUjWYGG1RQAsq2UT8CQ8Qhnh2fsVhU7Qnm6w_VhIHZIlvS77CZQ9Sy5azWLHRN0f13mRZ9lasNxo2TKDcJd8hBpJMYeZjJrgd7sBjhJi4OO3o-LzAe5RdpnOTmjNDoLbk4mjYVvzl9R-BBD4moB3IxWO64_iVA2WAE1tbLyBlQUEwT5uWXyu9GfgayJsxTjMsyKj5weNY4ZppVRe5RlizQ4aGJX0qKK1y5KA_BYTx3GBuQmNMLRLfym6mNSUXVwkPDtwxfUt-c3JfBwQqgyQT6PTXK2pBTTcROVqVEnLcRXoJ5grz034y_rA05xMZvw0fccOzejkDHCLM8APCc-VhbAgPEJ7YDkxzjLhNjWcjZd9KMkpMkyQMQYl13YPV4mtUX2fw=w1310-h936"></p> <p>How can I overcome this problem? </p> <p>Thanks!</p>nvcuong01Wed, 04 Dec 2019 05:58:36 -0500https://answers.axonivy.com/questions/4231/exception-when-calling-sub-process-on-javaprocessRuntimeException after destroying ivy casehttps://answers.axonivy.com/questions/3844/runtimeexception-after-destroying-ivy-case<p>Hi Ivyteam,</p> <p>We have a function to delete a list of cases base on dossierId:</p> <pre><code> SecurityManagerFactory.getSecurityManager().executeAsSystem2(() -&gt; { CaseQuery taskQuery = CaseQuery.create() .where().customVarCharField4().isEqual(dossierId); List&lt;ICase&gt; cases = Ivy.wf().getCaseQueryExecutor().getResults(taskQuery); cases.forEach(ICase::destroy); }); </code></pre> <p>After the case is destroyed successfully, the application is crashed because an exception</p> <p>IvyRuntimeException: Task '25' is no longer running. Maybe the task has been reseted or parked meanwhile. ELException: ch.ivyteam.util.IvyRuntimeException: Task '25' is no longer running. Maybe the task has been reseted or parked meanwhile. ContextAwareELException: javax.el.ELException: ch.ivyteam.util.IvyRuntimeException: Task '25' is no longer running. Maybe the task has been reseted or parked meanwhile. Error during rendering of html dialog 'ch.axonivy.desk.individual.customer1.DataGatheringPage'</p> <p>I am using Ivy 7.0.11. How can I overcome this exception?</p> <p>Thanks,</p> <p>Cuong Nguyen</p>nvcuong01Mon, 10 Jun 2019 03:25:09 -0400https://answers.axonivy.com/questions/3844/runtimeexception-after-destroying-ivy-casecase