REST Exception error

 

We are encountering a RESTException error that has no harm towards end users but blows up our monitoring tool all day - just about every action will spark this error. 

Specs below:

JIRA 6.4.12
Java Version: 1.8.0_51

Here are the details:

Screen Shot 2016-07-15 at 10.46.02 AM.png


 Stack trace:

/* RESTException - Decompiled by JODE

 * Visit http://jode.sourceforge.net/

 */

package com.atlassian.jira.rest.v2.issue;

import javax.ws.rs.WebApplicationException;

import javax.ws.rs.core.Response;




import com.atlassian.jira.rest.api.http.CacheControl;

import com.atlassian.jira.rest.api.util.ErrorCollection;




public class RESTException extends WebApplicationException

{

    private static final Response.Status DEFAULT_STATUS

	= Response.Status.BAD_REQUEST;

    

    public RESTException() {

	this(DEFAULT_STATUS, ErrorCollection.of(new String[0]));

    }

    

    public RESTException(ErrorCollection errors) {

	super(createResponse(errors));

    }

    

    public transient RESTException(Response.Status status,

				   String[] errorMessages) {

	this(status, ErrorCollection.of(errorMessages));

    }

    

    public RESTException(Response.Status status, ErrorCollection errors) {

	super(createResponse(status.getStatusCode(), errors));

    }

    

    public RESTException(Response.Status status, Throwable cause) {

	super(cause, status);

    }

    

    private static Response createResponse(ErrorCollection errors) {

	int statusCode

	    = (errors.getStatus() == null ? DEFAULT_STATUS.getStatusCode()

	       : errors.getStatus().intValue());

	return createResponse(statusCode, errors);

    }

    

    private static Response createResponse(int status,

					   ErrorCollection errors) {

	return Response.status(status).entity(errors).cacheControl

		   (CacheControl.never()).build();

    }

    

    public String toString() {

	return (getLocalizedMessage() != null ? super.toString()

		: (super.toString() + "("

		   + Response.Status.fromStatusCode(getResponse().getStatus())

		   + ")"));

    }

}

1 answer

bump.. please help..

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

70 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you