Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2516

MP REST client application cannot be deployed to openshift with s2i

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • 3.9.0.Final
    • None
    • None
    • None
    • Hide
      1. Download s2i from https://github.com/openshift/source-to-image/releases/tag/v1.2.0
      2. eval $(minishift docker-env) # no need to setup DNS, may not be needed
        
      3. ./s2i build -e GALLEON_PROVISION_DEFAULT_FAT_SERVER=true -e MAVEN_OPTS_APPEND="-Dcom.redhat.xpaas.repo.jbossorg" \
        --context-dir microprofile-rest-client/country-client --ref wfly-12823-final-update-3 \
        https://github.com/xstefank/quickstart.git quay.io/wildfly/wildfly-centos7 country-client-wildfly-centos7
        
      4. docker run --rm country-client-wildfly-centos7
        
      Show
      Download s2i from https://github.com/openshift/source-to-image/releases/tag/v1.2.0 eval $(minishift docker-env) # no need to setup DNS, may not be needed ./s2i build -e GALLEON_PROVISION_DEFAULT_FAT_SERVER=true -e MAVEN_OPTS_APPEND="-Dcom.redhat.xpaas.repo.jbossorg" \ --context-dir microprofile-rest-client/country-client --ref wfly-12823-final-update-3 \ https://github.com/xstefank/quickstart.git quay.io/wildfly/wildfly-centos7 country-client-wildfly-centos7 docker run --rm country-client-wildfly-centos7

    Description

      I am trying to deploy a simple MP REST client application available at [1] to minishift and CRC with s2i. Using both eap CD18 image and wildfly s2i image the start of built EAP/WFLY fails with the following exception:

      java.lang.NullPointerException
      	at org.jboss.resteasy.resteasy-jaxrs@3.9.0.Final-redhat-00001//org.jboss.resteasy.microprofile.client.RestClientExtension.extractBaseUri(RestClientExtension.java:55)
      	at org.jboss.resteasy.resteasy-jaxrs@3.9.0.Final-redhat-00001//org.jboss.resteasy.microprofile.client.RestClientExtension.registerRestClient(RestClientExtension.java:44)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      This issue is only present in the Openshift (minishift, CRC) I have no option to test on an external cluster now. However, I was able to try to build the image manually, see steps to reproduce, with the same error. Local deployment to locally build and running EAP/WFLY works.

      The error is strange as the observer method should be invoked only if the annotation is present but it can't be retrieved.

      Also, I want to mention that the example app from steps to reproduce deploys without errors if I use image quay.io/wildfly/wildfly-centos7:17.0 so this may be a regression.

      [1] https://github.com/xstefank/quickstart/tree/wfly-12823-final-update-3/microprofile-rest-client/country-client

      Attachments

        Issue Links

          Activity

            People

              rsearls r searls
              mstefank Martin Stefanko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: