Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351666 - IndexOutOfBoundsException when looking at a certain change
Summary: IndexOutOfBoundsException when looking at a certain change
Status: RESOLVED DUPLICATE of bug 349023
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 0.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-11 01:53 EDT by Christian Halstrick CLA
Modified: 2011-07-11 05:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Halstrick CLA 2011-07-11 01:53:26 EDT
When I want to see the details for a certain change in gerrit by doubleclicking
on that change in the task list an error dialog "Unexpected error while communicating with gerrit" pops up. For other changes on the same gerrit everything is ok. The change producing the bug is change I01c73257 on http://egit.eclipse.org/r.
I am running Mylyn Reviews (Incubation)	0.8.0.v20110608-1400 in an Indigo eclipse.
The error log contains the following:

org.eclipse.mylyn.reviews.feature.feature.group	Eclipse Mylyn

org.eclipse.mylyn.internal.gerrit.core.client.GerritException
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.execute(GerritClient.java:684)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.getPatchSetPublishDetail(GerritClient.java:383)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.getChange(GerritClient.java:400)
	at org.eclipse.mylyn.internal.gerrit.core.GerritTaskDataHandler.getTaskData(GerritTaskDataHandler.java:81)
	at org.eclipse.mylyn.internal.gerrit.core.GerritConnector.getTaskData(GerritConnector.java:123)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeTasksJob.synchronizeTask(SynchronizeTasksJob.java:245)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeTasksJob.runInternal(SynchronizeTasksJob.java:218)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeTasksJob.run(SynchronizeTasksJob.java:153)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeTasksJob.run(SynchronizeTasksJob.java:129)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.google.gson.JsonParseException: The JsonDeserializer com.google.gwtjsonrpc.server.MapDeserializer@60e07ad7 failed to deserialized json object [{"key":{"patchSetId":{"changeId":{"id":3816},"patchSetId":1},"accountId":{"id":5},"categoryId":{"id":"CRVW"}},"value":-1,"granted":"2011-07-07 07:21:02.000000000","changeOpen":true,"changeSortKey":"00162d5900000ee8"},{"key":{"patchSetId":{"changeId":{"id":3816},"patchSetId":1},"accountId":{"id":5},"categoryId":{"id":"IPCL"}},"value":0,"granted":"2011-07-07 07:21:02.000000000","changeOpen":true,"changeSortKey":"00162d5900000ee8"},{"key":{"patchSetId":{"changeId":{"id":3816},"patchSetId":1},"accountId":{"id":5},"categoryId":{"id":"VRIF"}},"value":0,"granted":"2011-07-07 07:21:02.000000000","changeOpen":true,"changeSortKey":"00162d5900000ee8"}] given the type com.google.gson.ParameterizedTypeImpl@bd479e60
	at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:63)
	at com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:88)
	at com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:116)
	at com.google.gson.ObjectNavigator.navigateClassFields(ObjectNavigator.java:158)
	at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:131)
	at com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:73)
	at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:51)
	at com.google.gson.Gson.fromJson(Gson.java:568)
	at org.eclipse.mylyn.internal.gerrit.core.client.JSonSupport.parseResponse(JSonSupport.java:157)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritService.invoke(GerritService.java:102)
	at $Proxy5.patchSetPublishDetail(Unknown Source)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient$9.execute(GerritClient.java:386)
	at org.eclipse.mylyn.internal.gerrit.core.client.GerritClient.execute(GerritClient.java:678)
	... 9 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at com.google.gson.JsonArray.get(JsonArray.java:101)
	at com.google.gwtjsonrpc.server.MapDeserializer.deserialize(MapDeserializer.java:69)
	at com.google.gwtjsonrpc.server.MapDeserializer.deserialize(MapDeserializer.java:33)
	at com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:50)
	... 21 more
Comment 1 Steffen Pingel CLA 2011-07-11 05:53:55 EDT
.

*** This bug has been marked as a duplicate of bug 349023 ***