Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4523

Loading HttpContext class twice leads to LinkageError error.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • v3.1.0
    • None
    • None
    • Sprint 51

    Description

      After upgrading httpclient to 4.3.6, on CDH 5.7 env it will lead to LinkageError occured, because it loades HttpContext class in two different ClassLoader (CustomizedWebappClassloader and AppClassLoader):

      Error message:

      java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.http.protocol.HttpCoreContext.<init>(Lorg/apache/http/protocol/HttpContext;)V" the class loader (instance of org/apache/kylin/ext/CustomizedWebappClassloader) of the current class, org/apache/http/client/protocol/HttpClientContext, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, org/apache/http/protocol/HttpCoreContext, have different Class objects for the type org/apache/http/protocol/HttpContext used in the signature

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zzcclp Zhichao Zhang
            zzcclp Zhichao Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprint:
                Sprint 51 ended 01/Jun/20
                View on Board

                Slack

                  Issue deployment