haoxinyuan opened a new issue, #21748:
URL: https://github.com/apache/doris/issues/21748

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   doris version 1.2.3
   jdk 1.8.0_162
   
   ### What's Wrong?
   
   2023-07-12 14:10:34,798 ERROR (UNKNOWN 
172.168.1.111_9010_1689142216471(-1)|1) 
******[HikariConfig.setDriverClassName():331] Failed to load class of 
driverClassName oracle.jdbc.OracleDriver in HikariConfig class classloader 
sun.misc.Launcher$AppClassLoader@33909752******
   2023-07-12 14:10:34,798 WARN (UNKNOWN 
172.168.1.111_9010_1689142216471(-1)|1) 
[AbstractApplicationContext.refresh():591] Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource 
[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]:
 Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.lang.RuntimeException: Failed to load class 
of driverClassName [oracle.jdbc.OracleDriver] in either of HikariConfig class 
loader or Thread context classloader
   2023-07-12 14:10:34,829 ERROR (UNKNOWN 
172.168.1.111_9010_1689142216471(-1)|1) [SpringApplication.reportFailure():824] 
Application run failed
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource 
[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]:
 Bean instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw 
exception; nested exception is java.lang.RuntimeException: Failed to load class 
of driverClassName [oracle.jdbc.OracleDriver] in either of HikariConfig class 
loader or Thread context classloader
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
 ~[spring-context-5.3.22.jar:5.3.22]
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
 ~[spring-context-5.3.22.jar:5.3.22]
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
 ~[spring-boot-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) 
~[spring-boot-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
 ~[spring-boot-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308) 
~[spring-boot-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164)
 ~[spring-boot-2.7.3.jar:2.7.3]
        at org.apache.doris.httpv2.HttpServer.start(HttpServer.java:134) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.PaloFe.start(PaloFe.java:160) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.PaloFe.main(PaloFe.java:73) 
~[doris-fe.jar:1.2-SNAPSHOT]
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' 
threw exception; nested exception is java.lang.RuntimeException: Failed to load 
class of driverClassName [oracle.jdbc.OracleDriver] in either of HikariConfig 
class loader or Thread context classloader
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
 ~[spring-beans-5.3.22.jar:5.3.22]
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
 ~[spring-beans-5.3.22.jar:5.3.22]
        ... 20 more
   Caused by: java.lang.RuntimeException: Failed to load class of 
driverClassName [oracle.jdbc.OracleDriver] in either of HikariConfig class 
loader or Thread context classloader
        at 
com.zaxxer.hikari.HikariConfig.setDriverClassName(HikariConfig.java:335) 
~[HikariCP-java7-2.4.12.jar:?]
        at 
org.springframework.boot.jdbc.DataSourceBuilder$MappedDataSourceProperty.set(DataSourceBuilder.java:463)
 ~[spring-boot-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.jdbc.DataSourceBuilder$MappedDataSourceProperties.set(DataSourceBuilder.java:357)
 ~[spring-boot-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.jdbc.DataSourceBuilder.build(DataSourceBuilder.java:183)
 ~[spring-boot-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:48)
 ~[spring-boot-autoconfigure-2.7.3.jar:2.7.3]
        at 
org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:90)
 ~[spring-boot-autoconfigure-2.7.3.jar:2.7.3]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_162]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_162]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_162]
   
   
   ### What You Expected?
   
   How to solve it
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to