{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2750","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2750/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2750/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2750/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/2750","id":301622667,"number":2750,"title":"Application fails to start due to `com.sun.jersey.api.client.filter.ClientFilter not present` when `endpoints.refresh.enabled` is set to `true`","user":{"login":"hanishi","id":1798012,"avatar_url":"https://avatars1.githubusercontent.com/u/1798012?v=4","gravatar_id":"","url":"https://api.github.com/users/hanishi","html_url":"https://github.com/hanishi","followers_url":"https://api.github.com/users/hanishi/followers","following_url":"https://api.github.com/users/hanishi/following{/other_user}","gists_url":"https://api.github.com/users/hanishi/gists{/gist_id}","starred_url":"https://api.github.com/users/hanishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanishi/subscriptions","organizations_url":"https://api.github.com/users/hanishi/orgs","repos_url":"https://api.github.com/users/hanishi/repos","events_url":"https://api.github.com/users/hanishi/events{/privacy}","received_events_url":"https://api.github.com/users/hanishi/received_events","type":"User","site_admin":false},"labels":[{"id":222072230,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-02T01:35:45Z","updated_at":"2018-03-19T18:55:22Z","closed_at":null,"author_association":"NONE","body":"Under `1.8.1 EurekaClient without Jersey` of the spring-cloud-netflix documentation, it states that Jersey dependencies can be excluded, but when application's `endpoints.refresh.enabled` property is set to `true`, the application won't start due to `com.sun.jersey.api.client.filter.ClientFilter not present` that is presumably part of the dependencies explicitly excluded. \r\n\r\nException\r\n\r\n`[org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.TypeNotPresentException: Type com.sun.jersey.api.client.filter.ClientFilter not present\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)\r\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:314)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)\r\n\tat org.springframework.cloud.stream.app.euler.httpclient.processor.kafka.EulerHttpclientProcessorKafka10Application.main(EulerHttpclientProcessorKafka10Application.java:15)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87)\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50)\r\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'discoveryClientOptionalArgs' defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration.class]: Initialization of bean failed; nested exception is java.lang.TypeNotPresentException: Type com.sun.jersey.api.client.filter.ClientFilter not present\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)\r\n\tat org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)\r\n\t... 27 common frames omitted\r\nCaused by: java.lang.TypeNotPresentException: Type com.sun.jersey.api.client.filter.ClientFilter not present\r\n\tat sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(Unknown Source)\r\n\tat sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown Source)\r\n\tat sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source)\r\n\tat sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Unknown Source)\r\n\tat sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown Source)\r\n\tat sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source)\r\n\tat sun.reflect.generics.repository.ClassRepository.getSuperclass(Unknown Source)\r\n\tat java.lang.Class.getGenericSuperclass(Unknown Source)\r\n\tat com.sun.beans.TypeResolver.prepare(Unknown Source)\r\n\tat com.sun.beans.TypeResolver.resolve(Unknown Source)\r\n\tat com.sun.beans.TypeResolver.resolve(Unknown Source)\r\n\tat com.sun.beans.TypeResolver.resolve(Unknown Source)\r\n\tat com.sun.beans.TypeResolver.resolve(Unknown Source)\r\n\tat com.sun.beans.TypeResolver.resolveInClass(Unknown Source)\r\n\tat java.beans.FeatureDescriptor.getParameterTypes(Unknown Source)\r\n\tat java.beans.PropertyDescriptor.findPropertyType(Unknown Source)\r\n\tat java.beans.PropertyDescriptor.updateGenericsFor(Unknown Source)\r\n\tat java.beans.Introspector.addPropertyDescriptor(Unknown Source)\r\n\tat java.beans.Introspector.addPropertyDescriptors(Unknown Source)\r\n\tat java.beans.Introspector.getTargetPropertyInfo(Unknown Source)\r\n\tat java.beans.Introspector.getBeanInfo(Unknown Source)\r\n\tat java.beans.Introspector.getBeanInfo(Unknown Source)\r\n\tat java.beans.Introspector.getBeanInfo(Unknown Source)\r\n\tat java.beans.Introspector.<init>(Unknown Source)\r\n\tat java.beans.Introspector.getBeanInfo(Unknown Source)\r\n\tat java.beans.Introspector.getBeanInfo(Unknown Source)\r\n\tat java.beans.Introspector.<init>(Unknown Source)\r\n\tat java.beans.Introspector.getBeanInfo(Unknown Source)\r\n\tat org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:279)\r\n\tat org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:189)\r\n\tat org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:173)\r\n\tat org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:248)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1418)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1397)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1259)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)\r\n\t... 36 common frames omitted\r\nCaused by: java.lang.ClassNotFoundException: com.sun.jersey.api.client.filter.ClientFilter\r\n\tat java.net.URLClassLoader.findClass(Unknown Source)\r\n\tat java.lang.ClassLoader.loadClass(Unknown Source)\r\n\tat org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94)\r\n\tat java.lang.ClassLoader.loadClass(Unknown Source)\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Unknown Source)\r\n\t... 72 common frames omitted`"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/374326696","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/2750#issuecomment-374326696","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/2750","id":374326696,"user":{"login":"ryanjbaxter","id":524254,"avatar_url":"https://avatars1.githubusercontent.com/u/524254?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanjbaxter","html_url":"https://github.com/ryanjbaxter","followers_url":"https://api.github.com/users/ryanjbaxter/followers","following_url":"https://api.github.com/users/ryanjbaxter/following{/other_user}","gists_url":"https://api.github.com/users/ryanjbaxter/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjbaxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjbaxter/subscriptions","organizations_url":"https://api.github.com/users/ryanjbaxter/orgs","repos_url":"https://api.github.com/users/ryanjbaxter/repos","events_url":"https://api.github.com/users/ryanjbaxter/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjbaxter/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T18:55:22Z","updated_at":"2018-03-19T18:55:22Z","author_association":"CONTRIBUTOR","body":"@hanishi so is everything resolved now?"}}
{"actor":{"display_login":"ryanjbaxter"}}