我的这问题感觉还是与shiro有关。不能解析session ID,继而找不到Action Not Found: /cart/info,但其实在Idea debug模式下是正常的,难道两者加载有什么区别吗?
2018-12-07 08:31:50 [XNIO-1 task-7] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@2288858f]. Returning null to indicate a session could not be found.
[WARN ] [08:31:50] com.jfinal.core.ActionHandler - 404 Action Not Found: /cart/info
出错部分日志如下:
2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'memberRegister' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'memberRegister' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'businessLogin' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'businessLogin' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'businessRegister' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'businessRegister' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'adminLogin' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'adminLogin' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'review' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'review' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'consultation' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'consultation' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'forgotPassword' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'forgotPassword' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'resetPassword' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'resetPassword' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'other' to type 'com.jeasygooshop.Setting$CaptchaType' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$CaptchaType value 'other' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'order' to type 'com.jeasygooshop.Setting$StockAllocationTime' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$StockAllocationTime value 'order' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converting 'String' value 'zh_CN' to type 'com.jeasygooshop.Setting$Locale' 2018-12-07 08:30:13 [main] DEBUG com.jeasygooshop.EnumConverter - Converted to com.jeasygooshop.Setting$Locale value 'zh_CN' Sql: SELECT * FROM "plugin_config" WHERE plugin_id = ? 2018-12-07 08:30:13 [main] DEBUG com.alibaba.druid.pool.PreparedStatementPool - {conn-10005, pstmt-20104} enter cache [INFO ] [08:30:13] org.xnio - XNIO version 3.3.8.Final [INFO ] [08:30:13] org.xnio.nio - XNIO NIO Implementation Version 3.3.8.Final Starting Complete in 3.3 seconds. Welcome To The JFinal World (^_^) 2018-12-07 08:31:31 [XNIO-1 task-1] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@222ab9fa]. Returning null to indicate a session could not be found. [WARN ] [08:31:48] com.jfinal.core.ActionHandler - 404 Action Not Found: / Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC 2018-12-07 08:31:48 [XNIO-1 task-1] DEBUG com.alibaba.druid.pool.PreparedStatementPool - {conn-10005, pstmt-20106} enter cache Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 1 ORDER BY "orders" ASC 2018-12-07 08:31:48 [XNIO-1 task-1] DEBUG com.alibaba.druid.pool.PreparedStatementPool - {conn-10005, pstmt-20107} enter cache Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "friend_link" WHERE 1 = 1 AND type = 0 ORDER BY "orders" ASC LIMIT ? offset 0 2018-12-07 08:31:48 [XNIO-1 task-1] DEBUG com.alibaba.druid.pool.PreparedStatementPool - {conn-10005, pstmt-20108} enter cache 2018-12-07 08:31:48 [XNIO-1 task-2] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@3cf617a0]. Returning null to indicate a session could not be found. 2018-12-07 08:31:48 [XNIO-1 task-3] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@29b9094d]. Returning null to indicate a session could not be found. 2018-12-07 08:31:48 [XNIO-1 task-4] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@489e5c9d]. Returning null to indicate a session could not be found. 2018-12-07 08:31:49 [XNIO-1 task-5] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@2570d3c]. Returning null to indicate a session could not be found. [WARN ] [08:31:49] com.jfinal.core.ActionHandler - 404 Action Not Found: /cart/info Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 1 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "friend_link" WHERE 1 = 1 AND type = 0 ORDER BY "orders" ASC LIMIT ? offset 0 2018-12-07 08:31:49 [XNIO-1 task-6] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@15e095e4]. Returning null to indicate a session could not be found. [WARN ] [08:31:49] com.jfinal.core.ActionHandler - 404 Action Not Found: /cart/info Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 1 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "friend_link" WHERE 1 = 1 AND type = 0 ORDER BY "orders" ASC LIMIT ? offset 0 2018-12-07 08:31:50 [XNIO-1 task-7] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@2288858f]. Returning null to indicate a session could not be found. [WARN ] [08:31:50] com.jfinal.core.ActionHandler - 404 Action Not Found: /cart/info Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 1 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "friend_link" WHERE 1 = 1 AND type = 0 ORDER BY "orders" ASC LIMIT ? offset 0 2018-12-07 08:31:50 [XNIO-1 task-8] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@28a3618a]. Returning null to indicate a session could not be found. [WARN ] [08:31:50] com.jfinal.core.ActionHandler - 404 Action Not Found: /cart/info Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 1 ORDER BY "orders" ASC Sql: SELECT * FROM "navigation" WHERE 1 = 1 AND position = 0 ORDER BY "orders" ASC Sql: SELECT * FROM "friend_link" WHERE 1 = 1 AND type = 0 ORDER BY "orders" ASC LIMIT ? offset 0 2018-12-07 08:31:51 [XNIO-1 task-9] DEBUG org.apache.shiro.session.mgt.DefaultSessionManager - Unable to resolve session ID from SessionKey [org.apache.shiro.web.session.mgt.WebSessionKey@f98a7eb]. Returning null to indicate a session could not be found. [
项目:JFinal