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

NPE with s2i-karaf with karaf-cxf-rest quickstart

XMLWordPrintable

    • % %

      When running

      oc new-app --strategy=source fabric8/s2i-karaf~git://github.com/rhuss/s2i-karaf-demo.git
      

      either with the latest community or rhel build images (1.2.1) and the referenced quickstart is created with

      mvn -U -cpu archetype:generate -B -DarchetypeGroupId=io.fabric8.archetypes -DarchetypeArtifactId=karaf-cxf-rest-archetype -DgroupId=myf8 -DartifactId=d2 -DarchetypeVersion=2.2.62
      

      the followin NPE occurs when the build image is run:

      + exec /deployments/karaf/bin/karaf server
      Could not start Jolokia agent: java.lang.IllegalStateException: Cannot open keystore for https communication: java.io.FileNotFoundException: No such CA cert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
      log4j:ERROR Could not find value for key log4j.appender.stdstdout
      log4j:ERROR Could not instantiate appender named "stdstdout".
      log4j:ERROR Could not find value for key log4j.appender.stdstdout
      log4j:ERROR Could not instantiate appender named "stdstdout".
      log4j:ERROR Could not find value for key log4j.appender.stdstdout
      log4j:ERROR Could not instantiate appender named "stdstdout".
      java.lang.NullPointerException
      	at org.reflections.vfs.Vfs$DefaultUrlTypes$4.createDir(Vfs.java:320)
      	at org.reflections.vfs.Vfs.fromURL(Vfs.java:108)
      	at org.reflections.vfs.Vfs.fromURL(Vfs.java:100)
      	at org.reflections.Reflections.scan(Reflections.java:237)
      	at org.reflections.Reflections.scan(Reflections.java:204)
      	at org.reflections.Reflections.<init>(Reflections.java:129)
      	at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:206)
      	at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:170)
      	at org.apache.cxf.jaxrs.swagger.Swagger2Feature.addSwaggerResource(Swagger2Feature.java:93)
      	at org.apache.cxf.jaxrs.swagger.AbstractSwaggerFeature.initialize(AbstractSwaggerFeature.java:46)
      	at io.fabric8.cxf.endpoint.SwaggerFeature$1.handleEvent(SwaggerFeature.java:48)
      	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.sendEvent(AbstractServiceFactoryBean.java:72)
      	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:198)
      	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)
      	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:497)
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)
      

              Unassigned Unassigned
              rhuss1@redhat.com Roland Huss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: