Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361485 - Gerrit 2.2.1 and Mylyn Reviews 0.8.2 gives exception when parsing JSON from dev_any_account
Summary: Gerrit 2.2.1 and Mylyn Reviews 0.8.2 gives exception when parsing JSON from d...
Status: RESOLVED DUPLICATE of bug 349023
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 19:21 EDT by Alex Blewitt CLA
Modified: 2011-10-20 05:37 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 Alex Blewitt CLA 2011-10-19 19:21:34 EDT
Build Identifier: 3.7.1 with Mylyn 0.8.2

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)
... 
Caused by: com.google.gson.JsonParseException: The JsonDeserializer com.google.gwtjsonrpc.server.MapDeserializer@65e7e8bf failed to deserialized json object [{"key":{"patchSetId":{"changeId":{"id":3},"patchSetId":2},"accountId":{"id":1000000},"categoryId":{"id":"CRVW"}},"value":0,"granted":"2011-10-19 23:12:12.262000000","changeOpen":true,"changeSortKey":"00187a1000000003"}] given the type com.google.gson.ParameterizedTypeImpl@f09e76e3

Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
	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)

I was running Gerrit 2.2.1 and Mylyn Reviews 0.8.2 under Eclipse 3.7.1 using the 'development_become_any_account'.

I had a username (but an empty password) specified for the review. I was able to click 'validate settings' and have a successful connect, as well as seeing a list of the reviews that get fired, but I wasn't able to drill into any of them.

Interestingly, I was able to get another change open. I think what happened was I pushed a change (with a gerrit change id), then rebased that change and pushed again. So Gerrit now thinks there are two commits with that same change id associated with it - maybe it's returning a different type or a different number of changes?

I'll see if I can find an easy way to reproduce this, but I have a suspicion that commit a, then commit b (with generated change ids) followed by rebasing b onto a's head and pushing again will repeat this.

Reproducible: Didn't try
Comment 1 Steffen Pingel CLA 2011-10-20 05:37:27 EDT
Can you re-try again with the latest build from http://download.eclipse.org/mylyn/snapshots/weekly ? Please reopen if that is still failing.

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