CXF does not remove temporary files and kept file handlers open

Solution Verified - Updated -

Issue

  • When the message attachment exceeds 64kb, CXF writes it as a temporary file but never deletes it.
  • When the is system running on Windows, temporary files are locked and cannot be deleted.
  • When LoggingInInterceptor is enabled and CXF receive a message with an attachment greater than 64k a file handlers leak takes place.

Environment

  • Red Hat Enterprise Application Platform (EAP) 7.2
    • CXF 3.2.5.redhat-00001
      • LoggingInInterceptor is enabled
      • message attachments size exceeds the org.apache.cxf.io.CachedWriter.Threshold (64kb by default)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content