VerifyError when deploying camel-spring-redis bundle
Issue
When deploying an application that depends (directly or indirectly) on camel-spring-redis the following exception is seen in the log. Most likely the application will not start.
Caused by: java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
org/springframework/data/redis/connection/jedis/JedisConnectionFactory.afterPropertiesSet()V @109: invokespecial
Reason:
Type 'redis/clients/jedis/JedisPoolConfig' (current frame, stack[3]) is not assignable to 'org/apache/commons/pool2/impl/GenericObjectPoolConfig'
Current Frame:
bci: @109
flags: { }
locals: { 'org/springframework/data/redis/connection/jedis/JedisConnectionFactory' }
stack: { 'org/springframework/data/redis/connection/jedis/JedisConnectionFactory', uninitialized 73, uninitialized 73, 'redis/clients/jedis/JedisPoolConfig', 'java/lang/String', integer, integer, 'java/lang/String' }
Bytecode:
0000000: 2ab4 000d c700 3d2a bb00 1759 2ab4 0003
0000010: 2ab4 0004 b700 18b5 000d 2ab4 0019 b800
....
Stackmap Table:
same_frame(@47)
...
at org.apache.camel.component.redis.RedisConfiguration.createDefaultConnectionFactory(RedisConfiguration.java:118)
at org.apache.camel.component.redis.RedisConfiguration.getConnectionFactory(RedisConfiguration.java:106)
...
Environment
- Red Hat JBoss Fuse
- 6.2.1
- Other versions before 6.3 may be affected
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
