At runtime i have this error :
java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(CoderResult.java:260) at org.apache.http.impl.nio.reactor.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:193) at org.apache.http.impl.nio.codecs.AbstractMessageParser.parse(AbstractMessageParser.java:171) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:171)
The source code is :
final JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory(); final URI jiraServerUri = new URI("http://localhost:8080"); final JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, "admin", "admin"); IssueInputBuilder issueBuilder = new IssueInputBuilder("PHS", 1L); issueBuilder.setDescription("Description Bug créé avec Jira Rest Java Client"); issueBuilder.setSummary("Summary Bug créé avec Jira Rest Java Client"); issueBuilder.setReporterName("charlie"); issueBuilder.setPriorityId(1L); IssueInput issue = issueBuilder.build(); Promise<BasicIssue> promise = restClient.getIssueClient().createIssue(issue); BasicIssue ret = promise.claim(); System.out.println(ret.getKey());
Could you help me ?
Community moderators have prevented the ability to post new answers.
MalformedInputException thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence.
Please pass the correct encoding as parameter.
We cannot able to find the error where exactly occured. So Please provide the full exception log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We can get the log in the directory ../jira/data/logs/catalina.out
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.