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

Binding to target org.cbioportal.properties.PortalProperties$$SpringCGLIB$$0 failed: #11337

Open
yuxiaohui78 opened this issue Jan 16, 2025 · 0 comments
Labels
support Support

Comments

@yuxiaohui78
Copy link

When I ran the following command to start cbioportal, I got error below.
How should I solve this issue?
Thanks!

java -jar target/cbioportal-exec.jar

**Binding to target org.cbioportal.properties.PortalProperties$$SpringCGLIB$$0 failed:

Property: .authenticate
Value: "null"
Reason: Value is not valid**

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.4.1)

21:35:22.522 [background-preinit] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 8.0.2.Final
21:35:22.561 [main] INFO  org.cbioportal.PortalApplication - Starting PortalApplication v6.0.24-SNAPSHOT using Java 21.0.5 with PID 14272 (/home/yang/cbio_portal/cbioportal/target/cbioportal-exec.jar started by yang in /home/yang/cbio_portal/cbioportal)
21:35:22.562 [main] INFO  org.cbioportal.PortalApplication - No active profile set, falling back to 1 default profile: "default"
21:35:22.628 [main] INFO  o.s.c.i.s.PropertySourceProcessor - Properties location [classpath:security.properties] not resolvable: class path resource [security.properties] cannot be opened because it does not exist
21:35:23.306 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
21:35:23.307 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
21:35:23.333 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 21 ms. Found 0 MongoDB repository interfaces.
21:35:23.549 [main] WARN  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'methodValidationConfig' of type [org.cbioportal.web.config.MethodValidationConfig$$SpringCGLIB$$0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [methodValidationPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
21:35:23.557 [main] WARN  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'validatorFactoryBean' of type [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected/applied to a currently created BeanPostProcessor [methodValidationPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.
21:35:23.855 [main] INFO  o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port 8080 (http)
21:35:23.863 [main] INFO  o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
21:35:23.865 [main] INFO  o.a.catalina.core.StandardService - Starting service [Tomcat]
21:35:23.865 [main] INFO  o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.34]
21:35:23.888 [main] INFO  o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
21:35:23.889 [main] INFO  o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1299 ms
21:35:23.954 [main] INFO  o.c.persistence.CacheEnabledConfig - Cache is enabled: false
21:35:23.954 [main] INFO  o.c.persistence.CacheEnabledConfig - Cache is enabled for clickhouse: false
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
21:35:24.412 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'portalProperties': Could not bind properties to 'PortalProperties' : prefix=, ignoreInvalidFields=false, ignoreUnknownFields=true
21:35:24.414 [main] INFO  o.a.catalina.core.StandardService - Stopping service [Tomcat]
21:35:24.436 [main] INFO  o.s.b.a.l.ConditionEvaluationReportLogger - 

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
21:35:24.444 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - 

***************************
APPLICATION FAILED TO START
***************************

Description:

Binding to target org.cbioportal.properties.PortalProperties$$SpringCGLIB$$0 failed:

    Property: .authenticate
    Value: "null"
    Reason: Value is not valid


Action:

Update your application's configuration
@dippindots dippindots added the support Support label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support
Projects
None yet
Development

No branches or pull requests

2 participants