NutzCN Logo
问答 java.lang.RuntimeException: Don't know how to born it!
发布于 89天前 作者 小菜 103 次浏览 复制 上一个帖子 下一个帖子
标签: fireflow

``Ioc报错:
代码是:SDNFlowTableService iSDNFlowTableService = SDNServiceUtil.getISDNFlowTableService();
Ioc ioc = Mvcs.ctx.getDefaultIoc();
return ioc.get(SDN_Floodlight_FlowTableService.class);

```

13 回复

2017-06-29 16:34:28,695 [http-apr-9999-exec-5] INFO org.nutz.lang.inject.InjectByField - Fail to set value by field
org.nutz.castor.FailToCastObjectException: Fail to cast from <com.cloudmap.csmc.kernel.sdn.ruijie.service.SDN_Ruijie_DeviceService> to <com.cloudmap.csmc.kernel.sdn.floodlight.service.SDN_Floodlight_DeviceService> for {com.cloudmap.csmc.kernel.sdn.ruijie.service.SDN_Ruijie_DeviceService@4f7dfb00} because:
BorningException:Fail to born 'com.cloudmap.csmc.kernel.sdn.floodlight.service.SDN_Floodlight_DeviceService'
by args: [
@(com.cloudmap.csmc.kernel.sdn.ruijie.service.SDN_Ruijie_DeviceService@4f7dfb00)] becasue:
Don't know how to born it!
at org.nutz.castor.Castors.cast(Castors.java:233)
at org.nutz.castor.Castors.castTo(Castors.java:292)
at org.nutz.lang.inject.InjectByField.inject(InjectByField.java:24)
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:24)
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:96)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:181)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:133)
at com.cloudmap.csmc.kernel.sdn.base.util.SDNServiceUtil.getISDNFlowTableService(SDNServiceUtil.java:81)
at com.cloudmap.csmc.kernel.securitydomain.servicechain.service.DomainServiceChainService.paging(DomainServiceChainService.java:160)
at com.cloudmap.csmc.kernel.securitydomain.servicechain.controller.ServiceChainController.getServiceChainInfos(ServiceChainController.java:177)
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.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:22)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at com.cloudmap.csmc.kernel.AccessControlProcessor.process(SourceFile:141)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at com.cloudmap.csmc.kernel.logging.LoggingProcessor.process(SourceFile:71)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:85)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:64)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:101)
at com.cloudmap.csmc.CMNutFilter.doFilter(SourceFile:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2476)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2465)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Don't know how to born it!
at org.nutz.lang.born.BorningException.(BorningException.java:9)
at org.nutz.lang.Mirror.born(Mirror.java:921)
at org.nutz.castor.castor.Object2Object.cast(Object2Object.java:12)
at org.nutz.castor.Castors.cast(Castors.java:227)
... 52 more
2017-06-29 16:34:31,223 [http-apr-9999-exec-5] ERROR org.nutz.mvc.impl.processor.FailProcessor - Catch handle error URI=/securityDomain/serviceChain/getServiceChainInfos
java.lang.RuntimeException: Don't know how to born it!
at org.nutz.lang.born.BorningException.(BorningException.java:9)
at org.nutz.lang.Mirror.born(Mirror.java:921)
at org.nutz.lang.Lang.wrapThrow(Lang.java:157)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:105)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:181)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:133)
at com.cloudmap.csmc.kernel.sdn.base.util.SDNServiceUtil.getISDNFlowTableService(SDNServiceUtil.java:81)
at com.cloudmap.csmc.kernel.securitydomain.servicechain.service.DomainServiceChainService.paging(DomainServiceChainService.java:160)
at com.cloudmap.csmc.kernel.securitydomain.servicechain.controller.ServiceChainController.getServiceChainInfos(ServiceChainController.java:177)
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.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:22)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at com.cloudmap.csmc.kernel.AccessControlProcessor.process(SourceFile:141)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at com.cloudmap.csmc.kernel.logging.LoggingProcessor.process(SourceFile:71)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:85)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:64)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:101)
at com.cloudmap.csmc.CMNutFilter.doFilter(SourceFile:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2476)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2465)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

两个类同名了

@wendal ,大神,怎么删除刚回复错的?

别关心那个,重新贴代码,是不是类名重复了,是的话就换个名字搞定

不是类重名。我贴代码给你看下。

public Pager<FlowTableInfo> paging(String serviceChainId, Pager<FlowTableInfo> pager) {
		ISDNFlowTableService iSDNFlowTableService = SDNServiceUtil.getISDNFlowTableService();
		if(iSDNFlowTableService == null)
		{
			logger.error("!");
		}
		List<FlowTableInfo> flowTables = iSDNFlowTableService.getSDNFlowTables(serviceChainId);
		pager.setData(flowTables);
		pager.setRecords(flowTables.size());
		return pager;
	}
------------------------------------------------------------------------------------------------
public static ISDNFlowTableService getISDNFlowTableService()
	{
		Ioc ioc = Mvcs.ctx.getDefaultIoc();
	    if(ResourcesType.getSDNType() == SDNType.RUIJIE)
	    {
	    	return ioc.get(SDN_Ruijie_FlowTableService.class);
	    }
	    if(ResourcesType.getSDNType() == SDNType.FLOODLIGHT)
	    {
	    	return ioc.get(SDN_Floodlight_FlowTableService.class);
	    }
	    return null;
	}
@IocBean(name = "sDN_Floodlight_FlowTableService")
public class SDN_Floodlight_FlowTableService extends SDNFlowTableService {
	
	@Inject("refer:sDN_Ruijie_DeviceService")
	private SDN_Floodlight_DeviceService sdn_Floodlight_DeviceService;
	
	@Inject("refer:assetAuthService")
	private AssetAuthService assetAuthService;

	@Override
	public List<FlowTableInfo> getSDNFlowTables(String serviceChainId) {
@IocBean(name = "sDN_Ruijie_FlowTableService")
public class SDN_Ruijie_FlowTableService extends SDNFlowTableService {}
	
	@Inject("refer:sDN_Ruijie_DeviceService")
	private SDN_Ruijie_DeviceService sdn_Ruijie_DeviceService;
	
	@Inject("refer:assetAuthService")
	private AssetAuthService assetAuthService;

	@Override
	public List<FlowTableInfo> getSDNFlowTables(String serviceChainId) {}
2017-06-29 16:34:25,731 [HostAndClusterTree_10.2.0.10] INFO  com.cloudmap.csmc.kernel.cloud.topo.service.TopoTreeService - host
proxy.getNode().getName():10.2.0.16
2017-06-29 16:34:28,695 [http-apr-9999-exec-5] INFO  org.nutz.lang.inject.InjectByField - Fail to set value by field
org.nutz.castor.FailToCastObjectException: Fail to cast from <com.cloudmap.csmc.kernel.sdn.ruijie.service.SDN_Ruijie_DeviceService> to <com.cloudmap.csmc.kernel.sdn.floodlight.service.SDN_Floodlight_DeviceService> for {com.cloudmap.csmc.kernel.sdn.ruijie.service.SDN_Ruijie_DeviceService@4f7dfb00} because:
BorningException:Fail to born 'com.cloudmap.csmc.kernel.sdn.floodlight.service.SDN_Floodlight_DeviceService'
 by args: [
  @(com.cloudmap.csmc.kernel.sdn.ruijie.service.SDN_Ruijie_DeviceService@4f7dfb00)] becasue:
Don't know how to born it!
	at org.nutz.castor.Castors.cast(Castors.java:233)
	at org.nutz.castor.Castors.castTo(Castors.java:292)
	at org.nutz.lang.inject.InjectByField.inject(InjectByField.java:24)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:24)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:96)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:181)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:133)
	at com.cloudmap.csmc.kernel.sdn.base.util.SDNServiceUtil.getISDNFlowTableService(SDNServiceUtil.java:81)
	at com.cloudmap.csmc.kernel.securitydomain.servicechain.service.DomainServiceChainService.paging(DomainServiceChainService.java:160)
	at com.cloudmap.csmc.kernel.securitydomain.servicechain.controller.ServiceChainController.getServiceChainInfos(ServiceChainController.java:177)
	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.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:22)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at com.cloudmap.csmc.kernel.AccessControlProcessor.process(SourceFile:141)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at com.cloudmap.csmc.kernel.logging.LoggingProcessor.process(SourceFile:71)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:85)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:64)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:101)
	at com.cloudmap.csmc.CMNutFilter.doFilter(SourceFile:70)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2476)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2465)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Don't know how to born it!
	at org.nutz.lang.born.BorningException.<init>(BorningException.java:9)
	at org.nutz.lang.Mirror.born(Mirror.java:921)
	at org.nutz.castor.castor.Object2Object.cast(Object2Object.java:12)
	at org.nutz.castor.Castors.cast(Castors.java:227)
	... 52 more
2017-06-29 16:34:31,223 [http-apr-9999-exec-5] ERROR org.nutz.mvc.impl.processor.FailProcessor - Catch handle error URI=/securityDomain/serviceChain/getServiceChainInfos
java.lang.RuntimeException: Don't know how to born it!
	at org.nutz.lang.born.BorningException.<init>(BorningException.java:9)
	at org.nutz.lang.Mirror.born(Mirror.java:921)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:157)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:105)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:181)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:133)
	at com.cloudmap.csmc.kernel.sdn.base.util.SDNServiceUtil.getISDNFlowTableService(SDNServiceUtil.java:81)
	at com.cloudmap.csmc.kernel.securitydomain.servicechain.service.DomainServiceChainService.paging(DomainServiceChainService.java:160)
	at com.cloudmap.csmc.kernel.securitydomain.servicechain.controller.ServiceChainController.getServiceChainInfos(ServiceChainController.java:177)
	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.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:22)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at com.cloudmap.csmc.kernel.AccessControlProcessor.process(SourceFile:141)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at com.cloudmap.csmc.kernel.logging.LoggingProcessor.process(SourceFile:71)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:40)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:85)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:40)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:64)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:101)
	at com.cloudmap.csmc.CMNutFilter.doFilter(SourceFile:70)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2476)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2465)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

	@Inject("refer:sDN_Ruijie_DeviceService")
	private SDN_Floodlight_DeviceService sdn_Floodlight_DeviceService;

这个@Inject不太对吧?? 注入的是Ruijie的对象,但属性是Floodlight的

刚改过来了。但是还是报。

org.nutz.ioc.ObjectLoadException: Object 'sdn_Floodlight_DeviceService' without define!

@wendal

看你的命名规则,应该是 sDN_Floodlight_DeviceService 吧?


``` @IocBean(name="sDN_Ruijie_DeviceService") public class SDN_Ruijie_DeviceService extends SDNDeviceBaseService { @IocBean(name="sDN_Floodlight_DeviceService") public class SDN_Floodlight_DeviceService extends SDNDeviceBaseService{

```

@wendal ,好了,是他们命名有问题。谢谢。

哦哦, 我还以为你之前已经解决了...

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