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

HTTPS endpoint address doesn't work with HTTP proxy for RESTEasy reference binding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • SwitchYard
    • None
    • % %
    • Hide

      Run the attached reproducer rest-proxy-example with the following command:

      $ cd rest-proxy-example/
      $ mvn test
      
      Show
      Run the attached reproducer rest-proxy-example with the following command: $ cd rest -proxy-example/ $ mvn test
    • 6.3 Sprint 1 (4-Jan->29-Jan)

    Description

      When you have a REST endpoint starting with 'https://...' and an HTTP proxy configured at the same time with RESTEasy reference binding, then upon invoking the reference you'll see the following error:

      Caused by: java.lang.IllegalStateException: Scheme 'http' not registered.
              at org.apache.http.conn.scheme.SchemeRegistry.getScheme(SchemeRegistry.java:74)
              at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:156)
              at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
              at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
              at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
              at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
              at org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:182)
              at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:39)
              at org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40)
              at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:45)
              at org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:444)
              at org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:688)
              at org.switchyard.component.resteasy.util.ClientInvoker.invoke(ClientInvoker.java:453)
              ... 120 more
      

      Attachments

        Activity

          People

            virchete_jira David virgil naranjo (Inactive)
            rhn-support-tasato Tadayoshi Sato
            Jan Bouska Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: