-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
java.lang.VerifyError when proxying ThreadPoolTaskExecutor #26630
Comments
Out of curiosity, why are you proxying What's the use case for that? |
Hey, it's not my idea. The above is just a minimal reduction of the actual issue in a real app. The thing which proxies ThreadPoolTaskExecutor in reality is opentracing I don't claim to know what it's for exactly but it seems like it makes sense in this context. |
OK. Now I see that they have a TracedThreadPoolTaskExecutor. Thanks for sharing the use case. |
Is the JDK modified in any way? Can you provide specific details about the Docker container you are using (exact versions, any special flags for the JVM, etc.)? |
The JDK is not modified in any way, I can't provide details of the container I'm afraid it's a client side docker image which I have no visibility of, that being said, given that it's oracle jdk on a docker container which seems unusual, perhaps the base is one of the images that Oracle themselves provide. There are no special flags for the JVM. The bytecode listed in the stack trace doesn't look anything like the bytecode of the proxied class when I do it on my machine btw. |
Is there any progress on this? For the time being we've disabled the bit of opentracing that tries to make this proxy. But of course it is quite unnerving the prospect that any proxy creation could fail, or indeed perhaps proxies are being made which pass validation but are incorrect. |
@itsyaboiyeah I am afraid without a reproducer, it is going to be hard to make any progress as we're left wondering what the problem might be. Given the issue isn't actionable, I am going to close it but we can reopen if a reproducer is provided. |
Affects: Spring version 5.2
Hello, in a particular docker environment using Oracle JDK1.8.0_261. When I run (as the main method)
I get an exception like so
The bytecode looks all wrong, I don't think the submit method of the proxy should even have an exception handler, it doesn't seem to when I capture the proxied class on my own computer.
It works fine normally (i.e. running it on my machine). It used to work on the container when using Spring 5.1
What could cause this? I am not going to be able to provide a docker image you can see this in, I don't control the image where the issue is.
I'm using Gradle to make the jar, only dependencies are
I tried reading the class file generation code for a hint of something platform dependent, but it's complex of course...
The text was updated successfully, but these errors were encountered: