在service层调用fetch报错,按帐号(String类型)查询一条记录,报错
调用代码,其中“123” 直接给字符串,还是报错,按理来说应该是null
public String find(String account, String password) {
User user = fetch("123");
if (user==null)
return null;
String _password = MD5Util.MD5(password,user.getSalt());
if (_password.equals(user.getPassword()))
return user.getId();
return null;
}
在这个service层调用dao().insert(user);插入是成功的
日志:
2017-09-11 15:22:33,691 [INFO] org.nutz.mvc.NutFilter._init(NutFilter.java:85) - NutFilter[nutz] starting ...
2017-09-11 15:22:33,727 [DEBUG] org.nutz.resource.Scans.printLocations(Scans.java:521) - Locations count=4 time use 5ms
2017-09-11 15:22:33,738 [DEBUG] org.nutz.resource.Scans.printLocations(Scans.java:521) - Locations count=11 time use 11ms
2017-09-11 15:22:33,883 [DEBUG] org.nutz.castor.Castors.reload(Castors.java:115) - Using 95 castor for Castors
2017-09-11 15:22:33,920 [DEBUG] org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) - Loading by class org.nutz.mvc.impl.NutLoading
2017-09-11 15:22:33,924 [INFO] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.62
2017-09-11 15:22:33,924 [INFO] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ...
2017-09-11 15:22:33,924 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) - Web Container Information:
2017-09-11 15:22:33,925 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) - - Default Charset : GBK
2017-09-11 15:22:33,925 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) - - Current . path : D:\Tomcat\apache-tomcat-9.0.0.M17\bin\.
2017-09-11 15:22:33,925 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) - - Java Version : 1.8.0_101
2017-09-11 15:22:33,926 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) - - File separator : \
2017-09-11 15:22:33,926 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) - - Timezone : GMT+08:00
2017-09-11 15:22:33,926 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) - - OS : Windows 10 amd64
2017-09-11 15:22:33,927 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) - - ServerInfo : Apache Tomcat/9.0.0.M17
2017-09-11 15:22:33,927 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) - - Servlet API : 4.0
2017-09-11 15:22:33,931 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) - - ContextPath : /simple_nutz
2017-09-11 15:22:33,932 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) - - context.tempdir : C:\Users\大企鹅\.IntelliJIdea2017.1\system\tomcat\Unnamed_simple_nutz\work\Catalina\localhost\simple_nutz
2017-09-11 15:22:33,936 [DEBUG] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) - - MainModule : cn.chw.sn.MainModule
2017-09-11 15:22:33,938 [DEBUG] org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:235) - >> app.root = D:/ideaUI/workspace/simple_nutz/target/simple_nutz
2017-09-11 15:22:33,941 [DEBUG] org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:376) - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "cn.chw.sn", "*tx", "*async"],init=[])
2017-09-11 15:22:34,042 [DEBUG] org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2017-09-11 15:22:34,042 [DEBUG] org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [dao.js]
2017-09-11 15:22:34,051 [DEBUG] org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 3 bean define from path=[ioc/] --> [conf, dao, dataSource]
2017-09-11 15:22:34,063 [DEBUG] org.nutz.resource.Scans.scan(Scans.java:274) - Found 9 resource by src( cn/chw/sn/ ) , regex( ^.+[.]class$ )
2017-09-11 15:22:34,077 [DEBUG] org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class cn.chw.sn.module.UserModule
2017-09-11 15:22:34,091 [DEBUG] org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class cn.chw.sn.service.impl.UserServiceImpl
2017-09-11 15:22:34,102 [INFO] org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:52) - Found 2 classes in 1 base-packages!
beans = ["userServiceImpl", "userModule"]
2017-09-11 15:22:34,109 [DEBUG] org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
2017-09-11 15:22:34,144 [DEBUG] 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
2017-09-11 15:22:34,151 [INFO] org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) - NutIoc init begin ...
2017-09-11 15:22:34,158 [INFO] org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) - ... NutIoc init complete
2017-09-11 15:22:34,166 [INFO] org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2017-09-11 15:22:34,176 [DEBUG] org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:366) - @Views(DefaultViewMaker.class)
2017-09-11 15:22:34,192 [DEBUG] org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2017-09-11 15:22:34,211 [DEBUG] org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) - module class location 'file:/D:/ideaUI/workspace/simple_nutz/target/simple_nutz/WEB-INF/classes/'
2017-09-11 15:22:34,211 [DEBUG] org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) - > scan 'cn.chw.sn'
2017-09-11 15:22:34,227 [DEBUG] org.nutz.resource.Scans.scan(Scans.java:274) - Found 9 resource by src( cn/chw/sn/ ) , regex( ^.+[.]class$ )
2017-09-11 15:22:34,228 [DEBUG] org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) - >> add 'cn.chw.sn.module.UserModule'
2017-09-11 15:22:34,270 [INFO] org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2017-09-11 15:22:34,294 [INFO] org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2017-09-11 15:22:34,408 [DEBUG] org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) - '/user/register' >> (UserModule.java:51).register : void | @Ok(jsp:view.login) @Fail(jsp:view.500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-09-11 15:22:34,411 [DEBUG] org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) - '/user/login' >> (UserModule.java:31).login : Object | @Ok(jsp:view.main) @Fail(jsp:view.500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-09-11 15:22:34,412 [DEBUG] org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) - '/user/login_p' >> (UserModule.java:25).login_p : void | @Ok(jsp:view.login) @Fail(jsp:view.500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-09-11 15:22:34,414 [DEBUG] org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) - '/user/register_p' >> (UserModule.java:43).register_p : void | @Ok(jsp:view.register) @Fail(jsp:view.500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2017-09-11 15:22:34,414 [INFO] org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:217) - Found 4 module methods
2017-09-11 15:22:34,416 [DEBUG] org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:331) - @Localization not define
2017-09-11 15:22:34,420 [INFO] org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:271) - Setup application...
2017-09-11 15:22:34,431 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'dao'<interface org.nutz.dao.Dao>
2017-09-11 15:22:34,434 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-09-11 15:22:34,436 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) - >> Load definition name=$aop_async
2017-09-11 15:22:34,440 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject($aop_async) in AsyncAopIocLoader@105789651
2017-09-11 15:22:34,441 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) - >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
2017-09-11 15:22:34,443 [DEBUG] org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object '$aop_async' to [app]
2017-09-11 15:22:34,458 [DEBUG] org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
2017-09-11 15:22:34,458 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) - >> Load definition name=dao
2017-09-11 15:22:34,459 [DEBUG] org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) - Loading define for name=dao
2017-09-11 15:22:34,465 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-09-11 15:22:34,465 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) - >> Make...'dao'<interface org.nutz.dao.Dao>
2017-09-11 15:22:34,488 [DEBUG] org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.dao.impl.NutDao without AOP
2017-09-11 15:22:34,489 [DEBUG] org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'dao' to [app]
2017-09-11 15:22:34,490 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'dataSource'<>
2017-09-11 15:22:34,491 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) - >> Load definition name=dataSource
2017-09-11 15:22:34,491 [DEBUG] org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) - Loading define for name=dataSource
2017-09-11 15:22:34,510 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-09-11 15:22:34,511 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) - >> Make...'dataSource'<>
2017-09-11 15:22:34,539 [DEBUG] org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class com.alibaba.druid.pool.DruidDataSource without AOP
2017-09-11 15:22:34,540 [DEBUG] org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'dataSource' to [app]
2017-09-11 15:22:34,541 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'conf'<>
2017-09-11 15:22:34,541 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) - >> Load definition name=conf
2017-09-11 15:22:34,541 [DEBUG] org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) - Loading define for name=conf
2017-09-11 15:22:34,555 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-09-11 15:22:34,556 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) - >> Make...'conf'<>
2017-09-11 15:22:34,557 [DEBUG] org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.ioc.impl.PropertiesProxy without AOP
2017-09-11 15:22:34,557 [DEBUG] org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'conf' to [app]
2017-09-11 15:22:34,641 [DEBUG] org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
2017-09-11 15:22:34,642 [DEBUG] org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:113) - load properties from File[D:\ideaUI\workspace\simple_nutz\target\simple_nutz\WEB-INF\classes\custom\db.properties]
2017-09-11 15:22:35,254 [INFO] com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:854) - {dataSource-1} inited
2017-09-11 15:22:35,258 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'dataSource'<>
2017-09-11 15:22:35,610 [DEBUG] org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:90) - Jdbcs init complete
2017-09-11 15:22:35,610 [INFO] org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:103) - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
2017-09-11 15:22:35,954 [DEBUG] org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:188) - select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert
2017-09-11 15:22:35,964 [DEBUG] org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:199) - JDBC Driver --> mysql-connector-java-6.0.6 ( Revision: 3dab84f4d9bede3cdd14d57b99e9e98a02a5b97d )
2017-09-11 15:22:35,964 [DEBUG] org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200) - JDBC Name --> MySQL Connector Java
2017-09-11 15:22:35,965 [DEBUG] org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:202) - JDBC URL --> jdbc:mysql://127.0.0.1:3306/db_sn?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
2017-09-11 15:22:36,113 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_set_client=utf8
2017-09-11 15:22:36,114 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_set_connection=utf8
2017-09-11 15:22:36,114 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_set_database=utf8
2017-09-11 15:22:36,114 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_set_filesystem=binary
2017-09-11 15:22:36,115 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_set_results=
2017-09-11 15:22:36,115 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_set_server=utf8
2017-09-11 15:22:36,115 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_set_system=utf8
2017-09-11 15:22:36,115 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:206) - Mysql : character_sets_dir=D:\My_SQL\mysql-5.7.19-winx64\share\charsets\
2017-09-11 15:22:36,120 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:213) - Mysql : binlog_format=ROW
2017-09-11 15:22:36,121 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:220) - Mysql : database=db_sn
2017-09-11 15:22:36,123 [DEBUG] org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(MysqlJdbcExpert.java:226) - Mysql : user=root@localhost
2017-09-11 15:22:36,177 [DEBUG] org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:221) - Database info --> MYSQL:[MySQL - 5.7.19]
2017-09-11 15:22:36,191 [DEBUG] org.nutz.resource.Scans.scan(Scans.java:274) - Found 9 resource by src( cn/chw/sn/ ) , regex( ^.+[.]class$ )
2017-09-11 15:22:36,329 [INFO] org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nutz.Mvc[nutz] is up in 2392ms
2017-09-11 15:22:36,329 [INFO] org.nutz.mvc.NutFilter._init(NutFilter.java:117) - exclusionsPrefix = ^(/rs/|/druid/|/tld/)
[2017-09-11 03:22:36,353] Artifact simple_nutz:war exploded: Artifact is deployed successfully
[2017-09-11 03:22:36,354] Artifact simple_nutz:war exploded: Deploy took 4,808 milliseconds
11-Sep-2017 15:22:41.339 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tomcat\apache-tomcat-9.0.0.M17\webapps\manager
11-Sep-2017 15:22:41.475 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tomcat\apache-tomcat-9.0.0.M17\webapps\manager has finished in 135 ms
2017-09-11 15:22:44,554 [DEBUG] org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/user/login_p : UserModule.login_p(UserModule.java:25)
2017-09-11 15:22:44,556 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'userModule'<class cn.chw.sn.module.UserModule>
2017-09-11 15:22:44,556 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) - >> Load definition name=userModule
2017-09-11 15:22:44,557 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(userModule) in AnnotationIocLoader(packages=[cn.chw.sn])
2017-09-11 15:22:44,558 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) - >> Make...'userModule'<class cn.chw.sn.module.UserModule>
2017-09-11 15:22:44,558 [DEBUG] org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class cn.chw.sn.module.UserModule without AOP
2017-09-11 15:22:44,558 [DEBUG] org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'userModule' to [app]
2017-09-11 15:22:44,573 [DEBUG] org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:64) - name=userService not found, search for type=cn.chw.sn.service.UserService
2017-09-11 15:22:44,573 [DEBUG] org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) - Loading define for name=conf
2017-09-11 15:22:44,574 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(conf) in JsonLoader(paths=[ioc/])
2017-09-11 15:22:44,574 [DEBUG] org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) - Loading define for name=dao
2017-09-11 15:22:44,574 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2017-09-11 15:22:44,574 [DEBUG] org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) - Loading define for name=dataSource
2017-09-11 15:22:44,575 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2017-09-11 15:22:44,575 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(userServiceImpl) in AnnotationIocLoader(packages=[cn.chw.sn])
2017-09-11 15:22:44,575 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'userServiceImpl'<interface cn.chw.sn.service.UserService>
2017-09-11 15:22:44,575 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) - >> Load definition name=userServiceImpl
2017-09-11 15:22:44,575 [DEBUG] org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) - Found IocObject(userServiceImpl) in AnnotationIocLoader(packages=[cn.chw.sn])
2017-09-11 15:22:44,575 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) - >> Make...'userServiceImpl'<interface cn.chw.sn.service.UserService>
2017-09-11 15:22:44,575 [DEBUG] org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class cn.chw.sn.service.impl.UserServiceImpl without AOP
2017-09-11 15:22:44,576 [DEBUG] org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'userServiceImpl' to [app]
2017-09-11 15:22:44,669 [DEBUG] org.nutz.service.EntityService.<init>(EntityService.java:41) - Get TypeParams for self : cn.chw.sn.po.User
2017-09-11 15:22:44,669 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'dao'<>
2017-09-11 15:22:57,352 [DEBUG] org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [POST] path=/user/login : UserModule.login(UserModule.java:31)
2017-09-11 15:22:57,352 [DEBUG] org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) - Get 'userModule'<class cn.chw.sn.module.UserModule>
admin@163.com
123456
2017-09-11 15:22:57,359 [WARN] org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) - Error@/user/login :
org.nutz.dao.DaoException: Need @Name for class cn.chw.sn.po.User
at org.nutz.dao.impl.NutDao.fetch(NutDao.java:565)
at org.nutz.service.IdNameEntityService.fetch(IdNameEntityService.java:54)
at cn.chw.sn.service.impl.UserServiceImpl.find(UserServiceImpl.java:44)
at cn.chw.sn.module.UserModule.login(UserModule.java:33)
at cn.chw.sn.module.UserModule$FM$login$a15908cb0a49e7a57c65fd9c0d89f8ff.invoke(UserModule.java)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:31)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:495)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:767)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1347)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)