Data out of Bounds Bug,java.lang.indexoutofboundsexception:invalid index 1, size is 1

Source: Internet
Author: User

When I started to encounter this problem, my first reaction was, "the data is out of bounds, the problem should be inside the array." Then I'll find it in the data. But all the relevant data are checked again, the data is not a problem ah.

Then I promised all the data. Constant testing. found that the data of a place sent a change. There is a certain chance that this change can happen. And then I came up with this by accident. The discovery is that this set of data is another interface of data.

Then I look for the reason AH: it is an interface data is very complex, the query time is relatively long. Another interface data is loaded quickly. In the loading of the interface slow data, click on the loading fast interface, two sets of data meet. When loading slow data instead of the data you should have, you will get an error (this is why there is a contingency).

First write, time is more hurried. Writing this is to facilitate their own memory.

Data out of Bounds Bug,java.lang.indexoutofboundsexception:invalid index 1, size is 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.