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

Remove Fabric8 quickstart spring-boot-camel-teiid from 7.4 release

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • fuse-7.4-GA
    • fuse-7.3
    • FIS-Quickstarts
    • None
    • CR2
    • % %
    • Fuse 7.4 Sprint 48 - Blockers

    Description

      It is possible to run teiid quickstart on openshift according the README from https://github.com/fabric8-quickstarts/spring-boot-camel-teiid.
      Unfortunately "Running the example locally" does not work. Execution ends with Exception:

      10:29:47.996 [main] ERROR o.s.boot.SpringApplication - Application startup failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'teiidDS' defined in class path resource [io/fabric8/quickstarts/camel/teiid/TeiidServerAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'teiidDS' threw exception; nested exception is java.lang.NullPointerException: Service host not found in the environment (DATAVIRT_APP_SERVICE_HOST)
      at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
      at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
      at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
      at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
      at io.fabric8.quickstarts.camel.teiid.Application.main(Application.java:31)
      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.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:527)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'teiidDS' threw exception; nested exception is java.lang.NullPointerException: Service host not found in the environment (DATAVIRT_APP_SERVICE_HOST)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
      at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
      ... 24 common frames omitted
      Caused by: java.lang.NullPointerException: Service host not found in the environment (DATAVIRT_APP_SERVICE_HOST)
      at java.util.Objects.requireNonNull(Objects.java:228)
      at io.fabric8.quickstarts.camel.teiid.TeiidServerAutoConfiguration.getServiceInfo(TeiidServerAutoConfiguration.java:68)
      at io.fabric8.quickstarts.camel.teiid.TeiidServerAutoConfiguration.teiidDS(TeiidServerAutoConfiguration.java:40)
      at io.fabric8.quickstarts.camel.teiid.TeiidServerAutoConfiguration$$EnhancerBySpringCGLIB$$83e4cd8.CGLIB$teiidDS$0(<generated>)
      at io.fabric8.quickstarts.camel.teiid.TeiidServerAutoConfiguration$$EnhancerBySpringCGLIB$$83e4cd8$$FastClassBySpringCGLIB$$cf8accb.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
      at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)
      at io.fabric8.quickstarts.camel.teiid.TeiidServerAutoConfiguration$$EnhancerBySpringCGLIB$$83e4cd8.teiidDS(<generated>)
      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.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
      ... 25 common frames omitted

      Possibly allow deployment if the pod also into different project then data virtualization.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-vhalbert Van Halbert (Inactive)
              jondruse@redhat.com Jiri Ondrusek
              Lukas Lowinger Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: