Hello all,

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.

Thanks & Regards,

This is content of log file:


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

asked 03.11.2015 at 17:37

Hap%20Em's gravatar image

Hap Em
(suspended)
accept rate: 0%


For more information:

I have configured the web.xml of Ivy Server like this link http://developer.axonivy.com/doc/latest/EngineGuideHtml/configuration.html#configuration-errorhandling


<error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/custom-error-page.xhtml</location>
</error-page>
link

answered 04.11.2015 at 04:35

Hap%20Em's gravatar image

Hap Em
(suspended)
accept rate: 0%

edited 04.11.2015 at 04:47

Hello all, Now, it works fine in our server. I just changed <h:head> --> <head>, ...

This is web.xml and custom-error-page.xhtml source file:


   <error-page>
        <location>/custom-error-page.xhtml</location>
    </error-page>

and custom-error-page.xhtml:


   <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:pe="http://primefaces.org/ui/extensions" xmlns:pm="http://primefaces.org/mobile" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<head>
  <title>System error</title>
  <link rel="stylesheet" type="text/css" href="#{resource['layouts/styles/ivy-common.css']}"/>
</head>
<body>
    

Error (Http Status Code #{errorPage.getStatusCode()})

<c:if test="#{errorPage.isIvyException()}">

Error Id

#{errorPage.exceptionId}

</c:if>

<c:if test="#{errorPage.hasException()}">
    <h4 class="list-group-item-heading">#{errorPage.exceptionType.simpleName}</h4>
    <pre><code><strong>#{errorPage.message}</strong></code></pre>
</c:if>

<c:if test="#{errorPage.showDetails}">

    <c:if test="#{!errorPage.causedBy.isEmpty()}">
      <h4 class="list-group-item-heading">Caused by</h4>
      <ui:repeat value="#{errorPage.causedBy}"
        var="causedBy">
        <pre><code>#{causedBy.class.simpleName}: #{causedBy.message}</code></pre>
      </ui:repeat>
    </c:if>

    <h4 class="list-group-item-heading">Request Uri</h4>
    <p>#{errorPage.getRequestUri()}</p>
    <br/>
    <h4 class="list-group-item-heading">Servlet</h4>
    <p>#{errorPage.getServletName()}</p>
    <br/>

    <h4 class="list-group-item-heading">Application</h4>
    <p>#{errorPage.applicationName}</p>
    <br/>

    <c:if test="#{!errorPage.threadLocalValues.isEmpty()}">
      <h4 class="list-group-item-heading">Thread local values</h4>
        <ui:repeat value="#{errorPage.threadLocalValues}"
          var="threadLocal">
          <p>#{threadLocal.key}: #{threadLocal.value}</p>
        </ui:repeat>
    </c:if>
    <br/>

    <h4 class="list-group-item-heading">Stack-Trace</h4>
    <pre><code>#{errorPage.getStackTrace()}</code></pre>
</c:if>

<c:if test="#{not empty errorPage.errorReportUrl}">
    <br/>
    <p:button target="_blank" value="Open Error Report" icon="ui-icon-notice" href="#{errorPage.errorReportUrl}"/>
    <br/><br/>
</c:if>

</body> </html>

Regards,

link

answered 05.11.2015 at 03:35

Hap%20Em's gravatar image

Hap Em
(suspended)
accept rate: 0%

edited 05.11.2015 at 03:37

Hello all,

Another problem, when i configured error page for IIS like configuration documentation of AxonIvy, It didn't work. http://developer.axonivy.com/doc/latest/EngineGuideHtml/configuration.html#configuration-errorhandling


It works as expected when i changed step 4:
4. Select the “Detailed errors” radio button and click on OK.

Regards,

link

answered 05.11.2015 at 04:58

Hap%20Em's gravatar image

Hap Em
(suspended)
accept rate: 0%

edited 05.11.2015 at 07:26

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×35

Asked: 03.11.2015 at 17:37

Seen: 5,021 times

Last updated: 05.11.2015 at 07:26