NutzCN Logo
问答 关闭TOMCAT时Shiro报错
发布于 2486天前 作者 qq_e78b3792 1704 次浏览 复制 上一个帖子 下一个帖子
标签:
03-Mar-2018 14:58:52.126 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks Unable to determine string representation of value of type [org.nutz.lang.util.SimpleContext]
 java.lang.RuntimeException: Fail to invoke getter org.apache.shiro.web.servlet.ShiroHttpServletRequest.'getSession()' <class org.apache.shiro.web.servlet.ShiroHttpServletRequest> because [org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.]: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.
	at org.nutz.lang.Lang.makeThrow(Lang.java:133)
	at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:45)
	at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:186)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:278)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:343)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:252)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:149)
	at org.nutz.json.Json.toJson(Json.java:239)
	at org.nutz.json.Json.toJson(Json.java:201)
	at org.nutz.lang.util.SimpleContext.toString(SimpleContext.java:64)
	at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks(WebappClassLoaderBase.java:1935)
	at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalsForLeaks(WebappClassLoaderBase.java:1861)
	at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1531)
	at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1477)
	at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:447)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5465)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1435)
	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

03-Mar-2018 14:58:52.126 严重 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [workerman] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@28568bc0]) and a value of type [org.nutz.lang.util.SimpleContext] (value [Unknown]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
03-Mar-2018 14:58:52.127 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks Unable to determine string representation of value of type [org.nutz.lang.util.SimpleContext]
 java.lang.RuntimeException: Fail to invoke getter org.apache.shiro.web.servlet.ShiroHttpServletRequest.'getSession()' <class org.apache.shiro.web.servlet.ShiroHttpServletRequest> because [org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.]: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.
	at org.nutz.lang.Lang.makeThrow(Lang.java:133)
	at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:45)
	at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:186)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:278)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:343)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:161)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:199)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:350)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:252)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:149)
	at org.nutz.json.Json.toJson(Json.java:239)
	at org.nutz.json.Json.toJson(Json.java:201)
	at org.nutz.lang.util.SimpleContext.toString(SimpleContext.java:64)
	at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks(WebappClassLoaderBase.java:1935)
	at org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalsForLeaks(WebappClassLoaderBase.java:1861)
	at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1531)
	at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1477)
	at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:447)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5465)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1435)
	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

03-Mar-2018 14:58:52.127 严重 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [workerman] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@28568bc0]) and a value of type [org.nutz.lang.util.SimpleContext] (value [Unknown]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
03-Mar-2018 14:58:52.133 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
03-Mar-2018 14:58:52.136 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
03-Mar-2018 14:58:52.137 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
03-Mar-2018 14:58:52.137 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
Disconnected from server

2 回复

什么版本的nutz

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