bug01:
信息:[Java] 纯文本查看 复制代码 ERROR .DefaultDispatcherErrorHandler - Exception occurred during processing request: The given id must not be null!; nested exception is java.lang.IllegalArgumentException: The given id must not be null!
org.springframework.dao.InvalidDataAccessApiUsageException: The given id must not be null!; nested exception is java.lang.IllegalArgumentException: The given id must not be null! 解决方案:根据BUG 的字面意思是没有找到ID而且看出来是跟后台找不到ID有关,观察JSP页面的ID字段和后台模型驱动是否一致即可
bug02:
信息:[AppleScript] 纯文本查看 复制代码 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smsListener': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisTemplate' defined in file [E:\eclipse_zuoye\ilcps_jms\target\classes\applicationContext-redis.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: RedisConnectionFactory is required 解决方案:
异常信息已经说的很清楚,就是创建RedisTemplate的时候没有RedisConnectionFactory,直接配置即可
bug03:
信息:[Java] 纯文本查看 复制代码 1.org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jmsQueueTemplate' defined in file [D:\java\MyAndriod\workspace\ilcps_client\ilcps_client_web\target\classes\spring\applicationContext-mq-send.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.jms.ConnectionFactory]: Could not convert constructor argument value of type [org.springframework.data.redis.connection.jedis.JedisConnectionFactory] to required type [javax.jms.ConnectionFactory]: Failed to convert value of type [org.springframework.data.redis.connection.jedis.JedisConnectionFactory] to required type [javax.jms.ConnectionFactory]; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.data.redis.connection.jedis.JedisConnectionFactory] to required type [javax.jms.ConnectionFactory]: no matching editors or conversion strategy found
解决方案:
解决 ActiveMQ配置文件的connectionFactory和redis配置文件的connectionFactory的重名,造成容器创建实体异常。
|