[
https://issues.jboss.org/browse/WFLY-3953?page=com.atlassian.jira.plugin....
]
Anderson Parra de Paula commented on WFLY-3953:
-----------------------------------------------
I could not simulate this problem on development version:
Please take a look at this code:
@Singleton
@Startup
public class TimerTest {
@Schedule(hour = "*", minute = "*", second="13")
public void sayHello() {
System.out.println("Hello");
}
}
Result:
11:53:13,005 INFO [stdout] (EJB default - 6) Hello
11:54:13,010 INFO [stdout] (EJB default - 7) Hello
11:55:13,007 INFO [stdout] (EJB default - 8) Hello
11:56:13,004 INFO [stdout] (EJB default - 9) Hello
11:57:13,040 INFO [stdout] (EJB default - 10) Hello
@Schedule annotation produces "Cannot invoke timeout method
because method null is not a timeout method"
--------------------------------------------------------------------------------------------------------
Key: WFLY-3953
URL:
https://issues.jboss.org/browse/WFLY-3953
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 8.1.0.Final
Reporter: Andrei Tchijov
Assignee: Stuart Douglas
Please take a look at this gist :
https://gist.github.com/leapingbytes/01838d9534638cb04200
In case of @Schedule second and all consecutive invocations produce this
{code}
13:19:30,635 ERROR U( ) [org.jboss.as.ejb3] (EJB default - 8) JBAS014120: Error
invoking timeout for timer: [id=ba9f1c67-5a91-42ff-8276-f715efaa3723
timedObjectId=ChumbaServer-2.0-SNAPSHOT.ChumbaServer-2.0-SNAPSHOT.SettingsManagerImpl
auto-timer?:false persistent?:true
timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl@5a898863
initialExpiration=Wed Oct 08 13:17:30 EEST 2014 intervalDuration(in milli sec)=60000
nextExpiration=Wed Oct 08 13:20:30 EEST 2014 timerState=IN_TIMEOUT info=null:
java.lang.RuntimeException: JBAS014481: Cannot invoke timeout method because method null
is not a timeout method
at
org.jboss.as.ejb3.timerservice.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:84)
[wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]
at
org.jboss.as.ejb3.timerservice.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:114)
[wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.as.ejb3.timerservice.task.TimerTask.callTimeout(TimerTask.java:196)
[wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.as.ejb3.timerservice.task.TimerTask.run(TimerTask.java:168)
[wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_67]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
[jboss-threads-2.1.1.Final.jar:2.1.1.Final]
{code}
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)