rastaman / jira-mylyn-connector

Mylyn Eclipse Connector for JIRA forked from the old one on Bitbucket
9 stars 8 forks source link

jira cloud update: JSONObject["name"] not found. #4

Open corvalantic opened 4 years ago

corvalantic commented 4 years ago

some update from JIRA cloud. do you have an ideea?

thanks a lot.

com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.

com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:790)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.getIssues(JiraRestClientAdapter.java:315)
    at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.findIssues(JiraClient.java:368)
    at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.search(JiraClient.java:757)
    at com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.performQuery(JiraRepositoryConnector.java:140)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:304)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:261)
    at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:192)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:783)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.getIssue(JiraRestClientAdapter.java:248)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.access$3(JiraRestClientAdapter.java:247)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$5.call(JiraRestClientAdapter.java:325)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$5.call(JiraRestClientAdapter.java:1)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:746)
    ... 8 more
Caused by: com.atlassian.jira.rest.client.RestClientException: org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
    at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:89)
    at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.getAndParse(AbstractJerseyRestClient.java:106)
    at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.getIssue(JerseyIssueRestClient.java:133)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$3.call(JiraRestClientAdapter.java:250)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$3.call(JiraRestClientAdapter.java:1)
    at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:746)
    ... 13 more
Caused by: org.codehaus.jettison.json.JSONException: JSONObject["name"] not found.
    at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
    at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
    at com.atlassian.jira.rest.client.internal.json.JsonParseUtil.parseBasicUser(JsonParseUtil.java:169)
    at com.atlassian.jira.rest.client.internal.json.CommentJsonParser.parse(CommentJsonParser.java:37)
    at com.atlassian.jira.rest.client.internal.json.CommentJsonParser.parse(CommentJsonParser.java:27)
    at com.atlassian.jira.rest.client.internal.json.JsonWeakParserForJsonObject.parse(JsonWeakParserForJsonObject.java:39)
    at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parseArray(IssueJsonParser.java:152)
    at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:241)
    at com.atlassian.jira.rest.client.internal.json.IssueJsonParser.parse(IssueJsonParser.java:90)
    at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient$1.call(AbstractJerseyRestClient.java:111)
    at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:68)
    ... 18 more
rodrigc commented 4 years ago

I started seeing this too, when using the Jenkins jira-plugin

rodrigc commented 4 years ago

Seems that other people are hitting this: https://community.atlassian.com/t5/Jira-questions/JIRA-REST-API-missing-parameters/qaq-p/1302944

rodrigc commented 4 years ago

@crsologicsde You will need to update jira-mylyn-connector to use jira-rest-java-client 5.2.0 which was updated to fix this problem: https://bitbucket.org/atlassian/jira-rest-java-client/pull-requests/93/jrjc-240-added-support-for-accountid/

rastaman commented 4 years ago

I will also update this project, apart if someone have a maintained fork better than mine, do you have ?

rodrigc commented 4 years ago

I don't have a fork of jira-mylyn-connector

wayneb64 commented 4 years ago

I am having the same issue, I really hope we get an update for this since Atlassian are such crappy stewards of their product. Getting things to work in Eclipse seems terribly painful, at least to me.

wayneb64 commented 4 years ago

Is there any status on getting this fixed? I realize this is all voluntary and thanks for any efforts. This is really important to me as it makes my work life so much better to have Jira integrated with Eclipse.

p0las commented 4 years ago

How can we get this fork to work? this was (as far as I know) the last working connector. Not having my tasks in eclipse really hurts my productivity. I don't know enough about Eclipse plugins to attempt to fix it myself.

trex59 commented 2 years ago

@rastaman first of all thanks for your work. Then I would like to throw my 5cents of help attempt .. I've been browsing the code a little bit and I've cross into this:

com.atlassian.connector.eclipse.jira.core/src/com/atlassian/connector/eclipse/internal/jira/core/service/rest/JiraRestFields.java

wouldn't be worth a try to change the string "name" to "accountId" in the line 19 of the code ? I would have done a test myself, but sincerely would take too much time to set up a development environment for an eclipse plugin and also i'm not so familiar with JAVA code, so I thought that, if you can find the time and the willing, would be a piece of cake instead. greetings and thanks again