Questions Tagged With ivyhttps://answers.axonivy.com/tags/ivy/?type=rssquestions tagged <span class="tag">ivy</span>enThu, 09 Jul 2020 03:54:24 -0400axis2 libraries not found in Axon.ivy 8 Enginehttps://answers.axonivy.com/questions/4634/axis2-libraries-not-found-in-axon-ivy-8-engine<p>Hi Ivy Team,</p> <p>I try to build Ivy 8 project with project-build-plugin-8.0.3 and Axon.ivy Engine 8.0.6 Slim All and found that I cannot build the project because <code>org.apache.axis2.client.Options</code> could not be resolved (some class in my project import this class).</p> <p>The libraries exist on Designer under container Axon.ivy WS Call, no compile error within Designer but I could not find them on <code>engine-path/system/plugins</code> of the Engine.</p>vinh_Thu, 09 Jul 2020 03:54:24 -0400https://answers.axonivy.com/questions/4634/axis2-libraries-not-found-in-axon-ivy-8-engineengineproject-build-pluginivyHow do I add an additional Aspose module to my project and am I allowed to do so?https://answers.axonivy.com/questions/4628/how-do-i-add-an-additional-aspose-module-to-my-project-and-am-i-allowed-to-do-so<p>I would like to add an additional Aspose module to my Ivy project. How do I do that and is the additional module covered by the integrated Aspose licence?</p>Oliver HeerThu, 02 Jul 2020 02:52:47 -0400https://answers.axonivy.com/questions/4628/how-do-i-add-an-additional-aspose-module-to-my-project-and-am-i-allowed-to-do-soasposeivylibraryWhere does Axon.ivy Engine 8 store deployed files?https://answers.axonivy.com/questions/4600/where-does-axon-ivy-engine-8-store-deployed-files<p>Hi Ivy Team,</p> <p>Axon.ivy Engine 8 comes with different deployment behavior. To keep the state of Ivy Application running on Container, I need to know where does it store deployed files, to mount those paths into persistent volumes.</p> <p>In other word, how many places I need to mount into persistent volumes to make Axon.ivy works on Container environment?</p>vinh_Fri, 19 Jun 2020 01:24:49 -0400https://answers.axonivy.com/questions/4600/where-does-axon-ivy-engine-8-store-deployed-filesenginedockerivyAxon.ivy Engine 8 could not start on OpenShift with DeploymentConfighttps://answers.axonivy.com/questions/4599/axon-ivy-engine-8-could-not-start-on-openshift-with-deploymentconfig<p>Hi Ivy Team,</p> <p>I'm trying to run Axon.ivy Engine on OpenShift, the first try with a Pod is working. Then I try to use DeploymentConfig to automate the Pod creation, it could not run because the running user didn't have permission on Axon.ivy Engine directory.</p> <p>Here is the error detail:</p> <pre><code>&lt;title&gt;Invalid Configuration Location&lt;/title&gt;The configuration area at '/usr/lib/axonivy-engine-8/?/.eclipse/1939981958_linux_gtk_x86_64/configuration' could not be created. Please choose a writable location using the '-configuration' command line option. </code></pre> <p>I guest OpenShift runs Axon.ivy Engine by a different user than the one defined in Docker Image.</p> <p>I think fixing the permission of <code>/usr/lib/axonivy-engine-8</code> may solve the issue. By adding these line into Dockerfile</p> <pre><code>RUN chown -R ivy:root /usr/lib/axonivy-engine-8 &amp;&amp; chmod 775 -R /usr/lib/axonivy-engine-8 </code></pre> <p>Do you have any suggestion?</p> <p><strong>Update:</strong></p> <p>After fixing permission, I faced another issue, it's definitely related to OpenShift using different user.</p> <pre><code>java.lang.RuntimeException: Error initializing storage. at org.eclipse.osgi.internal.framework.EquinoxContainer.&lt;init&gt;(EquinoxContainer.java:84) at org.eclipse.osgi.launch.Equinox.&lt;init&gt;(Equinox.java:34) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:315) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:251) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597) at org.eclipse.equinox.launcher.Main.run(Main.java:1468) at org.eclipse.equinox.launcher.Main.main(Main.java:1441) Caused by: java.io.IOException: Unable to create lock manager. at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:713) at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:2168) at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:2185) at org.eclipse.osgi.storage.Storage.&lt;init&gt;(Storage.java:241) at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:176) at org.eclipse.osgi.internal.framework.EquinoxContainer.&lt;init&gt;(EquinoxContainer.java:82) ... 11 more An error has occurred. See the log file null. </code></pre>vinh_Thu, 18 Jun 2020 21:10:54 -0400https://answers.axonivy.com/questions/4599/axon-ivy-engine-8-could-not-start-on-openshift-with-deploymentconfigengineivyopenshiftConfigure Administrators by Environment variable in Axon.ivy 8https://answers.axonivy.com/questions/4586/configure-administrators-by-environment-variable-in-axon-ivy-8<p>Hi Ivy Team,</p> <p>I would like to configure Administrators by using Environment variable, I can configure <code>systemdb:url</code> by using <code>IVY_SYSTEMDB_URL</code>. But the structure Administrators config is different:</p> <p>YAML:</p> <pre><code>Administrators: admin: Password: "${hash:mySecret}" Email: info@localhost.com </code></pre> <p>Can I create Environment variables like following:</p> <pre><code>IVY_ADMINISTRATORS_ADMIN=&lt;value??&gt; IVY_ADMINISTRATORS_ADMIN_PASSWORD=&lt;password&gt; IVY_ADMINISTRATORS_ADMIN_EMAIL=info@localhost.com </code></pre> <p>I use Environment variable because I'm running Axon.ivy Engine within Containerized environment, and Environment variable is the suitable way to store configuration.</p> <p>I could see the Global Variables, Security System face the same issue.</p> <p>Thank for your support.</p>vinh_Wed, 17 Jun 2020 00:17:03 -0400https://answers.axonivy.com/questions/4586/configure-administrators-by-environment-variable-in-axon-ivy-8engineconfigurationivyPortal 8 - custom subMenu highlighthttps://answers.axonivy.com/questions/4579/portal-8-custom-submenu-highlight<p>In Portal 7 - I can highlight my custom SubMenu item with this code: <strong><em>administration.views.add("Administration.xhtml");</em></strong></p> <pre><code>SubMenuItem administration = new SubMenuItem(); administration.setMenuKind(MenuKind.CUSTOM); administration.setIcon("fa fa-database"); administration.setLabel("Administration")); administration.setLink(UrlUtils.getUrlByRequestID("17235FB212434858/administration.ivp")); administration.views.add("Administration.xhtml"); in.subMenuItems.add(administration); </code></pre> <p>But I see it not work in portal8. So the first question is how I can highlight my custom subMenu in portal8? </p> <p>Second point that How I can highlight my subMenu If my page start with IFrame? Because the view always <strong>ch.ivy.addon.portal.generic.iframe.TaskTemplateIFrame/TaskTemplateIFrame.xhtml</strong> </p>nbthongMon, 01 Jun 2020 05:52:04 -0400https://answers.axonivy.com/questions/4579/portal-8-custom-submenu-highlightportalivyivy.repo.save recursive Errorhttps://answers.axonivy.com/questions/4550/ivy-repo-save-recursive-error<p>Hi Comunity,</p> <p>When i use the ivy.repo.save to save my business data. I got an error as below:</p> <p>java.lang.StackOverflowError JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.ArrayList[0]-&gt;ch.ivyteam.ivy.security.internal.Role["users"]-&gt;ch.ivyteam.ivy.persistence.client.PersistentClientObjectList[0]-&gt;ch.ivyteam.ivy.security.internal.User["allRoles"]-&gt;.....</p> <pre><code>IvyRuntimeException: com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.ArrayList[0]-&gt;ch.ivyteam.ivy.security.internal.Role["users"]-&gt;ch.ivyteam.ivy.persistence.client.PersistentClientObjectList[0]-&gt;ch.ivyteam.ivy.security.internal.User["allRoles"]..... IvyScriptMethodInvocationException: Error calling method save(Object) on an object of class ch.ivyteam.ivy.business.data.store.internal.BusinessDataRepositoryImpl. IvyScriptRuntimeException: IvyScript Runtime Exception in Instruction: ivy.repo.save(in.groundwaterProtectionZones) </code></pre> <p>Could any one help me to explain why it happen and how to solve it? Thanks</p>pttungMon, 04 May 2020 06:24:47 -0400https://answers.axonivy.com/questions/4550/ivy-repo-save-recursive-errorbusiness-dataivyCan I define REST API endpoint in a jar file?https://answers.axonivy.com/questions/4470/can-i-define-rest-api-endpoint-in-a-jar-file<p>Hello everyone,</p> <p>I have a <strong>maven project</strong> (<strong>jar</strong>), for example, my-api. In this project, I defined a REST API endpoint:</p> <pre><code>@Path("/v1/dossiers") public class MyAPI { @Path("/") public Response getDossiers() { // our logic return response; } } </code></pre> <p>I have an <strong>ivy project</strong>, for example, my-app and I added the jar dependency <strong>my-api</strong>. I can't access the API above from client</p> <p>But, I tried to create a <strong>my-api</strong> as an ivy project (<strong>iar</strong>) and added it as an iar dependency my-app. It works well.</p> <p>My question is: Can I define the REST API endpoint in a jar file? If yes, how can I do that?</p> <p>P/s: We're using Ivy 7.0.11</p>ptgiangWed, 25 Mar 2020 04:40:40 -0400https://answers.axonivy.com/questions/4470/can-i-define-rest-api-endpoint-in-a-jar-fileivyrestAre you interested in developing Axon.ivy on IntelliJ?https://answers.axonivy.com/questions/4459/are-you-interested-in-developing-axon-ivy-on-intellij<p>Hello everyone, it had been several months since I start the idea of Coding Ivy in IntelliJ, here is some result I would like to share.</p> <p>A demo: <a href="https://www.youtube.com/watch?v=k-C6I7nT6Ic">https://www.youtube.com/watch?v=k-C6I7nT6Ic</a></p> <p>Github repository: <a href="https://github.com/saigonwithlove/ivy-intellij">https://github.com/saigonwithlove/ivy-intellij</a></p>vinh_Fri, 20 Mar 2020 01:43:55 -0400https://answers.axonivy.com/questions/4459/are-you-interested-in-developing-axon-ivy-on-intellijintellijivypluginCan not add @Provider to handle an specific exception for rest apihttps://answers.axonivy.com/questions/4452/can-not-add-provider-to-handle-an-specific-exception-for-rest-api<p>hi all,</p> <p>I'm creating a rest API for one application. It's working now. I would like to handle some specific exceptions and to return some specific data responses. I used <strong>@Provider</strong> from <strong>javax.ws.rs.ext.Provider</strong> to handle it, but I got an error 500.</p> <pre><code>import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; import ch.axonivy.fintech.export.dossier.exception.RecordNotFoundException; import ch.axonivy.fintech.export.dossier.response.ExportingErrorResponse; @Provider public class RecordNotFoundExceptionMapper implements ExceptionMapper&lt;RecordNotFoundException&gt; { @Override public Response toResponse(RecordNotFoundException ex) { ExportingErrorResponse response = new ExportingErrorResponse(); response.setStatusCode(Status.NOT_FOUND.getStatusCode()); response.setErrorMessage(ex.getMessage()); return Response.status(response.getStatusCode()).entity(response).type(MediaType.APPLICATION_JSON).build(); } } </code></pre> <p>The following is error:</p> <pre><code>14:59:41.299 WARN [ch.ivyteam.bus.internal] [Worker-45] [executionContext=SYSTEM] Error occured: java.lang.NullPointerException at org.glassfish.jersey.server.ResourceBag$Builder.registerModel(ResourceBag.java:116) at org.glassfish.jersey.server.ResourceBag$Builder.registerProgrammaticResource(ResourceBag.java:110) at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:459) at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184) at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350) at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255) at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:347) at org.glassfish.jersey.servlet.WebComponent.&lt;init&gt;(WebComponent.java:392) at org.glassfish.jersey.servlet.ServletContainer.reload(ServletContainer.java:681) at ch.ivyteam.ivy.webserver.internal.rest.RestLifecycleListener.reloadInContext(RestLifecycleListener.java:62) at ch.ivyteam.ivy.webserver.internal.rest.RestLifecycleListener.reload(RestLifecycleListener.java:47) at ch.ivyteam.ivy.webserver.internal.rest.RestLifecycleListener.handleDeprectatedClassLoader(RestLifecycleListener.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.engio.mbassy.dispatch.ReflectiveHandlerInvocation.invoke(ReflectiveHandlerInvocation.java:29) at net.engio.mbassy.dispatch.MessageDispatcher.dispatch(MessageDispatcher.java:30) at net.engio.mbassy.dispatch.FilteredMessageDispatcher.dispatch(FilteredMessageDispatcher.java:42) at net.engio.mbassy.subscription.Subscription.publish(Subscription.java:72) at net.engio.mbassy.bus.MessagePublication.execute(MessagePublication.java:49) at net.engio.mbassy.bus.MBassador.publish(MBassador.java:66) at ch.ivyteam.bus.internal.EventBus.publish(EventBus.java:30) at ch.ivyteam.ivy.java.internal.ClassLoaderHolder.deprecateClassLoaderInternal(ClassLoaderHolder.java:349) at ch.ivyteam.ivy.java.internal.ClassLoaderHolder.deprecateClassLoader(ClassLoaderHolder.java:323) at ch.ivyteam.ivy.java.internal.ClassLoaderHolder.reinstantiateClassLoader(ClassLoaderHolder.java:299) at ch.ivyteam.ivy.java.internal.ClassloaderReinstatiateCompilationParticipant.reinstatiateProjectClassloader(ClassloaderReinstatiateCompilationParticipant.java:82) at ch.ivyteam.ivy.java.internal.ClassloaderReinstatiateCompilationParticipant.buildFinished(ClassloaderReinstatiateCompilationParticipant.java:70) at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:235) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 15:41:38.174 ERROR [org.apache.catalina.core.ContainerBase.[ivy].[localhost].[/ivy].[org.glassfish.jersey.servlet.ServletContainer]] [http-nio-8081-exec-1] [requestId=2832] Servlet.service() for servlet [org.glassfish.jersey.servlet.ServletContainer] in context with path [/ivy] threw exception [java.lang.IllegalStateException: Request scope has been already shut down.] with root cause java.lang.IllegalStateException: Request scope has been already shut down. at jersey.repackaged.com.google.common.base.Preconditions.checkState(Preconditions.java:173) at org.glassfish.jersey.process.internal.RequestScope.retrieveCurrent(RequestScope.java:239) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:314) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) 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.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:1310) 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.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:48) 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.filter.IvyCurrentHttpRequestFilter.doFilter(IvyCurrentHttpRequestFilter.java:39) 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.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) 15:41:38.325 ERROR [org.apache.myfaces.application.ApplicationImpl] [http-nio-8081-exec-1] [requestId=2832] Could not instantiate component componentType = guiEventListenerComponent [errorId=170D30E5B15459D4, requestId=2832] ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible. Current thread: Thread[http-nio-8081-exec-1,5,main] at ch.ivyteam.ivy.environment.Ivy.getIvy(Ivy.java:577) at ch.ivyteam.ivy.environment.Ivy.getEnvironmentData(Ivy.java:556) at ch.ivyteam.ivy.environment.Ivy.getEnvironmentData(Ivy.java:551) at ch.ivyteam.ivy.environment.Ivy.request(Ivy.java:244) at ch.axonivy.fintech.guiframework.component.GuiEventListenerFactoryServiceProvider.getProjectClassLoader(GuiEventListenerFactoryServiceProvider.java:67) at ch.axonivy.fintech.guiframework.component.GuiEventListenerFactoryServiceProvider.getFactory(GuiEventListenerFactoryServiceProvider.java:32) at ch.axonivy.fintech.guiframework.component.GuiEventListenerComponent.&lt;init&gt;(GuiEventListenerComponent.java:46) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1469) at javax.faces.application.ApplicationWrapper.createComponent(ApplicationWrapper.java:129) at org.apache.myfaces.view.facelets.compiler.FaceletsCompilerSupport.loadLibraries(FaceletsCompilerSupport.java:141) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.loadLibraries(FaceletViewDeclarationLanguage.java:2526) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.createCompiler(FaceletViewDeclarationLanguage.java:2172) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.initialize(FaceletViewDeclarationLanguage.java:2464) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.&lt;init&gt;(FaceletViewDeclarationLanguage.java:309) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguageStrategy.&lt;init&gt;(FaceletViewDeclarationLanguageStrategy.java:52) at org.apache.myfaces.view.ViewDeclarationLanguageFactoryImpl.initialize(ViewDeclarationLanguageFactoryImpl.java:104) at org.apache.myfaces.view.ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(ViewDeclarationLanguageFactoryImpl.java:73) at org.apache.myfaces.application.ViewHandlerImpl.getViewDeclarationLanguage(ViewHandlerImpl.java:183) at javax.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage(ViewHandlerWrapper.java:133) at org.apache.myfaces.shared.application.DefaultViewHandlerSupport.checkResourceExists(DefaultViewHandlerSupport.java:569) at org.apache.myfaces.shared.application.DefaultViewHandlerSupport.handleSuffixMapping(DefaultViewHandlerSupport.java:507) at org.apache.myfaces.shared.application.DefaultViewHandlerSupport.calculateViewId(DefaultViewHandlerSupport.java:113) at org.apache.myfaces.application.ViewHandlerImpl.deriveLogicalViewId(ViewHandlerImpl.java:122) at javax.faces.application.ViewHandlerWrapper.deriveLogicalViewId(ViewHandlerWrapper.java:112) at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:225) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:392) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:395) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:254) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:349) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175) 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> <p>P/s: I’m using Axon Ivy 7.0.11</p> <p>Could you please give me some suggestions or any hints to overcome this issue? Thank you!</p>ptgiangFri, 13 Mar 2020 06:10:26 -0400https://answers.axonivy.com/questions/4452/can-not-add-provider-to-handle-an-specific-exception-for-rest-apiivyrestEngine Performance - Profiling 2https://answers.axonivy.com/questions/4435/engine-performance-profiling-2<p>Dear Ivy Team</p> <p>I've profiled our app with VisualVM and it turned out that bundle.getString consumes about 15% of the time :</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/Unbenannt_BLAmLnP.PNG"></p> <p>ResourceHandlerImpl.getLocalePrefixForLocateResource</p> <p>...</p> <pre><code> try { ResourceBundle bundle = ResourceBundle.getBundle(bundleName, locale, ClassUtils.getContextClassLoader()); if (bundle != null) { localePrefix = bundle.getString(ResourceHandler.LOCALE_PREFIX); } } </code></pre> <p>Any idea what is wrong here ?</p> <p>Best regards</p> <p>John</p>John MoserMon, 02 Mar 2020 08:19:48 -0500https://answers.axonivy.com/questions/4435/engine-performance-profiling-2ivyBrowser back button - any workarounds ?https://answers.axonivy.com/questions/4402/browser-back-button-any-workarounds<p>Dear Ivy Team</p> <p>It seems that Ivy can't handle by default the browser back button if the UI is related to a process. Your proposed solution is to suppress the back button. Imho this is not an acceptable solution especially if everything else reacts correctly to the back button.</p> <p>I would assume/expect that a Ivy process which is designed with multiple "back paths" should be able to support some kind of a "back button" behavior.</p> <p>Regards John Moser</p>John MoserTue, 18 Feb 2020 09:23:43 -0500https://answers.axonivy.com/questions/4402/browser-back-button-any-workaroundsivyEngine Performance - Profilinghttps://answers.axonivy.com/questions/4379/engine-performance-profiling<p>Dear Ivy Team</p> <p>My test setup is as follows : 4 CPU (i7, 3GHz), Xms128m, Xmx2048m</p> <p>2 Browsers, every 3 seconds a click on the UI during 60 seconds</p> <p>1 With visualvm it shows that Ivy spent approx 16s with reading, the issue is I can not quantify how much data it is (since your performance / rest client logging is not working). But my guess is, it can only be a few hundred KB in total.</p> <p>=&gt; 16s seem to me a lot, can you confirm my results ?</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/Unbenannt.PNG"></p> <p>2 Rest Client - java &gt; Ivy.rest() : is Ivy.rest() client pooled ? (since the Rest Clients are pretty heavy weight they should be pooled otherwise memory consumption skyrockets and also performance will degrade if they are used like in a micro services architecture)</p> <p>=&gt; Ivy.rest() did you do any performance analysis ? Is this the "required" way of using Rest Client in Ivy ?</p>John MoserFri, 07 Feb 2020 04:14:06 -0500https://answers.axonivy.com/questions/4379/engine-performance-profilingivyrestaxis2 socket max timeout valuehttps://answers.axonivy.com/questions/4366/axis2-socket-max-timeout-value<p>Hi,</p> <p>I have a max timeout on socket connection with Ivy 5.1 when I use a web service node. Is it a way to modify this value in this version of Ivy ?</p> <p>I tried with web.xml and java option but do nothing.. And I can't find anything in the server variable configuration..</p> <p>Any hint will be very appreciate.</p> <p>Thanks in advance.</p> <p>Fabien Duay</p>fabienTue, 04 Feb 2020 09:26:48 -0500https://answers.axonivy.com/questions/4366/axis2-socket-max-timeout-valueivywebserviceIvyLog4jLayout - parametershttps://answers.axonivy.com/questions/4358/ivylog4jlayout-parameters<p>Dear Ivy Team</p> <p>For REST logs (rest_client category), I would like to log the elapsed time as well as the amount of data transferred. Any tips how to configure IvyLog4jLayout ?</p> <p>Best regards John</p>John MoserMon, 03 Feb 2020 11:32:00 -0500https://answers.axonivy.com/questions/4358/ivylog4jlayout-parametersloggingivyPerformance Logginghttps://answers.axonivy.com/questions/4351/performance-logging<p>Dear Ivy Team</p> <p>It looks like the Performance Logging can only be run in DEBUG level. Unfortunately in DEBUG level the logging crashes almost the Ivy Engine. </p> <p>Is there a way to simply log the requests (such as the access_log in the original tomcat) ?</p> <p>Regards John</p>John MoserFri, 31 Jan 2020 12:56:41 -0500https://answers.axonivy.com/questions/4351/performance-loggingloggingivyDoes HTML Dialogs support Java Class extended CompositeObject in Ivy 8 ?https://answers.axonivy.com/questions/4344/does-html-dialogs-support-java-class-extended-compositeobject-in-ivy-8<p>In Ivy 7, sometimes I use Java Class as a Caller Data for HTML Dialogs like the following picture, and it used to work perfectly <img alt="alt" src="https://i.ibb.co/48QXn7B/Screenshot-2.png"> Then I try to migrate my project to Ivy 8 and I realize that in the components that I am using JavaClass face this error <strong>Process data class 'Class Name' does not exist</strong></p> <p><img alt="alt text" src="https://i.ibb.co/zrVy7Wt/Screenshot-4.png"></p> <p>I also tried to create the new component but Ivy cannot find the JavaClass either </p> <p><img alt="alt text" src="https://i.ibb.co/cx0C9Dc/Screenshot-3.png"></p> <p>So in Ivy 8, does HTML Dialogs still support Java Class extended Composite Object ?. In case not, is there any alternative solution ? Thank you.</p>tdtinThu, 30 Jan 2020 01:47:40 -0500https://answers.axonivy.com/questions/4344/does-html-dialogs-support-java-class-extended-compositeobject-in-ivy-8migrationivyResources (css, js, images) in Ivy - performance impact ?https://answers.axonivy.com/questions/4328/resources-css-js-images-in-ivy-performance-impact<p>Dear Ivy Team</p> <p>Usually the static web content such as css, js, images etc are offloaded and put in a web proxy in order to reduce the data load for the app server. Of course these files must be cached on the browser side. But still they must expire on a daily basis (since hotfixes can come in on a daily basis).</p> <p>Any ideas ?</p> <p>Regards John</p>John MoserTue, 28 Jan 2020 04:16:07 -0500https://answers.axonivy.com/questions/4328/resources-css-js-images-in-ivy-performance-impactivyJava Mission Controller, Flight Recorder - Access deniedhttps://answers.axonivy.com/questions/4325/java-mission-controller-flight-recorder-access-denied<p>Dear Ivy Team</p> <p>Doing some performance analysis since our app is using a lot of CPU. I've activated</p> <p>JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9003 -Dcom.sun.management.jmxremote.login.config=jmx -Djava.security.auth.login.config=configuration/jaas.config -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.autodiscovery=true"</p> <p>JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=&lt;ip&gt;"</p> <p>When I connect with Java Mission Controller to Ivy 7 I get the following results :</p> <ul> <li>Start JMX Console : works</li> <li>Start Flight Recorder : Access denied! Invalid access level for requested MBeanServer operation.</li> </ul> <p>java.lang.RuntimeException: Access denied! Invalid access level for requested MBeanServer operation. at com.jrockit.mc.flightrecorder.controlpanel.ui.FlightRecorderProvider.refresh(FlightRecorderProvider.java:110) at com.jrockit.mc.browser.views.JVMBrowserView$1.run(JVMBrowserView.java:100) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at Caused by: java.lang.SecurityException: Access property for this identity should be similar to: readwrite create com.sun.management.MissionControl at ....</p> <p>According to <a href="https://community.oracle.com/thread/2588377">https://community.oracle.com/thread/2588377</a> :</p> <p>You need to ensure that the user you want to access the flight recorder has permission to create the relevant MBeans. You have probably defined the roles in the jmxremote.access file. Try adding:</p> <p>&lt;your-role-name-goes-here&gt; readwrite \ create com.sun.management.<em>,com.oracle.jrockit.</em> \ unregister</p> <p>=&gt; where can I change this for Ivy ?</p> <p>Thanks &amp; Regards John</p>John MoserFri, 24 Jan 2020 07:20:21 -0500https://answers.axonivy.com/questions/4325/java-mission-controller-flight-recorder-access-deniedivyMigrate running cases to new PMVhttps://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmv<p>Hi Ivy team</p> <p>At the moment, we deploy our application with multiple PMVs, each PMV has its own running case. And now we change our mind, we don't want to deploy multiple PMV anymore, we want to make sure the Ivy engine contains only the lastest PMV. For that reason, we want to remove the old PMV first.</p> <p>But when we remove the deprecated pmv, adminUI throws the message that I can't remove deprecated PMV. We know that we should resolve all running tasks to make deprecated PMV become archived and removable. But the are a ton of running tasks for PMV. </p> <p>So our question is: Is there any way to remove/resolve those tasks automatically or at least migrate that task to the lastest PMV? Thank for any help</p>lphieuFri, 17 Jan 2020 01:36:26 -0500https://answers.axonivy.com/questions/4323/migrate-running-cases-to-new-pmvpmvivyMultiple deploy process modules by a single zip filehttps://answers.axonivy.com/questions/4306/multiple-deploy-process-modules-by-a-single-zip-file<p>Dear Ivy team. At the moment, we're using Ivy v 7.0.11 and we need to deploy multiple process modules to the specific Ivy application by using "File based deployment" approach (<a href="http://developer.axonivy.com/doc/7.0.11/EngineGuideHtml/administration.html#administration.deployment).">http://developer.axonivy.com/doc/7.0.11/EngineGuideHtml/administration.html#administration.deployment).</a> It worked well when we only deploy single iar file. But when we create a zip file that contains multiple iars file inside, it got the problem.</p> <p>Our zip file content: <img alt="alt text" src="http://cloud.screenpresso.com/NDJXe/2020-01-02_13h42_30.png"></p> <p>Deployment error log:</p> <pre><code>Fatal error during deploying of project 'app.zip' to application 'Application' java.lang.NullPointerException at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.isLibraryMissing(ProjectDeploymentValidator.java:165) at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.prepareIvyProject(ProjectDeploymentValidator.java:146) at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.prepareIvyProject(ProjectDeploymentValidator.java:82) at ch.ivyteam.ivy.deployment.internal.auto.AutoProjectDeployer.validate(AutoProjectDeployer.java:81) at ch.ivyteam.ivy.deployment.internal.auto.AutoProjectDeployer.deploy(AutoProjectDeployer.java:46) at ch.ivyteam.ivy.deployment.internal.auto.DeploymentDirectoryScanner.handleFile(DeploymentDirectoryScanner.java:85) at ch.ivyteam.ivy.deployment.internal.auto.DeploymentDirectoryScanner.fileCreated(DeploymentDirectoryScanner.java:75) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.handleEvent(ScannerThread.java:191) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.scanForFiles(ScannerThread.java:164) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1310) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.run(ScannerThread.java:144) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.access$0(ScannerThread.java:140) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread$1.run(ScannerThread.java:134) </code></pre> <p>So is there any way to deploy multiple process modules by a single zip file with Ivy 7.0.11? Waiting for your response and many thank for your help</p>lphieuThu, 02 Jan 2020 03:19:36 -0500https://answers.axonivy.com/questions/4306/multiple-deploy-process-modules-by-a-single-zip-fileivydeploymentIvy Engine 8 Deployment APIhttps://answers.axonivy.com/questions/4305/ivy-engine-8-deployment-api<p>I'm setup Ivy Engine 8 successful on remote server. And try to use the deployment API to deploy my iar file. But I got exception.</p> <pre><code>2019-12-27 14:18:37.671 ERROR [ch.ivyteam.ivy.webserver.rest.exception.IvyExceptionMapper] [http-nio-8088-exec-2] [application=0, requestId=4, session=5 (ivyadmin), executionContext=SYSTEM, client=192.168.78.69] null java.lang.NullPointerException at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPath.parse(Unknown Source) at java.base/sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at java.base/java.nio.file.Path.resolve(Unknown Source) at ch.ivyteam.ivy.deployment.restricted.DeploymentService$TemporaryDeployDirectory.getDeploymentFile(DeploymentService.java:126) at ch.ivyteam.ivy.deployment.restricted.DeploymentService$TemporaryDeployDirectory.writeFileToDeploy(DeploymentService.java:100) at ch.ivyteam.ivy.deployment.restricted.DeploymentService.deploy(DeploymentService.java:34) at ch.ivyteam.ivy.webserver.internal.rest.deploy.Deployment.deploy(Deployment.java:94) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.lambda$0(RestPmvInvocationHandler.java:41) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.call(RestPmvInvocationHandler.java:50) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.lambda$1(RestPmvInvocationHandler.java:42) at ch.ivyteam.ivy.security.exec.Sudo.call(Sudo.java:33) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.invoke(RestPmvInvocationHandler.java:42) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) at org.glassfish.jersey.internal.Errors.process(Errors.java:292) at org.glassfish.jersey.internal.Errors.process(Errors.java:274) at org.glassfish.jersey.internal.Errors.process(Errors.java:244) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:392) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:365) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:318) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126) 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.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.ivy.webserver.internal.filter.LicenceFilter.doFilter(LicenceFilter.java:13) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) 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.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.ivy.webserver.internal.exception.ExceptionFilter.doFilter(ExceptionFilter.java:50) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) 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.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:32) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) 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.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26) at ch.ivyteam.ivy.webserver.internal.filter.RemoteClientFilter.doFilter(RemoteClientFilter.java:18) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) 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.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26) at ch.ivyteam.ivy.webserver.internal.filter.IvyCurrentHttpRequestFilter.doFilter(IvyCurrentHttpRequestFilter.java:13) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) 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.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26) at ch.ivyteam.ivy.security.exec.Sudo.execute(Sudo.java:63) at ch.ivyteam.ivy.webserver.internal.filter.IvyExecuteAsSystemFilter.doFilter(IvyExecuteAsSystemFilter.java:11) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) 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:121) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133) 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:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:40) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1579) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Unknown Source) </code></pre> <p>My remote server is:</p> <pre><code>Window server 2012 </code></pre> <p>Java:</p> <pre><code>java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode) </code></pre> <p>Ivy Engine:</p> <pre><code>Axon.ivy Engine Version 8.0 Patch 0 Revision 1912040933 Copyright (c) 2001-2019 AXON Ivy AG ----------------------------------------------------- Java Version 11.0.5 (AdoptOpenJDK) JVM Version 11.0.5+10 (OpenJDK 64-Bit Server VM) </code></pre> <p>I use postman to call API. And Postman generated code for cURL.</p> <pre><code>curl --location --request POST 'http://10.123.0.174:8088/ivy/api/system/apps/ivy8app' \ --header 'X-Requested-By: curl' \ --header 'Authorization: Basic aXZ5YWRtaW46Ym9sdEA3ODk3ODk=' \ --header 'Content-Type: multipart/form-data; boundary=--------------------------880982583403848694607523' \ --form 'fileToDeploy=D:/EMTGRelease/QuickStartTutorial.iar' </code></pre> <p>I already create <strong>ivy8app</strong> by cockpit. Already bring the <strong>QuickStartTutorial.iar</strong> in my local forder D:/EMTGRelease/ to upload. I just think my value of "fileToDeploy" parameter is not correct 100%. Do you have any idea?</p> <blockquote> <p>Thanks &amp; Regards</p> </blockquote>nbthongFri, 27 Dec 2019 04:27:12 -0500https://answers.axonivy.com/questions/4305/ivy-engine-8-deployment-apiengineivydeploymentHow to call HTML dialog's method from javahttps://answers.axonivy.com/questions/4230/how-to-call-html-dialog-s-method-from-java<p>Dear Ivy team I would like to know is there any way to trigger a HTML dialog from java code. Lets me describe the situation: I have a page that contains a method named "run" <img alt="alt text" src="https://answers.axonivy.com/upfiles/2019-12-04_16h47_35.png"></p> <p>In HTML view I have a button to call a method from backing bean "Bean" <img alt="alt text" src="https://answers.axonivy.com/upfiles/2019-12-04_16h48_42.png"> Now what we need to how to trigger method "run" from the backing bean <img alt="alt text" src="https://answers.axonivy.com/upfiles/2019-12-04_16h49_17_Xq1duAv.png"></p> <p>We can achieve this only when the method belongs to an Ivy component by using something like this <img alt="alt text" src="https://answers.axonivy.com/upfiles/2019-12-04_16h52_34.png"> Unfortunately, this way only work for Ivy's component, not for the page. So my question is do we have any way to call HTML dialog's method from java?</p>hieulamWed, 04 Dec 2019 04:53:52 -0500https://answers.axonivy.com/questions/4230/how-to-call-html-dialog-s-method-from-javahtmldialogivyhow to work with database in Axon Ivy 7.4.0 use Hibernate for modelinghttps://answers.axonivy.com/questions/4217/how-to-work-with-database-in-axon-ivy-7-4-0-use-hibernate-for-modeling<p>Hi Ivy team,</p> <p>I've used axon ivy 7.3.1 with standard persistency library for CRUD app, every thing is ok so does the Axon ivy 7.4.0 still work with persistence lib or use other way to connect with database ?</p> <p>if not then how to work with 7.4.0 with hibernate model if it still can work with that lib , can you give a step to do that</p> <p>I tried configured in pom.xml file: </p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.axonivy&lt;/groupId&gt; &lt;artifactId&gt;persistence&lt;/artifactId&gt; &lt;version&gt;0.0.1&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <hr> <p>use maven build I get a error:</p> <p><strong><em>Could not resolve dependencies for project my.app:my-app:iar:1.0.0-SNAPSHOT: Failure to find com.axonivy:persistence:jar:0.0.1 in <a href="https://repo.maven.apache.org/maven2">https://repo.maven.apache.org/maven2</a> was cached in the local repository</em></strong></p> <p>so How I do fix it ?</p> <p>Thank you guys</p>tuannvWed, 27 Nov 2019 23:05:21 -0500https://answers.axonivy.com/questions/4217/how-to-work-with-database-in-axon-ivy-7-4-0-use-hibernate-for-modelingivyHow to get "bundledServerUrl" of IBusinessDataManager in ivy 8.0?https://answers.axonivy.com/questions/4171/how-to-get-bundledserverurl-of-ibusinessdatamanager-in-ivy-8-0<p>Hello ivyTeam, we have one problem with BusinessData when migrate to ivy 8.0 Currently, some projects on our side need to re-create index of business data with specific template. In order to do that, we need to get field "bundledServerUrl" of IBusinessDataManager to get Bundled ES URL to put template.</p> <p>But since ivy 8.0, IBusinessDataManager does not has field "bundledServerUrl" anymore.</p> <p>Therefore I want to ask you how we get "bundledServerUrl" in ivy 8.0? Do we have any alternative to get ES bundled server URL in ivy 8.0?</p>Nam MaiThu, 14 Nov 2019 21:24:52 -0500https://answers.axonivy.com/questions/4171/how-to-get-bundledserverurl-of-ibusinessdatamanager-in-ivy-8-0ivyCannot modify the length of ivy task name in the databasehttps://answers.axonivy.com/questions/4132/cannot-modify-the-length-of-ivy-task-name-in-the-database<p>Hi there. </p> <p>Today, I have a problem with the name of a task. The name of the task is over 200 characters and exceeds the capacity the whole task name can be saved to the database. </p> <p>My question is how can I change the length of the Ivy task name in the database? I want to make it unlimited. </p> <p>Thank you</p>ntctuyenSat, 02 Nov 2019 03:34:04 -0400https://answers.axonivy.com/questions/4132/cannot-modify-the-length-of-ivy-task-name-in-the-databasetaskivydatabaseIvy task with start link Ivy is not persisted immediatelyhttps://answers.axonivy.com/questions/4112/ivy-task-with-start-link-ivy-is-not-persisted-immediately<p>Dear Ivy team.</p> <p>At the moment, we're facing the problem with start link ivy is marked as <strong>Persist task on creation</strong> come with some additional data what was set in <strong>customvarcharfield</strong>.</p> <p>We create a trigger in our ivy's database to listen to any changes in <code>iwa_task</code> table. We saw that whenever a user starts that ivy link. ivy will insert a new record in table <strong>iwa_task</strong> with a <em>taskid</em> but the value for <code>customvarchar1 is empty</code>, very quickly after that, ivy also performs another update on the same task to update data for customvarchar. After 2 updates in the iwa_task table, we have the correct data with a task that is created come with customvarcharfield.</p> <p>It works pretty well for single user because the delay time between 2 updates is very short and unnoticeable. But when there are many users are working at the same time, we got the problem. Because each user access the Portal's tasklist at the same time, so they will query the existing tasks in the system. But under some unluckily moment, the task is created (at the first stage without customvarchar) is queried and return to other user's results. Without customvarchar means the task data is not displayed properly.</p> <p>I just wonder is there any way to make "Persist task on creation" is persisted only once with full of data instead of creating an empty task and update data later?</p> <p>Thank in advanced.</p>hieulamFri, 18 Oct 2019 00:27:09 -0400https://answers.axonivy.com/questions/4112/ivy-task-with-start-link-ivy-is-not-persisted-immediatelytaskivy7.3.1 deployment - is a zip file still suportedhttps://answers.axonivy.com/questions/4104/7-3-1-deployment-is-a-zip-file-still-suported<p>Dear Ivy Team</p> <p>Pre-7.3.1 we deployed a xyz.zip containing the IARs to the deploy folder.</p> <p>What is the preferred way with 7.3.1 ?</p> <p>Best regards John Moser</p>John MoserWed, 16 Oct 2019 04:51:02 -0400https://answers.axonivy.com/questions/4104/7-3-1-deployment-is-a-zip-file-still-suportedivydeploymentHow to increase file size upload limit in IIS?https://answers.axonivy.com/questions/4070/how-to-increase-file-size-upload-limit-in-iis<p>After setting up my Ivy environment with an IIS, I could not upload any large files. Where can I change that restriction? </p> <p>The error message looks something like this:</p> <pre><code>Request timed out. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Request timed out. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Request timed out.] </code></pre>SupportIvyTeamFri, 04 Oct 2019 04:31:56 -0400https://answers.axonivy.com/questions/4070/how-to-increase-file-size-upload-limit-in-iisivyiisCross site scripting - XSShttps://answers.axonivy.com/questions/4054/cross-site-scripting-xss<p>Dear Ivy team</p> <p>Just recently we had a security audit which reported that our app is vulnerable to XSS attacks. The issue is that the Primeface input fields (whatever control) seem not to be escaped. By default it should be escape="true" but it seems it's escape="false" which would be really bad (for all Ivy based applications).</p> <p>Any idea why this is the case ? May be an outdated jsf lib ?</p> <p>Best regards John</p>John MoserThu, 03 Oct 2019 08:33:45 -0400https://answers.axonivy.com/questions/4054/cross-site-scripting-xssivy