[
https://issues.jboss.org/browse/WFLY-12384?page=com.atlassian.jira.plugin...
]
Eduardo Martins edited comment on WFLY-12384 at 8/16/19 8:20 AM:
-----------------------------------------------------------------
[~jbaesner] please remove the thread-factory attribute on the executor configuration and
let me know if the issue persists. I believe there is a design issue by allowing to plug a
managed thread factory in the executors.
was (Author: emmartins):
[~jbaesner] please remove the thread-factory attribute on the executor configuration and
let me know if the issue persists. I believe there is a design issue allowing to plug a
managed thread factory in the executors.
ManagedExecutorService keeping references on undeploy/deploy
------------------------------------------------------------
Key: WFLY-12384
URL:
https://issues.jboss.org/browse/WFLY-12384
Project: WildFly
Issue Type: Bug
Components: Concurrency Utilities
Affects Versions: 19.0.0.Beta1
Reporter: Joerg Baesner
Assignee: Eduardo Martins
Priority: Major
Labels: downstream_dependency
Usage of {{ManagedExecutorService}} leading to kept references after
{{undeploy}}/{{deploy}}. This can be seen in the log as below:
{code}
SEVERE [a.b.c.MemberRepository] (EE-ManagedThreadFactory-default-Thread-1) exception when
loading the members: Type specified for TypedQuery [a.b.c.Member] is incompatible with
query return type [class a.b.c.Member]: java.lang.IllegalArgumentException: Type specified
for TypedQuery [a.b.c.Member] is incompatible with query return type [class a.b.c.Member]
at
org.hibernate.internal.AbstractSharedSessionContract.resultClassChecking(AbstractSharedSessionContract.java:792)
at
org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:746)
at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:23)
at
org.jboss.as.jpa.container.AbstractEntityManager.createQuery(AbstractEntityManager.java:133)
at a.b.c.MemberRepository.loadMembers(MemberRepository.java:77)
at a.b.c.MemberRepository$Proxy$_$$_WeldClientProxy.loadMembers(Unknown Source)
at a.b.c.PollMembersTask.call(PollMembersTask.java:45)
at a.b.c.PollMembersTask.call(PollMembersTask.java:25)
at
org.jboss.as.ee.concurrent.ControlPointUtils$ControlledCallable.call(ControlPointUtils.java:129)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
org.glassfish.enterprise.concurrent.internal.ManagedFutureTask.run(ManagedFutureTask.java:141)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at
org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)