• Post Reply Bookmark Topic Watch Topic
  • New Topic

IllegalArgumentException: more than 10 parameters

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know, what this failure means:

Caused by: java.lang.IllegalArgumentException: more than 10 parameters



I use a Map to put values..have I modify the size of the map or something else?
 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use a HashMap:

private Map<String, String[]> myMap = new HashMap<String, String[])();

I have many values in the String[]...should I use a other type of Map?
 
Campbell Ritchie
Marshal
Posts: 52558
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does it say in EvaluationException and the MethodBindingMethodExpressionAdapter in their documentation about number of arguments?
If you are using reflection, you would have to pass an Object[] with the correct number of members to match the method signature.
 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 24 keys and I have adapt the map as following:



but it does not work...
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an aside, if you put 24 entries into a HashMap with a load factor of 0.75, it will need a capacity of at least 30 buckets to hold them (because 0.75 * 30 = 24).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!