NutzCN Logo
问答 项目突然启动不起来了,什么原因?
发布于 2872天前 作者 qq_722cb381 3370 次浏览 复制 上一个帖子 下一个帖子
标签: tomcat

运行到这就卡住了

01-10 15:08:55.338  DEBUG - [FileSqlManager.localhost-startStop-1] load 4 sql >> /youzan/youzan.sql from root=sqls
01-10 15:08:55.338  DEBUG - [NutIoc.localhost-startStop-1] Get 'dataSource'<>
01-10 15:08:55.339  DEBUG - [NutIoc.localhost-startStop-1] Get 'sqlManeger'<>
01-10 15:08:55.345  DEBUG - [NutDao.localhost-startStop-1] NutDao[_selfId=0] init ...
01-10 15:08:55.355  INFO  - [NutFilePool.localhost-startStop-1] Init file-pool by: C:\Users\zhichu/.nutz/tmp/dao/ [200000]
01-10 15:08:55.355  DEBUG - [NutFilePool.localhost-startStop-1] file-pool.home: 'C:\Users\zhichu\.nutz\tmp\dao'
01-10 15:08:55.356  INFO  - [NutFilePool.localhost-startStop-1] file-pool.cursor: 0
01-10 15:08:55.360  DEBUG - [Jdbcs.localhost-startStop-1] Jdbcs init complete
01-10 15:08:55.360  INFO  - [Jdbcs.localhost-startStop-1] Get Connection from DataSource for JdbcExpert
01-10 15:08:55.708  INFO  - [DruidDataSource.localhost-startStop-1] {dataSource-1} inited
01-10 15:08:55.718  DEBUG - [DaoSupport.localhost-startStop-1] JDBC Driver --> mysql-connector-java-5.1.36 ( Revision: 4fc1f969f740409a4e03750316df2c0e429f3dc8 )
01-10 15:08:55.718  DEBUG - [DaoSupport.localhost-startStop-1] JDBC Name   --> MySQL Connector Java
01-10 15:08:55.718  DEBUG - [DaoSupport.localhost-startStop-1] JDBC URL    --> jdbc:mysql://192.168.11.253:8210/museum?characterEncoding=utf-8
01-10 15:08:55.736  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_set_client=utf8
01-10 15:08:55.736  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_set_connection=utf8
01-10 15:08:55.736  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_set_database=utf8mb4
01-10 15:08:55.736  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_set_filesystem=binary
01-10 15:08:55.736  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_set_results=
01-10 15:08:55.737  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_set_server=latin1
01-10 15:08:55.737  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_set_system=utf8
01-10 15:08:55.737  DEBUG - [DaoSupport.localhost-startStop-1] Mysql : character_sets_dir=/usr/share/mysql/charsets/
01-10 15:08:55.739  DEBUG - [DaoSupport.localhost-startStop-1] Database info --> MYSQL:[MySQL - 5.7.9]
01-10 15:08:55.743  DEBUG - [DaoSupport.localhost-startStop-1] SqlManager Sql count=111
01-10 15:08:55.744  DEBUG - [NutIoc.localhost-startStop-1] Get 'userService'<class com.brt.museum.service.auth.impl.UserService>
01-10 15:08:55.744  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.744  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(userService) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.744  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'userService'<class com.brt.museum.service.auth.impl.UserService>
01-10 15:08:55.744  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.768  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'userService' to [app] 
01-10 15:08:55.768  DEBUG - [NutIoc.localhost-startStop-1] Get 'userDao'<>
01-10 15:08:55.768  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.769  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(userDao) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.769  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'userDao'<>
01-10 15:08:55.769  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.773  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'userDao' to [app] 
01-10 15:08:55.773  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<>
01-10 15:08:55.773  DEBUG - [NutIoc.localhost-startStop-1] Get 'userRoleDao'<>
01-10 15:08:55.773  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.774  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(userRoleDao) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.774  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'userRoleDao'<>
01-10 15:08:55.774  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.777  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'userRoleDao' to [app] 
01-10 15:08:55.778  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<>
01-10 15:08:55.778  DEBUG - [NutIoc.localhost-startStop-1] Get 'userPermissionDao'<>
01-10 15:08:55.778  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.778  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(userPermissionDao) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.778  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'userPermissionDao'<>
01-10 15:08:55.778  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.782  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'userPermissionDao' to [app] 
01-10 15:08:55.782  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<>
01-10 15:08:55.782  DEBUG - [NutIoc.localhost-startStop-1] Get 'permissionService'<class com.brt.museum.service.auth.impl.PermissionService>
01-10 15:08:55.782  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.782  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(permissionService) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.782  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'permissionService'<class com.brt.museum.service.auth.impl.PermissionService>
01-10 15:08:55.782  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.785  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'permissionService' to [app] 
01-10 15:08:55.785  DEBUG - [NutIoc.localhost-startStop-1] Get 'permissionDao'<>
01-10 15:08:55.786  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.786  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(permissionDao) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.786  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'permissionDao'<>
01-10 15:08:55.786  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.789  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'permissionDao' to [app] 
01-10 15:08:55.790  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<>
01-10 15:08:55.790  DEBUG - [NutIoc.localhost-startStop-1] Get 'roleService'<class com.brt.museum.service.auth.impl.RoleService>
01-10 15:08:55.790  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.790  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(roleService) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.790  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'roleService'<class com.brt.museum.service.auth.impl.RoleService>
01-10 15:08:55.790  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.792  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'roleService' to [app] 
01-10 15:08:55.793  DEBUG - [NutIoc.localhost-startStop-1] Get 'roleDao'<>
01-10 15:08:55.793  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.793  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(roleDao) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.793  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'roleDao'<>
01-10 15:08:55.793  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.797  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'roleDao' to [app] 
01-10 15:08:55.797  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<>
01-10 15:08:55.797  DEBUG - [NutIoc.localhost-startStop-1] Get 'rolePermissionDao'<>
01-10 15:08:55.797  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.797  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(rolePermissionDao) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.797  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'rolePermissionDao'<>
01-10 15:08:55.797  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.801  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'rolePermissionDao' to [app] 
01-10 15:08:55.801  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<>
01-10 15:08:55.801  DEBUG - [NutIoc.localhost-startStop-1] Get 'rolePermissionService'<>
01-10 15:08:55.801  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.801  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(rolePermissionService) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.801  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'rolePermissionService'<>
01-10 15:08:55.801  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.802  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'rolePermissionService' to [app] 
01-10 15:08:55.803  DEBUG - [NutIoc.localhost-startStop-1] Get 'rolePermissionDao'<>
01-10 15:08:55.803  DEBUG - [NutIoc.localhost-startStop-1] Get 'userRoleDao'<class com.brt.museum.dao.auth.impl.UserRoleDao>
01-10 15:08:55.803  DEBUG - [NutIoc.localhost-startStop-1] Get 'rolePermissionDao'<class com.brt.museum.dao.auth.impl.RolePermissionDao>
01-10 15:08:55.803  DEBUG - [NutIoc.localhost-startStop-1] Get 'cardDao'<class com.brt.museum.dao.data.impl.CardDao>
01-10 15:08:55.803  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.803  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(cardDao) in IocLoader(AnnotationIocLoader@213020757)
01-10 15:08:55.803  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'cardDao'<class com.brt.museum.dao.data.impl.CardDao>
01-10 15:08:55.803  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.806  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'cardDao' to [app] 
01-10 15:08:55.806  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<>
01-10 15:08:55.806  DEBUG - [ApplicationSetup.localhost-startStop-1] setup application...
01-10 15:08:55.807  DEBUG - [NutIoc.localhost-startStop-1] Get 'nutQuartzCronJobFactory'<class com.dgj.quartz.NutQuartzCronJobFactory>
01-10 15:08:55.807  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.807  DEBUG - [MapLoader.localhost-startStop-1] Loading define for name=nutQuartzCronJobFactory
01-10 15:08:55.807  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(nutQuartzCronJobFactory) in IocLoader(QuartzIocLoader@439673977)
01-10 15:08:55.807  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'nutQuartzCronJobFactory'<class com.dgj.quartz.NutQuartzCronJobFactory>
01-10 15:08:55.807  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.809  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'nutQuartzCronJobFactory' to [app] 
01-10 15:08:55.809  DEBUG - [NutIoc.localhost-startStop-1] Get 'scheduler'<>
01-10 15:08:55.809  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.809  DEBUG - [MapLoader.localhost-startStop-1] Loading define for name=scheduler
01-10 15:08:55.809  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(scheduler) in IocLoader(QuartzIocLoader@439673977)
01-10 15:08:55.809  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'scheduler'<>
01-10 15:08:55.809  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'scheduler' to [app] 
01-10 15:08:55.837  INFO  - [StdSchedulerFactory.localhost-startStop-1] Using default implementation for ThreadExecutor
01-10 15:08:55.853  INFO  - [SchedulerSignalerImpl.localhost-startStop-1] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
01-10 15:08:55.853  INFO  - [QuartzScheduler.localhost-startStop-1] Quartz Scheduler v.2.2.2 created.
01-10 15:08:55.854  INFO  - [RAMJobStore.localhost-startStop-1] RAMJobStore initialized.
01-10 15:08:55.854  INFO  - [QuartzScheduler.localhost-startStop-1] Scheduler meta-data: Quartz Scheduler (v2.2.2) 'DGJQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

01-10 15:08:55.854  INFO  - [StdSchedulerFactory.localhost-startStop-1] Quartz scheduler 'DGJQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
01-10 15:08:55.854  INFO  - [StdSchedulerFactory.localhost-startStop-1] Quartz scheduler version: 2.2.2
01-10 15:08:55.855  DEBUG - [NutIoc.localhost-startStop-1] Get 'jobFactory'<>
01-10 15:08:55.855  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.855  DEBUG - [MapLoader.localhost-startStop-1] Loading define for name=jobFactory
01-10 15:08:55.855  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(jobFactory) in IocLoader(QuartzIocLoader@439673977)
01-10 15:08:55.855  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'jobFactory'<>
01-10 15:08:55.855  DEBUG - [NutIoc.localhost-startStop-1] Get 'log'<interface org.nutz.aop.MethodInterceptor>
01-10 15:08:55.858  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'jobFactory' to [app] 
01-10 15:08:55.858  INFO  - [QuartzScheduler.localhost-startStop-1] JobFactory set to: com.dgj.quartz.NutQuartzJobFactory$$NUTZAOP@f118894
01-10 15:08:55.858  INFO  - [QuartzScheduler.localhost-startStop-1] Scheduler DGJQuartzScheduler_$_NON_CLUSTERED started.
01-10 15:08:55.858  DEBUG - [NutIoc.localhost-startStop-1] Get 'conf'<>
01-10 15:08:55.858  DEBUG - [QuartzSchedulerThread.DGJQuartzScheduler_QuartzSchedulerThread] batch acquisition of 0 triggers
01-10 15:08:55.858  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Load definition
01-10 15:08:55.859  DEBUG - [MapLoader.localhost-startStop-1] Loading define for name=conf
01-10 15:08:55.859  DEBUG - [ComboIocLoader.localhost-startStop-1] Found IocObject(conf) in IocLoader(JsonLoader@1974344851)
01-10 15:08:55.859  DEBUG - [NutIoc.localhost-startStop-1] 	 >> Make...'conf'<>
01-10 15:08:55.859  DEBUG - [DefaultMirrorFactory.localhost-startStop-1] class org.nutz.ioc.impl.PropertiesProxy without AOP
01-10 15:08:55.859  DEBUG - [ScopeContext.localhost-startStop-1] Save object 'conf' to [app] 
01-10 15:08:55.862  DEBUG - [LoggingMethodInterceptor.localhost-startStop-1] [beforeInvoke] Obj = [com.dgj.quartz.NutQuartzCronJobFactory$$NUTZAOP] , Method = public void com.dgj.quartz.NutQuartzCronJobFactory.init() throws java.lang.Exception , args = []
01-10 15:08:55.863  DEBUG - [NutQuartzCronJobFactory.localhost-startStop-1] job define name=com.brt.museum.service.job.Test cron=0 0 * * * ?
01-10 15:08:55.872  DEBUG - [QuartzSchedulerThread.DGJQuartzScheduler_QuartzSchedulerThread] batch acquisition of 0 triggers
01-10 15:08:55.872  DEBUG - [LoggingMethodInterceptor.localhost-startStop-1] [afterInvoke] Obj = [com.dgj.quartz.NutQuartzCronJobFactory$$NUTZAOP] , Return = null , Method = public void com.dgj.quartz.NutQuartzCronJobFactory.init() throws java.lang.Exception , args = []
01-10 15:08:55.872  DEBUG - [NutIoc.localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
5 回复

看上去已经进入MainSetup.init方法了? 看看卡在哪一行

debug了一下 卡在 Daos.createTablesInPackage(dao, "com.brt.nutz", false); 这行了,第一次遇到这个问题

public void init(NutConfig config) {
		log.debug("setup application...");
		Ioc ioc = config.getIoc();
		ioc.get(NutQuartzCronJobFactory.class);
		Dao dao = config.getIoc().get(Dao.class);
		Daos.createTablesInPackage(dao, "com.brt.nutz", false);
		initData();
	}

@wendal 我把这行屏蔽就可以了,这是什么问题?

@qq_722cb381 如果本地能重现的,逐行debug,具体卡在什么地方

@wendal 应该是 这行 这个参数 (com.brt.nutz)导致的,刚刚不小心拖拽了下项目上的这个包,但是现在结构也没有问题,包路径也对,我在深层的debug看看

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