Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-4533

Error 500 NoSuchMethodError when uploading JSON results through Jenkins with Jira 8.4

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • R3.5.1
    • R3.5.3
    • None
    • None
    • OK

    Description

      Error 500 NoSuchMethodError when uploading JSON results through Jenkins with Jira 8.4.

      java.lang.NoSuchMethodError: com.atlassian.jira.rest.v2.issue.FieldMetaBean.<init>(ZLjava/lang/Boolean;Lcom/atlassian/jira/issue/fields/rest/json/JsonType;Ljava/lang/String;Ljava/lang/String;Ljava/util/Collection;Ljava/util/Collection;)V
      	at com.xpandit.raven.rest.internal.jira.AbstractMetaFieldBeanBuilder.a(Unknown Source)
      	at com.xpandit.raven.rest.internal.jira.AbstractMetaFieldBeanBuilder.build(Unknown Source)
      	at com.xpandit.raven.rest.internal.jira.CreateMetaFieldBeanBuilder.build(Unknown Source)
      	at com.xpandit.raven.rest.internal.jira.a.a(Unknown Source)
      	at com.xpandit.raven.rest.internal.jira.a.a(Unknown Source) 
      	at com.xpandit.raven.rest.internal.jira.a.a(Unknown Source) 
      	at com.xpandit.raven.rest.internal.jira.IssueInputParametersAssembler.makeCreateAssembler(Unknown Source)
      	at com.xpandit.raven.service.executionresult.impl.ExecutionResultImportServiceImpl.b(Unknown Source)
      	at com.xpandit.raven.service.executionresult.impl.ExecutionResultImportServiceImpl.a(Unknown Source)
      	at com.xpandit.raven.rest.internal.b.a.b(Unknown Source) 
      	at sun.reflect.GeneratedMethodAccessor5379.invoke(Unknown Source)   
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      (...)

       

      Version 8.4.0 introduced some other changes that we also need to address, such as:

      • ResolutionBean now receives a JiraBaseUrls instead of a UriInfo. Changes implemented on AbstractMetaFieldBeanBuilder.getAllowedValueBeans;
      • ServletRequest getParameterMap now returns a Map instead of a Map<String, String []>. Start to use getParameterValues(key);
      • getContextPath() from ServletContext was removed.

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            rmsp Rogerio Paiva [X] (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week
                1w