gnl42 / JiraConnector

Other
19 stars 2 forks source link

Strange ClassCastException when trying to load Jira issues #57

Open whustedt opened 10 months ago

whustedt commented 10 months ago
java.lang.ClassCastException: class org.codehaus.jettison.json.JSONArray cannot be cast to class org.codehaus.jettison.json.JSONArray (org.codehaus.jettison.json.JSONArray is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @3a5f8888; org.codehaus.jettison.json.JSONArray is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @38436696)
        at me.glindholm.connector.eclipse.internal.jira.core.service.rest.JiraRestCustomFieldsParser.parseMultiUserPicker(JiraRestCustomFieldsParser.java:43)
        at me.glindholm.connector.eclipse.internal.jira.core.service.rest.JiraRestConverter.generateCustomField(JiraRestConverter.java:510)
        at me.glindholm.connector.eclipse.internal.jira.core.service.rest.JiraRestConverter.getCustomFieldsFromIssue(JiraRestConverter.java:398)
        at me.glindholm.connector.eclipse.internal.jira.core.service.rest.JiraRestConverter.convertIssue(JiraRestConverter.java:167)
        at me.glindholm.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.lambda$3(JiraRestClientAdapter.java:294)
        at me.glindholm.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:743)
        at me.glindholm.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.getIssues(JiraRestClientAdapter.java:281)
        at me.glindholm.connector.eclipse.internal.jira.core.service.JiraClient.findIssues(JiraClient.java:374)
        at me.glindholm.connector.eclipse.internal.jira.core.service.JiraClient.search(JiraClient.java:756)
        at me.glindholm.connector.eclipse.internal.jira.core.JiraRepositoryConnector.performQuery(JiraRepositoryConnector.java:143)
        at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:306)
        at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:263)
        at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:194)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Details about Installation

gnl42 commented 9 months ago

Hi, sorry about that. I didn't realize keeping the older version around would create such havoc.

Try it now

George

whustedt commented 9 months ago

Hi, thanks for the quick response. Unfortunately, I am still getting the same error after updating to version 5.0.0.v20240129-0811. Wilken

gnl42 commented 9 months ago

Hmm, you may have the old version install as well.

See if you have JiraConnector installed:

Help -> About Eclipse IDE => Installation Details

Uninstall the plugin if you see it there and retry installing 5.0.0

George

whustedt commented 9 months ago

Hi George,

I've checked and confirmed no other JiraConnector versions in Eclipse (screenshot attached). I assume plugins should not interfere with each other. Still, I'm facing issues with version 5.0.0. Any other suggestions?

Eclipse Installation Details

Thanks,

Wilken