Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error : MalformedInputException

Loïc GRIVEAU November 14, 2013

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 ?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
rambabu patina
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2013

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.

Loïc GRIVEAU November 14, 2013

How and where to pass the correct encoding parameter ?

Loïc GRIVEAU November 17, 2013

How to provide the full exception log ?

rambabu patina
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2013

We can get the log in the directory ../jira/data/logs/catalina.out

TAGS
AUG Leaders

Atlassian Community Events