com.atlassian.plugins.rest.module.jersey.EntityConversionException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "errorMessages" (Class com.atlassian.cpji.rest.model.ErrorBean), not marked as ignorable at [Source: org.apache.commons.httpclient.AutoCloseInputStream@61d8ecd8; line: 1, column: 19] (through reference chain: com.atlassian.cpji.rest.model.ErrorBean["errorMessages"])

Atlassian JIRA | Vicky Kharisma [Atlassian] | 4 years ago
  1. 0

    When the remote issue copy is failing due to the ["CertificateTooOldException when Configuring Trusted Communication"|https://confluence.atlassian.com/display/JIRAKB/CertificateTooOldException+when+Configuring+Trusted+Communication], it throws an ugly error message on the browser: {code} Remote copy fails: Unrecognized field "errorMessages" Cause: com.atlassian.plugins.rest.module.jersey.EntityConversionException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "errorMessages" (Class com.atlassian.cpji.rest.model.ErrorBean), not marked as ignorable at [Source: org.apache.commons.httpclient.AutoCloseInputStream@61d8ecd8; line: 1, column: 19] (through reference chain: com.atlassian.cpji.rest.model.ErrorBean["errorMessages"]) Stack Trace: [hide] com.atlassian.plugins.rest.module.jersey.EntityConversionException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "errorMessages" (Class com.atlassian.cpji.rest.model.ErrorBean), not marked as ignorable at [Source: org.apache.commons.httpclient.AutoCloseInputStream@61d8ecd8; line: 1, column: 19] (through reference chain: com.atlassian.cpji.rest.model.ErrorBean["errorMessages"]) at com.atlassian.plugins.rest.module.jersey.JerseyResponse.getEntity(JerseyResponse.java:50) at com.atlassian.cpji.components.remote.AbstractJsonResponseHandler.handle(AbstractJsonResponseHandler.java:43)stack trace when remote at com.atlassian.cpji.components.remote.RemoteJiraProxy$5.handle(RemoteJiraProxy.java:176) at com.atlassian.cpji.components.remote.RemoteJiraProxy$5.handle(RemoteJiraProxy.java:163) {code} I would be great to improve the error message to something like "Remote copy fails: Unrecognized field "errorMessages" - don't panic"

    Atlassian JIRA | 4 years ago | Vicky Kharisma [Atlassian]
    com.atlassian.plugins.rest.module.jersey.EntityConversionException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "errorMessages" (Class com.atlassian.cpji.rest.model.ErrorBean), not marked as ignorable at [Source: org.apache.commons.httpclient.AutoCloseInputStream@61d8ecd8; line: 1, column: 19] (through reference chain: com.atlassian.cpji.rest.model.ErrorBean["errorMessages"])

    Root Cause Analysis

    1. com.atlassian.plugins.rest.module.jersey.EntityConversionException

      org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "errorMessages" (Class com.atlassian.cpji.rest.model.ErrorBean), not marked as ignorable at [Source: org.apache.commons.httpclient.AutoCloseInputStream@61d8ecd8; line: 1, column: 19] (through reference chain: com.atlassian.cpji.rest.model.ErrorBean["errorMessages"])

      at com.atlassian.plugins.rest.module.jersey.JerseyResponse.getEntity()
    2. com.atlassian.plugins
      JerseyResponse.getEntity
      1. com.atlassian.plugins.rest.module.jersey.JerseyResponse.getEntity(JerseyResponse.java:50)
      1 frame