1

我正在使用 Wildfly 17,并且在上个月两次收到以下异常:

(PriorityExampleScheduler_Worker-1) WFLYEE0043: Component is stopped: org.jboss.as.ee.component.ComponentIsStoppedException: WFLYEE0043: Component is stopped
at org.jboss.as.ee@17.0.0.Final//org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:110)
at org.jboss.as.ee@17.0.0.Final//org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:194)
at org.jboss.as.ee@17.0.0.Final//org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
at org.jboss.as.ee@17.0.0.Final//org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)
at deployment.heimdi.war//at.home.digest.services.AVeDBService$$$view41.clearWinner(Unknown Source)
at deployment.heimdi.war//at.home.digest.model.dave.OnAveCompletionJob.execute(OnAveCompletionJob.java:36)
at deployment.heimdi.war//org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at deployment.heimdi.war//org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

AVeDBService 被标记为@Stateless,表示一个使用 JPA 访问数据库的类。

Wildfly 使用名称创建并调用此类的代理

at.home.digest.services.AVeDBService$$$view41

现在:何时以及为什么可以停止该组件?为什么我在上个月只收到了两次这个异常,尽管代码已经被调用了很多次?

重新启动应用程序后,不再抛出异常,但这并不能解决我的问题。

4

1 回答 1

1

This error isn't usually the cause but the result of something else (like app server crash). Monitor app server with tool like VisualVM + create heap dump automatically when app server crash in case of out of memory: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=

It seems to me that your app server (or your deployed component) was already down when you call this method.

Long time monitor with tool like VisualVM may help you trace the cause of this problem.

于 2020-05-12T13:59:40.663 回答