NutzCN Logo
问答 独立跑定时任务应用报错
发布于 303天前 作者 Wizzercn 259 次浏览 复制 上一个帖子 下一个帖子
标签:
D:\java\goyh\DevDir\task>cd classes

D:\java\goyh\DevDir\task\classes>java  com.aebiz.App
2016-10-21 9:51:30.6 WARN [main] !!You are using default SystemLog! Don't use it in Production environment!!
2016-10-21 9:51:30.414 DEBUG [main] Locations for Scans:
[Dir[path=D:\java\goyh\DevDir\task\classes], Jar[path=D:\java\goyh\DevDir\task\lib\nutz-1.r.58.jar], Jar[path=C:\Program Files\Java\jdk1.8.0_91\lib\dt.jar], Jar[path=C:\Program Files\Java\jdk1.8.0_91\lib\tools.jar], Jar[path=D:\java\goyh\DevDir\task\lib\commons-lang3-3.4.jar], Jar[path=D:\java\goyh\DevDir\task\lib\commons-logging-1.2.jar], Jar[path=D:\java\goyh\DevDir\task\lib\druid-1.0.26.jar], Jar[path=D:\java\goyh\DevDir\task\lib\easyocr-3.0.4-RELEASE.jar], Jar[path=D:\java\goyh\DevDir\task\lib\htmllexer-2.1.jar], Jar[path=D:\java\goyh\DevDir\task\lib\htmlparser-2.1.jar], Jar[path=D:\java\goyh\DevDir\task\lib\httpclient-4.5.2.jar], Jar[path=D:\java\goyh\DevDir\task\lib\httpcore-4.4.4.jar], Jar[path=D:\java\goyh\DevDir\task\lib\mysql-connector-java-5.1.39.jar], Jar[path=D:\java\goyh\DevDir\task\lib\nanohttpd-2.2.0.jar], Jar[path=D:\java\goyh\DevDir\task\lib\nutz-integration-quartz-1.r.58.jar], Jar[path=D:\java\goyh\DevDir\task\lib\quartz-2.2.3.jar]]
2016-10-21 9:51:30.428 DEBUG [main] Found 4 resource by src( config/ioc/ ) , regex( ^(.+[.])(js|json)$ )
2016-10-21 9:51:30.430 DEBUG [main] loading ioc js config from [dao.json]
2016-10-21 9:51:30.469 DEBUG [main] Using 94 castor for Castors
2016-10-21 9:51:30.471 DEBUG [main] loading ioc js config from [tesseract.json]
2016-10-21 9:51:30.472 DEBUG [main] Loaded 4 bean define from path=[config/ioc/] --> [conf, dao, tesseract, dataSource]
2016-10-21 9:51:30.488 DEBUG [main] Found 30 resource by src( com/aebiz/ ) , regex( ^.+[.]class$ )
2016-10-21 9:51:30.505 DEBUG [main] Found @IocBean : class com.aebiz.common.util.DateUtil
2016-10-21 9:51:30.508 DEBUG [main] Found @IocBean : class com.aebiz.goyh.job.nj.NjwzService
2016-10-21 9:51:30.515 DEBUG [main] Found @IocBean : class com.aebiz.goyh.job.NjwztxJob
2016-10-21 9:51:30.543 DEBUG [main] Found @IocBean : class com.aebiz.goyh.ocr.OCR
2016-10-21 9:51:30.545 DEBUG [main] Found @IocBean : class com.aebiz.goyh.ocr.Tesseract
2016-10-21 9:51:30.547 INFO [main] Found 5 classes in 1 base-packages!
beans = ["tesseract", "njwztxJob", "dateUtil", "njwzService", "oCR"]
2016-10-21 9:51:30.549 DEBUG [main] found org.nutz.integration.quartz.QuartzIocLoader -- org.nutz.integration.quartz.QuartzIocLoader
2016-10-21 9:51:30.554 WARN [main] Found Duplicate beanName=tesseract, pls check you config! loader=class org.nutz.ioc.loader.annotation.AnnotationIocLoader
2016-10-21 9:51:30.559 INFO [main] NutIoc init begin ...
2016-10-21 9:51:30.560 INFO [main] ... NutIoc init complete
2016-10-21 9:51:30.561 DEBUG [main] Get 'dao'<interface org.nutz.dao.Dao>
2016-10-21 9:51:30.564 DEBUG [main] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2016-10-21 9:51:30.565 DEBUG [main]      >> Load definition name=dao
2016-10-21 9:51:30.567 DEBUG [main] Loading define for name=dao
2016-10-21 9:51:30.572 DEBUG [main] Found IocObject(dao) in JsonLoader(paths=[config/ioc/])
2016-10-21 9:51:30.573 DEBUG [main]      >> Make...'dao'<interface org.nutz.dao.Dao>
2016-10-21 9:51:30.582 DEBUG [main] Load class org.nutz.dao.impl.NutDao without AOP
2016-10-21 9:51:30.583 DEBUG [main] Save object 'dao' to [app]
2016-10-21 9:51:30.585 DEBUG [main] Get 'dataSource'<>
2016-10-21 9:51:30.586 DEBUG [main]      >> Load definition name=dataSource
2016-10-21 9:51:30.587 DEBUG [main] Loading define for name=dataSource
2016-10-21 9:51:30.596 DEBUG [main] Found IocObject(dataSource) in JsonLoader(paths=[config/ioc/])
2016-10-21 9:51:30.596 DEBUG [main]      >> Make...'dataSource'<>
2016-10-21 9:51:30.613 DEBUG [main] Load class com.alibaba.druid.pool.DruidDataSource without AOP
2016-10-21 9:51:30.614 DEBUG [main] Save object 'dataSource' to [app]
2016-10-21 9:51:30.643 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:30.644 DEBUG [main]      >> Load definition name=conf
2016-10-21 9:51:30.645 DEBUG [main] Loading define for name=conf
2016-10-21 9:51:30.646 DEBUG [main] Found IocObject(conf) in JsonLoader(paths=[config/ioc/])
2016-10-21 9:51:30.646 DEBUG [main]      >> Make...'conf'<>
2016-10-21 9:51:30.647 DEBUG [main] Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2016-10-21 9:51:30.648 DEBUG [main] Save object 'conf' to [app]
2016-10-21 9:51:30.656 DEBUG [main] Found 6 resource by src( config/custom/ ) , regex( ^.+[.]properties$ )
2016-10-21 9:51:30.660 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:30.660 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:30.662 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:30.663 DEBUG [main] Get 'conf'<>
十月 21, 2016 9:51:30 上午 com.alibaba.druid.pool.DruidDataSource info
信息: {dataSource-1} inited
2016-10-21 9:51:30.757 DEBUG [main] Get 'dataSource'<>
2016-10-21 9:51:30.762 DEBUG [main] NutDao[_selfId=0] init ...
2016-10-21 9:51:30.780 INFO [main] Init file-pool by: C:\Users\wizzer/.nutz/tmp/dao/ [200000]
2016-10-21 9:51:30.781 DEBUG [main] file-pool.home: 'C:\Users\wizzer\.nutz\tmp\dao'
2016-10-21 9:51:30.782 INFO [main] file-pool.cursor: 0
2016-10-21 9:51:30.791 DEBUG [main] Jdbcs init complete
2016-10-21 9:51:30.791 INFO [main] Get Connection from DataSource for JdbcExpert, if I lock at here, check your database server and configure
2016-10-21 9:51:31.256 DEBUG [main] JDBC Driver --> mysql-connector-java-5.1.39 ( Revision: 3289a357af6d09ecc1a10fd3c26e95183e5790ad )
2016-10-21 9:51:31.259 DEBUG [main] JDBC Name   --> MySQL Connector Java
2016-10-21 9:51:31.262 DEBUG [main] JDBC URL    --> jdbc:mysql://192.168.1.99:3316/goyh?useUnicode=true&characterEncoding=utf8
2016-10-21 9:51:31.281 DEBUG [main] Mysql : character_set_client=utf8
2016-10-21 9:51:31.282 DEBUG [main] Mysql : character_set_connection=utf8
2016-10-21 9:51:31.284 DEBUG [main] Mysql : character_set_database=utf8
2016-10-21 9:51:31.285 DEBUG [main] Mysql : character_set_filesystem=binary
2016-10-21 9:51:31.286 DEBUG [main] Mysql : character_set_results=
2016-10-21 9:51:31.287 DEBUG [main] Mysql : character_set_server=utf8
2016-10-21 9:51:31.288 DEBUG [main] Mysql : character_set_system=utf8
2016-10-21 9:51:31.289 DEBUG [main] Mysql : character_sets_dir=/usr/share/mysql/charsets/
2016-10-21 9:51:31.299 DEBUG [main] Mysql : database=goyh
2016-10-21 9:51:31.308 DEBUG [main] Mysql : user=root@192.168.1.98
2016-10-21 9:51:31.343 DEBUG [main] Database info --> MYSQL:[MySQL - 5.6.32]
2016-10-21 9:51:31.355 DEBUG [main] Found 10 resource by src( com/aebiz/goyh/models/ ) , regex( ^.+[.]class$ )
2016-10-21 9:51:31.476 DEBUG [main] Get 'tesseract'<class com.aebiz.goyh.ocr.Tesseract>
2016-10-21 9:51:31.478 DEBUG [main]      >> Load definition name=tesseract
2016-10-21 9:51:31.481 DEBUG [main] Loading define for name=tesseract
2016-10-21 9:51:31.483 DEBUG [main] Found IocObject(tesseract) in JsonLoader(paths=[config/ioc/])
2016-10-21 9:51:31.484 DEBUG [main]      >> Make...'tesseract'<class com.aebiz.goyh.ocr.Tesseract>
2016-10-21 9:51:31.488 DEBUG [main] Load class com.aebiz.goyh.ocr.Tesseract without AOP
2016-10-21 9:51:31.489 DEBUG [main] Save object 'tesseract' to [app]
2016-10-21 9:51:31.493 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.494 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.497 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.499 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.501 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.502 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.504 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.505 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.506 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.507 DEBUG [main] Get 'conf'<>
2016-10-21 9:51:31.508 DEBUG [main] Get 'quartzManager'<interface org.nutz.integration.quartz.QuartzManager>
2016-10-21 9:51:31.509 DEBUG [main]      >> Load definition name=quartzManager
2016-10-21 9:51:31.510 DEBUG [main] Loading define for name=quartzManager
2016-10-21 9:51:31.512 DEBUG [main] Found IocObject(quartzManager) in QuartzIocLoader@364604394
2016-10-21 9:51:31.513 DEBUG [main]      >> Make...'quartzManager'<interface org.nutz.integration.quartz.QuartzManager>
2016-10-21 9:51:31.518 DEBUG [main] Load class org.nutz.integration.quartz.QuartzManagerImpl without AOP
2016-10-21 9:51:31.519 DEBUG [main] Save object 'quartzManager' to [app]
2016-10-21 9:51:31.521 DEBUG [main] Get 'scheduler'<>
2016-10-21 9:51:31.521 DEBUG [main]      >> Load definition name=scheduler
2016-10-21 9:51:31.523 DEBUG [main] Loading define for name=scheduler
2016-10-21 9:51:31.524 DEBUG [main] Found IocObject(scheduler) in QuartzIocLoader@364604394
2016-10-21 9:51:31.526 DEBUG [main]      >> Make...'scheduler'<>
2016-10-21 9:51:31.527 DEBUG [main] Save object 'scheduler' to [app]
2016-10-21 9:51:31.540 DEBUG [main] Remove object 'scheduler' from [app]
2016-10-21 9:51:31.541 DEBUG [main] Remove object 'quartzManager' from [app]
Couldn't start server:
org.nutz.ioc.IocException: [quartzManager, scheduler] # FAIL to create Ioc Bean name=[scheduler]
5 回复

没看到完整报错信息

[DEBUG] 21 十月 10:23:26.793 上午 main [org.nutz.ioc.impl.NutIoc]
Get 'conf'<>

[DEBUG] 21 十月 10:23:26.793 上午 main [org.nutz.ioc.impl.NutIoc]
Get 'conf'<>

[DEBUG] 21 十月 10:23:26.794 上午 main [org.nutz.ioc.impl.NutIoc]
Get 'conf'<>

[DEBUG] 21 十月 10:23:26.795 上午 main [org.nutz.ioc.impl.NutIoc]
Get 'conf'<>

[DEBUG] 21 十月 10:23:26.796 上午 main [org.nutz.ioc.impl.NutIoc]
Get 'conf'<>

[DEBUG] 21 十月 10:23:26.797 上午 main [org.nutz.ioc.impl.NutIoc]
Get 'quartzManager'<interface org.nutz.integration.quartz.QuartzManager>

[DEBUG] 21 十月 10:23:26.798 上午 main [org.nutz.ioc.impl.NutIoc]
	 >> Load definition name=quartzManager

[DEBUG] 21 十月 10:23:26.799 上午 main [org.nutz.ioc.loader.map.MapLoader]
Loading define for name=quartzManager

[DEBUG] 21 十月 10:23:26.800 上午 main [org.nutz.ioc.loader.combo.ComboIocLoader]
Found IocObject(quartzManager) in QuartzIocLoader@558922244

[DEBUG] 21 十月 10:23:26.802 上午 main [org.nutz.ioc.impl.NutIoc]
	 >> Make...'quartzManager'<interface org.nutz.integration.quartz.QuartzManager>

[DEBUG] 21 十月 10:23:26.805 上午 main [org.nutz.ioc.aop.impl.DefaultMirrorFactory]
Load class org.nutz.integration.quartz.QuartzManagerImpl without AOP

[DEBUG] 21 十月 10:23:26.806 上午 main [org.nutz.ioc.impl.ScopeContext]
Save object 'quartzManager' to [app] 

[DEBUG] 21 十月 10:23:26.807 上午 main [org.nutz.ioc.impl.NutIoc]
Get 'scheduler'<>

[DEBUG] 21 十月 10:23:26.808 上午 main [org.nutz.ioc.impl.NutIoc]
	 >> Load definition name=scheduler

[DEBUG] 21 十月 10:23:26.808 上午 main [org.nutz.ioc.loader.map.MapLoader]
Loading define for name=scheduler

[DEBUG] 21 十月 10:23:26.810 上午 main [org.nutz.ioc.loader.combo.ComboIocLoader]
Found IocObject(scheduler) in QuartzIocLoader@558922244

[DEBUG] 21 十月 10:23:26.811 上午 main [org.nutz.ioc.impl.NutIoc]
	 >> Make...'scheduler'<>

[DEBUG] 21 十月 10:23:26.812 上午 main [org.nutz.ioc.impl.ScopeContext]
Save object 'scheduler' to [app] 

[DEBUG] 21 十月 10:23:26.820 上午 main [org.nutz.ioc.impl.ScopeContext]
Remove object 'scheduler' from [app] 

[DEBUG] 21 十月 10:23:26.821 上午 main [org.nutz.ioc.impl.ScopeContext]
Remove object 'quartzManager' from [app] 


public static void main(String[] args) {
        try {
            ComboIocLoader loader = new ComboIocLoader(
                    new String[]{
                            "*json", "config/ioc/", "*anno", "com.aebiz", "*quartz"}
            );
            Globals.ioc = new NutIoc(loader);
            Globals.dao = Globals.ioc.get(Dao.class);
            Daos.createTablesInPackage(Globals.dao, "com.aebiz.goyh.models", false);
            Globals.tesseract = Globals.ioc.get(Tesseract.class);
            manager = Globals.ioc.get(QuartzManager.class);
            manager.clear();
            new App();
//            NjwzService njwzService=Globals.ioc.get(NjwzService.class);
//            njwzService.dataReport("fe7eba6447354254939eba1a103dae64");
        } catch (IOException ioe) {
            System.err.println("Couldn't start server:\n" + ioe);
        } catch (Exception e) {
            System.err.println("Couldn't start server:\n" + e);
        }
    }

依然没有完整报错信息

@Wizzercn 要 e.printStack 啊

ok了 是少了slf4j-api-1.7.21.jar

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