{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/154","repository_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow","labels_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/154/comments","events_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/154/events","html_url":"https://github.com/vaadin/vaadin-combo-box-flow/issues/154","id":379815608,"node_id":"MDU6SXNzdWUzNzk4MTU2MDg=","number":154,"title":"Lazy loading results in IndexOutOfBoundsException ","user":{"login":"ThijsMaenhout","id":5966582,"node_id":"MDQ6VXNlcjU5NjY1ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/5966582?v=4","gravatar_id":"","url":"https://api.github.com/users/ThijsMaenhout","html_url":"https://github.com/ThijsMaenhout","followers_url":"https://api.github.com/users/ThijsMaenhout/followers","following_url":"https://api.github.com/users/ThijsMaenhout/following{/other_user}","gists_url":"https://api.github.com/users/ThijsMaenhout/gists{/gist_id}","starred_url":"https://api.github.com/users/ThijsMaenhout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThijsMaenhout/subscriptions","organizations_url":"https://api.github.com/users/ThijsMaenhout/orgs","repos_url":"https://api.github.com/users/ThijsMaenhout/repos","events_url":"https://api.github.com/users/ThijsMaenhout/events{/privacy}","received_events_url":"https://api.github.com/users/ThijsMaenhout/received_events","type":"User","site_admin":false},"labels":[{"id":724709322,"node_id":"MDU6TGFiZWw3MjQ3MDkzMjI=","url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/labels/question","name":"question","color":"ededed","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-12T15:01:12Z","updated_at":"2018-11-27T09:41:46Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWhen populating  a combobox with data from a pageable backend I get the following exception:\r\n\r\njava.lang.IndexOutOfBoundsException: Index: 150, Size: 150\r\n\tat java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[na:1.8.0_152]\r\n\tat java.util.ArrayList.get(ArrayList.java:433) ~[na:1.8.0_152]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.lambda$getJsonItems$3(DataCommunicator.java:597) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250) ~[na:1.8.0_152]\r\n\tat java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:110) ~[na:1.8.0_152]\r\n\tat java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:693) ~[na:1.8.0_152]\r\n\tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_152]\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_152]\r\n\tat java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_152]\r\n\tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_152]\r\n\tat java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_152]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.getJsonItems(DataCommunicator.java:599) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.lambda$collectChangesToSend$2(DataCommunicator.java:562) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.applyIfNotEmpty(DataCommunicator.java:613) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.withMissing(DataCommunicator.java:607) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.collectChangesToSend(DataCommunicator.java:561) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.flush(DataCommunicator.java:464) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat com.vaadin.flow.data.provider.DataCommunicator.lambda$requestFlush$2f364bb9$1(DataCommunicator.java:421) ~[flow-data-1.2.0.jar:1.2.0]\r\n\tat com.vaadin.flow.internal.StateTree.lambda$runExecutionsBeforeClientResponse$1(StateTree.java:350) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat java.util.ArrayList.forEach(ArrayList.java:1257) ~[na:1.8.0_152]\r\n\tat com.vaadin.flow.internal.StateTree.runExecutionsBeforeClientResponse(StateTree.java:347) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.server.communication.UidlWriter.encodeChanges(UidlWriter.java:334) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.server.communication.UidlWriter.createUidl(UidlWriter.java:179) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.server.communication.UidlRequestHandler.writeUidl(UidlRequestHandler.java:119) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:91) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.server.VaadinService.handleRequest(VaadinService.java:1533) ~[flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.server.VaadinServlet.service(VaadinServlet.java:300) [flow-server-1.1.0.jar:1.1.0]\r\n\tat com.vaadin.flow.spring.SpringServlet.service(SpringServlet.java:61) [vaadin-spring-10.1.0.jar:na]\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0],\r\n\r\nI'm able to populate the combobox with 50 items (default page size), It is possible to filter, but when I scroll in the combobox to the next range (eg: 50 - 100).  I get this exception. \r\n\r\nI'm working on 12.0.0.BETA_1.  "},"comment":{"url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/comments/441992630","html_url":"https://github.com/vaadin/vaadin-combo-box-flow/issues/154#issuecomment-441992630","issue_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/154","id":441992630,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTk5MjYzMA==","user":{"login":"pekam","id":28533233,"node_id":"MDQ6VXNlcjI4NTMzMjMz","avatar_url":"https://avatars3.githubusercontent.com/u/28533233?v=4","gravatar_id":"","url":"https://api.github.com/users/pekam","html_url":"https://github.com/pekam","followers_url":"https://api.github.com/users/pekam/followers","following_url":"https://api.github.com/users/pekam/following{/other_user}","gists_url":"https://api.github.com/users/pekam/gists{/gist_id}","starred_url":"https://api.github.com/users/pekam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pekam/subscriptions","organizations_url":"https://api.github.com/users/pekam/orgs","repos_url":"https://api.github.com/users/pekam/repos","events_url":"https://api.github.com/users/pekam/events{/privacy}","received_events_url":"https://api.github.com/users/pekam/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T09:41:46Z","updated_at":"2018-11-27T09:41:46Z","author_association":"CONTRIBUTOR","body":"Hi, @ThijsMaenhout!\r\n\r\nCould you provide a more isolated use-case for the bug? For example, start with the Project Base and add only the minimal amount of code to reproduce the issue. Based on the full-stack examples it's hard to say if the problem is in the application code or in the component.\r\n\r\nOne thing that you could check is that does the `DataProvider.size` method return the correct number of items."}}
{"actor":{"display_login":"pekam"}}