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

Blocking call while performing AbstractJAXBProvider.writeTo when using OpenJDK 11+

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 5.0.6.Final, 6.2.3.Final
    • Providers
    • None

    Description

      We have identified a blocking call with the help of Blockhound while trying to perform HTTP operations with reactor-netty.

      We have tested this scenario enabling Blockhound and identified the blocking call with OpenJDK 11 and 17.

      Attached the stack trace of the blocking call exception here : Stacktrace_blockhound.rtf

       

      On analysing the blocking call trace and the OpenJDK changes, the blocking call is happening while,

      AbstractJAXBProvider trying to write the request body which internally calls cached context to check the context exists in cache. Its trying to create new context for cache using contextFinder.java find method of jdk 8 jaxb module. But jaxb module has been removed from jdk 9 as mentioned here, its trying to utilise javax.xml.bind's contextFinder and blocking call detected in this line

      Attachments

        1. Stacktrace_blockhound.rtf
          10 kB
          Maheswari Vijayperumal

        Activity

          People

            jperkins-rhn James Perkins
            mahes.mepco Maheswari Vijayperumal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: