報500錯誤!?
報500錯誤?!
九月 08, 2016 3:33:50 下午 org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler error
嚴重: Exception occurred during processing request: null
java.lang.NullPointerException
報500錯誤?!
九月 08, 2016 3:33:50 下午 org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler error
嚴重: Exception occurred during processing request: null
java.lang.NullPointerException
2016-09-08
舉報
2016-09-09
果然是這樣!粗心了,感謝!
2016-09-08
?應該是你的superaction中,沒有獲取session對象,所以導致空指針異常,因為設定值得時候,不知道該把這個值指向哪個。 你可以回頭檢查一下,看看你在父類action中 是不是只聲明了session,沒有為它賦值。 要在request中為session賦值。