Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.IllegalArgumentException: Multiple values for same key 'request'

Anyone know what this error means? It's coming from the Google Cloud Endpoints processor and the error message gives no detail as to where it's occurring. Here is the full stack trace I see in the error log:

com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmGenerationException: java.lang.IllegalArgumentException: Multiple values for same key 'request'

UPDATE:

Through trial and error I found the offending method signature:

@ApiMethod(name = "createMasterDefaultCampaignsAndScriptsAndSchedules", path = "createMasterDefaultCampaignsAndScriptsAndSchedules", httpMethod = HttpMethod.GET)
public ArrayList<Campaign> createMasterDefaultCampaignsAndScriptsAndSchedules(Calendar pCalendar, Company pCompany) {

What's wrong with this?

like image 750
Shaun Avatar asked Dec 03 '25 11:12

Shaun


1 Answers

Only one entity type parameter is allowed with endpoints. You must enclose all parameters in a single class.

like image 193
azyoot Avatar answered Dec 05 '25 02:12

azyoot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!