2017-10-02 2 views
1

액세스 할 수 1.3.0.RELEASE 버전스프링 클라우드 스트림 바인더 kstream-1.3.0 : 스프링이없는 IllegalAccessError 클라우드 스트림 바인더 kstream과 노력을 그 슈퍼

의 pom.xml :

<?xml version="1.0" encoding="UTF-8"?> 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 


    <name>kafka-kstream-processor</name> 
    <description>kafka-kstream-processor demo application</description> 

    <parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.5.7.RELEASE</version> 
     <relativePath/> <!-- lookup parent from repository --> 
    </parent> 

    <properties> 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
     <java.version>1.8</java.version> 
     <spring-cloud.version>Dalston.SR3</spring-cloud.version> 
    </properties> 

    <dependencies> 

     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-web</artifactId> 
     </dependency> 

     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-devtools</artifactId> 
      <scope>runtime</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-test</artifactId> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
     <groupId>org.springframework.cloud</groupId> 
     <artifactId>spring-cloud-stream-binder-kstream</artifactId> 
      <version>1.3.0.RELEASE</version> 
      <!--<version>1.0.0.BUILD-SNAPSHOT</version>--> 
    </dependency> 
     <dependency> 
      <groupId>org.apache.kafka</groupId> 
      <artifactId>kafka-streams</artifactId> 
      <version>0.10.1.1</version> 
     </dependency> 

    </dependencies> 

    <dependencyManagement> 
     <dependencies> 
      <dependency> 
       <groupId>org.springframework.cloud</groupId> 
       <artifactId>spring-cloud-dependencies</artifactId> 
       <version>${spring-cloud.version}</version> 
       <type>pom</type> 
       <scope>import</scope> 
      </dependency> 
     </dependencies> 
    </dependencyManagement> 

    <build> 
     <plugins> 
      <plugin> 
       <groupId>org.springframework.boot</groupId> 
       <artifactId>spring-boot-maven-plugin</artifactId> 
      </plugin> 
     </plugins> 
    </build> 


</project> 

로그 추적 :

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kafkaProcessorConfiguration' defined in file [/Users/barath/barath-github-projects/spring-cloud-kafka-kstream/kafka-kstream-processor/target/classes/com/barath/app/KafkaProcessorConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.stream.binder.kstream.annotations.KStreamProcessor': Invocation of init method failed; nested exception is java.lang.IllegalAccessError: class org.springframework.cloud.stream.binder.kstream.$Proxy93 cannot access its superinterface org.springframework.cloud.stream.binder.kstream.KStreamBoundElementFactory$KStreamWrapper 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at com.barath.app.KafkaKstreamProcessorApplication.main(KafkaKstreamProcessorApplication.java:15) [classes/:na] 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101] 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101] 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101] 
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101] 
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.stream.binder.kstream.annotations.KStreamProcessor': Invocation of init method failed; nested exception is java.lang.IllegalAccessError: class org.springframework.cloud.stream.binder.kstream.$Proxy93 cannot access its superinterface org.springframework.cloud.stream.binder.kstream.KStreamBoundElementFactory$KStreamWrapper 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:372) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1078) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor.invokeSetupMethodOnListenedChannel(StreamListenerAnnotationBeanPostProcessor.java:274) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor.access$100(StreamListenerAnnotationBeanPostProcessor.java:73) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor$1.doWith(StreamListenerAnnotationBeanPostProcessor.java:170) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:530) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:537) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor.postProcessAfterInitialization(StreamListenerAnnotationBeanPostProcessor.java:141) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:423) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1633) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    ... 20 common frames omitted 
Caused by: java.lang.IllegalAccessError: class org.springframework.cloud.stream.binder.kstream.$Proxy93 cannot access its superinterface org.springframework.cloud.stream.binder.kstream.KStreamBoundElementFactory$KStreamWrapper 
    at java.lang.reflect.Proxy.defineClass0(Native Method) ~[na:1.8.0_101] 
    at java.lang.reflect.Proxy.access$300(Proxy.java:228) ~[na:1.8.0_101] 
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:642) ~[na:1.8.0_101] 
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557) ~[na:1.8.0_101] 
    at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230) ~[na:1.8.0_101] 
    at java.lang.reflect.WeakCache.get(WeakCache.java:127) ~[na:1.8.0_101] 
    at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419) ~[na:1.8.0_101] 
    at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719) ~[na:1.8.0_101] 
    at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:122) ~[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:112) ~[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:96) ~[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.cloud.stream.binder.kstream.KStreamBoundElementFactory.createOutput(KStreamBoundElementFactory.java:112) ~[spring-cloud-stream-binder-kstream-1.3.0.RELEASE.jar:1.3.0.RELEASE] 
    at org.springframework.cloud.stream.binder.kstream.KStreamBoundElementFactory.createOutput(KStreamBoundElementFactory.java:52) ~[spring-cloud-stream-binder-kstream-1.3.0.RELEASE.jar:1.3.0.RELEASE] 
    at org.springframework.cloud.stream.binding.BindableProxyFactory$2.doWith(BindableProxyFactory.java:148) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:530) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.cloud.stream.binding.BindableProxyFactory.afterPropertiesSet(BindableProxyFactory.java:134) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    ... 46 common frames omitted 

구성 클래스 :

@Configuration 
@EnableBinding(KStreamProcessor.class) 
public class KafkaProcessorConfiguration { 


    @StreamListener(value = "input") 
    @SendTo("output") 
    public KStream<?, String> splitStrings(KStream<?, String> input) { 
     input.print(); 
     System.out.println("PROCESSOR WITH INPUT "+input.toString()); 
     return input 
       .flatMapValues(value -> Arrays.asList(value.toLowerCase().split("\\W+"))); 
    } 
} 
012 3,516,

application.properties :

spring.cloud.stream.bindings.input.destination=kafka-kstream-source-output 
spring.cloud.stream.bindings.output.destination=kafka-kstream-processor-output 

PS :이 REPO https://github.com/mbogoevici/spring-cloud-stream-binder-kstream

을 공유로 같은 일을 참고 ============= 1.0.0.BUILD - 스냅 작동 ====================

업데이트 : 제안

제거 DevTools로 의존성.

로그 :

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kafkaProcessorConfiguration' defined in file [/Users/barath/barath-github-projects/spring-cloud-kafka-kstream/kafka-kstream-processor/target/classes/com/barath/app/KafkaProcessorConfiguration.class]: Initialization of bean failed; nested exception is java.lang.AbstractMethodError: org.springframework.cloud.stream.binder.kstream.KStreamStreamListenerResultAdapter.adapt(Ljava/lang/Object;Ljava/lang/Object;)V 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE] 
    at com.barath.app.KafkaKstreamProcessorApplication.main(KafkaKstreamProcessorApplication.java:15) [classes/:na] 
Caused by: java.lang.AbstractMethodError: org.springframework.cloud.stream.binder.kstream.KStreamStreamListenerResultAdapter.adapt(Ljava/lang/Object;Ljava/lang/Object;)V 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor.invokeSetupMethodOnListenedChannel(StreamListenerAnnotationBeanPostProcessor.java:310) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor.access$100(StreamListenerAnnotationBeanPostProcessor.java:73) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor$1.doWith(StreamListenerAnnotationBeanPostProcessor.java:170) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:530) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:537) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor.postProcessAfterInitialization(StreamListenerAnnotationBeanPostProcessor.java:141) ~[spring-cloud-stream-1.2.2.RELEASE.jar:1.2.2.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:423) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1633) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE] 
    ... 15 common frames omitted 

은 물론 의존성 버전이 일치처럼 보인다. 따라서 참조를 위해 종속성 트리를 공유합니다.

enter image description here

답변

1

응용 프로그램에 DevTools로 이슈를 사용하는 이유는 특별한 이유가 있나요? 그것을 제거하고 다시 시도 할 수 있습니까? 프록시의 일부가 백그라운드에서 작동하는 방식에 버그가있는 것 같습니다. 우리는이 문제를 더 자세히 조사하고 있습니다.

모든 spring cloud stream 종속성을 1.3.0 행으로 가져 오려고 할 수 있습니다.

문제를 재현 할 수있는 간단한 샘플 애플리케이션을 GitHub에 제공 할 수 있습니까?

모든 scst 버전을 1.3으로 업그레이드하여 샘플 앱을 실행했는데 현재 예외가 발생하지 않습니다. 봄 구름 BOM을 사용하는 대신 다음을 사용하십시오 :

<dependencyManagement> 
       <dependencies> 
         <dependency> 
           <groupId>org.springframework.cloud</groupId> 
           <artifactId>spring-cloud-stream-dependencies</artifactId> 
           <version>Ditmars.RELEASE</version> 
           <type>pom</type> 
           <scope>import</scope> 
         </dependency> 

       </dependencies> 
     </dependencyManagement> 
+0

우리는 지역 개발 목적으로 devtools를 사용합니다. 제안 된대로 제거되었으므로 이제 새로운 오류가 표시됩니다. 좀 봐주세요. – Barath

+0

다음 링크는 https://github.com/BarathArivazhagan/kafka-kstream-processor.git입니다. 종속성을 1.3.0 – Barath

+0

으로 변경하려고합니다. 감사합니다. BOM을 변경하면 문제가 해결되었습니다. – Barath

관련 문제