NutzCN Logo
问答 nutz book启动,谢谢
发布于 205天前 作者 qq_1d4ab5b1 229 次浏览 复制 上一个帖子 下一个帖子
标签:
[ERROR] 11:07:06.520 org.nutz.boot.NbApp.execute(NbApp.java:218) - something happen!!
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1967)
	at org.nutz.boot.tools.PropDocReader.addClass(PropDocReader.java:67)
	at org.nutz.boot.tools.PropDocReader.load(PropDocReader.java:35)
	at org.nutz.boot.NbApp.prepare(NbApp.java:278)
	at org.nutz.boot.NbApp.execute(NbApp.java:195)
	at org.nutz.boot.NbApp.run(NbApp.java:177)
	at io.nutz.demo.MainLauncher.main(MainLauncher.java:31)
[ERROR] 11:07:06.522 org.nutz.boot.NbApp.run(NbApp.java:186) - something happen
java.lang.NullPointerException
	at org.nutz.boot.AppContext.getBeans(AppContext.java:318)
	at org.nutz.boot.AppContext.stopServers(AppContext.java:305)
	at org.nutz.boot.NbApp._shutdown(NbApp.java:225)
	at org.nutz.boot.NbApp.run(NbApp.java:183)
	at io.nutz.demo.MainLauncher.main(MainLauncher.java:31)

4 回复

没其它日志了?

这是所有的,写着写着就启不动了。。

[INFO ] 11:07:06.212 org.nutz.boot.banner.SimpleBannerPrinter.printBanner(SimpleBannerPrinter.java:34) - 
 _   _ ______                                      ___   
| \ | || ___ \  ______ ______ ______ ______ ______| \ \  
|  \| || |_/ / |______|______|______|______|______| |\ \ 
| . ` || ___ \  ______ ______ ______ ______ ______| | > >
| |\  || |_/ / |______|______|______|______|______| |/ / 
\_| \_/\____/                                     |_/_/  
  
:: Nutz Boot ::   (2.2-SNAPSHOT)

[DEBUG] 11:07:06.267 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=80 time use 45ms
[DEBUG] 11:07:06.273 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
[DEBUG] 11:07:06.273 org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:114) - load properties from jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-core/2.2-SNAPSHOT/nutzboot-core-2.2-SNAPSHOT.jar!/custom/emtry.properties
[DEBUG] 11:07:06.274 org.nutz.boot.config.impl.PropertiesConfigureLoader.init(PropertiesConfigureLoader.java:40) - load C:\workspace\work6\demo\target\classes\application.properties
[DEBUG] 11:07:06.299 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 11:07:06.300 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [emtry.json]
[DEBUG] 11:07:06.300 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 0 bean define from path=[ioc/] --> []
[DEBUG] 11:07:06.356 org.nutz.castor.Castors.reload(Castors.java:116) - Using 101 castor for Castors
[DEBUG] 11:07:06.369 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[INFO ] 11:07:06.375 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) -  > scan 'io.nutz.demo'
[DEBUG] 11:07:06.388 org.nutz.resource.Scans.scan(Scans.java:280) - Found 20 resource by src( io/nutz/demo/ ) , regex( ^.+[.]class$ )
[INFO ] 11:07:06.403 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'sampleJob                               ' - io.nutz.demo.job.SampleJob
[INFO ] 11:07:06.413 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'sampleJob2                              ' - io.nutz.demo.job.SampleJob2
[INFO ] 11:07:06.432 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'mainLauncher                            ' - io.nutz.demo.MainLauncher
[INFO ] 11:07:06.438 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'timeModule                              ' - io.nutz.demo.module.TimeModule
[INFO ] 11:07:06.445 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'bookServiceImpl                         ' - io.nutz.demo.service.impl.BookServiceImpl
[INFO ] 11:07:06.450 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'wan1ServiceImpl                         ' - io.nutz.demo.service.impl.wan1ServiceImpl
[INFO ] 11:07:06.451 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) -  > scan 'org.nutz.boot.starter'
[DEBUG] 11:07:06.454 org.nutz.resource.Scans.scan(Scans.java:280) - Found 24 resource by src( org/nutz/boot/starter/ ) , regex( ^.+[.]class$ )
[INFO ] 11:07:06.470 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'swaggerServletStarter                   ' - org.nutz.boot.starter.swagger.SwaggerServletStarter
[DEBUG] 11:07:06.474 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : SwaggerServletStarter.createSwagger(...) define as name=swagger
[DEBUG] 11:07:06.475 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : SwaggerServletStarter.createSwaggerInfo(...) define as name=swaggerInfo
[INFO ] 11:07:06.476 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'jettyStarter                            ' - org.nutz.boot.starter.jetty.JettyStarter
[INFO ] 11:07:06.488 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'whaleFilterStarter                      ' - org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter
[DEBUG] 11:07:06.490 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : WhaleFilterStarter.createNutFilter(...) define as name=whaleFilter
[INFO ] 11:07:06.493 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'nutFilterStarter                        ' - org.nutz.boot.starter.nutz.mvc.NutFilterStarter
[DEBUG] 11:07:06.494 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutFilterStarter.createNutFilter(...) define as name=nutFilter
[INFO ] 11:07:06.494 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'nutDaoStarter                           ' - org.nutz.boot.starter.nutz.dao.NutDaoStarter
[DEBUG] 11:07:06.500 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.createCacheSerializer(...) define as name=daoCacheSerializer
[DEBUG] 11:07:06.501 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.createDaoCacheInterceptor(...) define as name=daoCacheInterceptor
[DEBUG] 11:07:06.501 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.getSqlManager(...) define as name=sqlManager
[DEBUG] 11:07:06.501 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.getDao(...) define as name=dao
[INFO ] 11:07:06.504 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'druidWebStatFilterStarter               ' - org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter
[INFO ] 11:07:06.504 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'druidWebStatServletStarter              ' - org.nutz.boot.starter.jdbc.DruidWebStatServletStarter
[INFO ] 11:07:06.505 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'dataSourceStarter                       ' - org.nutz.boot.starter.jdbc.DataSourceStarter
[DEBUG] 11:07:06.505 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : DataSourceStarter.createDruidDataSource(...) define as name=druidDataSource
[DEBUG] 11:07:06.506 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : DataSourceStarter.createHikariCPDataSource(...) define as name=hikariDataSource
[DEBUG] 11:07:06.506 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : DataSourceStarter.getDataSource(...) define as name=dataSource
[INFO ] 11:07:06.506 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'jedisStarter                            ' - org.nutz.boot.starter.redis.JedisStarter
[INFO ] 11:07:06.506 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'quartzStarter                           ' - org.nutz.boot.starter.quartz.QuartzStarter
[INFO ] 11:07:06.508 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add '$views_beetl                            ' - org.nutz.boot.starter.beetl.BeetlViewMakerStarter
[INFO ] 11:07:06.511 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'beetlGroupTemplateStarter               ' - org.nutz.boot.starter.beetl.BeetlGroupTemplateStarter
[DEBUG] 11:07:06.512 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : BeetlGroupTemplateStarter.getGroupTemplate(...) define as name=groupTemplate
[DEBUG] 11:07:06.513 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-swagger/2.2-SNAPSHOT/nutzboot-starter-swagger-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 11:07:06.513 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-jetty/2.2-SNAPSHOT/nutzboot-starter-jetty-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 11:07:06.514 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-nutz-mvc/2.2-SNAPSHOT/nutzboot-starter-nutz-mvc-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 11:07:06.514 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-nutz-dao/2.2-SNAPSHOT/nutzboot-starter-nutz-dao-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 11:07:06.514 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-jdbc/2.2-SNAPSHOT/nutzboot-starter-jdbc-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 11:07:06.515 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-redis/2.2-SNAPSHOT/nutzboot-starter-redis-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 11:07:06.515 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-quartz/2.2-SNAPSHOT/nutzboot-starter-quartz-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 11:07:06.515 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:397) - Found jar:file:/C:/Users/Administrator/.m2/repository/org/nutz/nutzboot-starter-beetl/2.2-SNAPSHOT/nutzboot-starter-beetl-2.2-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[ERROR] 11:07:06.520 org.nutz.boot.NbApp.execute(NbApp.java:218) - something happen!!
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1967)
	at org.nutz.boot.tools.PropDocReader.addClass(PropDocReader.java:67)
	at org.nutz.boot.tools.PropDocReader.load(PropDocReader.java:35)
	at org.nutz.boot.NbApp.prepare(NbApp.java:278)
	at org.nutz.boot.NbApp.execute(NbApp.java:195)
	at org.nutz.boot.NbApp.run(NbApp.java:177)
	at io.nutz.demo.MainLauncher.main(MainLauncher.java:31)
[ERROR] 11:07:06.522 org.nutz.boot.NbApp.run(NbApp.java:186) - something happen
java.lang.NullPointerException
	at org.nutz.boot.AppContext.getBeans(AppContext.java:318)
	at org.nutz.boot.AppContext.stopServers(AppContext.java:305)
	at org.nutz.boot.NbApp._shutdown(NbApp.java:225)
	at org.nutz.boot.NbApp.run(NbApp.java:183)
	at io.nutz.demo.MainLauncher.main(MainLauncher.java:31)

哦哦哦, 我查查

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