[JBoss JIRA] (WFLY-13627) Distributed sessions/SFSBs stored in non-transactional invalidation-cache should schedule expirations locally
by Ilia Vassilev (Jira)
[ https://issues.redhat.com/browse/WFLY-13627?page=com.atlassian.jira.plugi... ]
Ilia Vassilev updated WFLY-13627:
---------------------------------
Labels: downstream_dependency (was: )
> Distributed sessions/SFSBs stored in non-transactional invalidation-cache should schedule expirations locally
> -------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-13627
> URL: https://issues.redhat.com/browse/WFLY-13627
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 20.0.0.Final
> Reporter: Paul Ferraro
> Assignee: Paul Ferraro
> Priority: Critical
> Labels: downstream_dependency
>
> Currently, distributed web sessions (and SFSBs) are expired on the primary owner of the session. For non-transactional invalidation caches expiration should always be scheduled locally. This used to be the case, however, the logic for determining this has changed such that expirations happen on the owner of segment 0.
> This has the consequence of an RPC cost per request (and one after).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months
[JBoss JIRA] (WFLY-13628) Invalidation caches need to consider keys in the cache store when reassigning ownership
by Ilia Vassilev (Jira)
[ https://issues.redhat.com/browse/WFLY-13628?page=com.atlassian.jira.plugi... ]
Ilia Vassilev updated WFLY-13628:
---------------------------------
Labels: downstream_dependency (was: )
> Invalidation caches need to consider keys in the cache store when reassigning ownership
> ---------------------------------------------------------------------------------------
>
> Key: WFLY-13628
> URL: https://issues.redhat.com/browse/WFLY-13628
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 20.0.0.Final
> Reporter: Paul Ferraro
> Assignee: Paul Ferraro
> Priority: Critical
> Labels: downstream_dependency
>
> On cache topology changes, the distributed web/SFSB manager iterates over keys in memory to determine primary ownership changes. This is not sufficient for invalidation caches - which will not necessary contain those keys in memory that require rescheduling.
> This has the consequence of leaking memory for abandoned sessions.
> This also impacts replication caches that contain passivated entries.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months
[JBoss JIRA] (WFLY-13656) Wildfly 18 - Failed to run scheduled task - after redeployment
by ralph Soika (Jira)
[ https://issues.redhat.com/browse/WFLY-13656?page=com.atlassian.jira.plugi... ]
ralph Soika commented on WFLY-13656:
------------------------------------
I am sorry, but in my current environment (docker container with auto-deploy) I can not test the cli.
What surprises me, is that you recommand me to use an ejb timer. I worked with EJB Timers the last 10 years. My understanding was that the ManagedScheduledExecutorService is the new recommended solution to do scheduling in Java Enterprise. Especially if I have a cluster situation with multiple nodes? I understand the ManagedScheduledExecutorService to be more robust and maybe even replacing the ejb timers in a long term?
I know that if I rewrite my service with an ejb timer it will work fine. But I understand that a ejb timer will not scale if I have multiple instances running in a big kubernetes cluster because only one ejb timer instance is allowed by Jakarta EE specification. If you can tell me that this is not true, than I will switch back to ejb timers.
In any case, below I send you an additional complete stacktrace from the situation when the auto (re)deployment starts. Maybe you can see in this more detailed stack trace a hint about the root that causes the problem?
Thanks for your help!
{noformat}
imixs-documents_1 | 18:47:13,702 INFO [javax.enterprise.resource.webcontainer.jsf.config] (Mojarra-WebResourceMonitor-1-thread-1) file:/opt/wildfly-18.0.0.Final/standalone/deployments/imixs-documents.war/WEB-INF/faces-config-office.xml changed!
imixs-documents_1 | 18:47:13,825 INFO [javax.enterprise.resource.webcontainer.jsf.config] (Mojarra-WebResourceMonitor-1-thread-1) file:/opt/wildfly-18.0.0.Final/standalone/deployments/imixs-documents.war/WEB-INF/faces-config-custom.xml changed!
imixs-documents_1 | 18:47:13,825 INFO [javax.enterprise.resource.webcontainer.jsf.config] (Mojarra-WebResourceMonitor-1-thread-1) file:/opt/wildfly-18.0.0.Final/standalone/deployments/imixs-documents.war/WEB-INF/faces-config.xml changed!
imixs-documents_1 | 18:47:13,826 INFO [javax.enterprise.resource.webcontainer.jsf.config] (Mojarra-WebResourceMonitor-1-thread-1) Reloading JSF configuration for context
imixs-documents_1 | 18:47:14,490 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 79) WFLYUT0022: Unregistered web context: '/' from server 'default-server'
imixs-documents_1 | 18:47:14,493 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 79) Unexpected exception when attempting to tear down the Mojarra runtime: java.lang.NullPointerException
imixs-documents_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:557)
imixs-documents_1 | at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.el.ELUtils.addEL3_0_Resolvers(ELUtils.java:310)
imixs-documents_1 | at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.el.ELUtils.buildFacesResolver(ELUtils.java:234)
imixs-documents_1 | at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.application.ApplicationAssociate.initializeELResolverChains(ApplicationAssociate.java:467)
imixs-documents_1 | at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.application.applicationimpl.ExpressionLanguage.performOneTimeELInitialization(ExpressionLanguage.java:184)
imixs-documents_1 | at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.application.applicationimpl.ExpressionLanguage.getELResolver(ExpressionLanguage.java:120)
imixs-documents_1 | at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.application.ApplicationImpl.getELResolver(ApplicationImpl.java:213)
imixs-documents_1 | at javax.faces.api@3.0.0.Final//javax.faces.application.ApplicationWrapper.getELResolver(ApplicationWrapper.java:645)
imixs-documents_1 | at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:335)
imixs-documents_1 | at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.core.ApplicationListeners.contextDestroyed(ApplicationListeners.java:202)
imixs-documents_1 | at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.core.DeploymentImpl.destroy(DeploymentImpl.java:291)
imixs-documents_1 | at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.core.DeploymentManagerImpl$4.call(DeploymentManagerImpl.java:676)
imixs-documents_1 | at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.core.DeploymentManagerImpl$4.call(DeploymentManagerImpl.java:666)
imixs-documents_1 | at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
imixs-documents_1 | at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
imixs-documents_1 | at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.core.DeploymentManagerImpl.undeploy(DeploymentManagerImpl.java:681)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.stopContext(UndertowDeploymentService.java:139)
imixs-documents_1 | at org.wildfly.extension.undertow@18.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$2.run(UndertowDeploymentService.java:117)
imixs-documents_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
imixs-documents_1 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
imixs-documents_1 | at org.jboss.threads@2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
imixs-documents_1 | at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
imixs-documents_1 | at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
imixs-documents_1 | at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
imixs-documents_1 | at java.base/java.lang.Thread.run(Thread.java:844)
imixs-documents_1 | at org.jboss.threads@2.3.3.Final//org.jboss.threads.JBossThread.run(JBossThread.java:485)
imixs-documents_1 |
imixs-documents_1 | 18:47:14,654 ERROR [org.jboss.as.ee] (EE-ManagedScheduledExecutorService-default-Thread-8) WFLYEE0110: Failed to run scheduled task: org.jboss.as.ee.component.ComponentIsStoppedException: WFLYEE0043: Component is stopped
imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)
imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)
imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)
imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$$$view52.releaseDeadLocks(Unknown Source)
imixs-documents_1 | at jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
imixs-documents_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
imixs-documents_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:564)
imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:410)
imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:134)
imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)
imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:68)
imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)
imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$Proxy$_$$_Weld$EnterpriseProxy$.releaseDeadLocks(Unknown Source)
imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.AsyncEventScheduler.run(AsyncEventScheduler.java:125)
imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.concurrent.ControlPointUtils$ControlledScheduledRunnable.run(ControlPointUtils.java:158)
imixs-documents_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
imixs-documents_1 | at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.access$201(ManagedScheduledThreadPoolExecutor.java:383)
imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.run(ManagedScheduledThreadPoolExecutor.java:534)
imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
imixs-documents_1 | at java.base/java.lang.Thread.run(Thread.java:844)
imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)
imixs-documents_1 |
imixs-documents_1 | 18:47:14,862 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
imixs-documents_1 | 18:47:14,864 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.manager.Documents.getXMLDocuments(Documents.java:104)
imixs-documents_1 | 18:47:14,865 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:344)
imixs-documents_1 | 18:47:14,865 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:597)
imixs-documents_1 | 18:47:14,866 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.ConfigureListener.access$700(ConfigureListener.java:113)
imixs-documents_1 | 18:47:14,867 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureListener.java:1093)
imixs-documents_1 | 18:47:14,867 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
imixs-documents_1 | 18:47:14,868 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
imixs-documents_1 | 18:47:14,869 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
imixs-documents_1 | 18:47:14,869 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
imixs-documents_1 | 18:47:14,870 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
imixs-documents_1 | 18:47:14,870 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.lang.Thread.run(Thread.java:844)
imixs-documents_1 | 18:47:14,870 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
imixs-documents_1 | 18:47:14,870 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
imixs-documents_1 | 18:47:14,870 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
imixs-documents_1 | 18:47:14,870 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.manager.Documents.getXMLDocuments(Documents.java:92)
imixs-documents_1 | 18:47:14,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) ... 10 more
imixs-documents_1 | 18:47:14,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) Caused by: java.lang.NullPointerException
imixs-documents_1 | 18:47:14,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at io.undertow.servlet@2.0.26.Final//io.undertow.servlet.spec.ServletContextImpl.getResourcePaths(ServletContextImpl.java:263)
imixs-documents_1 | 18:47:14,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.configprovider.MetaInfFaceletTaglibraryConfigProvider.getResources(MetaInfFaceletTaglibraryConfigProvider.java:86)
imixs-documents_1 | 18:47:14,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.manager.tasks.FindConfigResourceURIsTask.call(FindConfigResourceURIsTask.java:72)
imixs-documents_1 | 18:47:14,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.manager.tasks.FindConfigResourceURIsTask.call(FindConfigResourceURIsTask.java:40)
imixs-documents_1 | 18:47:14,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
imixs-documents_1 | 18:47:14,872 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) at com.sun.jsf-impl@2.3.9.SP03//com.sun.faces.config.manager.Documents.getXMLDocuments(Documents.java:82)
imixs-documents_1 | 18:47:14,872 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) ... 10 more
imixs-documents_1 | 18:47:14,906 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 100) WFLYJPA0004: Stopping Persistence Unit Service 'imixs-documents.war#org.imixs.workflow.jpa'
imixs-documents_1 | 18:47:14,909 INFO [org.eclipse.persistence.connection] (ServerService Thread Pool -- 100) disconnect
imixs-documents_1 | 18:47:14,914 INFO [org.eclipse.persistence.connection] (ServerService Thread Pool -- 100) /vfs:/opt/wildfly/standalone/deployments/imixs-documents.war/WEB-INF/classes/_org.imixs.workflow.jpa logout successful
imixs-documents_1 | 18:47:14,954 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment imixs-documents.war (runtime-name: imixs-documents.war) in 496ms
imixs-documents_1 | 18:47:14,962 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "imixs-documents.war" (runtime-name: "imixs-documents.war"){noformat}
> Wildfly 18 - Failed to run scheduled task - after redeployment
> --------------------------------------------------------------
>
> Key: WFLY-13656
> URL: https://issues.redhat.com/browse/WFLY-13656
> Project: WildFly
> Issue Type: Bug
> Components: Concurrency Utilities, EJB
> Affects Versions: 18.0.0.Final
> Reporter: ralph Soika
> Assignee: Cheng Fang
> Priority: Major
>
> I have a application deployed on wildfly 18 implementing a @Singleton ejb which starts a ManagedScheduledExecutorService on @PostContstruct init method.
> This service runs fine until I do a redeployment without a server restart (auto deploy function).
> After a redeployment the following message occurred permanently:
> {{imixs-documents_1 | 17:42:23,207 ERROR [org.jboss.as.ee] (EE-ManagedScheduledExecutorService-default-Thread-5) WFLYEE0110: Failed to run scheduled task: org.jboss.as.ee.component.ComponentIsStoppedException: WFLYEE0043: Component is stopped}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$$$view52.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)}}
> {{imixs-documents_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
> {{imixs-documents_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:564)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:410)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:134)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:68)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$Proxy$_$$_Weld$EnterpriseProxy$.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.AsyncEventScheduler.run(AsyncEventScheduler.java:125)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.concurrent.ControlPointUtils$ControlledScheduledRunnable.run(ControlPointUtils.java:158)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.access$201(ManagedScheduledThreadPoolExecutor.java:383)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.run(ManagedScheduledThreadPoolExecutor.java:534)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)}}
> {{imixs-documents_1 | at java.base/java.lang.Thread.run(Thread.java:844)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)}}
> {{imixs-documents_1 |}}
> I can not see how to solve this exception within my application. The message occurs each timeout (in my case every 500ms)
> Only a server restart did solve the problem.
> But the scheduler runs correctly even with this message.
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months
[JBoss JIRA] (WFCORE-5041) The public elytron module exports private API
by Darran Lofthouse (Jira)
Darran Lofthouse created WFCORE-5041:
----------------------------------------
Summary: The public elytron module exports private API
Key: WFCORE-5041
URL: https://issues.redhat.com/browse/WFCORE-5041
Project: WildFly Core
Issue Type: Bug
Components: Security
Reporter: Darran Lofthouse
The public elytron module is defined as:
{code:xml}
<module name="org.wildfly.security.elytron-private" services="export" export="true">
<exports>
<include-set>
<path name="org/wildfly/security"/>
{code}
The issue is export="true" exports everything including the private API.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months
[JBoss JIRA] (WFCORE-5040) Elytron JASPI fallback causes dependency on PicketBox
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFCORE-5040?page=com.atlassian.jira.plug... ]
Darran Lofthouse updated WFCORE-5040:
-------------------------------------
Description:
The following is logged when PicketBox is not present.
{code:java}
2020-07-08 17:35:19,080 TRACE [org.wildfly.extension.elytron] (ServerService Thread Pool -- 16) Unable to load default AuthConfigFactory.: java.lang.IllegalStateException: Failed to find AuthConfigFactory : org.jboss.security.auth.message.config.JBossAuthConfigFactory2020-07-08 17:35:19,080 TRACE [org.wildfly.extension.elytron] (ServerService Thread Pool -- 16) Unable to load default AuthConfigFactory.: java.lang.IllegalStateException: Failed to find AuthConfigFactory : org.jboss.security.auth.message.config.JBossAuthConfigFactory at javax.security.auth.message.config.AuthConfigFactory.getFactory(AuthConfigFactory.java:227) at org.wildfly.extension.elytron.ElytronDefinition.getAuthConfigFactory(ElytronDefinition.java:405) at org.wildfly.extension.elytron.ElytronDefinition.access$700(ElytronDefinition.java:112) at org.wildfly.extension.elytron.ElytronDefinition$ElytronAdd.lambda$performBoottime$0(ElytronDefinition.java:499) at org.wildfly.extension.elytron.SecurityActions.doPrivileged(SecurityActions.java:35) at org.wildfly.extension.elytron.ElytronDefinition$ElytronAdd.performBoottime(ElytronDefinition.java:499) at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performRuntime(AbstractBoottimeAddStepHandler.java:119) at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:164) at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:999) at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743) at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467) at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:384) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348) at java.lang.Thread.run(Thread.java:748) at org.jboss.threads.JBossThread.run(JBossThread.java:485)Caused by: java.lang.ClassNotFoundException: org.jboss.security.auth.message.config.JBossAuthConfigFactory from [Module "org.wildfly.extension.elytron" version 13.0.0.Beta2-SNAPSHOT from local module loader @5f2108b5 (finder: local module finder @31a5c39e (roots: /home/darranl/tmp/jacc/minimal/modules,/home/darranl/tmp/jacc/minimal/modules/system/layers/base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) at javax.security.auth.message.config.AuthConfigFactory$LoadAction.run(AuthConfigFactory.java:571) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.message.config.AuthConfigFactory.getFactory(AuthConfigFactory.java:211) ... 17 more {code}
> Elytron JASPI fallback causes dependency on PicketBox
> -----------------------------------------------------
>
> Key: WFCORE-5040
> URL: https://issues.redhat.com/browse/WFCORE-5040
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Priority: Major
> Fix For: 13.0.0.Beta2
>
>
> The following is logged when PicketBox is not present.
>
> {code:java}
> 2020-07-08 17:35:19,080 TRACE [org.wildfly.extension.elytron] (ServerService Thread Pool -- 16) Unable to load default AuthConfigFactory.: java.lang.IllegalStateException: Failed to find AuthConfigFactory : org.jboss.security.auth.message.config.JBossAuthConfigFactory2020-07-08 17:35:19,080 TRACE [org.wildfly.extension.elytron] (ServerService Thread Pool -- 16) Unable to load default AuthConfigFactory.: java.lang.IllegalStateException: Failed to find AuthConfigFactory : org.jboss.security.auth.message.config.JBossAuthConfigFactory at javax.security.auth.message.config.AuthConfigFactory.getFactory(AuthConfigFactory.java:227) at org.wildfly.extension.elytron.ElytronDefinition.getAuthConfigFactory(ElytronDefinition.java:405) at org.wildfly.extension.elytron.ElytronDefinition.access$700(ElytronDefinition.java:112) at org.wildfly.extension.elytron.ElytronDefinition$ElytronAdd.lambda$performBoottime$0(ElytronDefinition.java:499) at org.wildfly.extension.elytron.SecurityActions.doPrivileged(SecurityActions.java:35) at org.wildfly.extension.elytron.ElytronDefinition$ElytronAdd.performBoottime(ElytronDefinition.java:499) at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performRuntime(AbstractBoottimeAddStepHandler.java:119) at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:164) at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:999) at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743) at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467) at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:384) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348) at java.lang.Thread.run(Thread.java:748) at org.jboss.threads.JBossThread.run(JBossThread.java:485)Caused by: java.lang.ClassNotFoundException: org.jboss.security.auth.message.config.JBossAuthConfigFactory from [Module "org.wildfly.extension.elytron" version 13.0.0.Beta2-SNAPSHOT from local module loader @5f2108b5 (finder: local module finder @31a5c39e (roots: /home/darranl/tmp/jacc/minimal/modules,/home/darranl/tmp/jacc/minimal/modules/system/layers/base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) at javax.security.auth.message.config.AuthConfigFactory$LoadAction.run(AuthConfigFactory.java:571) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.message.config.AuthConfigFactory.getFactory(AuthConfigFactory.java:211) ... 17 more {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months
[JBoss JIRA] (WFLY-13656) Wildfly 18 - Failed to run scheduled task - after redeployment
by Cheng Fang (Jira)
[ https://issues.redhat.com/browse/WFLY-13656?page=com.atlassian.jira.plugi... ]
Cheng Fang commented on WFLY-13656:
-----------------------------------
There could be some timing issue with auto deploy. Can you try CLI deploy?
BTW, you may want to use the more flexible ejb timer (non-persisten or persistent) for scheduling tasks.
> Wildfly 18 - Failed to run scheduled task - after redeployment
> --------------------------------------------------------------
>
> Key: WFLY-13656
> URL: https://issues.redhat.com/browse/WFLY-13656
> Project: WildFly
> Issue Type: Bug
> Components: Concurrency Utilities, EJB
> Affects Versions: 18.0.0.Final
> Reporter: ralph Soika
> Assignee: Cheng Fang
> Priority: Major
>
> I have a application deployed on wildfly 18 implementing a @Singleton ejb which starts a ManagedScheduledExecutorService on @PostContstruct init method.
> This service runs fine until I do a redeployment without a server restart (auto deploy function).
> After a redeployment the following message occurred permanently:
> {{imixs-documents_1 | 17:42:23,207 ERROR [org.jboss.as.ee] (EE-ManagedScheduledExecutorService-default-Thread-5) WFLYEE0110: Failed to run scheduled task: org.jboss.as.ee.component.ComponentIsStoppedException: WFLYEE0043: Component is stopped}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$$$view52.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)}}
> {{imixs-documents_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
> {{imixs-documents_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:564)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:410)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:134)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:68)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$Proxy$_$$_Weld$EnterpriseProxy$.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.AsyncEventScheduler.run(AsyncEventScheduler.java:125)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.concurrent.ControlPointUtils$ControlledScheduledRunnable.run(ControlPointUtils.java:158)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.access$201(ManagedScheduledThreadPoolExecutor.java:383)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.run(ManagedScheduledThreadPoolExecutor.java:534)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)}}
> {{imixs-documents_1 | at java.base/java.lang.Thread.run(Thread.java:844)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)}}
> {{imixs-documents_1 |}}
> I can not see how to solve this exception within my application. The message occurs each timeout (in my case every 500ms)
> Only a server restart did solve the problem.
> But the scheduler runs correctly even with this message.
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months
[JBoss JIRA] (WFLY-13656) Wildfly 18 - Failed to run scheduled task - after redeployment
by Cheng Fang (Jira)
[ https://issues.redhat.com/browse/WFLY-13656?page=com.atlassian.jira.plugi... ]
Cheng Fang updated WFLY-13656:
------------------------------
Component/s: Concurrency Utilities
> Wildfly 18 - Failed to run scheduled task - after redeployment
> --------------------------------------------------------------
>
> Key: WFLY-13656
> URL: https://issues.redhat.com/browse/WFLY-13656
> Project: WildFly
> Issue Type: Bug
> Components: Concurrency Utilities, EJB
> Affects Versions: 18.0.0.Final
> Reporter: ralph Soika
> Assignee: Cheng Fang
> Priority: Major
>
> I have a application deployed on wildfly 18 implementing a @Singleton ejb which starts a ManagedScheduledExecutorService on @PostContstruct init method.
> This service runs fine until I do a redeployment without a server restart (auto deploy function).
> After a redeployment the following message occurred permanently:
> {{imixs-documents_1 | 17:42:23,207 ERROR [org.jboss.as.ee] (EE-ManagedScheduledExecutorService-default-Thread-5) WFLYEE0110: Failed to run scheduled task: org.jboss.as.ee.component.ComponentIsStoppedException: WFLYEE0043: Component is stopped}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$$$view52.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)}}
> {{imixs-documents_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
> {{imixs-documents_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:564)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:410)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:134)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:68)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$Proxy$_$$_Weld$EnterpriseProxy$.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.AsyncEventScheduler.run(AsyncEventScheduler.java:125)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.concurrent.ControlPointUtils$ControlledScheduledRunnable.run(ControlPointUtils.java:158)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.access$201(ManagedScheduledThreadPoolExecutor.java:383)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.run(ManagedScheduledThreadPoolExecutor.java:534)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)}}
> {{imixs-documents_1 | at java.base/java.lang.Thread.run(Thread.java:844)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)}}
> {{imixs-documents_1 |}}
> I can not see how to solve this exception within my application. The message occurs each timeout (in my case every 500ms)
> Only a server restart did solve the problem.
> But the scheduler runs correctly even with this message.
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months
[JBoss JIRA] (WFLY-13656) Wildfly 18 - Failed to run scheduled task - after redeployment
by Cheng Fang (Jira)
[ https://issues.redhat.com/browse/WFLY-13656?page=com.atlassian.jira.plugi... ]
Cheng Fang updated WFLY-13656:
------------------------------
Steps to Reproduce:
This is my code example starting the ManagedScheduledExecutorService
{code:java}
@DeclareRoles({ "org.imixs.ACCESSLEVEL.MANAGERACCESS" })
@RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS")
@Startup
@Singleton
@LocalBean
public class AsyncEventScheduler {
@Resource
ManagedScheduledExecutorService scheduler;
@Inject
AsyncEventService asyncEventService;
@PostConstruct
public void init() {
this.scheduler.scheduleAtFixedRate(this::run, 500, 500, TimeUnit.MILLISECONDS);
}
public void run() {
asyncEventService.processEventLog();
}
}
{code}
was:
This is my code example starting the ManagedScheduledExecutorService
{code:java}
@DeclareRoles({ "org.imixs.ACCESSLEVEL.MANAGERACCESS" })
@RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS")
@Startup
@Singleton
@LocalBean
public class AsyncEventScheduler {
@Resource
ManagedScheduledExecutorService scheduler; @Inject
AsyncEventService asyncEventService;
@PostConstruct
public void init() {
this.scheduler.scheduleAtFixedRate(this::run, 500, 500, TimeUnit.MILLISECONDS);
} public void run() {
asyncEventService.processEventLog();
}
}
{code}
> Wildfly 18 - Failed to run scheduled task - after redeployment
> --------------------------------------------------------------
>
> Key: WFLY-13656
> URL: https://issues.redhat.com/browse/WFLY-13656
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 18.0.0.Final
> Reporter: ralph Soika
> Assignee: Cheng Fang
> Priority: Major
>
> I have a application deployed on wildfly 18 implementing a @Singleton ejb which starts a ManagedScheduledExecutorService on @PostContstruct init method.
> This service runs fine until I do a redeployment without a server restart (auto deploy function).
> After a redeployment the following message occurred permanently:
> {{imixs-documents_1 | 17:42:23,207 ERROR [org.jboss.as.ee] (EE-ManagedScheduledExecutorService-default-Thread-5) WFLYEE0110: Failed to run scheduled task: org.jboss.as.ee.component.ComponentIsStoppedException: WFLYEE0043: Component is stopped}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$$$view52.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)}}
> {{imixs-documents_1 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
> {{imixs-documents_1 | at java.base/java.lang.reflect.Method.invoke(Method.java:564)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:410)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:134)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.module.ejb.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:68)}}
> {{imixs-documents_1 | at org.jboss.weld.core@3.1.2.Final//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.EventLogService$Proxy$_$$_Weld$EnterpriseProxy$.releaseDeadLocks(Unknown Source)}}
> {{imixs-documents_1 | at deployment.imixs-documents.war//org.imixs.workflow.engine.AsyncEventScheduler.run(AsyncEventScheduler.java:125)}}
> {{imixs-documents_1 | at org.jboss.as.ee@18.0.0.Final//org.jboss.as.ee.concurrent.ControlPointUtils$ControlledScheduledRunnable.run(ControlPointUtils.java:158)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.access$201(ManagedScheduledThreadPoolExecutor.java:383)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.internal.ManagedScheduledThreadPoolExecutor$ManagedScheduledFutureTask.run(ManagedScheduledThreadPoolExecutor.java:534)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)}}
> {{imixs-documents_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)}}
> {{imixs-documents_1 | at java.base/java.lang.Thread.run(Thread.java:844)}}
> {{imixs-documents_1 | at org.glassfish.javax.enterprise.concurrent//org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)}}
> {{imixs-documents_1 |}}
> I can not see how to solve this exception within my application. The message occurs each timeout (in my case every 500ms)
> Only a server restart did solve the problem.
> But the scheduler runs correctly even with this message.
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 2 months