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

update generator-jhipster v8.0.0 #100

Merged
merged 3 commits into from
Nov 2, 2023
Merged

update generator-jhipster v8.0.0 #100

merged 3 commits into from
Nov 2, 2023

Conversation

mshima
Copy link
Member

@mshima mshima commented Nov 2, 2023

No description provided.

@mshima
Copy link
Member Author

mshima commented Nov 2, 2023

The error is fixed:

Exception in thread "main" java.lang.NoSuchMethodError: 'org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar$Builder org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar.forClassPathLocations(java.util.List)'

jwt applications are failing now:

[0] Caused by: java.lang.ClassCastException: org.springframework.aop.framework.CglibAopProxy$SerializableNoOp cannot be cast to org.springframework.cglib.proxy.Dispatcher
[0] 	at com.mycompany.myapp.service.MailService$$SpringCGLIB$$0.setCallbacks(<generated>)
[0] 	at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:91)
[0] 	at org.springframework.aop.framework.CglibAopProxy.buildProxy(CglibAopProxy.java:213)

@mshima
Copy link
Member Author

mshima commented Nov 2, 2023

Merging since main is not passing anyway.

@mshima mshima merged commit 0422765 into jhipster:main Nov 2, 2023
11 of 26 checks passed
@mshima mshima deleted the jhipster-8 branch November 2, 2023 18:51
@hide212131
Copy link
Contributor

@mshima Thank you for the swift update to v8. I will also look into the error causes on my end.

@hide212131
Copy link
Contributor

[0] Caused by: java.lang.ClassCastException: org.springframework.aop.framework.CglibAopProxy$SerializableNoOp cannot be cast to org.springframework.cglib.proxy.Dispatcher
[0] 	at com.mycompany.myapp.service.MailService$$SpringCGLIB$$0.setCallbacks(<generated>)
[0] 	at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:91)
[0] 	at org.springframework.aop.framework.CglibAopProxy.buildProxy(CglibAopProxy.java:213)

@mshima

I came across a similar issue here:
spring-projects/spring-framework#30985

I attempted to analyze it myself, but it has been challenging and time-consuming to resolve issues such as the unintended creation of two CGLIB classes( MailService$$SpringCGLIB$$0 and MailService$$SpringCGLIB$$1, with the latter being the correct one), where the behavior remains unclear.

I plan to modify the code to avoid using @Lazy in MailService.

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

Successfully merging this pull request may close these issues.

None yet

2 participants