You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/04/05 15:25:41 UTC

DO NOT REPLY [Bug 42057] New: - NullPointerException in Access Log sampler if the first line is corrupted

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42057>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42057

           Summary: NullPointerException in Access Log sampler if the first
                    line is corrupted
           Product: JMeter
           Version: 2.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: irancati@sharpmind.de


I have been using the Access Log sampler with a simple test plan structure as
follows

Thread Group
  Loop Controller
  Access Log Sampler
  HTTP Request Defaults
  HTTP Cookie Manager

The log file is produced by Apache and it parses well (I guess the format is
like Tomcat) 
One of the log files I tried started like this because the server ran out of
disk space


Error writing to log file.       9555 messages lost.
- 80 ext 10.55.99.9 - - "GET
/?gps_history=1337300;5251640;20;30;$&destination=1342157;5238465;&cmd=navigate&counter=3
HTTP/1.1" 200 - "-" "Java/1.5.0_08" [05/Apr/2007:12:42:13 +0200]
6600D3A691C74E688CA9EA0B6E6F8DCB 80 ext 10.55.99.9 - - "GET
/?cmd=packet&packet_idx=1&version=5&compressed=true&counter=4 HTTP/1.1" 200 177
"-" "Java/1.5.0_08" [05/Apr/2007:12:42:23 +0200]

Once I removed the first two lines the JMeter plan worked, but with the file as
copied from the Apache server I got this error in jmeter.log

2007/04/05 14:46:01 INFO  - jmeter.threads.JMeterThread: Thread Thread Group 1-1
started
2007/04/05 14:46:01 INFO  - jmeter.services.FileServer: Stored:
/tmp/chromium-eu-ta-2.0-access.log.2007-04-04-10_50_22
2007/04/05 14:46:01 WARN  - jmeter.protocol.http.sampler.AccessLogSampler:
Sampling failure java.lang.NullPointerException
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.getUrl(HTTPSamplerBase.java:527)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
        at
org.apache.jmeter.protocol.http.sampler.AccessLogSampler.sampleWithParser(AccessLogSampler.java:161)
        at
org.apache.jmeter.protocol.http.sampler.AccessLogSampler.sample(AccessLogSampler.java:178)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
        at java.lang.Thread.run(Thread.java:595)

Maybe you could add error checking and display an error about the unparsable log
line.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42057] - NullPointerException in Access Log sampler if the first line is corrupted

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42057>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42057


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ronny.karallus@web.de




------- Additional Comments From sebb@apache.org  2007-09-24 14:55 -------
*** Bug 43467 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 42057] - NullPointerException in Access Log sampler if the first line is corrupted

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42057>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42057


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From sebb@apache.org  2007-04-15 12:42 -------
Thanks, fixed the NPE in HTTPSampler.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org