Developers Program

Getting IllegalArgumentExceptions/IllegalStateException

Published: October 30 2006, 12:01:00 AMยทUpdated: July 27 2022, 10:12:33 PM

Products

Question

Why am I getting Input data for tag TransactionArray.Transaction[44].Buyer.Site is invalid or java.lang.IllegalArgumentException ?

Answer

Summary

An IllegalStateException occurs when you receive an enumeration that your SDK which built against the version(s) of the WSDL does not understand.

If an API call is only failing on certain items, it means, in most cases, those items contain some new properties that are not backwards compatible with the WSDL you are using.

This usually is a bug, the bug that should never have happened. Whenever you encounter these exceptions and the error continues, please report the issue via Support Request with the source code or Api request xml that reproduces the problem.

NOTE. The correct behavior is to return CustomCode in place of a new property if the client is in the versions below when the new code was introduced.

Additional Comments
How well did this answer your question?