Questions asked by Hap Emhttps://answers.axonivy.com/questions/asked-by/536/hap-em/?type=rssQuestions asked by <a href="/users/536/hap-em" >Hap Em</a>enWed, 11 Oct 2017 02:42:17 -0400Apply lombok for Ivy projecthttps://answers.axonivy.com/questions/2908/apply-lombok-for-ivy-project<p>Hello Ivy Team, As you know, lombok is using for reducing boilerplate code. But applying for Ivy project is quite very difficult:</p> <ul> <li>For the designer, it works perfectly (configuration likes eclipse)</li> <li>For maven build (using Axon.ivy Project Build Plugin), it doesn't work except I do a work-arround by using delombok plugin (<a href="https://projectlombok.org/features/delombok)">https://projectlombok.org/features/delombok)</a> </li> <li>But it's very annoying in declaration of pom file and building process:</li> <li>For details, in maven build process, it has to do:</li> </ul> <p><code> 1. backup src folder to src_temp folder. 2. delombok src (some lombok java classes are delomboked --&gt; they are using for compilation) 3. After compilation, restore 'src_temp' folder to src folder (for reverting the original source code) --&gt; if the exception occurs (for ex: compile error) --&gt; step 3 is NOT executed --&gt; So, I have to restore manually by myself (It's very annoying if build exception occurs frequently) </code> </p> <p> </p><pre><code> &lt;plugin&gt; &lt;groupid&gt;org.projectlombok&lt;/groupid&gt; &lt;artifactid&gt;lombok-maven-plugin&lt;/artifactid&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;lombok-code&lt;/id&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;delombok&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;sourcedirectory&gt;src&lt;/sourcedirectory&gt; &lt;addoutputdirectory&gt;false&lt;/addoutputdirectory&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactid&gt;maven-resources-plugin&lt;/artifactid&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;copy-src-to-src_temp&lt;/id&gt; &lt;phase&gt;validate&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy-resources&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;overwrite&gt;true&lt;/overwrite&gt; &lt;outputdirectory&gt;target/src_temp&lt;/outputdirectory&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;src&lt;/directory&gt; &lt;include&gt;<strong>/*.java&lt;/include&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;copy-delombok-source-to-src&lt;/id&gt; &lt;phase&gt;process-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy-resources&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;overwrite&gt;true&lt;/overwrite&gt; &lt;outputdirectory&gt;src&lt;/outputdirectory&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;target/generated-sources/delombok&lt;/directory&gt; &lt;include&gt;</strong>/<em>.java&lt;/include&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;copy-src_temp-to-src-install-phase&lt;/id&gt; &lt;phase&gt;install&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy-resources&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;overwrite&gt;true&lt;/overwrite&gt; &lt;outputdirectory&gt;src&lt;/outputdirectory&gt; &lt;encoding&gt;UTF-8&lt;/encoding&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;target/src_temp&lt;/directory&gt; &lt;include&gt;</em><em>/</em>.java&lt;/include&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code> </pre><p></p> <p></p> <p>If you have other idea or other way for configuration, pls let me know!</p> <p>Many thanks! Hap Em,</p>Hap EmWed, 11 Oct 2017 02:42:17 -0400https://answers.axonivy.com/questions/2908/apply-lombok-for-ivy-projectmavenbuildMaven build for Ivy projecthttps://answers.axonivy.com/questions/2900/maven-build-for-ivy-project<p>Hello Ivy Team,</p> <p>Whenever i run command mvn clean install -X (in debug mode) --&gt; I saw the log:</p> <pre><code> [DEBUG] Starting ivy Engine in D:\...\...\AxonIvyEngine6.3.0 [DEBUG] Engine is running [INFO] Cleaning sources in [src_dataClasses] </code></pre> <p>Question 1: why does the build need to start "Ivy Engine" for building the code?</p> <p>My situation: I have the jenkins build central, whenever alot of project run the build at the same time --&gt; the server get a trouble with memory because alot of Ivy Engine are started.</p> <p>Question 2: when I build my Ivy project --&gt; why is the iar file include the source code inside the package?</p> <p>Thanks for answer my question!</p>Hap EmFri, 06 Oct 2017 05:55:47 -0400https://answers.axonivy.com/questions/2900/maven-build-for-ivy-projectmavenjenkinsproject-build-pluginDo the AxonIvy tools support the new framework PrimeNG?https://answers.axonivy.com/questions/2218/do-the-axonivy-tools-support-the-new-framework-primeng<p>Hello IvyTeam,</p> <p>As I know, PrimeNG is a framework for Angular 2. I want to ask IvyTeam a question: Do AxonIvy tools ready for using PrimeNG or do you have any plan to support PrimeNG or Angular2?</p> <p><a href="http://www.primefaces.org/primeng/#/">http://www.primefaces.org/primeng/#/</a> <a href="http://blog.primefaces.org/">http://blog.primefaces.org/</a></p> <p>Thanks &amp; Regards,</p>Hap EmFri, 25 Nov 2016 12:24:40 -0500https://answers.axonivy.com/questions/2218/do-the-axonivy-tools-support-the-new-framework-primengaxon.ivyErrorHandler in multi modules (Ivy Designer 6.3.0)https://answers.axonivy.com/questions/2081/errorhandler-in-multi-modules-ivy-designer-6-3-0<p>Hello All,</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/error_handler_parent_child_dWNKjmW.PNG"></p> <ul> <li> <p>As you see in the picture, I have 2 modules (ErrorHandlingDemos and ErrorHandlingChild). In each module, I has created ErrorHandler Process --&gt; I got the compile error message in the console --&gt; but, everything works fine (although compile error occurred) --&gt; <strong>Updated for this case</strong>: i renamed ErrorHandler by another name --&gt; no compile error anymore :)</p> </li> <li> <p>I removed ErrorHandler process in one module to solve the compile error (actually, ErrorHandlingChild module). But when the error occurred in runtime, the application didn't call to "Display error" of ErrorHandler process in ErrorHandlingDemos --&gt; <strong>I think it should show "Display error" of parent module</strong>.</p> </li> </ul> <p>Could we only define the ErrorHandler in parent module?</p> <p>Thanks for supporting!</p>Hap EmFri, 07 Oct 2016 10:57:18 -0400https://answers.axonivy.com/questions/2081/errorhandler-in-multi-modules-ivy-designer-6-3-0error-handlingUsing local temporary tablehttps://answers.axonivy.com/questions/1856/using-local-temporary-table<p>Hello Every body!</p> <p>Look at the bellow picture, I have 2 database steps: 1. For the first step, it'll create a LOCAL temporary table and store the data in this table (For ex: It is named '#SUPERIOR') 2. The seconds step, it'll get data from '#SUPERIOR'</p> <p>But, we have some strange behaviors that sometimes it can not get data from '#SUPERIOR' temporary table. I guess that the '#SUPERIOR' is already dropped (because connection is closed --&gt; local temporary table is dropped) before step 2 is executed.</p> <p>Our application have a lot of users that can access concurrency (more than 1000 users)</p> <p>Could you pls give me some ideas?</p> <p>Thanks for your help!</p> <p><strong>This is sample of step1:</strong></p> <pre><code> Declare @ORSID int =1; DECLARE @EMPKEY int = 20018; DECLARE @CONNUMB varchar = '1'; DECLARE @SUPERIORORLID int = 1; DECLARE @PARENTID int = 0; IF OBJECT_ID('tempdb..#SUPERIORORGTREEANDROLE_eRAP20018') IS NOT NULL DROP TABLE #SUPERIORORGTREEANDROLE_eRAP20018 DECLARE @ORGTREEANDROLE TABLE( ORGID INT, ORGPNTOU INT, ORGCHDOU INT,ORSID INT, OUNDESC varchar(MAX), OUNTYPE varchar(MAX), ASNID INT, EMPKEY INT, CONNUMB varchar(MAX), ASNMAIN varchar(MAX), ORLID INT ); INSERT INTO @ORGTREEANDROLE SELECT org.ORGID, org.ORGPNTOU, org.ORGCHDOU, org.ORSID, ounc.OUNDESC, ounc.OUNTYPE, asnc.ASNID, asnc.EMPKEY, asnc.CONNUMB, asnc.ASNMAIN, asr.ORLID FROM HRMORG org LEFT OUTER JOIN HRMOUN ounc ON ounc.OUNKEY = org.ORGCHDOU LEFT OUTER JOIN HRMASN asnc ON asnc.OUNKEY = ounc.OUNKEY and asnc.ASNFROM &lt;= CONVERT(DATE, GETDATE()) and asnc.ASNUNTIL &gt;= CONVERT(DATE, GETDATE()) LEFT OUTER JOIN HRMASR asr ON asr.ASNID = asnc.ASNID WHERE org.ORSID = @ORSID and ounc.OUNFROM &lt;= CONVERT(DATE, GETDATE()) and ounc.OUNUNTIL &gt;= CONVERT(DATE, GETDATE()) ORDER BY org.ORGID SELECT @PARENTID = orgTree.ORGPNTOU FROM @ORGTREEANDROLE orgTree WHERE orgTree.CONNUMB = @CONNUMB AND orgTree.EMPKEY = @EMPKEY AND orgTree.ASNMAIN = 'Y' DECLARE @COUNT INT = 0; WHILE (@COUNT &lt; 20) BEGIN SET @COUNT = @COUNT + 1; IF (@PARENTID = 0 OR @PARENTID = NULL ) BEGIN BREAK; END ELSE BEGIN IF ((SELECT COUNT(ORGID)FROM @ORGTREEANDROLE orgTree WHERE orgTree.ORGCHDOU = @PARENTID AND orgTree.ORLID = @SUPERIORORLID) &gt; 0) BEGIN SELECT orgTree.EMPKEY, orgTree.CONNUMB, orgTree.ORGCHDOU ,orgTree.ASNID INTO #SUPERIORORGTREEANDROLE_eRAP20018 FROM @ORGTREEANDROLE orgTree WHERE orgTree.ORGCHDOU = @PARENTID AND orgTree.ORLID = @SUPERIORORLID BREAK; END END SELECT @PARENTID = orgTree.ORGPNTOU FROM @ORGTREEANDROLE orgTree WHERE orgTree.ORGCHDOU = @PARENTID END </code> </pre> <p>This is the sample for step2: </p><pre><code> SELECT * FROM #SUPERIORORGTREEANDROLE_eRAP20018; </code> </pre><p></p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/process_getsuperior.png"></p> <p>Regards,</p>Hap EmFri, 01 Jul 2016 10:56:57 -0400https://answers.axonivy.com/questions/1856/using-local-temporary-tabledatabase_conversionivyAccess to ivy environment outside a process request thread is not possible.https://answers.axonivy.com/questions/1538/access-to-ivy-environment-outside-a-process-request-thread-is-not-possible<p>Hello all,</p> <p>Let me know how to remove the log related to "Access to ivy environment outside a process request thread is not possible." in the log file.</p> <p>Thanks &amp; Regards,</p> <p>This is content of log file: </p><pre><code> 14:51:44.393 ERROR [org.apache.catalina.core.ContainerBase.[ivy].[localhost].[/ivy].[Faces Servlet]] [ajp-bio-8019-exec-4] [requestId=5977] Servlet.service() for servlet [Faces Servlet] in context with path [/ivy] threw exception [dialog instance with id 1506406C2799C640 is not available any more] with root cause javax.servlet.ServletException: dialog instance with id 1506406C2799C640 is not available any more at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.filterAsSystem(IvyFacesInstanceFilter.java:89) at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.access$0(IvyFacesInstanceFilter.java:79) at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:55) at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:1) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1439) at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.filter(IvyFacesInstanceFilter.java:49) at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.doFilter(IvyFacesInstanceFilter.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:249) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:249) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:249) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) 14:51:44.409 ERROR [ch.ivyteam.ivy.dialog.execution.jsf.error] [ajp-bio-8019-exec-4] [requestId=5977] Error during rendering of html dialog javax.el.ELException: ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible. Current thread: Thread[ajp-bio-8019-exec-4,5,main] at javax.el.BeanELResolver.invoke(BeanELResolver.java:191) at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:161) at org.apache.el.parser.AstValue.getValue(AstValue.java:173) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) at ch.ivyteam.ivy.dialog.execution.jsf.controller.el.CompositeComponentAwareValueExpression.getValue(CompositeComponentAwareValueExpression.java:85) at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:65) at org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeBegin(ExtValLazyRendererProxy.java:62) at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:212) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:596) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:526) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267) at org.apache.myfaces.extensions.validator.core.startup.ExtValLifecycleWrapper.render(ExtValLifecycleWrapper.java:77) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200) at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:297) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:488) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:64) at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:97) at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:85) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:330) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:467) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:412) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:201) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) [errorId=150CD9E2319FA693, requestId=5977] Caused by: ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible. Current thread: Thread[ajp-bio-8019-exec-4,5,main] at ch.ivyteam.ivy.environment.Ivy.getEnvironmentData(Ivy.java:455) at ch.ivyteam.ivy.environment.Ivy.var(Ivy.java:272) at ch.ivyteam.ivy.environment.IvyJsf.getVar(IvyJsf.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.el.BeanELResolver.invoke(BeanELResolver.java:183) ... 54 more 14:51:44.409 ERROR [org.apache.catalina.core.ContainerBase.[ivy].[localhost].[/ivy].[Faces Servlet Default]] [ajp-bio-8019-exec-4] [requestId=5977] Servlet.service() for servlet Faces Servlet Default threw exception [errorId=150CD9E2319FA693, requestId=5977] ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible. Current thread: Thread[ajp-bio-8019-exec-4,5,main] at ch.ivyteam.ivy.environment.Ivy.getEnvironmentData(Ivy.java:455) at ch.ivyteam.ivy.environment.Ivy.var(Ivy.java:272) at ch.ivyteam.ivy.environment.IvyJsf.getVar(IvyJsf.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.el.BeanELResolver.invoke(BeanELResolver.java:183) at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:161) at org.apache.el.parser.AstValue.getValue(AstValue.java:173) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) at ch.ivyteam.ivy.dialog.execution.jsf.controller.el.CompositeComponentAwareValueExpression.getValue(CompositeComponentAwareValueExpression.java:85) at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:65) at org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeBegin(ExtValLazyRendererProxy.java:62) at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:212) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:596) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:526) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267) at org.apache.myfaces.extensions.validator.core.startup.ExtValLifecycleWrapper.render(ExtValLifecycleWrapper.java:77) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200) at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:297) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:488) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:64) at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:97) at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:85) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:330) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:467) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:412) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:201) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) 14:51:44.409 ERROR [org.apache.catalina.core.ContainerBase.[ivy].[localhost]] [ajp-bio-8019-exec-4] [requestId=5977] Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/custom-error-page.xhtml] javax.servlet.ServletException: Access to ivy environment outside a process request thread is not possible. Current thread: Thread[ajp-bio-8019-exec-4,5,main] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:230) at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:297) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:488) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:64) at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:97) at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:85) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:330) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:467) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:412) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:201) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) [errorId=150CD9E2319FA693, requestId=5977] Caused by: ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible. Current thread: Thread[ajp-bio-8019-exec-4,5,main] at ch.ivyteam.ivy.environment.Ivy.getEnvironmentData(Ivy.java:455) at ch.ivyteam.ivy.environment.Ivy.var(Ivy.java:272) at ch.ivyteam.ivy.environment.IvyJsf.getVar(IvyJsf.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.el.BeanELResolver.invoke(BeanELResolver.java:183) at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:161) at org.apache.el.parser.AstValue.getValue(AstValue.java:173) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) at ch.ivyteam.ivy.dialog.execution.jsf.controller.el.CompositeComponentAwareValueExpression.getValue(CompositeComponentAwareValueExpression.java:85) at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:65) at org.apache.myfaces.extensions.validator.core.renderkit.ExtValLazyRendererProxy.encodeBegin(ExtValLazyRendererProxy.java:62) at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.encodeBegin(ExtValRendererWrapper.java:212) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:596) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:526) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:58) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267) at org.apache.myfaces.extensions.validator.core.startup.ExtValLifecycleWrapper.render(ExtValLifecycleWrapper.java:77) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200) ... 37 more </code><pre><p></p></pre></pre>Hap EmTue, 03 Nov 2015 17:37:06 -0500https://answers.axonivy.com/questions/1538/access-to-ivy-environment-outside-a-process-request-thread-is-not-possibleaxon.ivyCan I install eclemma (jacoco) for AxonIvy 5https://answers.axonivy.com/questions/1484/can-i-install-eclemma-jacoco-for-axonivy-5<p>Hello Everybody,</p> <p>Pls give me some guidelines to install eclemma(jacoco), FindBugs, CheckStyle for AxonIvy 5. I need to check the code styles, code coverages,... in axon ivy designer.</p> <p>Thanks &amp; Regards,</p>Hap EmTue, 29 Sep 2015 10:04:46 -0400https://answers.axonivy.com/questions/1484/can-i-install-eclemma-jacoco-for-axonivy-5javaHow can I configure IIS 8.0 and Primepushhttps://answers.axonivy.com/questions/1457/how-can-i-configure-iis-8-0-and-primepush<p>Hello Everybody!</p> <p>I have deployed an Ivy project behind IIS8 and all functionalities works fine except primepush. Could you please give me some tips or guidelines to configure IIS8 to work with primepush?</p> <p>Thanks for your help,</p>Hap EmMon, 07 Sep 2015 14:17:16 -0400https://answers.axonivy.com/questions/1457/how-can-i-configure-iis-8-0-and-primepushprimepushajpUse import enum in xhtml pagehttps://answers.axonivy.com/questions/1417/use-import-enum-in-xhtml-page<p>Hello everybody!</p> <p>Can I use import enum in Ivy Designer? Example: like show case of primefaces extension <a href="http://www.primefaces.org/showcase-ext/sections/utils/importEnum.jsf">http://www.primefaces.org/showcase-ext/sections/utils/importEnum.jsf</a></p> <p>Thanks &amp; Regards,</p>Hap EmWed, 29 Jul 2015 05:58:59 -0400https://answers.axonivy.com/questions/1417/use-import-enum-in-xhtml-pageenum