NutzCN Logo
问答 NutzBook教程中定时任务的问题
发布于 2610天前 作者 chniccs 1432 次浏览 复制 上一个帖子 下一个帖子
标签:

quartz版本2.2.1
cron.propertiest文件

# 清除未激活用户的定时器
cron.com.chniccs.nutzdemo.quartz.job.CleanNonActiveUserJob=0 0/2 * * * ?
cron.pkgs=com.chniccs.nutzdemo.quartz.job

quartz.propertiest文件

org.quartz.scheduler.instanceName = NutzdemoScheduler
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 3
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
org.quartz.scheduler.skipUpdateCheck=true

MainModule

@SetupBy(value=MainSetup.class)
@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
        // 这个package下所有带@IocBean注解的类,都会登记上
        "*anno", "com.chniccs.nutzdemo",
        "*tx" // 事务拦截 aop
        }) // 异步执行aop
@Ok("json:full")
@Fail("jsp:jsp.500")
@Localization(value="msg/", defaultLocalizationKey="zh-CN")
@ChainBy(args="mvc/nutzdemo-mvc-chain.js")
@Modules(scanPackage=true)
public class MainModule {

}

MainSetup中init()代码

 // 特别留意一下,是init方法,不是destroy方法!!!!!
    public void init(NutConfig nc) {
        Ioc ioc = nc.getIoc();
        Dao dao = ioc.get(Dao.class);
        // 如果没有createTablesInPackage,请检查nutz版本
        Daos.createTablesInPackage(dao, "com.chniccs.nutzdemo", false);
        // 初始化默认根用户
        if (dao.count(User.class) == 0) {
            User user = new User();
            user.setName("admin");
            user.setPassword("123456");
            user.setCreateTime(new Date());
            user.setUpdateTime(new Date());
            dao.insert(user);
        }

        // 获取NutQuartzCronJobFactory从而触发计划任务的初始化与启动
        ioc.get(NutQuartzCronJobFactory.class);

以下是日志

2017-10-31 14:42:25,429 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133) INFO  - Starting Shiro environment initialization.
2017-10-31 14:42:25,463 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: false
2017-10-31 14:42:25,464 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Boolean' value 'false' to type 'Boolean'
2017-10-31 14:42:25,464 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Boolean
2017-10-31 14:42:25,466 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,466 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Byte'
2017-10-31 14:42:25,466 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Byte value '0'
2017-10-31 14:42:25,467 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value:  
2017-10-31 14:42:25,467 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Character' value ' ' to type 'Character'
2017-10-31 14:42:25,467 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Character
2017-10-31 14:42:25,468 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,468 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Double'
2017-10-31 14:42:25,468 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Double value '0.0'
2017-10-31 14:42:25,468 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,469 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Float'
2017-10-31 14:42:25,469 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Float value '0.0'
2017-10-31 14:42:25,470 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,470 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Integer'
2017-10-31 14:42:25,470 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Integer
2017-10-31 14:42:25,471 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,471 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Long'
2017-10-31 14:42:25,471 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Long value '0'
2017-10-31 14:42:25,472 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,472 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Short'
2017-10-31 14:42:25,472 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Short value '0'
2017-10-31 14:42:25,473 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0.0
2017-10-31 14:42:25,473 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'BigDecimal' value '0.0' to type 'BigDecimal'
2017-10-31 14:42:25,474 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a BigDecimal
2017-10-31 14:42:25,474 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,475 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'BigInteger' value '0' to type 'BigInteger'
2017-10-31 14:42:25,475 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a BigInteger
2017-10-31 14:42:25,475 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: false
2017-10-31 14:42:25,475 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Boolean' value 'false' to type 'Boolean'
2017-10-31 14:42:25,476 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Boolean
2017-10-31 14:42:25,476 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,476 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Byte'
2017-10-31 14:42:25,476 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Byte value '0'
2017-10-31 14:42:25,476 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value:  
2017-10-31 14:42:25,476 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Character' value ' ' to type 'Character'
2017-10-31 14:42:25,477 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Character
2017-10-31 14:42:25,477 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,477 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Double'
2017-10-31 14:42:25,477 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Double value '0.0'
2017-10-31 14:42:25,477 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,478 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Float'
2017-10-31 14:42:25,478 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Float value '0.0'
2017-10-31 14:42:25,478 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,478 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Integer'
2017-10-31 14:42:25,479 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Integer
2017-10-31 14:42:25,479 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,479 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Long'
2017-10-31 14:42:25,479 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Long value '0'
2017-10-31 14:42:25,479 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 0
2017-10-31 14:42:25,480 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer' value '0' to type 'Short'
2017-10-31 14:42:25,480 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:171) DEBUG -     Converted to Short value '0'
2017-10-31 14:42:25,480 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: 
2017-10-31 14:42:25,481 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'String' value '' to type 'String'
2017-10-31 14:42:25,485 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Z@492f8599
2017-10-31 14:42:25,486 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'boolean[]' value '[Z@492f8599' to type 'boolean[]'
2017-10-31 14:42:25,486 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a boolean[]
2017-10-31 14:42:25,486 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [B@52acb65d
2017-10-31 14:42:25,486 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'byte[]' value '[B@52acb65d' to type 'byte[]'
2017-10-31 14:42:25,486 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a byte[]
2017-10-31 14:42:25,486 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [C@4252522a
2017-10-31 14:42:25,487 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'char[]' value '[C@4252522a' to type 'char[]'
2017-10-31 14:42:25,487 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a char[]
2017-10-31 14:42:25,487 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [D@37283e56
2017-10-31 14:42:25,487 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'double[]' value '[D@37283e56' to type 'double[]'
2017-10-31 14:42:25,488 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a double[]
2017-10-31 14:42:25,488 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [F@29e6667
2017-10-31 14:42:25,488 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'float[]' value '[F@29e6667' to type 'float[]'
2017-10-31 14:42:25,488 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a float[]
2017-10-31 14:42:25,488 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [I@35b72637
2017-10-31 14:42:25,488 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'int[]' value '[I@35b72637' to type 'int[]'
2017-10-31 14:42:25,489 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a int[]
2017-10-31 14:42:25,489 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [J@65a4e1a9
2017-10-31 14:42:25,489 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'long[]' value '[J@65a4e1a9' to type 'long[]'
2017-10-31 14:42:25,489 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a long[]
2017-10-31 14:42:25,489 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [S@1388a9c5
2017-10-31 14:42:25,489 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'short[]' value '[S@1388a9c5' to type 'short[]'
2017-10-31 14:42:25,489 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a short[]
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.math.BigDecimal;@62d4588d
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'BigDecimal[]' value '[Ljava.math.BigDecimal;@62d4588d' to type 'BigDecimal[]'
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a BigDecimal[]
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.math.BigInteger;@2cb551a5
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'BigInteger[]' value '[Ljava.math.BigInteger;@2cb551a5' to type 'BigInteger[]'
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a BigInteger[]
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Boolean;@3a753c8e
2017-10-31 14:42:25,490 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Boolean[]' value '[Ljava.lang.Boolean;@3a753c8e' to type 'Boolean[]'
2017-10-31 14:42:25,491 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Boolean[]
2017-10-31 14:42:25,491 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Byte;@20eaff14
2017-10-31 14:42:25,491 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Byte[]' value '[Ljava.lang.Byte;@20eaff14' to type 'Byte[]'
2017-10-31 14:42:25,491 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Byte[]
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Character;@6184bd47
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Character[]' value '[Ljava.lang.Character;@6184bd47' to type 'Character[]'
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Character[]
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Double;@1566ce44
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Double[]' value '[Ljava.lang.Double;@1566ce44' to type 'Double[]'
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Double[]
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Float;@10fd9b33
2017-10-31 14:42:25,492 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Float[]' value '[Ljava.lang.Float;@10fd9b33' to type 'Float[]'
2017-10-31 14:42:25,493 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Float[]
2017-10-31 14:42:25,493 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Integer;@4dcde0e1
2017-10-31 14:42:25,493 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Integer[]' value '[Ljava.lang.Integer;@4dcde0e1' to type 'Integer[]'
2017-10-31 14:42:25,493 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Integer[]
2017-10-31 14:42:25,493 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Long;@5e7e7cf5
2017-10-31 14:42:25,493 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Long[]' value '[Ljava.lang.Long;@5e7e7cf5' to type 'Long[]'
2017-10-31 14:42:25,494 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Long[]
2017-10-31 14:42:25,494 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Short;@426eb800
2017-10-31 14:42:25,494 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Short[]' value '[Ljava.lang.Short;@426eb800' to type 'Short[]'
2017-10-31 14:42:25,494 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Short[]
2017-10-31 14:42:25,494 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.String;@7f907a6e
2017-10-31 14:42:25,495 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'String[]' value '[Ljava.lang.String;@7f907a6e' to type 'String[]'
2017-10-31 14:42:25,495 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a String[]
2017-10-31 14:42:25,495 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.lang.Class;@2bf21ddb
2017-10-31 14:42:25,495 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Class[]' value '[Ljava.lang.Class;@2bf21ddb' to type 'Class[]'
2017-10-31 14:42:25,496 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Class[]
2017-10-31 14:42:25,496 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.util.Date;@1c6b0e1d
2017-10-31 14:42:25,496 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Date[]' value '[Ljava.util.Date;@1c6b0e1d' to type 'Date[]'
2017-10-31 14:42:25,496 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Date[]
2017-10-31 14:42:25,496 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.util.Calendar;@136be060
2017-10-31 14:42:25,496 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'Calendar[]' value '[Ljava.util.Calendar;@136be060' to type 'Calendar[]'
2017-10-31 14:42:25,497 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a Calendar[]
2017-10-31 14:42:25,497 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.io.File;@6c93d3f1
2017-10-31 14:42:25,497 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'java.io.File[]' value '[Ljava.io.File;@6c93d3f1' to type 'java.io.File[]'
2017-10-31 14:42:25,498 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a java.io.File[]
2017-10-31 14:42:25,498 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.sql.Date;@6a0ee59c
2017-10-31 14:42:25,498 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'java.sql.Date[]' value '[Ljava.sql.Date;@6a0ee59c' to type 'java.sql.Date[]'
2017-10-31 14:42:25,498 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a java.sql.Date[]
2017-10-31 14:42:25,498 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.sql.Time;@512d9cad
2017-10-31 14:42:25,498 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'java.sql.Time[]' value '[Ljava.sql.Time;@512d9cad' to type 'java.sql.Time[]'
2017-10-31 14:42:25,499 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a java.sql.Time[]
2017-10-31 14:42:25,499 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.sql.Timestamp;@3983f07e
2017-10-31 14:42:25,499 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'java.sql.Timestamp[]' value '[Ljava.sql.Timestamp;@3983f07e' to type 'java.sql.Timestamp[]'
2017-10-31 14:42:25,500 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a java.sql.Timestamp[]
2017-10-31 14:42:25,500 org.apache.commons.beanutils.converters.AbstractConverter.setDefaultValue(AbstractConverter.java:353) DEBUG - Setting default value: [Ljava.net.URL;@39e354df
2017-10-31 14:42:25,500 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:140) DEBUG - Converting 'java.net.URL[]' value '[Ljava.net.URL;@39e354df' to type 'java.net.URL[]'
2017-10-31 14:42:25,500 org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:162) DEBUG -     No conversion required, value is already a java.net.URL[]
2017-10-31 14:42:25,514 org.apache.shiro.web.env.IniWebEnvironment.parseConfig(IniWebEnvironment.java:95) DEBUG - Checking any specified config locations.
2017-10-31 14:42:25,515 org.apache.shiro.web.env.IniWebEnvironment.parseConfig(IniWebEnvironment.java:100) DEBUG - No INI instance or config locations specified.  Trying default config locations.
2017-10-31 14:42:25,518 org.apache.shiro.io.ResourceUtils.loadFromClassPath(ResourceUtils.java:159) DEBUG - Opening resource from class path [shiro.ini]
2017-10-31 14:42:25,521 org.apache.shiro.config.Ini.load(Ini.java:401) DEBUG - Parsing [main]
2017-10-31 14:42:25,521 org.apache.shiro.config.Ini.load(Ini.java:401) DEBUG - Parsing [urls]
2017-10-31 14:42:25,522 org.apache.shiro.web.env.IniWebEnvironment.getDefaultIni(IniWebEnvironment.java:217) DEBUG - Discovered non-empty INI configuration at location 'classpath:shiro.ini'.  Using for configuration.
2017-10-31 14:42:25,524 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:149) DEBUG - Creating instance from Ini [sections=urls]
2017-10-31 14:42:25,702 org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:149) DEBUG - Creating instance from Ini [sections=urls]
2017-10-31 14:42:25,705 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.createChain(DefaultFilterChainManager.java:127) DEBUG - Creating chain [/*] from String definition [anon]
2017-10-31 14:42:25,705 org.apache.shiro.web.filter.mgt.DefaultFilterChainManager.applyChainConfig(DefaultFilterChainManager.java:278) DEBUG - Attempting to apply path [/*] to filter [anon] with config [null]
2017-10-31 14:42:25,706 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:142) DEBUG - Published WebEnvironment as ServletContext attribute with name [org.apache.shiro.web.env.EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY]
2017-10-31 14:42:25,706 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:147) INFO  - Shiro environment initialized in 275 ms.
2017-10-31 14:42:25,796 org.nutz.mvc.NutFilter._init(NutFilter.java:81) INFO  - NutFilter[nutz] starting ...
2017-10-31 14:42:25,839 org.nutz.resource.Scans.<init>(Scans.java:509) DEBUG - Locations for Scans:
[Dir[path=D:\tools\apache-tomcat-8.5.15\bin], Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-1.r.60.jar], Dir[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\classes], Jar[path=D:\tools\apache-tomcat-8.5.15\bin\bootstrap.jar], Jar[path=D:\tools\apache-tomcat-8.5.15\bin\tomcat-juli.jar]]
2017-10-31 14:42:26,148 org.nutz.resource.Scans.init(Scans.java:105) DEBUG - Locations for Scans:
{D:\tools\apache-tomcat-8.5.15\bin=Dir[path=D:\tools\apache-tomcat-8.5.15\bin], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-1.r.60.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-1.r.60.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\classes=Dir[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\classes], D:\tools\apache-tomcat-8.5.15\bin\bootstrap.jar=Jar[path=D:\tools\apache-tomcat-8.5.15\bin\bootstrap.jar], D:\tools\apache-tomcat-8.5.15\bin\tomcat-juli.jar=Jar[path=D:\tools\apache-tomcat-8.5.15\bin\tomcat-juli.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\javax.servlet.jsp.jstl-api-1.2.1.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\javax.servlet.jsp.jstl-api-1.2.1.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\quartz-jobs-2.2.3.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\quartz-jobs-2.2.3.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\slf4j-log4j12-1.7.25.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\slf4j-log4j12-1.7.25.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-hazelcast-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-hazelcast-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-event-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-event-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\guice-multibindings-3.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\guice-multibindings-3.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\taglibs-standard-spec-1.2.5.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\taglibs-standard-spec-1.2.5.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\aopalliance-1.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\aopalliance-1.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\slf4j-api-1.7.25.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\slf4j-api-1.7.25.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-web-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-web-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\druid-1.0.26.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\druid-1.0.26.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\mysql-connector-java-5.1.40.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\mysql-connector-java-5.1.40.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\simplecaptcha-1.2.2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\simplecaptcha-1.2.2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\c3p0-0.9.1.1.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\c3p0-0.9.1.1.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-config-ogdl-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-config-ogdl-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-ehcache-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-ehcache-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-beanutils-1.9.3.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-beanutils-1.9.3.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\guice-3.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\guice-3.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-crypto-cipher-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-crypto-cipher-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\javax.inject-1.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\javax.inject-1.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-crypto-core-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-crypto-core-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\aspectjrt-1.8.9.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\aspectjrt-1.8.9.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\taglibs-standard-jstlel-1.2.5.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\taglibs-standard-jstlel-1.2.5.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-integration-shiro-1.r.60.r2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-integration-shiro-1.r.60.r2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-config-core-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-config-core-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\activation-1.1.1.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\activation-1.1.1.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\quartz-2.2.1.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\quartz-2.2.1.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-lang-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-lang-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\hazelcast-3.7.2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\hazelcast-3.7.2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-logging-1.2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-logging-1.2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-core-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-core-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-spring-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-spring-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-integration-quartz-1.r.60.r2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-integration-quartz-1.r.60.r2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-plugins-cache-1.r.60.r2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-plugins-cache-1.r.60.r2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-crypto-hash-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-crypto-hash-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\ehcache-core-2.6.11.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\ehcache-core-2.6.11.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-cache-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-cache-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-collections-3.2.2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-collections-3.2.2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-integration-jedis-1.r.60.r2.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\nutz-integration-jedis-1.r.60.r2.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-guice-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-guice-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\quartz-1.6.1.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\quartz-1.6.1.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\aspectjweaver-1.8.9.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\aspectjweaver-1.8.9.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-aspectj-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-aspectj-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-quartz-1.4.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\shiro-quartz-1.4.0.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\log4j-1.2.17.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\log4j-1.2.17.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\mail-1.4.5.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\mail-1.4.5.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-email-1.3.3.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\commons-email-1.3.3.jar], D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\javax.mail-1.6.0.jar=Jar[path=D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\lib\javax.mail-1.6.0.jar]}
2017-10-31 14:42:26,205 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2017-10-31 14:42:26,221 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2017-10-31 14:42:26,224 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.60 
2017-10-31 14:42:26,224 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2017-10-31 14:42:26,224 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2017-10-31 14:42:26,225 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : GBK
2017-10-31 14:42:26,225 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : D:\tools\apache-tomcat-8.5.15\bin\.
2017-10-31 14:42:26,225 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.8.0_131
2017-10-31 14:42:26,225 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2017-10-31 14:42:26,225 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2017-10-31 14:42:26,225 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 10 amd64
2017-10-31 14:42:26,226 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/8.5.15
2017-10-31 14:42:26,226 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.1
2017-10-31 14:42:26,226 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : 
2017-10-31 14:42:26,226 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : C:\Users\PVer\.IntelliJIdea2017.1\system\tomcat\Unnamed_nutzdemo\work\Catalina\localhost\ROOT
2017-10-31 14:42:26,226 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : com.chniccs.nutzdemo.MainModule
2017-10-31 14:42:26,228 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:238) DEBUG - >> app.root = D:/project/javaee/nutzdemo/target/nutzdemo
2017-10-31 14:42:26,229 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:379) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.chniccs.nutzdemo", "*tx"],init=[])
2017-10-31 14:42:26,250 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 2 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-10-31 14:42:26,250 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [dao.js]
2017-10-31 14:42:26,253 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:48) DEBUG - loading ioc js config from [mail.js]
2017-10-31 14:42:26,254 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:56) DEBUG - Loaded 5 bean define from path=[ioc/] --> [conf, dao, emailAuthenticator, dataSource, htmlEmail]
2017-10-31 14:42:26,259 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 15 resource by src( com/chniccs/nutzdemo/ ) , regex( ^.+[.]class$ )
2017-10-31 14:42:26,279 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.chniccs.nutzdemo.module.UserModule
2017-10-31 14:42:26,285 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.chniccs.nutzdemo.module.UserProfileModule
2017-10-31 14:42:26,295 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.chniccs.nutzdemo.quartz.job.CleanNonActiveUserJob
2017-10-31 14:42:26,298 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.chniccs.nutzdemo.quartz.NutQuartzCronJobFactory
2017-10-31 14:42:26,301 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.chniccs.nutzdemo.quartz.NutQuartzJobFactory
2017-10-31 14:42:26,303 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:74) DEBUG - Found @IocBean : class com.chniccs.nutzdemo.service.EmailServiceImpl
2017-10-31 14:42:26,304 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) INFO  - Found 6 classes in 1 base-packages!
beans = ["cleanNonActiveUserJob", "nutQuartzCronJobFactory", "nutQuartzJobFactory", "userProfileModule", "userModule", "emailService"]
2017-10-31 14:42:26,306 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) DEBUG - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-10-31 14:42:26,308 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) INFO  - NutIoc init begin ...
2017-10-31 14:42:26,310 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) INFO  - ... NutIoc init complete
2017-10-31 14:42:26,313 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO  - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-10-31 14:42:26,315 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) DEBUG - @Views(DefaultViewMaker.class)
2017-10-31 14:42:26,325 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( mvc/nutzdemo-mvc-chain.js ) , regex( ^(.+[.])(js|json)$ )
2017-10-31 14:42:26,329 org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion.<init>(JsonActionChainMakerConfiguretion.java:37) DEBUG - ActionChain Config:
{
   "default": {
      "ps": ["com.chniccs.nutzdemo.mvc.LogTimeProcessor", "org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor", "org.nutz.mvc.impl.processor.EncodingProcessor", "org.nutz.mvc.impl.processor.ModuleProcessor", "!org.nutz.integration.shiro.NutShiroProcessor", "org.nutz.mvc.impl.processor.ActionFiltersProcessor", "org.nutz.mvc.impl.processor.AdaptorProcessor", "org.nutz.mvc.impl.processor.MethodInvokeProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
      "error": "org.nutz.mvc.impl.processor.FailProcessor"
   }
}
2017-10-31 14:42:26,329 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:266) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-10-31 14:42:26,334 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) DEBUG - module class location 'file:/D:/project/javaee/nutzdemo/target/nutzdemo/WEB-INF/classes/'
2017-10-31 14:42:26,335 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) DEBUG -  > scan 'com.chniccs.nutzdemo'
2017-10-31 14:42:26,339 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 15 resource by src( com/chniccs/nutzdemo/ ) , regex( ^.+[.]class$ )
2017-10-31 14:42:26,340 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:198) DEBUG -    >> add 'com.chniccs.nutzdemo.module.UserModule'
2017-10-31 14:42:26,340 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:198) DEBUG -    >> add 'com.chniccs.nutzdemo.module.UserProfileModule'
2017-10-31 14:42:26,380 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/'            >> (UserProfileModule.java:46).index     : UserProfile | @Ok(jsp:jsp.user.profile) @Fail(jsp:jsp.500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,382 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/get'         >> (UserProfileModule.java:51).get       : UserProfile | @Ok(json:full) @Fail(jsp:jsp.500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,384 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/update'      >> (UserProfileModule.java:66).update    : void       | @Ok(void ) @Fail(jsp:jsp.500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,387 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/delete'      >> (UserProfileModule.java:92).delete    : Object     | @Ok(json:full) @Fail(jsp:jsp.500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,391 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/active/mail' >> (UserProfileModule.java:173).activeMailCallback : String     | @Ok(raw  ) @Fail(jsp:jsp.500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,394 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/avatar'      >> (UserProfileModule.java:137).readAvatar : Object     | @Ok(raw:jpg) @Fail(jsp:jsp.500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,400 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:23) INFO  - Init file-pool by: D:/project/javaee/nutzdemo/target/nutzdemo/WEB-INF/tmp/user_avatar [20000]
2017-10-31 14:42:26,402 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:37) DEBUG - file-pool.home: 'D:\project\javaee\nutzdemo\target\nutzdemo\WEB-INF\tmp\user_avatar'
2017-10-31 14:42:26,403 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:66) INFO  - file-pool.cursor: 0
2017-10-31 14:42:26,407 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/avatar'      >> (UserProfileModule.java:108).uploadAvatar : void       | @Ok(>>:/user/profile) @Fail(jsp:jsp.500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,407 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/profile/active/mail' >> (UserProfileModule.java:147).activeMail : Object     | @Ok(json:full) @Fail(jsp:jsp.500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,411 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/'                    >> (UserModule.java:96).index            : void       | @Ok(jsp:jsp.user.list) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,423 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/add'                 >> (UserModule.java:51).add              : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,424 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/count'               >> (UserModule.java:28).count            : int        | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,426 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/update'              >> (UserModule.java:62).update           : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,426 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/delete'              >> (UserModule.java:76).delete           : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,427 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/query'               >> (UserModule.java:85).query            : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,428 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/logout'              >> (UserModule.java:46).logout           : void       | @Ok(>>:/ ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,431 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/user/login'               >> (UserModule.java:34).login            : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-10-31 14:42:26,431 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:220) INFO  - Found 16 module methods
2017-10-31 14:42:26,431 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:306) DEBUG - Localization: org.nutz.mvc.impl.NutMessageLoader('msg/')  dft<zh-CN>
2017-10-31 14:42:26,433 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 1 resource by src( msg/ ) , regex( ^.+[.]properties$ )
2017-10-31 14:42:26,433 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) DEBUG - Load Messages in 1 resource : [[NutResource[zh-CN/user.properties]]]
2017-10-31 14:42:26,435 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) DEBUG - Message Loaded, size = 2
2017-10-31 14:42:26,436 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274) INFO  - Setup application...
2017-10-31 14:42:26,436 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<interface org.nutz.dao.Dao>
2017-10-31 14:42:26,438 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) DEBUG - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-10-31 14:42:26,439 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dao
2017-10-31 14:42:26,440 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2017-10-31 14:42:26,443 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:26,443 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2017-10-31 14:42:26,455 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.dao.impl.NutDao without AOP
2017-10-31 14:42:26,455 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dao' to [app] 
2017-10-31 14:42:26,457 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2017-10-31 14:42:26,457 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dataSource
2017-10-31 14:42:26,458 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2017-10-31 14:42:26,465 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:26,465 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dataSource'<>
2017-10-31 14:42:26,481 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-10-31 14:42:26,481 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dataSource' to [app] 
2017-10-31 14:42:26,484 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<>
2017-10-31 14:42:26,484 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=conf
2017-10-31 14:42:26,485 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=conf
2017-10-31 14:42:26,485 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:26,485 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'conf'<>
2017-10-31 14:42:26,486 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2017-10-31 14:42:26,486 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'conf' to [app] 
2017-10-31 14:42:26,488 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 3 resource by src( custom/ ) , regex( ^.+[.]properties$ )
2017-10-31 14:42:26,547 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:715) INFO  - {dataSource-1} inited
2017-10-31 14:42:26,548 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2017-10-31 14:42:26,568 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:23) INFO  - Init file-pool by: C:\Users\PVer/.nutz/tmp/dao/ [200000]
2017-10-31 14:42:26,569 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:37) DEBUG - file-pool.home: 'C:\Users\PVer\.nutz\tmp\dao'
2017-10-31 14:42:26,569 org.nutz.filepool.NutFilePool.<init>(NutFilePool.java:66) INFO  - file-pool.cursor: 0
2017-10-31 14:42:26,575 org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:90) DEBUG - Jdbcs init complete
2017-10-31 14:42:26,575 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:103) INFO  - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
Tue Oct 31 14:42:26 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2017-10-31 14:42:26,796 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:188) DEBUG - select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2017-10-31 14:42:26,801 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:199) DEBUG - JDBC Driver --> mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 )
2017-10-31 14:42:26,801 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200) DEBUG - JDBC Name   --> MySQL Connector Java
2017-10-31 14:42:26,801 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:202) DEBUG - JDBC URL    --> jdbc:mysql://127.0.0.1:3306/nutzbook
2017-10-31 14:42:26,882 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_client=utf8
2017-10-31 14:42:26,882 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_connection=utf8
2017-10-31 14:42:26,882 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_database=utf8
2017-10-31 14:42:26,883 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_filesystem=binary
2017-10-31 14:42:26,883 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_results=
2017-10-31 14:42:26,883 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_server=utf8
2017-10-31 14:42:26,883 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_set_system=utf8
2017-10-31 14:42:26,883 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:212) DEBUG - Mysql : character_sets_dir=C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\
2017-10-31 14:42:26,886 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:219) DEBUG - Mysql : binlog_format=ROW
2017-10-31 14:42:26,886 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:226) DEBUG - Mysql : database=nutzbook
2017-10-31 14:42:26,888 org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:232) DEBUG - Mysql : user=root@localhost
2017-10-31 14:42:26,919 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:221) DEBUG - Database info --> MYSQL:[MySQL - 5.7.17-log]
2017-10-31 14:42:26,926 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 15 resource by src( com/chniccs/nutzdemo/ ) , regex( ^.+[.]class$ )
2017-10-31 14:42:26,990 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) DEBUG - SELECT COUNT(*) FROM t_user 
2017-10-31 14:42:26,992 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'nutQuartzCronJobFactory'<class com.chniccs.nutzdemo.quartz.NutQuartzCronJobFactory>
2017-10-31 14:42:26,992 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=nutQuartzCronJobFactory
2017-10-31 14:42:26,992 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(nutQuartzCronJobFactory) in AnnotationIocLoader(packages=[com.chniccs.nutzdemo])
2017-10-31 14:42:26,992 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'nutQuartzCronJobFactory'<class com.chniccs.nutzdemo.quartz.NutQuartzCronJobFactory>
2017-10-31 14:42:26,992 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class com.chniccs.nutzdemo.quartz.NutQuartzCronJobFactory without AOP
2017-10-31 14:42:26,992 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'nutQuartzCronJobFactory' to [app] 
2017-10-31 14:42:26,994 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
2017-10-31 14:42:26,994 org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) DEBUG - name=scheduler not found, search for type=org.quartz.Scheduler
2017-10-31 14:42:26,994 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=conf
2017-10-31 14:42:26,994 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:26,994 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2017-10-31 14:42:26,994 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:26,995 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=emailAuthenticator
2017-10-31 14:42:26,996 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(emailAuthenticator) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:26,996 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2017-10-31 14:42:26,997 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:26,997 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=htmlEmail
2017-10-31 14:42:27,000 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(htmlEmail) in JsonLoader(paths=[ioc/])
2017-10-31 14:42:27,000 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(cleanNonActiveUserJob) in AnnotationIocLoader(packages=[com.chniccs.nutzdemo])
2017-10-31 14:42:27,001 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(nutQuartzCronJobFactory) in AnnotationIocLoader(packages=[com.chniccs.nutzdemo])
2017-10-31 14:42:27,001 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(nutQuartzJobFactory) in AnnotationIocLoader(packages=[com.chniccs.nutzdemo])
2017-10-31 14:42:27,001 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(userProfileModule) in AnnotationIocLoader(packages=[com.chniccs.nutzdemo])
2017-10-31 14:42:27,001 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(userModule) in AnnotationIocLoader(packages=[com.chniccs.nutzdemo])
2017-10-31 14:42:27,001 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(emailService) in AnnotationIocLoader(packages=[com.chniccs.nutzdemo])
2017-10-31 14:42:27,001 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=txREPEATABLE_READ
2017-10-31 14:42:27,002 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(txREPEATABLE_READ) in TransIocLoader@1956577044
2017-10-31 14:42:27,002 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=txSERIALIZABLE
2017-10-31 14:42:27,002 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(txSERIALIZABLE) in TransIocLoader@1956577044
2017-10-31 14:42:27,003 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=txNONE
2017-10-31 14:42:27,003 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(txNONE) in TransIocLoader@1956577044
2017-10-31 14:42:27,003 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=txREAD_UNCOMMITTED
2017-10-31 14:42:27,003 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(txREAD_UNCOMMITTED) in TransIocLoader@1956577044
2017-10-31 14:42:27,003 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=txREAD_COMMITTED
2017-10-31 14:42:27,004 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:169) DEBUG - Found IocObject(txREAD_COMMITTED) in TransIocLoader@1956577044
2017-10-31 14:42:27,004 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'nutQuartzCronJobFactory' from [app] 
2017-10-31 14:42:27,005 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.ioc.IocException: [nutQuartzCronJobFactory, class:org.quartz.Scheduler] # none ioc bean match class=org.quartz.Scheduler
	at org.nutz.ioc.impl.NutIoc.getByType(NutIoc.java:399)
	at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:66)
	at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:31)
	at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:56)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at com.chniccs.nutzdemo.MainSetup.init(MainSetup.java:35)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:277)
	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:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1702)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	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:748)
2017-10-31 14:42:27,012 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:127) ERROR - try to depose ioc
2017-10-31 14:42:27,014 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:255) INFO  - org.nutz.ioc.impl.NutIoc@1597505398 is closing. startup date [17-10-31 14:42:26.308]
2017-10-31 14:42:27,014 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) DEBUG - Depose object 'conf' ...
2017-10-31 14:42:27,015 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:108) DEBUG - Depose object 'dao' ...
2017-10-31 14:42:27,015 org.nutz.ioc.impl.ScopeContext.clear(ScopeContext.java:113) DEBUG - Depose object 'dataSource' ...
2017-10-31 14:42:27,018 com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1444) INFO  - {dataSource-1} closed
31-Oct-2017 14:42:27.019 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
2017-10-31 14:42:27,019 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:262) INFO  - org.nutz.ioc.impl.NutIoc@1597505398 is deposed. startup date [17-10-31 14:42:26.308]
31-Oct-2017 14:42:27.020 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
31-Oct-2017 14:42:27.024 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
31-Oct-2017 14:42:27.024 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[2017-10-31 02:42:27,034] Artifact nutzdemo:war exploded: Error during artifact deployment. See server log for details.
13 回复

none ioc bean match class=org.quartz.Scheduler

报这个

你的iocby没写全

@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
        // 这个package下所有带@IocBean注解的类,都会登记上
        "*anno", "com.chniccs.nutzdemo",
        "*tx", // 事务拦截 aop
        "*async", // 异步执行aop
        "*quartz" // 集成quartz的ioc配置
        })

@wendal 加上了,现在报这个错了

[nutQuartzCronJobFactory] # FAIL to create Ioc Bean name=[nutQuartzCronJobFactory]

贴完整报错信息

@wendal
我这边用的是idea

2017-10-31 15:11:56,558 com.chniccs.nutzdemo.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35) DEBUG - job define name=com.chniccs.nutzdemo.quartz.job.CleanNonActiveUserJob cron=0 0/2 * * * ?
2017-10-31 15:11:56,560 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) DEBUG - Remove object 'nutQuartzCronJobFactory' from [app] 
2017-10-31 15:11:56,561 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) ERROR - Error happend during start serivce!
org.nutz.ioc.IocException: [nutQuartzCronJobFactory] # FAIL to create Ioc Bean name=[nutQuartzCronJobFactory]
	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.ioc.impl.NutIoc.get(NutIoc.java:146)
	at com.chniccs.nutzdemo.MainSetup.init(MainSetup.java:35)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:277)
	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:87)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1702)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)
	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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	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:748)
Caused by: java.lang.RuntimeException: java.lang.IncompatibleClassChangeError: Implementing class
	at org.nutz.lang.Lang.wrapThrow(Lang.java:181)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:180)
	at org.nutz.ioc.trigger.MethodEventTrigger.trigger(MethodEventTrigger.java:21)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:72)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
	... 57 more
Caused by: java.lang.IncompatibleClassChangeError: Implementing class
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2277)
	at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:811)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1254)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
	at com.chniccs.nutzdemo.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:42)
	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.ioc.trigger.MethodEventTrigger.trigger(MethodEventTrigger.java:18)
	... 59 more
2017-10-31 15:11:56,570 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:127) ERROR - try to depose ioc

quartz 换成新版 2.3.0

@wendal 还是报同样的错
有个点,我这边NutQuartzJobFactory类使用下载的案例中的代码报错,所以重载了方法
会不会因为这个引起问题?
以下是代码

@IocBean(args="refer:$ioc")
public class NutQuartzJobFactory implements JobFactory {

	private static final Log log = Logs.get();

	protected SimpleJobFactory simple = new SimpleJobFactory();

	protected Ioc ioc;
	

	public NutQuartzJobFactory(Ioc ioc) {
		this.ioc = ioc;
	}


	public Job newJob(TriggerFiredBundle bundle) throws SchedulerException {
		try {
			return (Job) ioc.get(bundle.getJobDetail().getJobClass());
		}
		catch (Exception e) {
			log.warn("Not ioc bean? fallback to SimpleJobFactory", e);
			return simple.newJob(bundle);
		}
	}

用插件里面的类,那是好的,不需要改.

@wendal
案例中与我这里的区别是这个抽象方法

public Job newJob(TriggerFiredBundle bundle, Scheduler scheduler) throws SchedulerException {
		try {
			return ioc.get(bundle.getJobDetail().getJobClass());
		}
		catch (Exception e) {
			log.warn("Not ioc bean? fallback to SimpleJobFactory", e);
			return simple.newJob(bundle, scheduler);
		}
	}

我这边JobFactory 接口里的方法是这样的,参数少一个

public interface JobFactory {
    Job newJob(TriggerFiredBundle var1) throws SchedulerException;
}

quartz版本的问题

@wendal quartz 版本已经切换到了2.3.0了,不过还是报上面的错,我已经把代码上传到码云了,烦请您抽空看下https://gitee.com/chniccs/nutzdemo

给你发pull request了, 合并一下吧

@wendal 谢谢,可以了。

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