1 Reply Latest reply on Nov 18, 2014 4:15 AM by mkouba

    Bean store leak was detected

    nandagopal1987

      Hi

       

      I am using jboss-as-7.1.1.Final with weld-core-1.1.26.Final. I decided to play around a little with the the JBPM workbench from jboss.

      I have deployed the war file and everything seems to be working as per the documentation.

      But i keep getting a lot these warnings.

       

      WELD-000223 Bean store leak was detected during org.jboss.weld.context.http.HttpRequestContextImpl association: org.apache.catalina.connector.RequestFacade@c691a5

       

      What does this mean? Is this dangerous or can i ignore it?

        • 1. Re: Bean store leak was detected
          mkouba

          Hi,

          this means that Weld detected an unremoved ThreadLocal variable (holding request scoped bean instances) during request context association. This may happen if Weld does not recieve ServletRequestListener.requestDestroyed(ServletRequestEvent)notification. We've observed similar issues with applications using server push (e.g. Atmosphere) on some servlet containers. Since 1.1.24.Final and 2.2.4.Final Weld always associates a new bean store for each request (replacing the old one if present). So I wouldn't say it's entirely safe to ignore but it should not pose any security threats or cause memory leaks.