Skip to content

Circular References in PBC-Java 2.5 #168

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

Open
ereetz opened this issue Jun 2, 2025 · 0 comments
Open

Circular References in PBC-Java 2.5 #168

ereetz opened this issue Jun 2, 2025 · 0 comments

Comments

@ereetz
Copy link

ereetz commented Jun 2, 2025

After updating the operating system and the JVM from 21.0.6 to 21.0.7, prebid cache doesn't start anymore.
The same jar executes on another server with the same configuration without failure.

Log:

2025-06-02T11:14:48.132331+02:00 xxxx prebid-cache.jar[24146]: executing:
2025-06-02T11:14:48.132384+02:00 xxxx prebid-cache.jar[24146]: java -jar /opt/prebid-cache/prebid-cache.jar
2025-06-02T11:14:49.074911+02:00 xxxx prebid-cache.jar[24150]: ERROR StatusConsoleListener Unrecognized format specifier [vlan4000]
2025-06-02T11:14:49.075233+02:00 xxxx prebid-cache.jar[24150]: ERROR StatusConsoleListener Unrecognized conversion specifier [vlan4000] starting at position 71 in conversion pattern.
2025-06-02T11:14:49.158897+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:49.155 INFO fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [kground-preinit] o.h.v.i.u.Version : HV000001: Hibernate Validator 8.0.1.Final
2025-06-02T11:14:49.206132+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:49.205 INFO fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] o.p.c.PBCacheApplication : Starting PBCacheApplication v2.6.0-SNAPSHOT using Java 21.0.7 with PID 24150 (/opt/prebid-cache/prebid-cache.jar started by prebid-cache in /)
2025-06-02T11:14:49.206211+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:49.205 DEBUG fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] o.p.c.PBCacheApplication : Running with Spring Boot v3.2.3, Spring v6.1.4
2025-06-02T11:14:49.206677+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:49.206 INFO fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] o.p.c.PBCacheApplication : No active profile set, falling back to 1 default profile: "default"
2025-06-02T11:14:50.086683+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:50.086 INFO fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2025-06-02T11:14:50.087832+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:50.087 INFO fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2025-06-02T11:14:50.105864+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:50.105 INFO fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 10 ms. Found 0 Redis repository interfaces.
2025-06-02T11:14:50.611700+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:50.611 WARN fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postCacheHandler' defined in URL [jar:nested:/opt/prebid-cache/prebid-cache.jar/!BOOT-INF/classes/!/org/prebid/cache/handlers/cache/PostCacheHandler.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'circuitBreakerSecuredRepository' defined in class path resource [org/prebid/cache/config/RepositoryConfig.class]: Unsatisfied dependency expressed through method 'circuitBreakerSecuredRepository' parameter 0: Error creating bean with name 'circuitBreakerSecuredRepository': Requested bean is currently in creation: Is there an unresolvable circular reference?
2025-06-02T11:14:50.627509+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:50.627 INFO fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
2025-06-02T11:14:50.627565+02:00 xxxx prebid-cache.jar[24150]: Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-06-02T11:14:50.637485+02:00 xxxx prebid-cache.jar[24150]: 2025-06-02 11:14:50.637 ERROR fe80:0:0:0:aaa1:59ff:fe8c:af84%vlan4000 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
2025-06-02T11:14:50.637534+02:00 xxxx prebid-cache.jar[24150]: ***************************
2025-06-02T11:14:50.637560+02:00 xxxx prebid-cache.jar[24150]: APPLICATION FAILED TO START
2025-06-02T11:14:50.637586+02:00 xxxx prebid-cache.jar[24150]: ***************************
2025-06-02T11:14:50.637611+02:00 xxxx prebid-cache.jar[24150]: Description:
2025-06-02T11:14:50.637638+02:00 xxxx prebid-cache.jar[24150]: The dependencies of some of the beans in the application context form a cycle:
2025-06-02T11:14:50.637665+02:00 xxxx prebid-cache.jar[24150]: postCacheHandler defined in URL [jar:nested:/opt/prebid-cache/prebid-cache.jar/!BOOT-INF/classes/!/org/prebid/cache/handlers/cache/PostCacheHandler.class]
2025-06-02T11:14:50.637691+02:00 xxxx prebid-cache.jar[24150]: ┌─────┐
2025-06-02T11:14:50.637717+02:00 xxxx prebid-cache.jar[24150]: | circuitBreakerSecuredRepository defined in class path resource [org/prebid/cache/config/RepositoryConfig.class]
2025-06-02T11:14:50.637747+02:00 xxxx prebid-cache.jar[24150]: └─────┘
2025-06-02T11:14:50.637804+02:00 xxxx prebid-cache.jar[24150]: Action:
2025-06-02T11:14:50.637840+02:00 xxxx prebid-cache.jar[24150]: Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
2025-06-02T11:14:50.680924+02:00 xxxx prebid-cache.jar[24146]: The execution of /opt/prebid-cache/prebid-cache.jar failed. The reason is probably that /opt/prebid-cache/prebid-cache.jar doesn't contain the MainClass in MANIFEST.MF.
2025-06-02T11:14:50.680972+02:00 xxxx prebid-cache.jar[24146]: If you want to unpack /opt/prebid-cache/prebid-cache.jar, call:
2025-06-02T11:14:50.680996+02:00 xxxx prebid-cache.jar[24146]: jar -xf /opt/prebid-cache/prebid-cache.jar
2025-06-02T11:14:50.682050+02:00 xxxx systemd[1]: prebid-cache.service: Main process exited, code=exited, status=1/FAILURE
2025-06-02T11:14:50.682168+02:00 xxxx systemd[1]: prebid-cache.service: Failed with result 'exit-code'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant