Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when jvm return value to false #1006

Open
yldylg opened this issue Mar 6, 2024 · 0 comments
Open

Exception when jvm return value to false #1006

yldylg opened this issue Mar 6, 2024 · 0 comments

Comments

@yldylg
Copy link

yldylg commented Mar 6, 2024

Issue Description

Type: bug report

Describe what happened (or what feature you want)

When chaosblade simulates a return value and the return value is false, it will throw a NullPointerException, for example, running the following command

blade c jvm return --value false --classname com.example.controller.DubboController --methodname hello --process tomcat

The injected service will throw a NullPointerException.

After investigation, it was found that the createUrl method of chaosblade's jvm Executor ignored the parameter with a value of false.
image

Describe what you expected to happen

Pass the "false" value to the chaosblade-java-agent and then within the specific function inside chaosblade-java-agent, perform a check to determine if the "false" value is necessary.

How to reproduce it (as minimally and precisely as possible)

  1. Run command
blade c jvm return --value false --classname com.example.controller.DubboController --methodname hello --process tomcat
  1. Request the corresponding HTTP interface of com.example.controller.DubboController.

Tell us your environment

CentOS 7

Anything else we need to know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant