Hi!
I have a class wich implements IJobLifeCycleListener.
However, when an event is fired by the JobSuite an exception like the following is launched :
Caused by: java.lang.NoSuchMethodException: No such accessible method: jobProgressed()
The cause is the use of (in fire () method of JobSuite):
MethodUtils.invokeExactMethod(l, methodName, argument);
The argument here is a MutableJobStatus instead of IJobStatus declared in the IJobLifeCycleListener
interface then the exception occured.
Duplicating all IJobLifeCycleListener interface methods in my implementation from:
public void jobStarted(IJobStatus status)
with
public void jobStarted(MutableJobStatus status)
works.
Is this really a prerequisite to call an invokeExactMethod() here ?
[edit : renaming IJobStatus interface by IJobLifeCycleListener interface ]
Hi! I have a class wich implements IJobLifeCycleListener.
However, when an event is fired by the JobSuite an exception like the following is launched :
Caused by: java.lang.NoSuchMethodException: No such accessible method: jobProgressed()
The cause is the use of (in fire () method of JobSuite):
MethodUtils.invokeExactMethod(l, methodName, argument);
The argument here is a MutableJobStatus instead of IJobStatus declared in the IJobLifeCycleListener interface then the exception occured.Duplicating all IJobLifeCycleListener interface methods in my implementation from:
public void jobStarted(IJobStatus status)
withpublic void jobStarted(MutableJobStatus status)
works.Is this really a prerequisite to call an invokeExactMethod() here ?
[edit : renaming IJobStatus interface by IJobLifeCycleListener interface ]