Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5960043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:46:13+00:00 2026-05-22T18:46:13+00:00

I am writing a custom java class to grab objects from a Coherence grid.

  • 0

I am writing a custom java class to grab objects from a Coherence grid. It works well through JMeter, but the response data isn’t filling it’s place in the JMeter GUI. This is how I’m filling the SamplerResult:

result.setResponseData(getResponseData(cache.get(key)).getBytes());

the getResponseData(Object); returns a simple String that I’m pulling the bytes out of. But, the response data is still empty. I can put the data inside of the result.setSamplerData(String) but it’s it will not populate inside of the ResponseData. It needs to be inside of the ResponseData because it’s the only way that a Regular Expression Extractor can be used.

Is there something here that I’m missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:46:14+00:00Added an answer on May 22, 2026 at 6:46 pm

    Calling setResponseData(String, Encoding) or setResponseData(byte[]) is correct when implementing a sampler.

    The regular expression extractor uses, depending on what you set in the gui, one of the following:
    getResponseDataAsString(), getResponseMessage(), getResponseCode(), getResponseHeaders(), getUrlAsString().

    So this should work, if your byte[] is something that represents a valid string.

    Alternatively, just setting your variables in your sampler might solve your current use case:
    getThreadContext().getVariables().put(name, value);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of writing a Java Boolean equivalent in Actionscript since Actionscript
I'm writing a custom control whereby it requires a specific parent for it to
I am writing a custom app which constructs a tweet with a webpage link
I am writing a custom apache log parser for my company and I noticed
Background: I'm trying to implement a messenging system in my app, and I'm writing
I'm able to securely stream audio from one PC to another via SSH using:
Silverlight 3 now contains built in browser zoom support. The current problem I am
I have 3-tiers (UI, BLL, DAL), those BLL and DAL reside on external WS,
In my views I'm using a generic type for the Model, ItemModel<T> . This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.