Java Client for REST API (JRJC) Issue creation is not working

Hi Experts,
i am trying to implement jira client for rest API. followed the codes and i added

com.atlassian.jira jira-rest-java-client-core 4.0.0 


final AsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
    	final URI uri = new URI("http://localhost:8080/jira");
        final JiraRestClient jiraRestClient = factory.createWithBasicHttpAuthentication(uri, "Admin", "admin");
        IssueInputBuilder issueInputBuilder = new IssueInputBuilder("DEMO", 10003L, "Test Summary");
        issueInputBuilder.setDescription("Test Description");
        IssueInput issueInput =;
        Promise<BasicIssue> createdIssue= jiraRestClient.getIssueClient().createIssue(issueInput);
        try {
			BasicIssue basicIssue= createdIssue.get();
			System.out.println("Issue Key: "+basicIssue.getKey());
		} catch (InterruptedException | ExecutionException e) {
			// TODO Auto-generated catch block

and i am getting error,

java.util.concurrent.ExecutionException: RestClientException{statusCode=Optional.of(404), errorCollections=[]}

i followed the JIRA Development CookBook Third Edition.

Here am using, Maven project, JDK 1.8, Eclipse Java EE IDE for Web Developers.
Version: Oxygen Release (4.7.0) and am trying to create issue in my http://localhost:8080/jira project.