java.lang.IllegalArgumentException: Unable to invoke method: [public void XXXReader.beforeStep(org.springframework.batch.core.StepExecution)] on object: [XXXReader@8b567c] with arguments: [[StepExecution: id=0, name=XXX, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Thrown to indicate that a method has been passed an illegal or inappropriate argument. Check that you don't have more than one method existing with the same name.

Solutions on the web

via Spring JIRA by Jörg Gottschling, 1 year ago
Unable to invoke method: [public void XXXReader.beforeStep(org.springframework.batch.core.StepExecution)] on object: [XXXReader@8b567c] with arguments: [[StepExecution: id=0, name=XXX, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]]
via Spring JIRA by Jörg Gottschling, 1 year ago
Unable to invoke method: [public void XXXReader.beforeStep(org.springframework.batch.core.StepExecution)] on object: [XXXReader@8b567c] with arguments: [[StepExecution: id=0, name=XXX, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]]
via spring.io by Unknown author, 1 year ago
via Stack Overflow by nobody
, 2 years ago
Unable to invoke method: [public void com.abc.GroupingStepExecutionListener.beforeStep(org.springframework.batch.core.StepExecution)] on object: [com.abc.GroupingStepExecutionListener@173990a] with arguments: [[StepExecution: id=225, version=1, name
via Apereo Issues by Dan McCallum, 1 year ago
Unable to invoke method: [public void org.jasig.ssp.util.importer.job.listener.StagingAndUpsertSkipListener.onSkipInWrite(java.lang.Object,java.lang.Throwable)] on object: [org.jasig.ssp.util.importer.job.listener.StagingAndUpsertSkipListener@1584807] with arguments: [[org.jasig.ssp.util.importer.job.domain.RawItem@cf07f3, java.lang.IllegalArgumentException]]
via Apereo Issues by Dan McCallum, 1 year ago
Unable to invoke method: [public void org.jasig.ssp.util.importer.job.listener.StagingAndUpsertSkipListener.onSkipInWrite(java.lang.Object,java.lang.Throwable)] on object: [org.jasig.ssp.util.importer.job.listener.StagingAndUpsertSkipListener@7593c366] with arguments: [[org.jasig.ssp.util.importer.job.domain.RawItem@1b06ac95, java.lang.IllegalArgumentException]]
java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at undefined.$Proxy18.beforeStep(Unknown Source)
at org.springframework.batch.core.listener.CompositeStepExecutionListener.beforeStep(CompositeStepExecutionListener.java:76)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:193)
at org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:348)
at org.springframework.batch.core.job.flow.FlowJob.access$100(FlowJob.java:43)
at org.springframework.batch.core.job.flow.FlowJob$JobFlowExecutor.executeStep(FlowJob.java:137)
at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:60)
at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:144)
at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:124)
at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:105)
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:250)
at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:105)
at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:207)

Users with the same issue

3 times, 3 weeks ago
Once, 1 month ago
2 times, 2 months ago
3 times, 2 months ago
6 times, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.