NutzCN Logo
问答 boot启动报错,配置数据库连接池了啊?
发布于 1931天前 作者 hongpeiGitHub 1342 次浏览 复制 上一个帖子 下一个帖子
标签:
org.nutz.ioc.IocException: IocBean[dubboManager -> dubboAnnotationBean -> sysApiServiceImpl -> dao -> dataSource] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:153)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:457)
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:426)
	at org.nutz.integration.dubbo.AnnotationBean._init(AnnotationBean.java:73)
	at org.nutz.integration.dubbo.AnnotationBean$FM$_init$cff301be46c87e2fbea60f4ef344bacb.invoke(AnnotationBean.java)
	at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:181)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.integration.dubbo.DubboManager.init(DubboManager.java:31)
	at org.nutz.integration.dubbo.DubboManager._init(DubboManager.java:24)
	at org.nutz.integration.dubbo.DubboManager$FM$_init$cff301be46c87e2fbea60f4ef344bacb.invoke(DubboManager.java)
	at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:181)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
	at org.nutz.boot.starter.dubbo.DubboStarter.start(DubboStarter.java:17)
	at org.nutz.boot.AppContext.startServers(AppContext.java:310)
	at org.nutz.boot.NbApp.execute(NbApp.java:210)
	at org.nutz.boot.NbApp.run(NbApp.java:182)
	at com.laogeli.admin.DubboRpcSysMainLauncher.main(DubboRpcSysMainLauncher.java:28)
Caused by: org.nutz.lang.InvokingException: Fail to invoke [org.nutz.boot.starter.jdbc.DataSourceStarter].getDataSource() by args:
 
For the reason: need jdbc.url
	at org.nutz.lang.Invoking.invoke(Invoking.java:195)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1135)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	... 30 common frames omitted
Caused by: java.lang.RuntimeException: need jdbc.url
	at org.nutz.boot.starter.jdbc.DataSourceStarter.createDruidDataSource(DataSourceStarter.java:65)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	at org.nutz.lang.Mirror.invoke(Mirror.java:1135)
	at org.nutz.ioc.impl.ObjectMakerImpl$1.born(ObjectMakerImpl.java:80)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:78)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:117)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.boot.starter.jdbc.DataSourceStarter.createDataSource(DataSourceStarter.java:98)
	at org.nutz.boot.starter.jdbc.DataSourceStarter.getDataSource(DataSourceStarter.java:59)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.nutz.lang.Invoking$NullArgInvoker.invoke(Invoking.java:77)
	at org.nutz.lang.Invoking.invoke(Invoking.java:192)
	... 34 common frames omitted
16:56:27.538 [main] INFO org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@1961945640 is closing. startup date [19-08-02 16:56:26.924]
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'dubbo_iobjs' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'druidWebStatServletStarter' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'druidWebStatFilterStarter' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'dataSourceStarter' ...
16:56:27.539 [main] DEBUG org.nutz.boot.starter.jdbc.DataSourceStarter - shutdown slave datasource count=0
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'nutDaoStarter' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'dubboStarter' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object '$aop_wkcache' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object '$aop_async' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'counterService' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'nbApp' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'conf' ...
16:56:27.539 [main] DEBUG org.nutz.ioc.impl.ScopeContext - Depose object 'appContext' ...
16:56:27.539 [main] INFO org.nutz.ioc.impl.NutIoc - org.nutz.ioc.impl.NutIoc@1961945640 is deposed. startup date [19-08-02 16:56:26.924]
16:56:27.545 [DubboShutdownHook] INFO com.alibaba.dubbo.config.DubboShutdownHook -  [DUBBO] Run shutdown hook now., dubbo version: 2.6.6, current host: 192.168.0.102
16:56:27.547 [DubboShutdownHook] INFO com.alibaba.dubbo.registry.support.AbstractRegistryFactory -  [DUBBO] Close all registries [], dubbo version: 2.6.6, current host: 192.168.0.102

1 回复

解决了 我包扫描错啦,所以找不到配置文件

添加回复
请先登陆
回到顶部