Spring integration kafka 1.2.1.RELEASE : Consumer context error -


i getting error below consumer configuration details:

note: producer working fine

details: spring integration kafka 1.2.1.release (internally uses kafka_2.10-0.8.2.1.jar). if replace kafka_2.10-0.8.1.1.jar,the error disappears(by overriding in pom.xml)

<int:channel id="inputfromkafka">         <int:queue/>     </int:channel>      <int-kafka:inbound-channel-adapter         id="kafkainboundchanneladapter" kafka-consumer-context-ref="consumercontext"         auto-startup="false" channel="inputfromkafka">         <int:poller fixed-delay="10" time-unit="milliseconds"             max-messages-per-poll="5" />     </int-kafka:inbound-channel-adapter>      <bean id="consumerproperties"         class="org.springframework.beans.factory.config.propertiesfactorybean">         <property name="properties">             <props>                 <prop key="auto.offset.reset">smallest</prop>                 <prop key="socket.receive.buffer.bytes">10485760</prop> <!-- 10m -->                 <prop key="fetch.message.max.bytes">5242880</prop>                 <prop key="auto.commit.interval.ms">1000</prop>             </props>         </property>     </bean>      <int-kafka:consumer-context id="consumercontext"         consumer-timeout="4000" zookeeper-connect="zookeeperconnect" consumer-properties="consumerproperties">         <int-kafka:consumer-configurations>             <int-kafka:consumer-configuration                 group-id="mygroup" max-messages="5000">                 <int-kafka:topic id="test" streams="4" />             </int-kafka:consumer-configuration>             <!-- <int-kafka:consumer-configuration group-id="default3" value-decoder="kafkaspecificdecoder"                  key-decoder="kafkareflectiondecoder" max-messages="10"> <int-kafka:topic-filter                  pattern="regextopic.*" streams="4" exclude="false" /> </int-kafka:consumer-configuration> -->         </int-kafka:consumer-configurations>     </int-kafka:consumer-context>      <int-kafka:zookeeper-connect id="zookeeperconnect"         zk-connect="localhost:2181" zk-connection-timeout="6000"         zk-session-timeout="400" zk-sync-time="200" /> 

error:

    02:15:28.499 [main] warn  o.s.c.s.classpathxmlapplicationcontext - exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.beancreationexception: error creating bean name 'kafkainboundchanneladapter.source': cannot resolve reference bean 'consumercontext' while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'consumercontext': cannot create inner bean '(inner bean)#2a1a92' of type [org.springframework.integration.kafka.support.consumerconfiguration] while setting bean property 'consumerconfigurations' key [mygroup]; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#2a1a92': cannot create inner bean '(inner bean)#189d083' of type [org.springframework.integration.kafka.support.consumerconnectionprovider] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvereference(beandefinitionvalueresolver.java:359) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:108) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.constructorresolver.resolveconstructorarguments(constructorresolver.java:634) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:140) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1139) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1042) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:755) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:757) ~[spring-context-4.1.6.release.jar:4.1.6.release]     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:480) ~[spring-context-4.1.6.release.jar:4.1.6.release]     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:197) [spring-context-4.1.6.release.jar:4.1.6.release]     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:172) [spring-context-4.1.6.release.jar:4.1.6.release]     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:158) [spring-context-4.1.6.release.jar:4.1.6.release]     @ xml.consumer.main(consumer.java:28) [classes/:na] caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'consumercontext': cannot create inner bean '(inner bean)#2a1a92' of type [org.springframework.integration.kafka.support.consumerconfiguration] while setting bean property 'consumerconfigurations' key [mygroup]; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#2a1a92': cannot create inner bean '(inner bean)#189d083' of type [org.springframework.integration.kafka.support.consumerconnectionprovider] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:313) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:129) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvemanagedmap(beandefinitionvalueresolver.java:407) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:165) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applypropertyvalues(abstractautowirecapablebeanfactory.java:1477) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1222) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:537) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvereference(beandefinitionvalueresolver.java:351) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     ... 18 common frames omitted caused by: org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#2a1a92': cannot create inner bean '(inner bean)#189d083' of type [org.springframework.integration.kafka.support.consumerconnectionprovider] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:313) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:129) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.constructorresolver.resolveconstructorarguments(constructorresolver.java:634) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:140) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1139) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1042) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:299) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     ... 30 common frames omitted caused by: org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:313) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:129) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.constructorresolver.resolveconstructorarguments(constructorresolver.java:634) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:140) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1139) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1042) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:299) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     ... 38 common frames omitted caused by: org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.factorybeanregistrysupport.dogetobjectfromfactorybean(factorybeanregistrysupport.java:175) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.factorybeanregistrysupport.getobjectfromfactorybean(factorybeanregistrysupport.java:127) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:302) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     ... 46 common frames omitted caused by: java.lang.exceptionininitializererror: null     @ org.apache.log4j.logger.getlogger(logger.java:41) ~[log4j-over-slf4j-1.7.11.jar:1.7.11]     @ kafka.utils.logging$class.logger(logging.scala:24) ~[kafka_2.10-0.8.2.1.jar:na]     @ kafka.utils.verifiableproperties.logger$lzycompute(verifiableproperties.scala:26) ~[kafka_2.10-0.8.2.1.jar:na]     @ kafka.utils.verifiableproperties.logger(verifiableproperties.scala:26) ~[kafka_2.10-0.8.2.1.jar:na]     @ kafka.utils.logging$class.info(logging.scala:67) ~[kafka_2.10-0.8.2.1.jar:na]     @ kafka.utils.verifiableproperties.info(verifiableproperties.scala:26) ~[kafka_2.10-0.8.2.1.jar:na]     @ kafka.utils.verifiableproperties.verify(verifiableproperties.scala:217) ~[kafka_2.10-0.8.2.1.jar:na]     @ kafka.consumer.consumerconfig.<init>(consumerconfig.scala:95) ~[kafka_2.10-0.8.2.1.jar:na]     @ org.springframework.integration.kafka.support.consumerconfigfactorybean.getobject(consumerconfigfactorybean.java:69) ~[spring-integration-kafka-1.2.1.release.jar:na]     @ org.springframework.integration.kafka.support.consumerconfigfactorybean.getobject(consumerconfigfactorybean.java:30) ~[spring-integration-kafka-1.2.1.release.jar:na]     @ org.springframework.beans.factory.support.factorybeanregistrysupport.dogetobjectfromfactorybean(factorybeanregistrysupport.java:168) ~[spring-beans-4.1.6.release.jar:4.1.6.release]     ... 48 common frames omitted caused by: java.lang.illegalstateexception: detected both log4j-over-slf4j.jar , slf4j-log4j12.jar on class path, preempting stackoverflowerror. see http://www.slf4j.org/codes.html#log4jdelegationloop more details.     @ org.apache.log4j.log4jloggerfactory.<clinit>(log4jloggerfactory.java:50) ~[log4j-over-slf4j-1.7.11.jar:1.7.11]     ... 59 common frames omitted 02:15:28.500 [main] info  o.s.s.c.threadpooltaskscheduler - shutting down executorservice 'taskscheduler' exception in thread "main" org.springframework.beans.factory.beancreationexception: error creating bean name 'kafkainboundchanneladapter.source': cannot resolve reference bean 'consumercontext' while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'consumercontext': cannot create inner bean '(inner bean)#2a1a92' of type [org.springframework.integration.kafka.support.consumerconfiguration] while setting bean property 'consumerconfigurations' key [mygroup]; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#2a1a92': cannot create inner bean '(inner bean)#189d083' of type [org.springframework.integration.kafka.support.consumerconnectionprovider] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvereference(beandefinitionvalueresolver.java:359)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:108)     @ org.springframework.beans.factory.support.constructorresolver.resolveconstructorarguments(constructorresolver.java:634)     @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:140)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1139)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1042)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:755)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:757)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:480)     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:197)     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:172)     @ org.springframework.context.support.classpathxmlapplicationcontext.<init>(classpathxmlapplicationcontext.java:158)     @ xml.consumer.main(consumer.java:28) caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'consumercontext': cannot create inner bean '(inner bean)#2a1a92' of type [org.springframework.integration.kafka.support.consumerconfiguration] while setting bean property 'consumerconfigurations' key [mygroup]; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#2a1a92': cannot create inner bean '(inner bean)#189d083' of type [org.springframework.integration.kafka.support.consumerconnectionprovider] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:313)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:129)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvemanagedmap(beandefinitionvalueresolver.java:407)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:165)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applypropertyvalues(abstractautowirecapablebeanfactory.java:1477)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1222)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:537)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvereference(beandefinitionvalueresolver.java:351)     ... 18 more caused by: org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#2a1a92': cannot create inner bean '(inner bean)#189d083' of type [org.springframework.integration.kafka.support.consumerconnectionprovider] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:313)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:129)     @ org.springframework.beans.factory.support.constructorresolver.resolveconstructorarguments(constructorresolver.java:634)     @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:140)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1139)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1042)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:299)     ... 30 more caused by: org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#189d083': cannot create inner bean '(inner bean)#d860d7' of type [org.springframework.integration.kafka.support.consumerconfigfactorybean] while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:313)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:129)     @ org.springframework.beans.factory.support.constructorresolver.resolveconstructorarguments(constructorresolver.java:634)     @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:140)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1139)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1042)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:299)     ... 38 more caused by: org.springframework.beans.factory.beancreationexception: error creating bean name '(inner bean)#d860d7': factorybean threw exception on object creation; nested exception java.lang.exceptionininitializererror     @ org.springframework.beans.factory.support.factorybeanregistrysupport.dogetobjectfromfactorybean(factorybeanregistrysupport.java:175)     @ org.springframework.beans.factory.support.factorybeanregistrysupport.getobjectfromfactorybean(factorybeanregistrysupport.java:127)     @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolveinnerbean(beandefinitionvalueresolver.java:302)     ... 46 more 

your stacktrace shows one:

caused by: java.lang.illegalstateexception: detected both log4j-over-slf4j.jar , slf4j-log4j12.jar on class path, preempting stackoverflowerror. see http://www.slf4j.org/codes.html#log4jdelegationloop more details. @ org.apache.log4j.log4jloggerfactory.<clinit>(log4jloggerfactory.java:50) ~[log4j-over-slf4j-1.7.11.jar:1.7.11] ... 59 common frames omitted 

looks should remove 1 of them pom.xml. , i'd first 1 since our gradle config on matter looks like:

testcompile "org.slf4j:slf4j-log4j12:$slf4jversion" 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -