You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/02/09 09:40:54 UTC

[Bug 60714] New: java.nio.charset.MalformedInputException: Input length = 1

https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

            Bug ID: 60714
           Summary: java.nio.charset.MalformedInputException: Input length
                    = 1
           Product: JMeter
           Version: 3.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: youri.andropov@gmail.com
  Target Milestone: ---

Created attachment 34739
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34739&action=edit
jmeter's exception

When doing a simple HTTP GET with the HTTP sampler :

GET
https://xxx/usr-gateway/oauth/authorize?client_id=whatever&response_type=code

No request is sent, I only get a jmeter exception. See attached log.

When doing the same thing with jmeter 3.0, it works fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #12 from Felix Schumacher <fe...@internetallee.de> ---
The first line in the response contains non asci characters. I am pretty sure,
that this is not allowed and the cause of the error message.

I think we can look into this in more detail now.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #6 from Frederic Girard <yo...@gmail.com> ---
Hello, I can start jmeter without any plugin, but my script won't load without
some of them.
So you're probably right, some plugins seems no more compatible with v3.1, and
I can't use it anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Frederic Girard <yo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |---
             Status|RESOLVED                    |REOPENED

--- Comment #9 from Frederic Girard <yo...@gmail.com> ---
Hello everyone,

After many tests, it appears that I still have the
"java.nio.charset.MalformedInputException: Input length = 1" exception with
jmeter 3.1 on a simple http request, whereas jmeter 3.0 works fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #15 from Felix Schumacher <fe...@internetallee.de> ---
Maybe you could debug the network connection by setting  -Djavax.net.debug=all

That way you can see, what JMeter is sending and what the server is sending.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|PC                          |All
           Priority|P1                          |P2
           Severity|critical                    |normal

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #8 from Frederic Girard <yo...@gmail.com> ---
Ok, I'm using the standard, extras and extralibs plugins, the CMDrunner,
hazelcast client, HTTPraw, functions and a custom one.

But it seems it was quite a mess in the ext folder, with many versions of the
same plugins. I couldn't find which one was causing this error message.

I did some cleanup and it seems it works better. I couldn't retry the oauth
HTTP request, I'll do it ASAP.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #7 from Felix Schumacher <fe...@internetallee.de> ---
Can you tell us, which 3rd party plugins you are using?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #17 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
I am pretty sure as per Felix answer that problem comes from this line:
HTTP/1.1 302 Déplacé Temporairement

See:

https://stackoverflow.com/questions/4400678/what-character-encoding-should-i-use-for-a-http-header

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #14 from Frederic Girard <yo...@gmail.com> ---
Since the first request specifies 'charset=UTF-8', I see no reason the header
couldn't be read even with non-ASCII characters.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #18 from Frederic Girard <yo...@gmail.com> ---
I cannot test it any more (I moved), but this is quite likely, I agree.
This would mean it is a real bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Frederic Girard <yo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |Linux
           Severity|normal                      |critical
           Priority|P2                          |P1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |INVALID

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #2 from Frederic Girard <yo...@gmail.com> ---
Latest nightly (r1782718) fails to start with the following message :

An error occurred: class org.apache.log4j.spi.NOPLogger overrides final method
getEffectiveLevel.()Lorg/apache/log4j/Level

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|NEW                         |NEEDINFO

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Could you check with nightly build please ?
http://jmeter.apache.org/nightly.html

If issue persists, using nightly build set in log4j2.xml, uncomment :
    <Logger name="org.apache.http" level="debug" />
    <Logger name="org.apache.http.wire" level="debug" />

Run your test and attach logs here.
Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #11 from Frederic Girard <yo...@gmail.com> ---
jmeter 3.1 :

GET
https://falcon-usr-rest.lotsys.corp/usr-gateway/oauth/authorize?client_id=xxx&response_type=code

GET data:


[no cookies]

Request Headers:
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like
Gecko
Accept-Language: fr-FR
Accept: text/html, application/xhtml+xml, */*
Accept-Encoding: gzip, deflate
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Host: falcon-usr-rest.lotsys.corp

Response :

java.nio.charset.MalformedInputException: Input length = 1
        at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
        at
org.apache.http.impl.io.AbstractSessionInputBuffer.handleDecodingResult(AbstractSessionInputBuffer.java:374)
        at
org.apache.http.impl.io.AbstractSessionInputBuffer.appendDecoded(AbstractSessionInputBuffer.java:361)
        at
org.apache.http.impl.io.AbstractSessionInputBuffer.lineFromReadBuffer(AbstractSessionInputBuffer.java:339)
        at
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:258)
        at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
        at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
        at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
        at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281)
        at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:259)
        at
org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:209)
        at
org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.receiveResponseHeader(MeasuringConnectionManager.java:212)
        at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
        at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
        at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:686)
        at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:488)
        at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)
        at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
        at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
        at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:654)
        at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:413)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
        at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
        at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
        at java.lang.Thread.run(Thread.java:745)


Thread Name: ITF thread group 2-1
Sample Start: 2017-04-20 10:55:43 CEST
Load time: 384
Connect Time: 12
Latency: 0
Size in bytes: 2730
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 2730
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: Non HTTP response code: java.nio.charset.MalformedInputException
Response message: Non HTTP response message: Input length = 1

Response headers:


HTTPSampleResult fields:
ContentType: 
DataEncoding: null




jmeter 3.0 :

GET
https://falcon-usr-rest.lotsys.corp/usr-gateway/oauth/authorize?client_id=xxx&response_type=code

[no cookies]

Request Headers:
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like
Gecko
Accept-Language: fr-FR
Accept: text/html, application/xhtml+xml, */*
Accept-Encoding: gzip, deflate
Host: falcon-usr-rest.lotsys.corp

No response, but a redirection :

Response headers:
HTTP/1.1 302 Déplacé Temporairement
Server: Apache-Coyote/1.1
Cache-Control: no-store
Location:
https://vip-falcon-gtw-itf.lotsys.corp/itf-gateway/rest/itf/session?lottery=falcon-usr&code=XXX
Content-Language: fr-FR
Content-Length: 0
Date: Thu, 20 Apr 2017 08:48:25 GMT


HTTPSampleResult fields:
ContentType: 
DataEncoding: null


I can hardly be more explicite.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO

--- Comment #10 from Felix Schumacher <fe...@internetallee.de> ---
We were not able to reproduce your problem. So please give us more information,
that enables us to understand the problem.

If the request can be made with JMeter version 3.0, it might help to attach the
headers, that have to be parsed by JMeter.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #3 from UbikLoadPack support <su...@ubikloadpack.com> ---
(In reply to Frederic Girard from comment #2)
> Latest nightly (r1782718) fails to start with the following message :
> 
> An error occurred: class org.apache.log4j.spi.NOPLogger overrides final
> method getEffectiveLevel.()Lorg/apache/log4j/Level

Hi,
Are you sure you don't have incompatible 3rd party plugins ?
Can you attach jmeter.log ?
Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #13 from Frederic Girard <yo...@gmail.com> ---
I think no request is sent. I couldn't find any trace of this request in my
tomcat access log.
And even if a request was sent, the response has a content-length of zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #16 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to Felix Schumacher from comment #15)
> Maybe you could debug the network connection by setting 
> -Djavax.net.debug=all
> 
> That way you can see, what JMeter is sending and what the server is sending.

Would it be possible to uncomment in log4j2.xml:
    <!-- # Enable full wire + context logging -->
    <Logger name="org.apache.http" level="debug" />


And run the failing request then attach jmeter.log
Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |WORKSFORME

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Any feedback ? 
Did you try again nightly build ?
Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to Frederic Girard from comment #2)
> Latest nightly (r1782718) fails to start with the following message :
> 
> An error occurred: class org.apache.log4j.spi.NOPLogger overrides final
> method getEffectiveLevel.()Lorg/apache/log4j/Level

I confirm I face no issue with nightly build

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60714] java.nio.charset.MalformedInputException: Input length = 1

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60714

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |INVALID

-- 
You are receiving this mail because:
You are the assignee for the bug.