camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas Stuart (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-10168) Don't print stacktrace when Kinesis not available on startup
Date Thu, 21 Jul 2016 14:16:20 GMT
Nicholas Stuart created CAMEL-10168:
---------------------------------------

             Summary: Don't print stacktrace when Kinesis not available on startup
                 Key: CAMEL-10168
                 URL: https://issues.apache.org/jira/browse/CAMEL-10168
             Project: Camel
          Issue Type: Bug
          Components: camel-aws, camel-spring-boot
    Affects Versions: 2.17.2
            Reporter: Nicholas Stuart
            Priority: Minor


When using camel-spring-boot-starter and camel-aws and also excluding the aws-jdk a stacktrace
is thrown on startup complaining about not finding the Kinesis model Record class not being
found. (full trace below)

We exclude the full aws-jdk dependency as it pulls in ALL aws jars, and thats not needed or
desired when we only want integration with a couple of their services.

As far as I can tell this doesn't affect the actual running or behavior of our application,
but it's still not very nice to have a stacktrace thrown every time it starts up.


java.lang.NoClassDefFoundError: com/amazonaws/services/kinesis/model/Record
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_91]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_91]
        at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_91]
        at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.loadConverterMethods(AnnotationTypeConverterLoader.java:262)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:130)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:602)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:53)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) [camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1243)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1204)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1200)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:2326)
[camel-core-2.17.2.jar:2.17.2]
        at org.apache.camel.spring.boot.TypeConversionConfiguration.typeConverter(TypeConversionConfiguration.java:39)
[camel-spring-boot-2.17.2.jar:2.17.2]
        at org.apache.camel.spring.boot.TypeConversionConfiguration$$EnhancerBySpringCGLIB$$624837ff.CGLIB$typeConverter$2(<generated>)
[camel-spring-boot-2.17.2.jar:2.17.2]
        at org.apache.camel.spring.boot.TypeConversionConfiguration$$EnhancerBySpringCGLIB$$624837ff$$FastClassBySpringCGLIB$$567ec3c0.invoke(<generated>)
[camel-spring-boot-2.17.2.jar:
2.17.2]
        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) [spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
[spring-context-4.2.7.RELEASE.jar:4.2.7
.RELEASE]
        at org.apache.camel.spring.boot.TypeConversionConfiguration$$EnhancerBySpringCGLIB$$624837ff.typeConverter(<generated>)
[camel-spring-boot-2.17.2.jar:2.17.2]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_91]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_91]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_91]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_91]
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
[spring-beans-4.2.7.R
ELEASE.jar:4.2.7.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
[spring-beans-4.2.7.RELEASE.jar:
4.2.7.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.R
ELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.REL
EASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
[spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEA
SE]
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
[spring-context-4.2.7.RELEASE.jar:4.2.7.RE
LEASE]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE]
        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760)
[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
        at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360)
[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:306) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message