error 404 when using jrjc

using the tutorial to connect to jira, i get this error (404)

the errro is occur when trying to get issue

JerseyJiraRestClientFactory factory = new JerseyJiraRestClientFactory();
        final URI jiraServerUri = new URI("");
        final JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, "MyUser", "myPass");
        final NullProgressMonitor pm = new NullProgressMonitor();
        final IssueRestClient asd = restClient.getIssueClient();
        try {
        	final Issue issue = restClient.getIssueClient().getIssue("SYNC-1", pm);
		} catch (Exception e) {

does anyone have an idea whats the reason for this error?

1 answer

Hi there,

The error 404 may indicate that the requested resource is not found.

Since this is the case, things that we can try to check here is that:
- ensure that the Base URL is correctly configured (correct port number, and context path)
- ensure that the issue with the key SYNC-1 exists in JIRA
- ensure that the user MyUser is able to access SYNC-1 issue in JIRA (no permission issue)

Reference on the error code when getting an issue via REST:

I hope that the info above helps.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,110 views 0 8
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