Xml file created during EJB Timer operation in JBoss EAP 7

Solution Verified - Updated -

Issue

Some xml files are getting created in jBosss path due to which getting error - could not restore timer from server:

12:12:44,486 ERROR [org.jboss.as.ejb3.timer] (EJB default - 5) WFLYEJB0029: Could not restore timer from $JBOSS_HOME/standalone/data/example_timer.a_timer_ejb.TimerServiceBean/random_190787.xml: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character (NULL, unicode 0) encountered: not valid in any content
 at [row,col {unknown-source}]: [1,1]
    at com.ctc.wstx.sr.StreamScanner.constructNullCharException(StreamScanner.java:646)
    at com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamScanner.java:670)
    at com.ctc.wstx.sr.StreamScanner.throwInvalidSpace(StreamScanner.java:661)
    at com.ctc.wstx.sr.StreamScanner.getNextAfterWS(StreamScanner.java:831)
    at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2110)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1181)
    at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1204)
    at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:74)
    at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence.loadTimersFromFile(FileTimerPersistence.java:371)
    at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence.getTimers(FileTimerPersistence.java:334)
    at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence.access$500(FileTimerPersistence.java:81)
    at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence$PersistTransactionSynchronization$1.run(FileTimerPersistence.java:463)
    at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence$PersistTransactionSynchronization$1.run(FileTimerPersistence.java:455)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.as.ejb3.timerservice.persistence.filestore.FileTimerPersistence$PersistTransactionSynchronization.afterCompletion(FileTimerPersistence.java:455)
    at org.jboss.as.txn.service.internal.tsr.JCAOrderedLastSynchronizationList.afterCompletion(JCAOrderedLastSynchronizationList.java:144)
    at org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:223)
    at org.wildfly.transaction.client.AbstractTransaction$AssociatingSynchronization.afterCompletion(AbstractTransaction.java:306)
    at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:96)
    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:545)
    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:101)
    at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)
    at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1288)
    at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)
    at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:89)
    at org.wildfly.transaction.client.LocalTransaction.commitAndDissociate(LocalTransaction.java:77)
    at org.wildfly.transaction.client.ContextTransactionManager.commit(ContextTransactionManager.java:71)
    at org.jboss.as.ejb3.timerservice.TimerServiceImpl$TaskPostPersist.persistTimer(TimerServiceImpl.java:1248)
    at org.jboss.as.ejb3.timerservice.TimerServiceImpl.persistTimer(TimerServiceImpl.java:622)
    at org.jboss.as.ejb3.timerservice.TimerTask.run(TimerTask.java:152)
    at org.jboss.as.ejb3.timerservice.TimerServiceImpl$Task$1.run(TimerServiceImpl.java:1299)
    at org.wildfly.extension.requestcontroller.RequestController$QueuedTask$1.run(RequestController.java:494)
    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:485)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content