https://bz.apache.org/bugzilla/show_bug.cgi?id=64653
Bug ID: 64653
Summary: HTTP recorder - Exception parsing javascript file
Product: JMeter
Version: 5.3
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.3.1
When using http recorder with our app, JMeter throws an expection when loading
one specific minified js file. Sadly i can't share the content of the file here
since it is a third party licenced lib.
It seems JMeter tries to parse the js file as a html for some reason?
I verified that the server sends the correct mime-type (application/javascript)
in the header.
Here is the error in the log output:
2020-08-07 12:37:44,467 DEBUG o.a.j.p.h.p.FormCharSetFinder: Parsing html of:
%Js content removed%
2020-08-07 12:37:44,682 ERROR o.a.j.p.h.p.Proxy: [63058] Exception when
processing sample
java.lang.NullPointerException: null
at
org.jsoup.parser.HtmlTreeBuilderState$9.process(HtmlTreeBuilderState.java:934)
~[jsoup-1.13.1.jar:?]
at org.jsoup.parser.HtmlTreeBuilder.process(HtmlTreeBuilder.java:141)
~[jsoup-1.13.1.jar:?]
at
org.jsoup.parser.HtmlTreeBuilderState$13.anythingElse(HtmlTreeBuilderState.java:1172)
~[jsoup-1.13.1.jar:?]
at
org.jsoup.parser.HtmlTreeBuilderState$13.process(HtmlTreeBuilderState.java:1132)
~[jsoup-1.13.1.jar:?]
at org.jsoup.parser.HtmlTreeBuilder.process(HtmlTreeBuilder.java:136)
~[jsoup-1.13.1.jar:?]
at
org.jsoup.parser.HtmlTreeBuilderState$10.process(HtmlTreeBuilderState.java:1019)
~[jsoup-1.13.1.jar:?]
at org.jsoup.parser.HtmlTreeBuilder.process(HtmlTreeBuilder.java:136)
~[jsoup-1.13.1.jar:?]
at org.jsoup.parser.TreeBuilder.runParser(TreeBuilder.java:66)
~[jsoup-1.13.1.jar:?]
at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:47)
~[jsoup-1.13.1.jar:?]
at org.jsoup.parser.Parser.parse(Parser.java:107) ~[jsoup-1.13.1.jar:?]
at org.jsoup.Jsoup.parse(Jsoup.java:58) ~[jsoup-1.13.1.jar:?]
at
org.apache.jmeter.protocol.http.proxy.FormCharSetFinder.addFormActionsAndCharSet(FormCharSetFinder.java:55)
~[ApacheJMeter_http.jar:5.3]
at
org.apache.jmeter.protocol.http.proxy.Proxy.addFormEncodings(Proxy.java:603)
~[ApacheJMeter_http.jar:5.3]
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:239)
[ApacheJMeter_http.jar:5.3]
--
You are receiving this mail because:
You are the assignee for the bug.