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

inject exception #299

Closed
beiketianzhuang opened this issue Feb 8, 2023 · 0 comments
Closed

inject exception #299

beiketianzhuang opened this issue Feb 8, 2023 · 0 comments

Comments

@beiketianzhuang
Copy link

beiketianzhuang commented Feb 8, 2023

Issue Description

Type: bug report

Describe what happened (or what feature you want)

Describe what you expected to happen

   com.alibaba.chaosblade.exec.plugin.jvm.script.base.ScriptException: Compilation failed.

    at com.alibaba.chaosblade.exec.plugin.jvm.script.java.JavaCodeScriptEngine.compileClass(JavaCodeScriptEngine.java:168)
    at com.alibaba.chaosblade.exec.plugin.jvm.script.java.JavaCodeScriptEngine.compile(JavaCodeScriptEngine.java:113)
    at com.alibaba.chaosblade.exec.plugin.jvm.script.base.AbstractScriptEngineService.doCompile(AbstractScriptEngineService.java:82)
    at com.alibaba.chaosblade.exec.plugin.jvm.script.base.AbstractScriptEngineService.compile(AbstractScriptEngineService.java:69)
    at com.alibaba.chaosblade.exec.plugin.jvm.script.model.DynamicScriptExecutor.run(DynamicScriptExecutor.java:74)
    at com.alibaba.chaosblade.exec.common.injection.Injector.inject(Injector.java:73)
    at com.alibaba.chaosblade.exec.common.aop.BeforeEnhancer.beforeAdvice(BeforeEnhancer.java:51)
    at com.alibaba.chaosblade.exec.common.plugin.MethodEnhancer.beforeAdvice(MethodEnhancer.java:41)
    at com.alibaba.chaosblade.exec.bootstrap.jvmsandbox.BeforeEventListener.handleEvent(BeforeEventListener.java:76)
    at com.alibaba.chaosblade.exec.bootstrap.jvmsandbox.BeforeEventListener.onEvent(BeforeEventListener.java:49)
    at com.alibaba.jvm.sandbox.core.enhance.weaver.EventListenerHandler.handleEvent(EventListenerHandler.java:117)
    at com.alibaba.jvm.sandbox.core.enhance.weaver.EventListenerHandler.handleOnBefore(EventListenerHandler.java:353)
    at java.com.alibaba.jvm.sandbox.spy.Spy.spyMethodOnBefore(Spy.java:164)`

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

  1. perform fault injection
  2. execute method

Tell us your environment

java version "11.0.14"
chaosblade 1.7.1

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

2 participants