Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11121

[camel-yammer] olderThan option is not working on Spring-boot-2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.5-ER1
    • fuse-7.4-GA
    • Camel
    • None

      [ERROR] olderThenOptionTest(org.jboss.qe.camel.components.yammer.YammerTest)  Time elapsed: 2.518 s  <<< ERROR!
      org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: yammer://messages?olderThan=251352796921856 due to: Error during type conversion from type: java.lang.String to the required type: int with value 251352796921856 due For input string: "251352796921856"
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:753)
              at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
              at org.apache.camel.impl.DefaultConsumerTemplate.resolveMandatoryEndpoint(DefaultConsumerTemplate.java:230)
              at org.apache.camel.impl.DefaultConsumerTemplate.receive(DefaultConsumerTemplate.java:87)
              at org.apache.camel.impl.DefaultConsumerTemplate.receiveBody(DefaultConsumerTemplate.java:161)
              at org.jboss.qe.camel.components.yammer.YammerTest.olderThenOptionTest(YammerTest.java:81)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
              at org.jboss.arquillian.junit.Arquillian$8$1.invoke(Arquillian.java:334)
              at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:57)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
              at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)
              at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:36)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
              at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:116)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
              at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
              at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
              at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:122)
              at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:330)
              at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:212)
              at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:376)
              at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
              at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:223)
              at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
              at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
              at org.junit.rules.RunRules.evaluate(RunRules.java:20)
              at org.jboss.arquillian.junit.Arquillian$7$1.invoke(Arquillian.java:287)
              at org.jboss.arquillian.container.test.impl.execution.BeforeLifecycleEventExecuter.on(BeforeLifecycleEventExecuter.java:34)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
              at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:116)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
              at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
              at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
              at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.fireCustomLifecycle(EventTestRunnerAdaptor.java:142)
              at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:281)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
              at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:174)
              at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:376)
              at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
              at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:185)
              at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
              at org.junit.rules.RunRules.evaluate(RunRules.java:20)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
              at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:140)
              at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
              at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
              at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:61)
              at org.jboss.arquillian.protocol.jmx.JMXTestRunner.doRunTestMethod(JMXTestRunner.java:153)
              at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:137)
              at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:119)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
              at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
              at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
              at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
              at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
              at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
              at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
              at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
              at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
              at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
              at sun.rmi.transport.Transport$1.run(Transport.java:200)
              at sun.rmi.transport.Transport$1.run(Transport.java:197)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: int with value 251352796921856 due For input string: "251352796921856"
              at org.apache.camel.impl.converter.BaseTypeConverterRegistry.createTypeConversionException(BaseTypeConverterRegistry.java:666)
              at org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:197)
              at org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:176)
              at org.apache.camel.util.IntrospectionSupport.convert(IntrospectionSupport.java:669)
              at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:574)
              at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:649)
              at org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:491)
              at org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:501)
              at org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:254)
              at org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:309)
              at org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:297)
              at org.apache.camel.component.yammer.YammerComponent.createEndpoint(YammerComponent.java:54)
              at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
              at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:706)
              ... 158 more
      Caused by: java.lang.NumberFormatException: For input string: "251352796921856"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
              at java.lang.Integer.parseInt(Integer.java:583)
              at java.lang.Integer.valueOf(Integer.java:766)
              at org.apache.camel.converter.ObjectConverter.toInteger(ObjectConverter.java:175)
              at org.apache.camel.converter.ObjectConverterOptimised.convertTo(ObjectConverterOptimised.java:53)
              at org.apache.camel.impl.converter.OptimisedTypeConverter.convertTo(OptimisedTypeConverter.java:60)
              at org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:299)
              at org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:188)
              ... 170 more
      
      

      Probably cherry-pick https://github.com/jboss-fuse/camel/commit/9ac5757e1207c24ac2c73f9e34a21ed9ea453fdb to camel-2.23 can help.

            acosenti Andrea Cosentino
            jbouska@redhat.com Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: