Bug 64690 - Getting Error Message In Logs For JSON Extractor
Summary: Getting Error Message In Logs For JSON Extractor
Status: RESOLVED WORKSFORME
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.3
Hardware: PC Mac OS X 10.1
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-27 03:04 UTC by amitansu88
Modified: 2020-10-24 15:18 UTC (History)
1 user (show)



Attachments
JSON Extractor (92.00 KB, image/png)
2020-08-27 16:23 UTC, amitansu88
Details
Minimal test case (that doesn't show the behaviour) (5.28 KB, application/xml)
2020-08-27 19:08 UTC, Felix Schumacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amitansu88 2020-08-27 03:04:06 UTC
Hi All,

I am using JMeter 5.3 and in my case while I am trying to fetch some value using JSON Extractor am able to get the proper value but in JMeter logs am getting below error.


"2020-08-27 08:07:21,432 ERROR o.a.j.e.j.j.JSONPostProcessor: Error processing JSON content in topic_taskId, message: net.minidev.json.parser.ParseException: Unexpected End Of File position 8192: null"

Can you guys please have a look.
Comment 1 Philippe Mouawad 2020-08-27 13:47:29 UTC
Hello,
Can you provide a sample JMX showing the problem ?

Or at least provide:

- the response in text format on which JSON Path is applied
- The JSON Path expression and the configuration of extractor
- The jmeter.log


Thank you
Comment 2 amitansu88 2020-08-27 16:23:50 UTC
Created attachment 37408 [details]
JSON Extractor
Comment 3 amitansu88 2020-08-27 16:27:39 UTC
the response in text format on which JSON Path is applied
===========================================================[
    {
       
        
        "data": {
            "data": {
                "taskId": "123456",
                "direction": "gjhgjgvhjghjghvjgvhj"
            },
            "sent_by": 23239869,
            "hdjshakd": {
            },
            "dsacs": "asde",
            "dscssdcs": "ghjgjhggk"
        },
        "cdscdscdsc": "778788hjghhghkhkj87878778"
    }
]

The JSON Path expression and the configuration of extractor
===========================================================
snap attached
The jmeter.log
==============
2020-08-27 21:42:30,592 ERROR o.a.j.e.j.j.JSONPostProcessor: Error processing JSON content in taskId, message: net.minidev.json.parser.ParseException: Unexpected End Of File position 8192: null
Comment 4 Felix Schumacher 2020-08-27 19:08:15 UTC
Created attachment 37409 [details]
Minimal test case (that doesn't show the behaviour)

I can't reproduce the error, you got and I think you have other data on which you try to extract the taskId from.

I guess that the data you are extracting from is exactly 8192 bytes long and ends before the JSON structure is finished.

Please use a view results tree listener and have a look at the complete data on the sampler, that is not working (well, the extractor, that clings on to the sampler).
Comment 5 The ASF infrastructure team 2022-09-24 20:38:20 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5393