NutzCN Logo
问答 queryResult.setList(dao.query(XxxDO.class, cnd, pager)); 报错 java.lang.NullPointerException
发布于 2375天前 作者 DossShi 2168 次浏览 复制 上一个帖子 下一个帖子
标签:

我在代码里调用 nutz.dao.Dao 中的 query 方法,并将结果转换为 QueryResult 数据的时候报错。
求大佬指教。

import com.wonders.biz.workdesk.entity.DbShortcutMenuDO;
import com.wonders.biz.workdesk.model.ShortcutConditionDTO;
import com.wonders.biz.workdesk.model.ShortcutVO;
import com.wonders.biz.workdesk.model.UserConditionDTO;
import org.nutz.dao.Cnd;
import org.nutz.dao.QueryResult;
import org.nutz.dao.pager.Pager;
import org.nutz.lang.Strings;

import java.util.ArrayList;
import java.util.List;

/**
 * 个人快捷方式业务逻辑
 */
public class ShortcutManage extends BaseManage{

    /**
     * 个人快捷方式查询
     * @param dto
     * @return
     */
    public Object getUserShortCut(UserConditionDTO dto, Pager pager){
        Cnd cnd = Cnd.where("USER_ID", "=", +dto.getId())
            .and("IS_VALIDATY", "=", "1");
        QueryResult qr = new QueryResult();
//        String str = dao.query(DbShortcutMenuDO.class, cnd, pager).toString();
        qr.setList(dao.query(DbShortcutMenuDO.class, cnd, pager));
//        String str = dao.query(DbShortcutMenuDO.class, cnd, pager).toString();
        pager.setRecordCount(dao.count(DbShortcutMenuDO.class, cnd));
        qr.setPager(pager);
        return qr;
    }

    /**
     * 个人快捷方式保存
     * @param dto
     */
    void SaveUserShortCut(ShortcutConditionDTO dto) {

    }


}

D:\SDK\Tomcat\apache-tomcat-8.5.14\bin\catalina.bat run
[2018-06-22 08:36:50,541] Artifact mzweb:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:\Users\DossS\.IntelliJIdea2018.1\system\tomcat\Unnamed_mzweb_4"
Using CATALINA_HOME:   "D:\SDK\Tomcat\apache-tomcat-8.5.14"
Using CATALINA_TMPDIR: "D:\SDK\Tomcat\apache-tomcat-8.5.14\temp"
Using JRE_HOME:        "D:\SDK\Java\jdk1.8"
Using CLASSPATH:       "D:\SDK\Tomcat\apache-tomcat-8.5.14\bin\bootstrap.jar;D:\SDK\Tomcat\apache-tomcat-8.5.14\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:13710', transport: 'socket'
22-Jun-2018 08:36:52.021 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.14
22-Jun-2018 08:36:52.027 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Apr 13 2017 12:55:45 UTC
22-Jun-2018 08:36:52.027 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.14.0
22-Jun-2018 08:36:52.027 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
22-Jun-2018 08:36:52.027 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
22-Jun-2018 08:36:52.028 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
22-Jun-2018 08:36:52.028 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             D:\SDK\Java\jdk1.8\jre
22-Jun-2018 08:36:52.028 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_152-b16
22-Jun-2018 08:36:52.028 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
22-Jun-2018 08:36:52.028 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\DossS\.IntelliJIdea2018.1\system\tomcat\Unnamed_mzweb_4
22-Jun-2018 08:36:52.028 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         D:\SDK\Tomcat\apache-tomcat-8.5.14
22-Jun-2018 08:36:52.028 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\DossS\.IntelliJIdea2018.1\system\tomcat\Unnamed_mzweb_4\conf\logging.properties
22-Jun-2018 08:36:52.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
22-Jun-2018 08:36:52.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:13710,suspend=y,server=n
22-Jun-2018 08:36:52.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:C:\Users\DossS\.IntelliJIdea2018.1\system\captureAgent\debugger-agent.jar=file:/C:/Users/DossS/AppData/Local/Temp/capture1218.props
22-Jun-2018 08:36:52.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
22-Jun-2018 08:36:52.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
22-Jun-2018 08:36:52.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\DossS\.IntelliJIdea2018.1\system\tomcat\Unnamed_mzweb_4
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\SDK\Tomcat\apache-tomcat-8.5.14
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\SDK\Tomcat\apache-tomcat-8.5.14\temp
22-Jun-2018 08:36:52.030 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.
22-Jun-2018 08:36:52.031 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
22-Jun-2018 08:36:52.031 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
22-Jun-2018 08:36:53.072 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2k  26 Jan 2017)
22-Jun-2018 08:36:53.239 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
22-Jun-2018 08:36:53.269 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
22-Jun-2018 08:36:53.272 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
22-Jun-2018 08:36:53.275 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
22-Jun-2018 08:36:53.275 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1854 ms
22-Jun-2018 08:36:53.327 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
22-Jun-2018 08:36:53.327 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.14
22-Jun-2018 08:36:53.342 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
22-Jun-2018 08:36:53.357 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
22-Jun-2018 08:36:53.360 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 84 ms
Connected to server
[2018-06-22 08:36:53,719] Artifact mzweb:war exploded: Artifact is being deployed, please wait...
22-Jun-2018 08:36:57.204 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No such property [.Threshold] in org.apache.log4j.ConsoleAppender.
2018-06-22 08:36:57,489 org.nutz.mvc.NutFilter._init(NutFilter.java:85) INFO  - NutFilter[nutz] starting ...
2018-06-22 08:36:57,510 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorResourceLocation.java:28) INFO  - [loc=D:\Project\JavaEE\mzyl%202018\idea\test7\mzweb\target\mzweb-0.0.1-SNAPSHOT\WEB-INF\classes]not exist
2018-06-22 08:36:57,514 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=5 time use 7ms
2018-06-22 08:36:57,550 org.nutz.resource.Scans.printLocations(Scans.java:521) DEBUG - Locations count=62 time use 36ms
2018-06-22 08:36:57,677 org.nutz.castor.Castors.reload(Castors.java:115) DEBUG - Using 95 castor for Castors
2018-06-22 08:36:57,722 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:59) DEBUG - Loading by class org.nutz.mvc.impl.NutLoading
2018-06-22 08:36:57,727 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) INFO  - Nutz Version : 1.r.62 
2018-06-22 08:36:57,728 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) INFO  - Nutz.Mvc[nutz] is initializing ...
2018-06-22 08:36:57,728 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) DEBUG - Web Container Information:
2018-06-22 08:36:57,730 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) DEBUG -  - Default Charset : GBK
2018-06-22 08:36:57,730 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) DEBUG -  - Current . path  : D:\SDK\Tomcat\apache-tomcat-8.5.14\bin\.
2018-06-22 08:36:57,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) DEBUG -  - Java Version    : 1.8.0_152
2018-06-22 08:36:57,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) DEBUG -  - File separator  : \
2018-06-22 08:36:57,731 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) DEBUG -  - Timezone        : Asia/Shanghai
2018-06-22 08:36:57,732 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) DEBUG -  - OS              : Windows 10 amd64
2018-06-22 08:36:57,732 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) DEBUG -  - ServerInfo      : Apache Tomcat/8.5.14
2018-06-22 08:36:57,736 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) DEBUG -  - Servlet API     : 3.1
2018-06-22 08:36:57,736 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) DEBUG -  - ContextPath     : 
2018-06-22 08:36:57,737 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) DEBUG -  - context.tempdir : C:\Users\DossS\.IntelliJIdea2018.1\system\tomcat\Unnamed_mzweb_4\work\Catalina\localhost\ROOT
2018-06-22 08:36:57,737 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) DEBUG -  - MainModule      : com.wonders.MainModule
2018-06-22 08:36:57,739 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:235) DEBUG - >> app.root = D:/Project/JavaEE/mzyl 2018/idea/test7/mzweb/target/mzweb-0.0.1-SNAPSHOT
2018-06-22 08:36:57,750 org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:376) DEBUG - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*org.nutz.ioc.loader.json.JsonLoader", "ioc/", "*org.nutz.ioc.loader.annotation.AnnotationIocLoader", "com.wonders", "*quartz"],init=[])
2018-06-22 08:36:57,995 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 4 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
2018-06-22 08:36:57,997 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [aop.js]
2018-06-22 08:36:58,015 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [dao.js]
2018-06-22 08:36:58,016 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [logger.js]
2018-06-22 08:36:58,018 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) DEBUG - loading [mongo.js]
2018-06-22 08:36:58,019 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) DEBUG - Loaded 13 bean define from path=[ioc/] --> [zMoDB, log, logger, txNONE, $aop, txREPEATABLE_READ, dao, txREAD_UNCOMMITTED, txREAD_COMMITTED, zMoCoUser, txSERIALIZABLE, zMongo, dataSource]
2018-06-22 08:36:58,113 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 154 resource by src( com/wonders/ ) , regex( ^.+[.]class$ )
2018-06-22 08:36:58,266 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.biz.workdesk.at.UserNoticeAt
2018-06-22 08:36:58,285 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.attachment.at.AttachmentAt
2018-06-22 08:36:58,287 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.attachment.manager.AttachmentManager
2018-06-22 08:36:58,289 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.attachment.service.AttachmentService
2018-06-22 08:36:58,293 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.authority.service.UserAuthorityService
2018-06-22 08:36:58,302 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.dic.util.DicDataUtils
2018-06-22 08:36:58,303 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.interceptor.LoggerInterceptor
2018-06-22 08:36:58,306 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.mongoDB.at.MongoDBAt
2018-06-22 08:36:58,316 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.mongoDB.service.MongoDBService
2018-06-22 08:36:58,325 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.redis.cache.at.RedisTestAt
2018-06-22 08:36:58,326 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.redis.cache.service.CachingAcquisitionService
2018-06-22 08:36:58,333 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.weixin.at.Oauth2AuthorizeAt
2018-06-22 08:36:58,335 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.weixin.DefaultWxHandler
2018-06-22 08:36:58,343 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.weixin.service.WeixinService
2018-06-22 08:36:58,344 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.weixin.service.WxCoreService
2018-06-22 08:36:58,348 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.common.weixin.WeixinModule
2018-06-22 08:36:58,348 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.framework.login.at.LoginAt
2018-06-22 08:36:58,351 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) DEBUG - Found @IocBean : class com.wonders.test.biz.common.OracleTest
2018-06-22 08:36:58,352 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:52) INFO  - Found 18 classes in 1 base-packages!
beans = ["userNoticeAt", "mongoDBService", "attachmentManager", "loggerInterceptor", "wxHandler", "redisTestAt", "attachmentAt", "userAuthorityService", "weixinService", "weixinModule", "mongoDBAt", "wxCoreService", "attachmentService", "oauth2AuthorizeAt", "loginAt", "dicDataUtils", "cachingAcquisitionService", "oracleTest"]
2018-06-22 08:36:58,358 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) DEBUG - found quartz -- org.nutz.integration.quartz.QuartzIocLoader
2018-06-22 08:36:58,366 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) DEBUG - Loaded 0 bean define from path=[] --> []
2018-06-22 08:36:58,375 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) INFO  - NutIoc init begin ...
2018-06-22 08:36:58,380 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) INFO  - ... NutIoc init complete
2018-06-22 08:36:58,387 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) INFO  - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-06-22 08:36:58,390 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:366) DEBUG - @Views(DefaultViewMaker.class)
2018-06-22 08:36:58,404 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263) DEBUG - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
2018-06-22 08:36:58,412 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:154) DEBUG - module class location 'file:/D:/Project/JavaEE/mzyl%202018/idea/test7/mzweb/target/mzweb-0.0.1-SNAPSHOT/WEB-INF/classes/'
2018-06-22 08:36:58,413 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) DEBUG -  > scan 'com.wonders'
2018-06-22 08:36:58,443 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 154 resource by src( com/wonders/ ) , regex( ^.+[.]class$ )
2018-06-22 08:36:58,447 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.biz.fl.fljg.jggl.slxk.manage.SlxkApprovalManage'
2018-06-22 08:36:58,450 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.biz.workdesk.at.UserNoticeAt'
2018-06-22 08:36:58,456 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.biz.workdesk.at.WorkdeskAt'
2018-06-22 08:36:58,468 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.framework.common.attachment.at.AttachmentAt'
2018-06-22 08:36:58,474 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.framework.common.mongoDB.at.MongoDBAt'
2018-06-22 08:36:58,475 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.framework.common.redis.cache.at.RedisTestAt'
2018-06-22 08:36:58,528 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.framework.common.weixin.WeixinModule'
2018-06-22 08:36:58,529 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.framework.login.at.LoginAt'
2018-06-22 08:36:58,530 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:199) DEBUG -    >> add 'com.wonders.test.biz.common.OracleTest'
2018-06-22 08:36:58,567 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) INFO  - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2018-06-22 08:36:58,591 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) INFO  - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2018-06-22 08:36:58,635 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/toIndex'                  >> (LoginAt.java:69).index               : UserVO     | @Ok(jsp:pages.index) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,637 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/toMain'                   >> (LoginAt.java:50).toMainContext       : UserVO     | @Ok(jsp:pages.main) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,638 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/toMainContent'            >> (LoginAt.java:117).mainContent        : void       | @Ok(jsp:pages.mainContent) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,639 org.nutz.mvc.impl.processor.ViewProcessor.init(ViewProcessor.java:29) WARN  - Not a good idea : Return String ,and using JsonView!! (Using @Ok("raw") or return map/list/pojo)--> LoginAt.loadMenu(...)
2018-06-22 08:36:58,641 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/loadMenu'                 >> (LoginAt.java:77).loadMenu            : String     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,643 org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61) INFO  - Create Module obj without Ioc --> class com.wonders.biz.fl.fljg.jggl.slxk.manage.SlxkApprovalManage
2018-06-22 08:36:58,669 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/saveApply'                >> (SlxkApprovalManage.java:58).saveApply : void       | @Ok(jsp:pages.biz.jggl.slxk.new.applyAdd) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,686 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/saveNewOrganApply'        >> (SlxkApprovalManage.java:72).saveNewOrganApply : Object     | @Ok(null ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,697 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/CoreServlet'              >> (WeixinModule.java:29).msgin          : View       | @Ok(null ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,711 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/oracleTest/count'         >> (OracleTest.java:23).count            : int        | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,715 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/userNotice/count'         >> (UserNoticeAt.java:23).count          : int        | @Ok(json ) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,723 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/attachment/showAttachment' >> (AttachmentAt.java:35).queryAttachment : Object     | @Ok(jsp:pages.frame.attachment.attachmentList) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,727 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/attachment/download'      >> (AttachmentAt.java:45).download       : File       | @Ok(raw  ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,729 org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:61) INFO  - Create Module obj without Ioc --> class com.wonders.biz.workdesk.at.WorkdeskAt
2018-06-22 08:36:58,743 org.nutz.mvc.impl.processor.ViewProcessor.init(ViewProcessor.java:29) WARN  - Not a good idea : Return String ,and using JsonView!! (Using @Ok("raw") or return map/list/pojo)--> WorkdeskAt.load(...)
2018-06-22 08:36:58,744 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/workdesk/load'            >> (WorkdeskAt.java:47).load             : String     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,746 org.nutz.mvc.impl.processor.ViewProcessor.init(ViewProcessor.java:29) WARN  - Not a good idea : Return String ,and using JsonView!! (Using @Ok("raw") or return map/list/pojo)--> WorkdeskAt.loadUser(...)
2018-06-22 08:36:58,747 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/workdesk/loadUser'        >> (WorkdeskAt.java:30).loadUser         : String     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,752 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/workdesk/loadShortcut'    >> (WorkdeskAt.java:128).loadShortcut    : Object     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,753 org.nutz.mvc.impl.processor.ViewProcessor.init(ViewProcessor.java:29) WARN  - Not a good idea : Return String ,and using JsonView!! (Using @Ok("raw") or return map/list/pojo)--> WorkdeskAt.loadMenu(...)
2018-06-22 08:36:58,754 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/workdesk/loadMenu'        >> (WorkdeskAt.java:39).loadMenu         : String     | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,756 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/index'            >> (MongoDBAt.java:38).index             : void       | @Ok(jsp:pages.frame.mongoDB.login) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,870 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/add'              >> (MongoDBAt.java:70).add               : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,871 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/count'            >> (MongoDBAt.java:44).count             : int        | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,872 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/update'           >> (MongoDBAt.java:85).update            : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,877 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/delete'           >> (MongoDBAt.java:100).delete           : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,888 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/query'            >> (MongoDBAt.java:117).query            : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,890 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/login'            >> (MongoDBAt.java:50).login             : Object     | @Ok(json:{locked:'password|salt',ignoreNull:true}) @Fail(http:500) | by 0 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,896 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/mongoDB/logout'           >> (MongoDBAt.java:62).logout            : void       | @Ok(>>:/ ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,897 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) DEBUG -    '/redisTest'                >> (RedisTestAt.java:28).testDemoList    : Map        | @Ok(json ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
2018-06-22 08:36:58,897 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:217) INFO  - Found 24 module methods
2018-06-22 08:36:58,898 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:331) DEBUG - @Localization not define
2018-06-22 08:36:58,899 org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:271) INFO  - Setup application...
>>>MainSetup starting...
2018-06-22 08:36:58,905 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dao'<interface org.nutz.dao.Dao>
2018-06-22 08:36:58,906 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get '$aop'<interface org.nutz.ioc.aop.config.AopConfigration>
2018-06-22 08:36:58,907 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=$aop
2018-06-22 08:36:58,908 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=$aop
2018-06-22 08:36:58,937 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject($aop) in JsonLoader(paths=[ioc/])
2018-06-22 08:36:58,937 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'$aop'<interface org.nutz.ioc.aop.config.AopConfigration>
2018-06-22 08:36:58,938 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object '$aop' to [app] 
2018-06-22 08:36:59,051 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
2018-06-22 08:36:59,051 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dao
2018-06-22 08:36:59,052 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dao
2018-06-22 08:36:59,055 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(dao) in JsonLoader(paths=[ioc/])
2018-06-22 08:36:59,056 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dao'<interface org.nutz.dao.Dao>
2018-06-22 08:36:59,070 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.nutz.dao.impl.NutDao without AOP
2018-06-22 08:36:59,071 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dao' to [app] 
2018-06-22 08:36:59,258 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'dataSource'<>
2018-06-22 08:36:59,259 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=dataSource
2018-06-22 08:36:59,259 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=dataSource
2018-06-22 08:36:59,272 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(dataSource) in JsonLoader(paths=[ioc/])
2018-06-22 08:36:59,272 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'dataSource'<>
2018-06-22 08:36:59,280 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) DEBUG - Load class org.apache.commons.dbcp.BasicDataSource without AOP
2018-06-22 08:36:59,281 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'dataSource' to [app] 
2018-06-22 08:36:59,602 org.nutz.dao.jdbc.Jdbcs.<clinit>(Jdbcs.java:90) DEBUG - Jdbcs init complete
2018-06-22 08:36:59,603 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
2018-06-22 08:37:00,131 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:188) DEBUG - select expert : org.nutz.dao.impl.jdbc.oracle.OracleJdbcExpert
2018-06-22 08:37:00,140 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:199) DEBUG - JDBC Driver --> 10.2.0.1.0
2018-06-22 08:37:00,140 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:200) DEBUG - JDBC Name   --> Oracle JDBC driver
2018-06-22 08:37:00,140 org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:202) DEBUG - JDBC URL    --> jdbc:oracle:thin:@10.1.9.74:1521:gomz
2018-06-22 08:37:00,141 org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:221) DEBUG - Database info --> ORACLE:[Oracle - Oracle Database 11g Release 11.1.0.0.0 - Production]
2018-06-22 08:37:00,147 org.nutz.resource.Scans.scan(Scans.java:274) DEBUG - Found 0 resource by src( com/wonders/demo/ ) , regex( ^.+[.]class$ )
2018-06-22 08:37:00,147 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) INFO  - Nutz.Mvc[nutz] is up in 2409ms
2018-06-22 08:37:00,148 org.nutz.mvc.NutFilter._init(NutFilter.java:117) INFO  - exclusionsPrefix  = ^(/rs/|/druid/)
[2018-06-22 08:37:00,183] Artifact mzweb:war exploded: Artifact is deployed successfully
[2018-06-22 08:37:00,183] Artifact mzweb:war exploded: Deploy took 6,464 milliseconds
2018-06-22 08:37:02,266 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/toMain : LoginAt.toMainContext(LoginAt.java:50)
2018-06-22 08:37:02,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'loginAt'<class com.wonders.framework.login.at.LoginAt>
2018-06-22 08:37:02,270 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=loginAt
2018-06-22 08:37:02,271 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(loginAt) in AnnotationIocLoader(packages=[com.wonders])
2018-06-22 08:37:02,271 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'loginAt'<class com.wonders.framework.login.at.LoginAt>
2018-06-22 08:37:02,273 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'logger'<interface org.nutz.aop.MethodInterceptor>
2018-06-22 08:37:02,273 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=logger
2018-06-22 08:37:02,273 org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:67) DEBUG - Loading define for name=logger
2018-06-22 08:37:02,274 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(logger) in JsonLoader(paths=[ioc/])
2018-06-22 08:37:02,274 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'logger'<interface org.nutz.aop.MethodInterceptor>
2018-06-22 08:37:02,275 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'logger' to [app] 
2018-06-22 08:37:02,285 org.nutz.aop.asm.AsmClassAgent.<clinit>(AsmClassAgent.java:29) DEBUG - AsmClassAgent will define class in Version 50
2018-06-22 08:37:02,290 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'loginAt' to [app] 
2018-06-22 08:37:02,326 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'userAuthorityService'<class com.wonders.framework.common.authority.service.UserAuthorityService>
2018-06-22 08:37:02,327 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:177) DEBUG - 	 >> Load definition name=userAuthorityService
2018-06-22 08:37:02,327 org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:161) DEBUG - Found IocObject(userAuthorityService) in AnnotationIocLoader(packages=[com.wonders])
2018-06-22 08:37:02,328 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:209) DEBUG - 	 >> Make...'userAuthorityService'<class com.wonders.framework.common.authority.service.UserAuthorityService>
2018-06-22 08:37:02,328 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'logger'<interface org.nutz.aop.MethodInterceptor>
2018-06-22 08:37:02,359 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) DEBUG - Save object 'userAuthorityService' to [app] 
2018-06-22 08:37:02,404 org.nutz.service.EntityService.<init>(EntityService.java:41) DEBUG - Get TypeParams for self : java.lang.Object
+++++++sessionId+++++++session:
22-Jun-2018 08:37:03.598 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\SDK\Tomcat\apache-tomcat-8.5.14\webapps\manager
22-Jun-2018 08:37:03.749 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
22-Jun-2018 08:37:03.781 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\SDK\Tomcat\apache-tomcat-8.5.14\webapps\manager has finished in 179 ms
2018-06-22 08:37:04,443 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/toMainContent : LoginAt.mainContent(LoginAt.java:117)
2018-06-22 08:37:04,444 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'loginAt'<class com.wonders.framework.login.at.LoginAt>
2018-06-22 08:37:05,264 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/loadMenu : LoginAt.loadMenu(LoginAt.java:77)
2018-06-22 08:37:05,264 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:151) DEBUG - Get 'loginAt'<class com.wonders.framework.login.at.LoginAt>
+++++++sessionId+++++++session:
====[]
2018-06-22 08:37:05,408 com.wonders.framework.login.at.LoginAt.loadMenu(LoginAt.java:106) DEBUG - []
2018-06-22 08:37:11,725 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) DEBUG - Found mapping for [GET] path=/workdesk/loadShortcut : WorkdeskAt.loadShortcut(WorkdeskAt.java:128)
2018-06-22 08:37:33,778 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) WARN  - Error@/workdesk/loadShortcut :
java.lang.NullPointerException
	at com.wonders.biz.workdesk.manage.ShortcutManage.getUserShortCut(ShortcutManage.java:30)
	at com.wonders.biz.workdesk.at.WorkdeskAt.loadShortcut(WorkdeskAt.java:130)
	at com.wonders.biz.workdesk.at.WorkdeskAt$FM$loadShortcut$ac4f54c2a1c33e9acd432354e380fa11.invoke(WorkdeskAt.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:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	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:342)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

5 回复

ShortcutManage没写@IocBean,对象是自行new的? 如果自行new,哪来注入?没注入,dao当然是null了

大佬,您这里的对象自行new的是指的 dao吗。
我添加了 @IocBean,定义了Dao dao,然后试了一下,还是报相同的错误。


import com.alibaba.fastjson.JSONObject; import com.wonders.biz.workdesk.entity.DbShortcutMenuDO; import com.wonders.biz.workdesk.entity.DbUserNoticeDO; import com.wonders.biz.workdesk.manage.ShortcutManage; import com.wonders.biz.workdesk.model.UserConditionDTO; import com.wonders.framework.login.at.LoginAt; import com.wonders.framework.login.model.UserVO; import jdk.nashorn.internal.objects.annotations.Function; import org.apache.commons.lang.StringUtils; import org.nutz.dao.Dao; import org.nutz.dao.pager.Pager; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.Filters; import org.nutz.mvc.annotation.Ok; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; import java.io.*; @IocBean @At("/workdesk") @Filters public class WorkdeskAt { private static final Logger log = LoggerFactory.getLogger(LoginAt.class); @Inject protected Dao dao; ShortcutManage shortcutManage = new ShortcutManage(); @At("/loadShortcut") @Ok("json") @Filters() public Object loadShortcut() { UserConditionDTO userConditionDTO = new UserConditionDTO(Long.valueOf("1"), "超级管理员", Long.valueOf("1"), Long.valueOf("1"), Long.valueOf("10041")); Pager pager = new Pager(1, 3); Object result = shortcutManage.getUserShortcut(userConditionDTO, pager); // String result = shortcutManage.getUserShortcut(userConditionDTO, pager); log.debug(result.toString()); return result; } @At @Ok("json") @Filters public int count() { return dao.count(DbShortcutMenuDO.class); } @At @Ok("json") @Filters public int noticeCount() { return dao.count(DbUserNoticeDO.class); } @At @Ok("json") @Filters public int countManage() { return shortcutManage.count(); } }

import com.wonders.biz.workdesk.entity.DbShortcutMenuDO; import com.wonders.biz.workdesk.model.ShortcutConditionDTO; import com.wonders.biz.workdesk.model.ShortcutVO; import com.wonders.biz.workdesk.model.UserConditionDTO; import org.nutz.dao.Cnd; import org.nutz.dao.Dao; import org.nutz.dao.QueryResult; import org.nutz.dao.pager.Pager; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; import org.nutz.lang.Strings; import java.util.ArrayList; import java.util.List; import static org.nutz.dao.util.Pojos.log; /** * 个人快捷方式业务逻辑 */ @IocBean public class ShortcutManage extends BaseManage{ @Inject protected Dao dao; /** * 个人快捷方式查询 * @param userConditionDTO * @return */ public Object getUserShortcut(UserConditionDTO userConditionDTO, Pager pager){ Cnd cnd = Cnd.where("USER_ID", "=", +userConditionDTO.getId()) .and("IS_VALIDATY", "=", "1"); QueryResult qr = new QueryResult(); // String str = dao.query(DbShortcutMenuDO.class, cnd, pager).toString(); qr.setList(dao.query(DbShortcutMenuDO.class, cnd, pager)); // String str = dao.query(DbShortcutMenuDO.class, cnd, pager).toString(); pager.setRecordCount(dao.count(DbShortcutMenuDO.class, cnd)); qr.setPager(pager); return qr; } public String getUserShortcutStr(UserConditionDTO userConditionDTO, Pager pager) { String sql = "select * from DB_SHORTCUT_MENU where USER_ID = " + userConditionDTO.getId() + " and IS_VALIDATY = 1"; Cnd cnd = Cnd.where("USER_ID", "=", +userConditionDTO.getId()) .and("IS_VALIDATY", "=", "1"); List<DbShortcutMenuDO> list = new ArrayList<DbShortcutMenuDO>() ; QueryResult queryResult = new QueryResult(); queryResult.setList(dao.query("DB_SHORTCUT_MENU", cnd)); log.debug(queryResult); return ""; } public int count() { return dao.count(DbShortcutMenuDO.class); } /** * 个人快捷方式保存 * @param dto */ void SaveUserShortCut(ShortcutConditionDTO dto) { } }
ShortcutManage shortcutManage = new ShortcutManage();

对象是自行new的, 是没有注入一说的!

要 @Inject才有注入的

注入问题解决了,非常感谢大佬指点!

    @Inject
    protected ShortcutManage shortcutManage;
添加回复
请先登陆
回到顶部