Questions asked by ToanLChttps://answers.axonivy.com/questions/asked-by/559/toanlc/?type=rssQuestions asked by <a href="/users/559/toanlc" >ToanLC</a>enWed, 19 Dec 2018 23:24:30 -0500Failed to start ivy designer 7.0.3 due to failing while activating rule engine bundlehttps://answers.axonivy.com/questions/3594/failed-to-start-ivy-designer-7-0-3-due-to-failing-while-activating-rule-engine-bundle<p>Hi all I would like to ask if there could be any solution to solve the problem regarding info in this log below</p> <p><a href="https://gist.github.com/toanlc0912/4af92d12c5253fd18e1cd7a9b5ba8997">log detail on Gist.github.com</a></p> <p>Recently, we did change the theme from <code>ivy modena</code> to <code>serenity</code> &amp; change our code on PortalStyle projects. (mostly CSS &amp; fonts) The full diff can be found here <a href="https://bitbucket.org/axonivy-prod/axonivyportal/pull-requests/83/design-fintech/diff" title="Bitbucket">Bitbucket</a></p> <p>I still cannot guess why could it affect PMV of designer &amp; rule bundle anyhow.</p> <p>Ivy version: 7.0.3</p>ToanLCWed, 19 Dec 2018 23:24:30 -0500https://answers.axonivy.com/questions/3594/failed-to-start-ivy-designer-7-0-3-due-to-failing-while-activating-rule-engine-bundlethemedesignerivyChanging port of elasticsearchhttps://answers.axonivy.com/questions/3212/changing-port-of-elasticsearch<p>Hi everyone,</p> <p>May I ask how can we change the port of elasticsearch of Ivy Engine? I change the <code>http.port</code> attribute inside <code>elasticsearch.yml</code> but it doesn't help. </p> <p>I'm wondering if I'm missing anything here.</p>ToanLCWed, 18 Apr 2018 08:33:02 -0400https://answers.axonivy.com/questions/3212/changing-port-of-elasticsearchelasticsearchLimit 1000 fields while persisting with elasticsearchhttps://answers.axonivy.com/questions/3194/limit-1000-fields-while-persisting-with-elasticsearch<p>Hi guys,</p> <p>Recently we got into some problem while trying to save an object with more than 1000 fields. I saw that it was reported to ivy.team and the bug is in progress. </p> <p>But may I ask if there is any work around for the moment? or will not take another migration?</p> <p>Thank you very much</p> <p><code>Caused by: ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.ElasticsearchException: Elasticsearch update index of document failed because of: {"root_cause":[{"type":"illegal_argument_exception","reason":"Limit of total fields [1000] in index [ivy.businessdata-ch.axonivy.finform.deskpost.individualdossier] has been exceeded"}],"type":"illegal_argument_exception","reason":"Limit of total fields [1000] in index [ivy.businessdata-ch.axonivy.finform.deskpost.individualdossier] has been exceeded"}</code></p>ToanLCTue, 17 Apr 2018 02:57:18 -0400https://answers.axonivy.com/questions/3194/limit-1000-fields-while-persisting-with-elasticsearchelasticsearchIvy TaskState change listenerhttps://answers.axonivy.com/questions/3062/ivy-taskstate-change-listener<p>Hi all,</p> <p>In our application, we need to detect when task state is changed. For example when user login to Ivy Admin UI and delete a user, tasks belong to that user will change state to UNASSIGNED.</p> <p>We tried to use IWorkflowListener but it didn’t work .</p> <p>In Ivy, is there any way to listen to this event?</p> <p>Thanks a lot.</p>ToanLCTue, 09 Jan 2018 02:39:17 -0500https://answers.axonivy.com/questions/3062/ivy-taskstate-change-listenertasktask-stateaxonivy6.3Problem when opening IvyAdmin after migrationhttps://answers.axonivy.com/questions/3061/problem-when-opening-ivyadmin-after-migration<p>Hi everyone,</p> <p>Currently, I have encountered a problem after migration of the ivy engine (From 6.3 to 7). </p> <p>After successfully converted the database, I cannot open the Ivy Admin anymore. The error message I got is </p> <p><code>There is no process model version released for process model 'Administration' of application 'System'.</code> You can check the log below.</p> <p>Later on, I have to manually change the database of the engine, so that the process model of <code>Administration</code> is released. Could there be something not working correctly during conversion?</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/IMG_09012018_142346_0.png"></p> <pre><code>14:01:55.838 WARN [ch.ivyteam.ivy.webserver.internal.exception] [http-nio-8082-exec-1] [requestId=497, executionContext=SYSTEM, client=0:0:0:0:0:0:0:1] Problem while processing request 'http://localhost:8082/ivy/pro/System/Administration/115D746C75FAF428/start1.ivp' [errorId=160D9B9B9FFDD331, requestId=497, executionContext=SYSTEM, client=0:0:0:0:0:0:0:1] ch.ivyteam.ivy.request.RequestException: There is no process model version released for process model 'Administration' of application 'System'. at ch.ivyteam.ivy.request.RequestException$RequestExceptionBuilder.build(RequestException.java:166) at ch.ivyteam.ivy.webserver.internal.AbstractServlet.findProcessModelVersion(AbstractServlet.java:305) at ch.ivyteam.ivy.webserver.internal.AbstractServlet.analyzePathForProcessModelVersion(AbstractServlet.java:391) at ch.ivyteam.ivy.webserver.internal.process.IvyProcessServlet.doRespondAsSystem(IvyProcessServlet.java:47) at ch.ivyteam.ivy.webserver.internal.AbstractServlet.prepareRespondAsSystem(AbstractServlet.java:230) at ch.ivyteam.ivy.webserver.internal.AbstractServlet.access$3(AbstractServlet.java:212) at ch.ivyteam.ivy.webserver.internal.AbstractServlet$2.call(AbstractServlet.java:190) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1313) at ch.ivyteam.ivy.webserver.internal.AbstractServlet.doService(AbstractServlet.java:184) at ch.ivyteam.ivy.webserver.internal.AbstractServlet.doGet(AbstractServlet.java:168) at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.exception.IvyExceptionFilter.doFilter(IvyExceptionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.IvyFilter.doFilterInternal(IvyFilter.java:247) at ch.ivyteam.ivy.webserver.internal.IvyFilter.doFilter(IvyFilter.java:152) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter$1.call(IvyExecuteAsSystemFilter.java:45) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter$1.call(IvyExecuteAsSystemFilter.java:1) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1313) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter.doFilter(IvyExecuteAsSystemFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.duplicate.IvyDuplicateRequestFilter.doFilter(IvyDuplicateRequestFilter.java:74) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) </code></pre>ToanLCTue, 09 Jan 2018 02:37:47 -0500https://answers.axonivy.com/questions/3061/problem-when-opening-ivyadmin-after-migrationivy7xmigrationSet "HTML Editor" to be default *.xhtml file associationhttps://answers.axonivy.com/questions/3018/set-html-editor-to-be-default-xhtml-file-association<p>Hi everyone,</p> <p>As I never use the <code>HTML Dialog Editor</code>, may I ask if we have a way to set default <code>*.xhtml</code> file association to <code>HTML Editor</code>? I tried to change the config but it doesn't affect when I double click on any <code>.xhtml</code> file or HTML Dialog View.</p> <p>Opening with HTML Dialog Editor cost a lot of time even with Source Only mode and HTML Editor is just a sec for a big view.</p> <p>Thanks</p>ToanLCWed, 06 Dec 2017 23:01:41 -0500https://answers.axonivy.com/questions/3018/set-html-editor-to-be-default-xhtml-file-associationhtmluserdialogvisualeditorHow much effort to switch from Standard Edition to Enterprise Edition?https://answers.axonivy.com/questions/2920/how-much-effort-to-switch-from-standard-edition-to-enterprise-edition<p>Hi ivy Team,</p> <p>Recently I got a question from my PO that if it's easy to switch from Standard Edition to Enterprise Edition besides changing the license? and can we reuse the database of the standard edition?</p> <p>There is no different in ivy version.</p>ToanLCThu, 19 Oct 2017 00:04:50 -0400https://answers.axonivy.com/questions/2920/how-much-effort-to-switch-from-standard-edition-to-enterprise-editionengineivyenterpriseDifference between Email.Server.MailAddress & Email.Server.User?https://answers.axonivy.com/questions/2781/difference-between-email-server-mailaddress-email-server-user<p>Hi guys,</p> <p>Recently I come to wonder what's the difference between the two configuration of email.</p> <pre><code>EMail.Server.MailAddress EMail.Server.User </code></pre> <p>As I saw that when I try to send mail using email element in process, I specified the "From" field, but it sent the mail using the one I specified at <code>EMail.Server.User</code>.</p> <p>Could you help me differentiate these fields as their purposes? May I have some thing wrong in the configuration?</p>ToanLCThu, 27 Jul 2017 07:03:36 -0400https://answers.axonivy.com/questions/2781/difference-between-email-server-mailaddress-email-server-userprocessemailivyGlobal Error Handler HTML Dialog not being loadedhttps://answers.axonivy.com/questions/2727/global-error-handler-html-dialog-not-being-loaded<p>Recently I encountered an problem that the HTML Dialog of my global Error Handler cannot be loaded &amp; the HTML Dialog that got error thrown is not being loaded.</p> <p>The demo project for reproduction can be found here : <a href="https://github.com/toanlc0912/demo-error-handler">https://github.com/toanlc0912/demo-error-handler</a></p> <p>The Ivy version I'm using is 6.2. Not really sure if I did anything wrong on the structure of all the error element</p>ToanLCWed, 28 Jun 2017 23:32:16 -0400https://answers.axonivy.com/questions/2727/global-error-handler-html-dialog-not-being-loadedivyerror-handlingPrimeFaces version in further version of iVYhttps://answers.axonivy.com/questions/2561/primefaces-version-in-further-version-of-ivy<p>Hi ivy.Team,</p> <p>I just want to ask if there is any version upgrading of PrimeFaces in further version of iVY (from 6.5).</p> <p>As we're encountering a bug from PrimeFaces 5.3 and it's fixed in 5.3.1.</p> <p>We prefer not to upgrade by ourselves as it's related to other teams in the same project.</p> <p>So it would be great for us to know this information.</p>ToanLCMon, 03 Apr 2017 09:38:09 -0400https://answers.axonivy.com/questions/2561/primefaces-version-in-further-version-of-ivyivyprimefacesGenerate AxonIvySystemDatabase using powershell scripthttps://answers.axonivy.com/questions/2524/generate-axonivysystemdatabase-using-powershell-script<p>Hi guys,</p> <p>I'm trying to create some powershell scripts, which will automate setup process of a server running ivy engine.</p> <p>Though, I'm having one question whether we can automate the generation of AxonIvySystemDatabase or not as it's from the Engine Admin panel, with license, of course! Will this violate any copyright/licensing terms?</p> <p>Thank you very much!</p>ToanLCFri, 24 Mar 2017 05:15:15 -0400https://answers.axonivy.com/questions/2524/generate-axonivysystemdatabase-using-powershell-scriptaxon.ivyEncoding issue when sending mail with Ivy Engine (charset=ISO-8859-1)https://answers.axonivy.com/questions/1819/encoding-issue-when-sending-mail-with-ivy-engine-charset-iso-8859-1<p>Recently, as I work with German characters. The email content will display correctly only if I send the email locally using Ivy Designer.</p> <p>If I send the email on server with the same encoding <strong>(charset=ISO-8859-1)</strong>, so in order to send the email with the correct encoding I have to replicate SendMail.java class and change the following method.</p> <pre><code> private String getContentType(String msg) { /* 446 */if (isHtml(msg)) { /* 448 */return "text/html; charset=ISO-8859-1"; } /* 450 */return "text/plain; charset=ISO-8859-7"; </code></pre> <p>May I ask if there is any configuration on Ivy Engine that override this configuration of the email?</p>ToanLCFri, 17 Jun 2016 11:53:31 -0400https://answers.axonivy.com/questions/1819/encoding-issue-when-sending-mail-with-ivy-engine-charset-iso-8859-1emailencodingIs it possible to use CDI injection or Spring injection in Ivy Project?https://answers.axonivy.com/questions/1496/is-it-possible-to-use-cdi-injection-or-spring-injection-in-ivy-project<p>As the title said that I just wonder if we have some way to use CDI injection or Spring in Ivy Project? FYI, I'm using Ivy Designer v6 s16.</p> <p>I did try to use CDI in my bean, it acknowledged the bean with <strong>@Named</strong> annotation; however, the service that I try to inject return null (throwing InvokeException &amp; NullPointerException). Though I know that Ivy Engine not yet supported CDI injection, I just want to know if there is any trick to go around it?</p>ToanLCWed, 30 Sep 2015 09:27:53 -0400https://answers.axonivy.com/questions/1496/is-it-possible-to-use-cdi-injection-or-spring-injection-in-ivy-projectivy