java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ClassCastException assigning XmlObjects
    via by 3004,
  • Surprised By Source Code Annotation Behavior
    via by Unknown author,
  • IllegalArgumentException
    via by 3004,
  • IllegalArgumentException
    via by 3004,
  • Android Reflection - Call a method
    via Stack Overflow by myCodeHurts
    ,
  • Cluster / Node Manager « WebLogic
    via by Unknown author,
  • Works both for me, but not together: Encountered an error executing the step: class 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=writeDatasheetXml, status=STARTED, exitStatus=EXECUTING, readCount=0, filterCount=0, writeCount=0 readSkipCount=0, writeSkipCount=0, commitCount=0, rollbackCount=0, exitDescription=]] 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=]] at org.springframework.batch.support.SimpleMethodInvoker.invokeMethod(SimpleMethodInvoker.java:97) at org.springframework.batch.core.listener.MethodInvokerMethodInterceptor.invoke(MethodInvokerMethodInterceptor.java:68) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $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$1.run(SimpleJobLauncher.java:110) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:105) at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:207) at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:254) Caused by: 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 java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.batch.support.SimpleMethodInvoker.invokeMethod(SimpleMethodInvoker.java:95) ... 19 more
    via by Jörg Gottschling,
    • java.lang.IllegalArgumentException: java.lang.ClassCastException@d03aac at sun.reflect.GeneratedMethodAccessor128.invoke(UnknownSource) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.bea.wli.variables.ProcessXML.invoke(ProcessXML.java:376) at $Proxy8.getCXTXN(Unknown Source) at processes.MainProcess.sendResponseToChannel(MainProcess.jpd:298) at processes.MainProcess_wf$ImplPerform28.invoke(MainProcess_wf.java:290) at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32) at com.bea.wli.bpm.runtime.Receive.messageDelivery(Receive.java:90) at com.bea.wli.bpm.runtime.Receive.messageDeliveryAction(Receive.java:71) at com.bea.wli.bpm.runtime.ProcessState.processMessage(ProcessState.java:224) at processes.MainProcess_wf$_ProcessState.processMessage(MainProcess_wf.java:558) at processes.MainProcess_wf.daSubscription(MainProcess_wf.java:510) at sun.reflect.GeneratedMethodAccessor161.invoke(UnknownSource) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393) at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:245) at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:185) at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:103) at com.bea.wlwgen.MainProcessSLSBContImpl.daSubscription(MainProcessSLSBContImpl.java:55) at com.bea.wlwgen.StatelessContainer_s69tnd_ELOImpl.daSubscription(StatelessContainer_s69tnd_ELOImpl.java:477) at com.bea.wlwgen.MainProcessSLSBContAdpt.invokeOnBean(MainProcessSLSBContAdpt.java:80) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:160) at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54) at com.bea.wlw.runtime.core.bean.AsyncDispatcherBean.onMessage(AsyncDispatcherBean.java:229) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382) at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316) at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596) at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    Users with the same issue

    tvrmsmithtvrmsmith
    2 times, last one,
    Unknown UserUnknown User
    2 times, last one,
    bernardpaulusbernardpaulus
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Nikolay RybakNikolay Rybak
    8 times, last one,
    86 more bugmates