NutzCN Logo
问答 Object 'quartzManager' without define!?
发布于 2609天前 作者 屠夫与 2027 次浏览 复制 上一个帖子 下一个帖子
标签:

代码里面加入了:
@Inject
private QuartzManager quartzManager;
但是启动的时候扫包也扫到了,但是控制台报以下错误

2017-11-01 18:01:51,816 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'quartzManager'<interface org.nutz.integration.quartz.QuartzManager>
2017-11-01 18:01:51,816 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG -
>> Load definition name=quartzManager
org.nutz.ioc.IocException: IocBean[quartzManager] For object [quartzManager] - type:[interface org.nutz.integration.quartz.QuartzManager]

Caused by: org.nutz.ioc.ObjectLoadException: Object 'quartzManager' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)

怎么解?

31 回复

用 “插入代码” 按钮重新贴一下

017-11-01 18:16:35,601 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'quartzManager'<interface org.nutz.integration.quartz.QuartzManager>
2017-11-01 18:16:35,601 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=quartzManager
org.nutz.ioc.IocException: IocBean[quartzManager] For object [quartzManager] - type:[interface org.nutz.integration.quartz.QuartzManager]
2017-11-01 18:16:35,602 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) INFO  - citymaker-coreframe.Mvc[citymaker] is up in 1848ms
2017-11-01 18:16:35,602 org.nutz.mvc.NutFilter._init(NutFilter.java:117) INFO  - exclusionsPrefix  = ^(/assets/|/druid/|/upload/|/apidoc/)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at star.common.core.Setup.initSysTask(Setup.java:140)
	at star.common.core.Setup.init(Setup.java:64)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'quartzManager' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:166)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)

自己写的quartz.js?

没啊,就是抄nutzbook的

启动日志贴一下

启动日志里面,ioc初始化的日志里,有打印quartz相关的ioc定义

日志里面竟然没有

日志改到debug

查到了,获取init quartz.js的时候

        super(new String[]{});
		_load("quartz.js", "conf");
	InputStream ins=null;
		 ins = getClass().getClassLoader().getResourceAsStream("ioc/" + path);
		if (ins == null)
		{
			ins = getClass().getResourceAsStream(path);
		}
		if (ins == null)
			return;
		}

这个地方ins为空,这么破?

但是 quartz.js在 org.nutz.integration.quartz这个里面,基本没动

你把quartz插件的源码直接拷贝进项目了?

调试进去的,没有拷贝进去

这是什么原因,表示不明白

maven吗?看看插件jar里面有没有quartz.js

启动日志贴来看看

我已经解决了,多谢,虽然我也不知道怎么就跑起来了

现在是初始化登录页面的时候,报这个错误,表示不明白

2017-11-02 11:50:40,952 org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:218) DEBUG - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@4daa1110].  Returning null to indicate a session could not be found.
2017-11-02 11:50:40,952 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/index : SysHomeController.index(SysHomeController.java:118)
2017-11-02 11:50:40,952 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'permission'<class star.desktop.common.shiro.view.Permission>
2017-11-02 11:50:40,953 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dateUtil'<class star.desktop.common.util.DateUtil>
2017-11-02 11:50:40,953 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'stringUtil'<class star.desktop.common.util.StringUtil>
2017-11-02 11:50:40,953 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'sysHomeController'<class star.desktop.modules.controllers.platform.sys.SysHomeController>
2017-11-02 11:50:40,953 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=sysHomeController
2017-11-02 11:50:40,953 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysHomeController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,953 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'sysHomeController'<class star.desktop.modules.controllers.platform.sys.SysHomeController>
2017-11-02 11:50:40,953 star.desktop.common.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) DEBUG - skip -- star.desktop.modules.controllers.platform.sys.SysHomeController
2017-11-02 11:50:40,953 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class star.desktop.modules.controllers.platform.sys.SysHomeController without AOP
2017-11-02 11:50:40,953 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'sysHomeController' to [app] 
2017-11-02 11:50:40,954 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=menuService not found, search for type=star.desktop.modules.services.sys.SysMenuService
2017-11-02 11:50:40,954 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=redisService
2017-11-02 11:50:40,954 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(redisService) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,954 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=videoUpload
2017-11-02 11:50:40,954 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(videoUpload) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,954 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=conf
2017-11-02 11:50:40,954 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(conf) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,954 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=uploadVideoContext
2017-11-02 11:50:40,955 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(uploadVideoContext) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,955 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=fileUpload
2017-11-02 11:50:40,955 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(fileUpload) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,955 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=redis
2017-11-02 11:50:40,955 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(redis) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,955 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=scheduler
2017-11-02 11:50:40,955 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(scheduler) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,955 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2017-11-02 11:50:40,955 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(dao) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,955 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=cacheProvider
2017-11-02 11:50:40,956 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(cacheProvider) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,956 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=uploadFileContext
2017-11-02 11:50:40,956 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(uploadFileContext) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,956 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=htmlEmail
2017-11-02 11:50:40,956 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(htmlEmail) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,956 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=cacheExecutor
2017-11-02 11:50:40,956 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(cacheExecutor) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,957 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=jedisAgent
2017-11-02 11:50:40,957 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(jedisAgent) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,957 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=jedisCluster
2017-11-02 11:50:40,957 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(jedisCluster) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,957 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=jobFactory
2017-11-02 11:50:40,957 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(jobFactory) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,957 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=quartzManager
2017-11-02 11:50:40,957 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(quartzManager) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,958 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=pubSubService
2017-11-02 11:50:40,958 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(pubSubService) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,958 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=imageUpload
2017-11-02 11:50:40,958 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(imageUpload) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,958 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=jedisPool
2017-11-02 11:50:40,958 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(jedisPool) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,958 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=cacheManager
2017-11-02 11:50:40,959 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(cacheManager) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,959 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=nutQuartzCronJobFactory
2017-11-02 11:50:40,959 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(nutQuartzCronJobFactory) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,959 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=emailAuthenticator
2017-11-02 11:50:40,959 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(emailAuthenticator) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,959 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=jedisClusterNodes
2017-11-02 11:50:40,959 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(jedisClusterNodes) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,959 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=jedisClusterWrapper
2017-11-02 11:50:40,959 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(jedisClusterWrapper) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,960 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=tmpFilePool
2017-11-02 11:50:40,960 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(tmpFilePool) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,960 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=jedisPoolConfig
2017-11-02 11:50:40,960 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(jedisPoolConfig) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,960 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=uploadImageContext
2017-11-02 11:50:40,960 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(uploadImageContext) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,960 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2017-11-02 11:50:40,960 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[config/ioc/])
2017-11-02 11:50:40,961 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxTplListController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,961 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(uploadController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,961 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxReplyNewsService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,961 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysDictController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,961 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxMsgService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,961 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysLoginController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(dateUtil) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxMenuService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxConfigController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(qrcodeService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(stringUtil) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysRouteController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxMassNewsService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxTplListService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,962 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(cmsSiteService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysApiService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxUserService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(tplService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysPluginService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(cmsChannelService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysConfigService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(cmsController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(testController) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(wxReplyTxtService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysMenuService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,963 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'sysMenuService'<class star.desktop.modules.services.sys.SysMenuService>
2017-11-02 11:50:40,963 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=sysMenuService
2017-11-02 11:50:40,964 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(sysMenuService) in AnnotationIocLoader(packages=[star.desktop])
2017-11-02 11:50:40,964 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'sysMenuService'<class star.desktop.modules.services.sys.SysMenuService>
2017-11-02 11:50:40,964 star.desktop.common.plugin.PluginAopConfigure.getInterceptorPairList(PluginAopConfigure.java:33) DEBUG - skip -- star.desktop.modules.services.sys.SysMenuService
2017-11-02 11:50:40,964 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'txREAD_COMMITTED'<interface org.nutz.aop.MethodInterceptor>
2017-11-02 11:50:40,964 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'txREAD_COMMITTED'<interface org.nutz.aop.MethodInterceptor>
2017-11-02 11:50:40,970 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'sysHomeController' from [app] 
2017-11-02 11:50:40,970 star.desktop.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/stardesktop/index 18ms
2017-11-02 11:50:40,970 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) WARN  - Error@/index :
org.nutz.ioc.IocException: IocBean[sysHomeController] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
	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.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at star.desktop.common.processor.GlobalsSettingProcessor.process(GlobalsSettingProcessor.java:37)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at star.desktop.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:21)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at star.desktop.common.filter.RouteFilter.doFilter(RouteFilter.java:40)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
	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: IocBean[sysHomeController] fail at field=[menuService]
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:40)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	... 50 more
Caused by: org.nutz.ioc.IocException: IocBean[sysMenuService] For object [sysMenuService] - type:[class star.desktop.modules.services.sys.SysMenuService]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:218)
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:395)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
	... 52 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at org.nutz.aop.DefaultClassDefiner.define(DefaultClassDefiner.java:27)
	at org.nutz.aop.asm.AsmClassAgent.generate(AsmClassAgent.java:46)
	at org.nutz.aop.AbstractClassAgent.define(AbstractClassAgent.java:58)
	at org.nutz.aop.AbstractClassAgent.define(AbstractClassAgent.java:45)
	at org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:88)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:36)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	... 55 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.nutz.lang.reflect.ReflectTool.defineClass(ReflectTool.java:70)
	at org.nutz.lang.reflect.ReflectTool.defineClass(ReflectTool.java:56)
	at org.nutz.aop.DefaultClassDefiner.define(DefaultClassDefiner.java:24)
	... 61 more
Caused by: java.lang.ClassFormatError: Class name contains illegal character '.' in descriptor in class file star/desktop/modules/services/sys/SysMenuService$$NUTZAOP
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
	... 67 more

SysMenuService贴一下看看

再说, 你没有用git之类的版本控制吗? 看看跟之前的代码有啥区别,就能找到原因啦

查出来了, @Aop(TransAop.READ_COMMITTED)这样儿的注解不识别了

有什么办法可以破?

SysMenuService贴一下看看

package star.desktop.modules.services.sys;

import org.nutz.aop.interceptor.ioc.TransAop;
import org.nutz.dao.Chain;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.dao.Sqls;
import org.nutz.ioc.aop.Aop;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.lang.Strings;

import star.desktop.modules.models.sys.Sys_menu;
import star.desktop.common.base.Service;

/**
 * Created by wizzer on 2016/6/24.
 */
@IocBean(args = {"refer:dao"})
public class SysMenuService extends Service<Sys_menu> {

    public SysMenuService(Dao dao) {
        super(dao);
    }

    /**
     * 新增菜单
     *
     * @param menu
     * @param pid
     *  
     */
    @Aop(TransAop.READ_COMMITTED)
    public void save(Sys_menu menu, String pid) {
        String path = "";
        if (!Strings.isEmpty(pid)) {
            Sys_menu pp = this.fetch(pid);
            path = pp.getPath();
        } else pid = "";
        menu.setPath(getSubPath("sys_menu", "path", path));
        menu.setParentId(pid);
        dao().insert(menu);
        if (!Strings.isEmpty(pid) && "menu".equals(menu.getType())) {
            this.update(Chain.make("hasChildren", true), Cnd.where("id", "=", pid));
        }
    }

    /**
     * 级联删除菜单
     *
     * @param unit
     * 
     */
    @Aop(TransAop.READ_COMMITTED)
    public void deleteAndChild(Sys_menu unit) {
        dao().execute(Sqls.create("delete from sys_menu where path like @path").setParam("path", unit.getPath() + "%"));
        dao().execute(Sqls.create("delete from sys_role_menu where menuId=@id or menuId in(SELECT id FROM sys_menu WHERE path like @path)").setParam("id", unit.getId()).setParam("path", unit.getPath() + "%"));
        if (!Strings.isEmpty(unit.getParentId())) {
            int count = count(Cnd.where("parentId", "=", unit.getParentId()));
            if (count < 1) {
                dao().execute(Sqls.create("update sys_menu set hasChildren=0 where id=@pid").setParam("pid", unit.getParentId()));
            }
        }
    }
}

jdk和nutz版本分别是什么

nutz的版本是1.6+,jdk是1.8

具体的版本号

nutz 1.r.61.r2 2017年4月18;
jdk我竟然不知道怎么看,只知道是1.8

能换上nutz 1.r.62 试试不?

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