亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

拜托各位了,這是報錯信息的一部分。

拜托各位了,這是報錯信息的一部分。

不負相思意 2023-03-13 16:12:44
在ssh2框架下,忽然整個userAction下的action都不可用了。之前的修改是在userAction的login方法里設置登錄成功則將user對象插入httpSession;在報錯后撤銷修改,但是仍然不行。報錯信息如下:exception Unable to instantiate Action, list, defined for 'listUser' in namespace '/'Error creating bean with name 'list' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cn.camp.action.UserAction]: Constructor threw exception; nested exception is java.lang.NullPointerExceptionroot cause org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'list' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cn.camp.action.UserAction]: Constructor threw exception; nested exception is java.lang.NullPointerExceptionorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451)org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270)org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)root cause org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cn.camp.action.UserAction]: Constructor threw exception; nested exception is java.lang.NullPointerException在網上搜了一下相關內容,都沒有這種情況?,F在是其他的action都可用,就是userAction下的所有方法都不行了,不知道為什么
查看完整描述

1 回答

?
炎炎設計

TA貢獻1808條經驗 獲得超4個贊

Constructor threw exception,查看一下你的構造函數,或者你的set方法的參數

查看完整回答
反對 回復 2023-03-15
  • 1 回答
  • 0 關注
  • 79 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號