嚴重: Exception starting filter struts2 java.lang.NullPointerException

來源:互聯網
上載者:User

嚴重: Exception starting filter struts2

java.lang.NullPointerException

at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)

at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)

at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)

at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)

at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)

...........................

...........................

2010-7-3 20:42:07 org.apache.catalina.core.StandardContext start

嚴重: Error filterStart

2010-7-3 20:42:07 org.apache.catalina.core.StandardContext start

嚴重: Context [/Struts2_0200_Namespace] startup failed due to previous errors

2010-7-3 20:42:07 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap

嚴重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@6dbfb0]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@143f787]) but failed to remove it when the web application
was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

2010-7-3 20:42:07 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap

嚴重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@12fe9bf]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@9b1e15]) but failed to remove it when the web application
was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

原因:多為引用的jar包或者struts.xml檔案路徑有空格刪除struts.xml檔案中<constant name="struts.devMode" value="true" />重啟tomcat正常

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.