java.lang.IllegalArgumentException: wrong number of arguments

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 liferay.com by Unknown author, 2 years ago
via GitHub by jasinner
, 1 year ago
wrong number of arguments
via Google Groups by Adam, 4 months ago
wrong number of arguments
java.lang.IllegalArgumentException: wrong number of arguments
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.baidu.disconf.client.common.model.DisconfCenterFile$FileItemValue.setValue4FileItem(DisconfCenterFile.java:216)
at com.baidu.disconf.client.store.processor.impl.DisconfStoreFileProcessorImpl.inject2Instance(DisconfStoreFileProcessorImpl.java:148)
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.inject2OneConf(DisconfFileCoreProcessorImpl.java:237)
at com.baidu.disconf.client.core.processor.impl.DisconfFileCoreProcessorImpl.inject2Conf(DisconfFileCoreProcessorImpl.java:257)
at com.baidu.disconf.client.core.impl.DisconfCoreMgrImpl.inject2DisconfInstance(DisconfCoreMgrImpl.java:95)
at com.baidu.disconf.client.DisconfMgr.secondScan(DisconfMgr.java:139)
at com.baidu.disconf.client.DisconfMgrBeanSecond.init(DisconfMgrBeanSecond.java:13)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

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.