java.lang.IllegalArgumentException: wrong number of arguments

Coderanch | R Sharp | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Wrong number of arguments invoking a Scala constructor using reflection

    Stack Overflow | 6 years ago | pdinklag
    java.lang.IllegalArgumentException: wrong number of arguments
  2. 0

    Grater has trouble dealing with List-s and Option-s that live next to eachother

    GitHub | 5 years ago | manuelbernhardt
    com.novus.salat.util.ToObjectGlitch: wrong number of arguments $anon$3(class models.MetadataRecord @ models.package$$anon$1@2d366f2c) toObject failed on: SYM: models.MetadataRecord CONSTRUCTOR: public models.MetadataRecord(org.bson.types.ObjectId,java.lang.String,scala.collection.immutable.Map,scala.collection.immutable.Map,java.util.Date,scala.collection.immutable.List,scala.Option,boolean,java.lang.String,scala.collection.immutable.List,java.lang.String,scala.collection.immutable.Map) ARGS: [0] class org.bson.types.ObjectId 4ef4679d0364cbb8c3a9719f [1] class java.lang.String delving_EmptyCollection_7117 [2] class scala.collection.immutable.Map$Map1 Map(raw -> <priref>7117</priref> <edit.source>collect>intern</edit.source> <edit.source>collect>intern</edit.source> <edit.time>10:16:55</edit.time> <edit.time>14:03:08</edit.time> <edit.name>d.terpstra</edit.name> ... <percentH>N</percentH> ) [3] class scala.collection.immutable.Map$Map1 Map(icn -> { "europeana_isShownAt_string" : [ "http://fries-museum.delving.org/portal/object/EmptyCollection/A007E5D701A49C3927E896C57368C8F2A545E09D.html"] , "europeana_type_string" : [ "IMAGE"] , "europeana_dataProvider_string" : [ "Fries Museum"] , "europeana_rights_string" : [ "http://creativecommons.org/publicdomain/mark/1.0/"] , "icn_physicalState_text" : [ "matig"] , "dc_rights_text" : [ "Verzetsmuseum Friesland"] , "europeana_language_string" : [ "nl"] , "europeana_provider_string" : [ "Fries Museum"] , "delving_description" : [ "-"] , "dc_title_text" : [ "Postzegel, serie, bevrijding/Verenigde Naties"] , "delving_title" : [ "Postzegel, serie, bevrijding/Verenigde Naties"] , "dc_identifier_string" : [ "22954"] , "dc_source_text" : [ "Verzetsmuseum Friesland"] , "europeana_uri_string" : [ "EmptyCollection/A007E5D701A49C3927E896C57368C8F2A545E09D"] , "delving_owner" : [ "Fries Museum"] , "europeana_country_text" : [ "netherlands"] , "delving_landingPage" : [ "http://fries-museum.delving.org/portal/object/EmptyCollection/A007E5D701A49C3927E896C57368C8F2A545E09D.html"] , "europeana_collectionTitle_text" : [ "Fries Museum3"] , "icn_collectionType_text" : [ "all"] , "icn_acquisitionYear_string" : [ "1995-07-05"] , "dc_description_text" : [ "-"] , "delving_snippet" : [ "Fries Museum3"] , "dc_type_text" : [ "document"] , "dc_coverage_text" : [ "-"]}) [4] class java.util.Date Fri Dec 23 12:35:57 CET 2011 [5] class scala.collection.immutable.$colon$colon List(icn) [6] class scala.Some Some(6815) [7] class java.lang.String 7117 [8] class scala.collection.immutable.Nil$ List() [9] class java.lang.String 35BA231B394DAF27F0738EA3A6854C58 [10] class scala.collection.immutable.HashMap$HashTrieMap Map(3AA5E4AED92FD3AAB99B9BC934A62504 -> /percentH, B49896AB8CAAFAF4CFDE7C0A48D4E95D -> /input.date, 6583A5F3CD06AF71E468562AA73EC682 -> /acquisition.date, 4EB43703FE4E906E5B621E72D24C449B -> /association.subject.type/text, CA52F7A15CE21CB8E7ECA32DCB504082 -> /institution.code, 17CFBB5A1116B9E4A891A8FB2CE39A8D -> /edit.date_1, 3C8F045606754013EFB692ABDD6A0736 -> /content.motif.specific, C403E32BA8417A813D060526F1924685 -> /production.date.notes, E30ED3FF1232ABEFE806E86E071895D0 -> /valuation.value.currency, AF06F0C534CE6B4990DE37B89982EBF5 -> /condition, 860B37E28EC7BA614F00F9246949561D -> /priref, 33606CB9E03683F2324FC00FFDACB88B -> /edit.source, D547C8A5EADD9790D23C842D42443814 -> /number_of_parts, 1D32896986170D7004DCC7C53F364AD7 -> /input.name, BBCDEC9E42C3C13619DB70D7E0398BAF -> /acquisition.method, 9B8FB4DAB35D8BF214B1FBD76628D232 -> /free_field.content, 84A4F82FA43E10D7F9FFD72B0BAC70C7 -> /association.subject.type/text_1, B406FD0B1170C305E22B8ED9BFC09EC2 -> /association.period.date.start, 3FAF395CFC3A792ADF4679D81CB348BD -> /description, 2B161DE272714C6522E99E769A45BB45 -> /content.motif.general, 9D46F20233F9CE20D3C38AB80B5358BF -> /object_name, 278C9EEF88B7ED791ED9C15424B33579 -> /association.subject.type/text_2, 131546183B649C53F08F262A19DB1F3C -> /association.subject.type/text_3, 8BD3BABB41B14CCC609A87722289594C -> /edit.time, E25D02D16732B0E9BBF23E3FB9B95A80 -> /association.subject.type/text_4, 2612D605DE11E8D560D4E4A6EAF9A11C -> /free_field.type, 98193332FF6AE7419E3840C27CA55492 -> /production.place, A5433DEF771CED1739C3F593143FEE88 -> /valuation.date, 0323A72446CDF9A56CAA79698FCAD062 -> /edit.name_1, 752B60DA6B31CCA3F787CE0369D78EA6 -> /association.subject.type/text_5, 4CC77C4665FC57CFC98195014DC39A58 -> /administration_name, 30D2F455DC0B6D149C02290793AF2103 -> /edit.date, 8A92F1009D99B3E37FF784D20C760318 -> /institution.name, 0D98BC395CC21F6FD452DDB8D4E274DC -> /object_number, 4827A486FA42FA1A315853752EF402B3 -> /location.default, C43A820D082A6D7D04B7A20B322D0319 -> /edit.time_1, 68B329DA9893E34099C7D8AD5CB9C940 -> /institution.place, 30C3AFC8A8C60A30E9AFEFFA4E95B557 -> /edit.name, 8B7FF2C277A9D3B12196A9CCF09EDCDF -> /related_object.notes, 58EF6CBBDB3D7B36B920527033A4D255 -> /valuation.value, D3FA390B69DE58A42CCC3E1DF257CAAE -> /title)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    IllegalArgumentException: wrong number of arguments in Java Constructor.newInstance() - BlogoSfera

    co.uk | 1 year ago
    java.lang.IllegalArgumentException: wrong number of arguments
  5. 0

    Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(12,10),absolute(1016,722),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###: wrong number of arguments java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.atlassian.theplugin.idea.IdeaVersionFacade.getChangesListBorwser(IdeaVersionFacade.java:134) at com.atlassian.theplugin.idea.crucible.CrucibleCreatePreCommitUploadReviewForm.<init>(CrucibleCreatePreCommitUploadReviewForm.java:48) at com.atlassian.theplugin.idea.action.crucible.PreCommitReviewActionNoChangeSelected.actionPerformed(PreCommitReviewActionNoChangeSelected.java:18) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:17) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:41) at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:65) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:129) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:5) at java.awt.Component.processMouseEvent(Component.java:6134) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5899) at java.awt.Container.processEvent(Container.java:2023) at java.awt.Component.dispatchEventImpl(Component.java:4501) at java.awt.Container.dispatchEventImpl(Container.java:2081) at java.awt.Component.dispatchEvent(Component.java:4331) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895) at java.awt.Container.dispatchEventImpl(Container.java:2067) at java.awt.Window.dispatchEventImpl(Window.java:2458) at java.awt.Component.dispatchEvent(Component.java:4331) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35) at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:223) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Ecosystem JIRA | 8 years ago | Janusz Gorycki
    java.lang.IllegalArgumentException: wrong number of arguments

  1. musketyr 6 times, last 3 months ago
  2. stigkj 3 times, last 4 months ago
  3. tvrmsmith 21 times, last 8 months ago
  4. Nikolay Rybak 2 times, last 10 months ago
16 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    wrong number of arguments

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    4 frames