Questions Tagged With error-handlinghttps://answers.axonivy.com/tags/error-handling/?type=rssquestions tagged <span class="tag">error-handling</span>enMon, 10 Dec 2018 10:50:16 -0500ErrorPageMBean.getApplicationName() returns always "?"https://answers.axonivy.com/questions/3569/errorpagembean-getapplicationname-returns-always<p>I have defined my own error page, which displays a link to the application start page. To get the current application, we use <code>ErrorPageMBean.getApplicationName()</code>, which always returns "?".</p>SupportIvyTeamMon, 10 Dec 2018 10:50:16 -0500https://answers.axonivy.com/questions/3569/errorpagembean-getapplicationname-returns-alwayserror-handlingHow to create ErrorHandling process for dependent project model?https://answers.axonivy.com/questions/3543/how-to-create-errorhandling-process-for-dependent-project-model<p>Hi all</p> <p>As you may know that in ivy, it allow to create Process with name <strong>ErrorHandling</strong> to centralize error handling <img alt="alt text" src="https://answers.axonivy.com/upfiles/cob-page-structures_PIZy7Pg.png"></p> <p>This process must name as ErrorHandling and put inside Processes.</p> <p>Now I have another project that depend on this project and when i create ErrorHandling on that, ivy say: </p> <pre><code> Can't create process with same name. </code></pre> <p>How can i solve this issue?</p> <p>Thanks</p>trungdvWed, 14 Nov 2018 02:41:24 -0500https://answers.axonivy.com/questions/3543/how-to-create-errorhandling-process-for-dependent-project-modelerror-handlingError "Uncaught Exception in thread 'AWT-EventQueue-1' " Linux Mint 19https://answers.axonivy.com/questions/3410/error-uncaught-exception-in-thread-awt-eventqueue-1-linux-mint-19<p>I get an error that says "Uncaught Exception in thread 'AWT-EventQueue-1' " when I try to open "Attribute" in "User Dialog Event" <img alt="alt text" src="https://answers.axonivy.com/upfiles/Selection_006.png"><img alt="alt text" src="https://answers.axonivy.com/upfiles/Selection_007.png"></p> <p>This is the Error Report :</p> <pre><code>--- Stack Trace --- java.lang.NullPointerException at ch.ivyteam.awtExt.treetable.TreeTableRenderer.getNode(TreeTableRenderer.java:272) at ch.ivyteam.ivy.awtGuiComponents.ivvScriptTrees.IvyScriptTreeTableCellRenderer.getTableCellRendererComponent(IvyScriptTreeTableCellRenderer.java:106) at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7037) at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7424) at javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:6939) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415) at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(DefaultListSelectionModel.java:576) at javax.swing.DefaultListSelectionModel.clearSelection(DefaultListSelectionModel.java:420) at javax.swing.JTable.clearSelection(JTable.java:2120) at javax.swing.JTable.clearSelectionAndLeadAnchor(JTable.java:2128) at javax.swing.JTable.tableChanged(JTable.java:4451) at ch.ivyteam.awtExt.treetable.VariableRowHeightTreeTable.tableChanged(VariableRowHeightTreeTable.java:44) at ch.ivyteam.awtExt.treetable.InternalModel.computeVisibleRows(InternalModel.java:645) at ch.ivyteam.awtExt.treetable.InternalModel.expandOrCollapse(InternalModel.java:428) at ch.ivyteam.awtExt.treetable.FilteredInternalModel.filterExpandOrCollapse(FilteredInternalModel.java:202) at ch.ivyteam.awtExt.treetable.BaseMapModelFilter.filterExpandOrCollapse(BaseMapModelFilter.java:123) at ch.ivyteam.awtExt.treetable.FilteredInternalModel.expandOrCollapse(FilteredInternalModel.java:67) at ch.ivyteam.awtExt.treetable.TreeTable$1.mouseClicked(TreeTable.java:94) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269) at java.awt.Component.processMouseEvent(Component.java:6542) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6304) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) at java.awt.Container.dispatchEventImpl(Container.java:2283) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at org.GNOME.Accessibility.AtkWrapper$6.dispatchEvent(AtkWrapper.java:715) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) </code></pre>ivy-jlaTue, 04 Sep 2018 04:16:23 -0400https://answers.axonivy.com/questions/3410/error-uncaught-exception-in-thread-awt-eventqueue-1-linux-mint-19designereventerror-handlinglinuxPrevent/by-pass ivy:error:loophttps://answers.axonivy.com/questions/3181/prevent-by-pass-ivy-error-loop<p>Hello everyone</p> <p>We have a process, where we parse a CSV file. For each line a web service is called (in a loop). Our error handling catches timeout and other errors with <code>Error Start</code> elements.</p> <p>The problem now is, on the second timeout (or other) error, Ivy throws an <code>ivy:error:loop</code> error, because it is the same sender and receiver element as also the same task.</p> <p>What are possible solutions for this problem? We can't send all lines at once, because the web service is third party, and also it is crucial to catch every error to handle it.</p> <p>Any help will be appreciated.<br> Thanks.</p> <p>Here's a picture of the process: <img alt="diagramm" src="https://answers.axonivy.com/upfiles/diagramm.png"></p>rhorberTue, 10 Apr 2018 09:45:14 -0400https://answers.axonivy.com/questions/3181/prevent-by-pass-ivy-error-loopwebserviceerror-handlingGlobal Error Handler HTML Dialog not being loadedhttps://answers.axonivy.com/questions/2727/global-error-handler-html-dialog-not-being-loaded<p>Recently I encountered an problem that the HTML Dialog of my global Error Handler cannot be loaded &amp; the HTML Dialog that got error thrown is not being loaded.</p> <p>The demo project for reproduction can be found here : <a href="https://github.com/toanlc0912/demo-error-handler">https://github.com/toanlc0912/demo-error-handler</a></p> <p>The Ivy version I'm using is 6.2. Not really sure if I did anything wrong on the structure of all the error element</p>ToanLCWed, 28 Jun 2017 23:32:16 -0400https://answers.axonivy.com/questions/2727/global-error-handler-html-dialog-not-being-loadedivyerror-handlingErrorHandler for "Dialog instance is not available anymore"https://answers.axonivy.com/questions/2661/errorhandler-for-dialog-instance-is-not-available-anymore<p>Dear Ivy Team.</p> <p>Is it possible to catch error "Dialog instance is not available any more" via ErrorHandler process?</p> <p>I made ErrorHandler the similar as in example ErrorHandlingDemos with error code: "ivy:error". But it's not working. We would like to move user to home page when that error happens. We use SVN for a project in workspace and we wouldn't want to change web.xml in the designer (for example to replace error page) because it is beyond SVN.</p> <p>Thanks!</p>Maxim SFri, 02 Jun 2017 02:55:24 -0400https://answers.axonivy.com/questions/2661/errorhandler-for-dialog-instance-is-not-available-anymoreerror-handlingHow to avoid the Error Http Status Code 409?https://answers.axonivy.com/questions/2427/how-to-avoid-the-error-http-status-code-409<p>Scenario:</p> <ol> <li>user1 authenticates and starts a task;</li> <li>Then, user1 closes the browser window with the task open;</li> <li>Finally, authenticates again and try to do the task.</li> </ol> <p>Then, it throw the Error: "Error Http Status Code 409", ConflictRequestException: "You cannot work on the task '305 - User 1 - Task 1 - ' with the identifier '41' because the user 'user1' is currently working on it.". </p> <p>The simulation doesn't start before the error, so I am wondering if it could be just a configuration on Axon Ivy. My Question is <strong>How to avoid the Error Http Status Code 409?</strong> </p> <p>Any help is appreciated.</p> <p>Notes: </p> <ul> <li>In my user application, the tasks are showing using the approach explained in <a href="http://answers.axonivy.com/questions/2410/findworktasks-never-returns-tasks-in-taskstate-resumed-state">findWorkTasks() never returns tasks in TaskState.RESUMED state</a>;</li> <li>Since it's not reliable in all browsers, I am avoiding to handle the window closing: <a href="http://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialog">Detecting when the user closes the window or tab of the browser in a Html Dialog</a>;</li> <li>It seems that the Portal handles the action differently for RESUMED and SUSPENDED tasks, that's my plan B;</li> <li>Engine Version 6.0.5;</li> </ul>Jailson BritoTue, 07 Feb 2017 18:32:50 -0500https://answers.axonivy.com/questions/2427/how-to-avoid-the-error-http-status-code-409tasklisterror-handlingconfigurationtaskIs it possible to set the 404 error Page more specifichttps://answers.axonivy.com/questions/2114/is-it-possible-to-set-the-404-error-page-more-specific<p>Hi,</p> <p>is it possible to modify the error page for file not found more specific?</p> <p>404 is raised if the Task is done and if the Task is resumed. Is it possible to show this information to the user?</p> <p>best regards Roland</p>rolandMon, 17 Oct 2016 14:15:01 -0400https://answers.axonivy.com/questions/2114/is-it-possible-to-set-the-404-error-page-more-specificerror-handlingErrorHandler 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-handlingivy.html.startref throws exception on serverhttps://answers.axonivy.com/questions/1973/ivy-html-startref-throws-exception-on-server<p>Hello all,</p> <p>I just found out that this method:</p> <pre><code>ivy.html.startref("Start Processes/DashboardPages/DefaultApplicationHomePage.ivp") </code></pre> <p>throws an exception on the ivy server, but not in the Designer</p> <p>Why ? What am I missing ?</p> <p>Best Regards, Yordan Yunchov</p>Stelt0Thu, 18 Aug 2016 18:05:26 -0400https://answers.axonivy.com/questions/1973/ivy-html-startref-throws-exception-on-servererror-handlingError handler redirect to Web Page or User Dialog ?https://answers.axonivy.com/questions/1940/error-handler-redirect-to-web-page-or-user-dialog<p>Hello All,</p> <p>I have an interesting situation.</p> <p>I have a User Dialog with interactions and a bit complex Logic. There is a point in the process where I`m trowing an exception and I want to redirect the user to an error page: <img alt="alt text" src="http://answers.axonivy.com/upfiles/1.JPG"></p> <p>I want to catch the exception in the business process where to do the redirect. Here is the confusing part:</p> <ol> <li> <p>If I redirect to User Dialog, everything is working correctly: <img alt="alt text" src="http://answers.axonivy.com/upfiles/3.JPG"></p> </li> <li> <p>If I redirect to Web Page (JSP from the CMS) it is trowing an error. <img alt="alt text" src="http://answers.axonivy.com/upfiles/2.JPG"></p> </li> </ol> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/4.JPG"></p> <p>Is this a bug or wrong architecture from my side ?</p> <p>anyway, what is the best practice for managing exceptions in User Dialog`s Logic?</p> <p>Best Regards, Yordan Yunchov</p>Stelt0Thu, 04 Aug 2016 14:38:50 -0400https://answers.axonivy.com/questions/1940/error-handler-redirect-to-web-page-or-user-dialoghtmluserdialogbest-practiceerror-handlingCustom servlet filterhttps://answers.axonivy.com/questions/1914/custom-servlet-filter<p>Hello all, I have a question : Can I create a custom servlet filter (interceptor) and register it to Ivy Engine Server, so whenever a request is sent to the server, it must pass this custom filter (interceptor) first? And I also see that Ivy has some filter classes in package "ch.ivyteam.ivy.webserver.internal". So if I can register my custom filter, when does it intercept the request (before or after filter in the package above) ?.</p> <p>A little bit about my problem : We have one case that whenever the admin changes the LDAP directory, if the user already logged in the application now no more exist in the new LDAP directory, the exception "PersistentObjectDeletedException" will be thrown. This exception happen when the filter in the package "ch.ivyteam.ivy.webserver.internal" start filtering the request!!</p>qtdan93Mon, 25 Jul 2016 12:19:38 -0400https://answers.axonivy.com/questions/1914/custom-servlet-filtererror-handlingIvy server fails to start because of "Page Archive Engine Manager"https://answers.axonivy.com/questions/1889/ivy-server-fails-to-start-because-of-page-archive-engine-manager<p>Dear Ivy Team,</p> <p>I'm facing a strange issue that never happened before: the ivy server cannot be started anymore. It refers to a so-called "Page Archive Engine Manager". Nothing special has been changed in the configuration since the last successful run.</p> <p>Please see the details in the extracted log below.</p> <pre><code>INFO [ch.ivyteam.server] [Windows Service Main Thread] [] ----------------------------------------------------- Axon.ivy Engine Version 5.1 Patch 7 Revision 49494 Copyright (c) 2001-2015 ivyTeam AG ----------------------------------------------------- Java Version 1.7.0_60 (Oracle Corporation) Java Virtual Maschine Version 24.60-b09 (Java HotSpot(TM) 64-Bit Server VM) ----------------------------------------------------- [...] [ 81%] Starting Page Archive Engine Manager FATAL [ch.ivyteam.server] [Windows Service Main Thread] [] Error while starting Axon.ivy Engine [errorId=155EA27EF636A0B6, executionContext=SYSTEM] ch.ivyteam.util.IvyRuntimeException: Could not start Page Archive Engine Manager at ch.ivyteam.ivy.manager.restricted.AbstractManager.start(AbstractManager.java:71) at ch.ivyteam.ivy.server.internal.Server.startInternal(Server.java:571) at ch.ivyteam.ivy.server.internal.Server$1.call(Server.java:526) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1439) at ch.ivyteam.ivy.server.internal.Server.start(Server.java:521) at ch.ivyteam.ivy.server.ServerLauncher.startInternal(ServerLauncher.java:209) at ch.ivyteam.server.Server.start(Server.java:170) at ch.ivyteam.server.win.WindowsServiceServer.runService(WindowsServiceServer.java:166) at ch.ivyteam.server.win.WindowsServiceServer$WindowsServiceMainThread.run(WindowsServiceServer.java:221) [errorId=155EA27EF636A0B6, executionContext=SYSTEM] Caused by: ch.ivyteam.util.IvyRuntimeException: javax.management.InstanceAlreadyExistsException: ivy Engine:type=Service,name=PageArchiveEngine/[...] at ch.ivyteam.management.internal.ThrowRuntimeExceptionErrorStrategy.errorRegisteringMBean(ThrowRuntimeExceptionErrorStrategy.java:26) at ch.ivyteam.management.internal.MBeanManager.registerMBeanFor(MBeanManager.java:73) at ch.ivyteam.management.internal.MBeanManager.registerMBeanFor(MBeanManager.java:57) at ch.ivyteam.management.internal.MBeanManager.ifAnnotatedRegisterMBeanFor(MBeanManager.java:135) at ch.ivyteam.management.internal.MMap.put(MMap.java:53) at ch.ivyteam.ivy.service.internal.ServiceManager.registerService(ServiceManager.java:56) at ch.ivyteam.ivy.enginemanagerbase.AbstractPmvServiceManager.getService(AbstractPmvServiceManager.java:120) at ch.ivyteam.ivy.enginemanagerbase.AbstractPmvServiceManager.doStart(AbstractPmvServiceManager.java:347) at ch.ivyteam.ivy.page.archive.internal.PageArchiveEngineManager.doStart(PageArchiveEngineManager.java:95) at ch.ivyteam.ivy.manager.restricted.AbstractManager.start(AbstractManager.java:58) ... 8 more Caused by: javax.management.InstanceAlreadyExistsException: ivy Engine:type=Service,name=PageArchiveEngine/[...] at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown Source) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source) at ch.ivyteam.management.internal.MBeanManager.registerMBean(MBeanManager.java:112) at ch.ivyteam.management.internal.MBeanManager.registerMBeanFor(MBeanManager.java:68) ... 16 more </code></pre> <p>I would like to know what exactly this "Page Archive Engine Manager" is and how I can eliminate the error that it caused.</p> <p>Thank you.</p>ivyUserThu, 14 Jul 2016 18:43:29 -0400https://answers.axonivy.com/questions/1889/ivy-server-fails-to-start-because-of-page-archive-engine-managerengineivyerror-handlingHow to solve Tomcat 302 error problem?https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problem<p>We try to call an IVY process start link (/ivy/myprocess.ivp?id=213214) by an external application. As response we expect a JSON object. </p> <p>But it seems that the IVY Tomcat redirect our request (error 302), so we do not get the response back. Does anybody know to solve this problem?</p> <p>Thanks!</p>peter_mucWed, 11 May 2016 12:02:43 -0400https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problemprocesserror-handlingRuntime Exception Handlinghttps://answers.axonivy.com/questions/1532/runtime-exception-handling<p>Hello ivy-team, is it possible to handle unexpected Exceptions like RuntimeExceptions? For example, we would like to send an email with all exception information to our developer team and display a specific error message. We would like to display this message in the current user dialog (JSF) and not redirect to an other error page. I tried to create a CustomExceptionHandlerFactory and set this class as exception-handler-factory in the faces-config.xml. Doing this in the Project webContent/WEB-INF/faces-config.xml has no effect. Doing this in the Designer webapps/ivy/WEB-INF/faces-config.xml throws a ClassNotFoundException. Could you please explain how to do this or is there a nicer way?</p>Florian HeinrichFri, 30 Oct 2015 15:19:35 -0400https://answers.axonivy.com/questions/1532/runtime-exception-handlingexceptionhandlingruntimefaces-config.xmlerror-handlinghow to override error page in ivy 5.1.6https://answers.axonivy.com/questions/1440/how-to-override-error-page-in-ivy-5-1-6<p>Hi all In new ivy version 5.1.6, is there any way else that we can declare new error page in server (or we just can override it in web.xml file)? Because When we upgrade the project to new ivy 5.1.6, but in application we still use JSP to develop, so when we catch the error, ivy return the error page, but in this ivy, this is returned in JSF page, it conflicts with our way, and make the application have layout error. <img alt="alt text" src="http://answers.axonivy.com/upfiles/Error_zoiOcpQ.png"> We catch the error from ajax call, and display all error response body in content of dialog</p> <p>The confliction could be: - style from the error page - javascript error because the jquery library in that response</p> <p>Thanks and Best Regards, Hang</p>uyhangThu, 13 Aug 2015 06:32:54 -0400https://answers.axonivy.com/questions/1440/how-to-override-error-page-in-ivy-5-1-6jsferror-handlingWhich setting is relevant for avoiding [dialog instance with id ... is not available any more]?https://answers.axonivy.com/questions/1181/which-setting-is-relevant-for-avoiding-dialog-instance-with-id-is-not-available-any-more<p>We have a timeout which makes dialog instances die after a certain timeout (I think it's 60000 ms). Which setting in the Ivy-Server is relevant to increase the timeout?</p> <p>Due to the fact that we are able to customize error-messages from &gt; 5.1 we need to increase this (<a href="http://developer.axonivy.com/doc/latest/EngineGuideHtml/configuration.html#configuration-errorhandling">see here</a>).</p> <p>I've two settings in mind:</p> <ul> <li>connectionTimeout</li> <li>keepAliveTimeout</li> </ul>Nikel WeisFri, 27 Feb 2015 11:40:24 -0500https://answers.axonivy.com/questions/1181/which-setting-is-relevant-for-avoiding-dialog-instance-with-id-is-not-available-any-morejsferror-handling