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
matched class wasn't transformered and the issue appears just twice, and i didn't reproducing the issue #1600
Comments
Are you retransforming? If so, a class might be loaded when matching it. What does the log say? Does the missing class show up at all? |
I didn't retransforming the class. the matcher code is belong, use nameStartsWith to filter class. agentBuilder.type(nameStartsWith("com.pay"))
.transform(new JacksonFieldDesensitizingTransformer()) SendCashReq class has a field recvBankCardNum annotate with Desensitization: @Desensitization("BANKCARD_MASK")
private String recvBankCardNum; the issue case log is: the correct case log is: Like the above log shows, the application has two class matched the matcher's rule. SendCashReq class wasn't rebased, That case was occered twice. |
To me it seems as if |
I think the class was already loaded too. I didn't log this message. I restart the application and use jvm option to logging loaded class. The |
Do you reference losded classes somewhere? Byte Buddy would not load it itself. Are you running premain? In this case the app should not even come up before installing the sgent. |
I use |
That's strange then. I'd activate logging of class loading on the JVM level and see if I can stitch it together based on that. |
Hello, have you reproduced this issue? Have you identified the root cause of the problem? |
No, I have no opportunity to reproduce this problem. Did you try logging of class loading? |
I logging of class loading when restart the application in test enviroment, but the error doesn't occur. |
jdk version is jdk-1.8.0_60s, and bytebuddy version is 1.10.22
the transformer code as belong:
there are two class A and B, they are all matched for this transformer, but the problem is just class B was transformered and class A was skipped, i use same jdk and same application jar, restart application 30000 times to reproducing the issue, but the problem was't occur.
I use net.bytebuddy.agent.ByteBuddyAgent.install method to instrumentation at runtime, doesn't use jvm agent method.
The text was updated successfully, but these errors were encountered: