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 2020/08/27 03:04:06 UTC

[Bug 64690] New: Getting Error Message In Logs For JSON Extractor

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

            Bug ID: 64690
           Summary: Getting Error Message In Logs For JSON Extractor
           Product: JMeter
           Version: 5.3
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: amitansu88@gmail.com
  Target Milestone: JMETER_5.3.1

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.

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

[Bug 64690] Getting Error Message In Logs For JSON Extractor

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

--- Comment #2 from amitansu88@gmail.com ---
Created attachment 37408
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37408&action=edit
JSON Extractor

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

[Bug 64690] Getting Error Message In Logs For JSON Extractor

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

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

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

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

[Bug 64690] Getting Error Message In Logs For JSON Extractor

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

--- Comment #4 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 37409
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37409&action=edit
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).

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

[Bug 64690] Getting Error Message In Logs For JSON Extractor

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

--- Comment #3 from amitansu88@gmail.com ---
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

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

[Bug 64690] Getting Error Message In Logs For JSON Extractor

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

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

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

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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

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