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

spring-boot-camel-amq quickstart doesn't work

XMLWordPrintable

      See error in pod log

      12:32:43.617 [Camel (CamelAMQ) thread #3 - timer://order] INFO  generate-order-route - Generating order order129.xml
      12:32:43.620 [Camel (CamelAMQ) thread #3 - timer://order] ERROR o.a.q.jms.provider.ProviderFactory - Failed to create Provider instance for null, due to: {}
      java.io.IOException: Provider scheme NOT recognized: [null]
      	at org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:156)
      	at org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:131)
      	at org.apache.qpid.jms.provider.ProviderFactory.create(ProviderFactory.java:102)
      	at org.apache.qpid.jms.provider.ProviderFactory.create(ProviderFactory.java:82)
      	at org.apache.qpid.jms.JmsConnectionFactory.createProvider(JmsConnectionFactory.java:349)
      	at org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:208)
      	at org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:199)
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:270)
      	at org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:107)
      	at org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:87)
      	at org.apache.commons.pool.impl.GenericKeyedObjectPool.addObject(GenericKeyedObjectPool.java:1748)
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:216)
      	at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:199)
      	at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
      	at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:526)
      	at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:440)
      	at org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:394)
      	at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:157)
      	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148)
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
      	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197)
      	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      Caused by: org.apache.qpid.jms.util.ResourceNotFoundException: Could not find factory resource: META-INF/services/org/apache/qpid/jms/provider/null
      	at org.apache.qpid.jms.util.FactoryFinder$StandaloneObjectFactory.loadProperties(FactoryFinder.java:230)
      	at org.apache.qpid.jms.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:171)
      	at org.apache.qpid.jms.util.FactoryFinder.newInstance(FactoryFinder.java:129)
      	at org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:154)
      	... 28 common frames omitted
      

      Potentially connected issue ENTESB-13107

      NOTE: It doesn't work also with FMP scenario because of different problem

      I can see in events

      Events:
        Type     Reason     Age                From                                 Message
        ----     ------     ----               ----                                 -------
        Normal   Scheduled  <unknown>          default-scheduler                    Successfully assigned llowinge/spring-boot-camel-amq-1-8dppr to foo43ga-bbhtm-worker-dfvx4
        Normal   Pulled     11s (x3 over 13s)  kubelet, foo43ga-bbhtm-worker-dfvx4  Container image "image-registry.openshift-image-registry.svc:5000/llowinge/spring-boot-camel-amq@sha256:c2b8b823e66e1371edeb9ad711c0d88b926f7ce67cea36b4706439f5ca3fc725" already present on machine
        Warning  Failed     11s (x3 over 13s)  kubelet, foo43ga-bbhtm-worker-dfvx4  Error: couldn't find key service.port in ConfigMap llowinge/spring-boot-camel-amq-config
      

      but in configMap

        external.host: messaging-zn14iu1qyj-llowinge.apps.foo43ga.openshift-aws.rhocf-dev.com
        external.port.amqps: "443"
        service.host: messaging-zn14iu1qyj.llowinge.svc
        service.port.amqp: "5672"
        service.port.amqps: "5671"
      kind: ConfigMap
      metadata:
        creationTimestamp: 2020-03-03T14:29:51Z
        name: spring-boot-camel-amq-config
        namespace: llowinge
        ownerReferences:
        - apiVersion: enmasse.io/v1beta1
          blockOwnerDeletion: false
          controller: true
          kind: AddressSpace
          name: spring-boot-camel-amq
          uid: d814d836-bbb3-40a5-a5b3-20e59db88104
        resourceVersion: "11711159"
        selfLink: /api/v1/namespaces/llowinge/configmaps/spring-boot-camel-amq-config
        uid: b15073e1-6b5d-4675-bd1a-6c54345c2589
      

            ldemasi Luigi De Masi
            llowinge@redhat.com Lukas Lowinger
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: