NutzCN Logo
问答 nutzwk5.x自定义微服务启动失败
发布于 1518天前 作者 bb3239 1979 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

如题

org.nutz.ioc.IocException: IocBean[dubboManager -> 17h4gsqstkim3r12l3novckblt] 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.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.integration.dubbo.DubboManager.init(DubboManager.java:36)
	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 cn.wizzer.geology.commons.core.DubboPipeMainLauncher.main(DubboPipeMainLauncher.java:39)
Caused by: java.lang.IllegalStateException: <dubbo:service interface="" /> interface not allow null!
	at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:230)
	at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:217)
	at org.nutz.integration.dubbo.ServiceBean._init(ServiceBean.java:163)
	at org.nutz.integration.dubbo.ServiceBean$FM$_init$cff301be46c87e2fbea60f4ef344bacb.invoke(ServiceBean.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)
	... 16 common frames omitted
6 回复

很明显了吧

我加了@IocBean注解了啊

看看其他类是怎么写的,对比下

@Wizzercn 对比了sys、wx、cms的Main方法类,没啥差别啊,该注解的也都有,工程也是参考的sys的

@wendal @Wizzercn 找到问题了,是我写错了

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