Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-19934

Accessing Version and licensing page return 500 error with NoClassDefFoundError: org/apache/http/impl/auth/BasicScheme

    XMLWordPrintable

Details

    Description

      Issue Summary

      Accessing Version and licensing page return 500 error with NoClassDefFoundError: org/apache/http/impl/auth/BasicScheme

      Environment

      • JIRA 8.0.0, JIRA 8.0.1 with a forward proxy to access Marketplace.

      Steps to Reproduce

      1. Add a forward proxy in setenv.sh (Linux) or setenv.bat (Windows) following How to Configure an Outbound HTTP and HTTPS Proxy for JIRA applications.
        -Dhttp.proxyHost=proxy.example.org -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.example.org -Dhttps.proxyPort=8080 -Dhttp.proxyUser=proxyuser -Dhttp.proxyPassword=proxypassword -Dhttps.proxyUser=proxyuser -Dhttps.proxyPassword=proxypassword -Dhttp.nonProxyHosts=localhost
        
      2. Restart JIRA for it to take effect.
      3. After restart go to ⚙>Application to access Versions and Licensing page.

      Expected Results

      Versions and Licensing page load properly.

      Actual Results

      Versions and Licensing page return 500 error with below error:

      com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: org/apache/http/impl/auth/BasicScheme
      com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: org/apache/http/impl/auth/BasicScheme
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2048) [guava-26.0-jre.jar:?]
      	at com.google.common.cache.LocalCache.get(LocalCache.java:3952) [guava-26.0-jre.jar:?]
      	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4871) [guava-26.0-jre.jar:?]
      	at com.atlassian.cache.memory.DelegatingCache.get(DelegatingCache.java:178) [atlassian-cache-memory-4.0.0.jar:?]
      	at com.atlassian.cache.memory.DelegatingCache.get(DelegatingCache.java:163) [atlassian-cache-memory-4.0.0.jar:?]
      	at com.atlassian.upm.application.marketplace.ApplicationMarketplaceQueriesImpl.getPlatformVersionInfo(ApplicationMarketplaceQueriesImpl.java:130) [?:?]
      	at com.atlassian.upm.application.marketplace.ApplicationMarketplaceQueriesImpl.getAvailableAppsInfo(ApplicationMarketplaceQueriesImpl.java:144) [?:?]
      	at com.atlassian.upm.application.servlet.ApplicationManagerHandler.getContext(ApplicationManagerHandler.java:105) [?:?]
      	at com.atlassian.upm.core.servlet.UpmServletHandler.handle(UpmServletHandler.java:91) [?:?]
      	at com.atlassian.upm.core.servlet.UpmServletHandler.handle(UpmServletHandler.java:62) [?:?]
      

      Workaround

      The error happen due to the -Dhttps.proxyUser=proxyuser and -Dhttps.proxyPassword=proxypassword setting on the forward proxy. As a workaround, removing the settings will resolve the issue.

      -Dhttp.proxyHost=proxy.example.org -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.example.org -Dhttps.proxyPort=8080 -Dhttp.proxyUser=proxyuser -Dhttp.proxyPassword=proxypassword -Dhttp.nonProxyHosts=localhost
      

      Attachments

        Issue Links

          Activity

            People

              mrydzewski Mikolaj Rydzewski (Inactive)
              abinomar Amirul Ikhwan Omar (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: