WFLYEJB0029:无法从 ... com.ctc.wstx.exc.WstxEOFException 恢复计时器:序言中出现意外的 EOF
Posted
技术标签:
【中文标题】WFLYEJB0029:无法从 ... com.ctc.wstx.exc.WstxEOFException 恢复计时器:序言中出现意外的 EOF【英文标题】:WFLYEJB0029: Could not restore timer from ... com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog 【发布时间】:2017-05-29 23:53:57 【问题描述】:在 Wildfly 10 上运行的 Java 企业应用程序中,我不断地检索相同的错误 'Could not restore timer from /opt/wildfly/standalone/data/timer-service-data/... .xml: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog.
17:41:43,482 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-8) EE modules: [BeanDeploymentModule [id=deployment.CTGEar.ear.CTGRest.war:main, web=true, managers=[CTGEar.ear/CTGRest.war]], BeanDeploymentModule [id=deployment.CTGEar.ear.CTGWeb.war:main, web=true, managers=[/content/CTGEar.ear/CTGWeb.war/WEB-INF/lib/primefaces-6.0.jar, CTGEar.ear/CTGWeb.war, /content/CTGEar.ear/CTGWeb.war/WEB-INF/lib/CTGWeb-1.3.2-SNAPSHOT.jar, deployment.CTGEar.ear.CTGWeb.war:main.additionalClasses]], BeanDeploymentModule [id=deployment.CTGEar.ear:main, web=false, managers=[CTGEar.ear]], BeanDeploymentModule [id=deployment.CTGEar.ear.CTGService.jar:main, web=false, managers=[/content/CTGEar.ear/CTGService.jar]], BeanDeploymentModule [id=deployment.CTGEar.ear.CTGDAO.jar:main, web=false, managers=[/content/CTGEar.ear/CTGDAO.jar]], BeanDeploymentModule [id=BeanDeploymentModules.DEFAULT, web=false, managers=[org.hibernate.validator:main.additionalClasses, com.sun.jsf-impl:main.additionalClasses, org.jboss.as.jsf:main.additionalClasses, org.hibernate.validator.cdi:main.additionalClasses, org.jberet.jberet-core:main.additionalClasses, org.jboss.resteasy.resteasy-cdi:main.additionalClasses]]]
17:41:43,595 DEBUG [org.jboss.as.ejb3] (ServerService Thread Pool -- 70) ServiceLocator bean is a @Startup (a.k.a init-on-startup) bean, creating/getting the singleton instance
17:41:43,595 DEBUG [org.jboss.as.ejb3] (ServerService Thread Pool -- 58) SparkSingleton bean is a @Startup (a.k.a init-on-startup) bean, creating/getting the singleton instance
17:41:43,631 DEBUG [org.jboss.weld.Reflection] (ServerService Thread Pool -- 58) WELD-000620: interface javax.enterprise.inject.Intercepted is not declared @Target(METHOD, FIELD, PARAMETER, TYPE). Weld will use this annotation, however this may make the application unportable.
17:41:43,632 DEBUG [org.jboss.weld.Reflection] (ServerService Thread Pool -- 58) WELD-000620: interface javax.enterprise.inject.Decorated is not declared @Target(METHOD, FIELD, PARAMETER, TYPE). Weld will use this annotation, however this may make the application unportable.
17:41:43,653 ERROR [org.jboss.as.ejb3.timer] (ServerService Thread Pool -- 71) WFLYEJB0029: Could not restore timer from /opt/wildfly/standalone/data/timer-service-data/CTGEar.CTGService.CdetsDefectService/3ce1c92f-86fa-4ebf-a7b0-732ae1a3aa2e.xml: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col unknown-source]: [1,0]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:685)
at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2141)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1131)
at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1154)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:67)
at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence.loadTimersFromFile(FileTimerPersistence.java:370)
at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence.getTimers(FileTimerPersistence.java:333)
at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence.loadActiveTimers(FileTimerPersistence.java:274)
at org.jboss.as.ejb3.timerservice.TimerServiceImpl.getActivePersistentTimers(TimerServiceImpl.java:952)
at org.jboss.as.ejb3.timerservice.TimerServiceImpl.restoreTimers(TimerServiceImpl.java:692)
at org.jboss.as.ejb3.timerservice.TimerServiceImpl.activate(TimerServiceImpl.java:225)
at org.jboss.as.ejb3.component.EJBComponent.start(EJBComponent.java:543)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:133)
at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)`
...并重复 Exception 更多次。
有人知道错误的原因是什么吗?
【问题讨论】:
我遇到了同样的错误。你找到解决办法了吗? 我会尽快给你更新。我会尝试以下回复。这让我公司头疼 @donlys 错误是由于关闭不当而产生的。删除/opt/wildfly/standalone/data/timer-service-data/
下的计时器或修改它以具有适当的 EOF 应该可以工作
【参考方案1】:
我停止了wildfly并删除了/opt/wildfly/standalone/data/timer-service-data/下的所有文件夹/子文件夹/文件。重新启动wildfly后,错误消失了。所有计时器也都停止了 - 我必须重新启动才能使系统恢复到原始状态。
【讨论】:
我遇到了经常出现的相同错误。有没有永久解决方案? @sipekmichal 可能有一种方法可以禁用持久性计时器或其他东西。我也想知道一种方法,如果你找到了请告诉我。以上是关于WFLYEJB0029:无法从 ... com.ctc.wstx.exc.WstxEOFException 恢复计时器:序言中出现意外的 EOF的主要内容,如果未能解决你的问题,请参考以下文章
编译器错误信息: CS0029: 无法将类型“int []”隐式转换为“string”
配置安全性以通过 WS 访问 EJB -- WFLYEJB0364 连接被拒绝
org.jboss.as.ejb3.component.EJBComponentUnavailableException: WFLYEJB0467: 请求被拒绝,因为容器被挂起