action null 问题小计

 

1、严重: action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
解决方案:
      
asm-2.2.3.jar
        asm-commons-2.2.3.jar
       asm-util-2.2.3.jar
      cglib-nodep-2.1_3.jar
                 这几个包删掉就好了

 

2、严重: action: null(此错误我没出,不过网上搜的时候看到,故借来了)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package

Caused by: java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package
解决方案:
方法一、把WEB-INF下的commons-collections-X.X.X删除,替换成commons-collections-3.2.1或以上版本。

commons-collections-3.2.1.jar下载地址:http://apache.freelamp.com/commons/collections/binaries/commons-collections-3.2.1-bin.zip

   方法二、造成此异常的原因是commons-beanutils的签名版本问题,本人解决问题所用的方法——将WEB-INF下的commons-beanutils.jar或commons-beanutils-X.X.X.jar替换成commons-beanutils-1.8.0.jar

commons-beanutils-1.8.0.jar下载地址:
http://dev.xiaonei.com/apache-mirror/commons/beanutils/binaries/commons-beanutils-1.8.0-bin.zip

方法三、applicationContext.xml下看

<property name="mappingResources">
   <list>
    <value>com/smile/entity/Users.hbm.xml</value>
   </list>
  </property>
 

value路径是否正确

 

3、严重: action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UserinfoDAO' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.wang.hibernate.DAO.UserinfoDAO]: Bean property 'sessionFactory' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.wang.hibernate.DAO.UserinfoDAO]: Bean property 'sessionFactory' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?

解决方案:
注入配置错误,这个比较低级别,细心点,applicationContext.xml 中查看你的注入配置,如果确认没错,那么返回去看看是否为对应的属性提供了必要的set方法。

4、严重: action: null
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 2 in XML document from ServletContext resource [/WEB-INF/beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
解决方案:
因为你的<beans>标记里面没有定义任何的dtd或者xsd文件嘛!
那解析器怎么知道这个xml文件是来干什么的?
给你一个示例:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/ beans http://www.springframework.org/schema/beans/spring- beans-2.0.xsd">
</beans>

action null 错误我暂且就知道并解决了的就这几个,还有不同的,可留言追加
我的百度空间http://hi.baidu.com/hongge555

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值