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

CgLib$SET_THREAD_CALLBACK exception in native image #29873

Closed
martinformi opened this issue Jan 22, 2023 · 3 comments
Closed

CgLib$SET_THREAD_CALLBACK exception in native image #29873

martinformi opened this issue Jan 22, 2023 · 3 comments
Labels
in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing

Comments

@martinformi
Copy link

martinformi commented Jan 22, 2023

This bug seems to reappear, it was fixed already twice in the past (#29584) Tested on 3.0.1 and 3.0.3-SNAPSHOT with kotlin. I tried already everything:

  • disabling CgLib proxies
  • disabling transaction management, aspects proxy
  • building on Windows or Linux
  • disabling kotlin coroutines

Any idea how to fix it?

Error after startup of native image:

Caused by: java.lang.NoSuchMethodException: xxx.zzz$$SpringCGLIB$$0.CGLIB$SET_THREAD_CALLBACKS([Lorg.springframework.cglib.proxy.Callback;)
        at java.base@17.0.5/java.lang.Class.getDeclaredMethod(DynamicHub.java:2675) ~[data-feeder.exe:na]
        at org.springframework.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:901) ~[na:na]
        at org.springframework.cglib.proxy.Enhancer$EnhancerFactoryData.<init>(Enhancer.java:490) ~[na:na]
        ... 40 common frames omitted
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 22, 2023
@bclozel bclozel transferred this issue from spring-projects/spring-boot Jan 23, 2023
@jhoeller
Copy link
Contributor

Which kind of proxy is about to be created there? This exception is an indication of missing reflection hints for a specific CGLIB proxy class, driven by some framework feature. You could register a method reflection hint for xxx.zzz$$SpringCGLIB$$0 yourself as well, but we generally try to automatically register those reflection hints for every specific framework feature that leads to the use of proxies.

@rstoyanchev rstoyanchev added the theme: aot An issue related to Ahead-of-time processing label Jan 25, 2023
@sbrannen sbrannen added status: waiting-for-feedback We need additional information before we can continue in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 31, 2023
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Feb 7, 2023
@spring-projects-issues
Copy link
Collaborator

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2023
@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing
Projects
None yet
Development

No branches or pull requests

5 participants