<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
    #email-body { min-width: 30em !important; }
    #email-page { padding: 8px !important; }
    #email-banner { padding: 8px 8px 0 8px !important; }
    #email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
    #email-fields { padding: 0 8px 8px 8px !important; }
    #email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
    <tr valign="top">
        <td id="email-page" style="padding:16px !important;">
            <table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
                <tr valign="top">
                    <td bgcolor="#3b4d64" style="background-color:#3b4d64;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="https://issues.jboss.org/s/en_USkylogg-418945332/847/58/_/jira-logo-scaled.png" alt="" style="vertical-align:top;" /></td>
                </tr><tr valign="top">
    <td id="email-banner" style="padding:32px 32px 0 32px;">

                
        
        
            <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
                            &nbsp;                         <div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
                                    <a class="user-hover" rel="phil.at" id="email_phil.at" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=phil.at" style="color:#326ca6;">Philipp Potisk</a>
     edited a comment on <img src="https://issues.jboss.org/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#326ca6;text-decoration:none;' href='https://issues.jboss.org/browse/WELD-1020'>WELD-1020</a>
            </div>
                        <div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
                <a style='color:#326ca6;text-decoration:none;' href='https://issues.jboss.org/browse/WELD-1020'><strong>NPE during cleanup after Servlet API3 AsyncContect</strong></a>
            </div>
                    </td>
    </tr>
</table>
        
    </td>
</tr>
<tr valign="top">
    <td id="email-fields" style="padding:0 32px 32px 32px;">
        <table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
            <tr valign="top">
                <td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr valign="top">
    <td colspan="2" style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 16px 0;width:100%;">
        <div class="comment-block" style="background-color:#edf5ff;border:1px solid #dddddd;color:#000000;padding:12px;"><p>Hi Martin, </p>

<p>Thanks for your feedback. I am also not happy with this quick-fix. On the other hand I have no clue what else I can do in this situation.</p>

<p>For your better understanding of the issue, I have attached file WeldTestEAR.ear. Basically it consists of an EAR project and two web-projects. JSP-file WeldTestWeb1/WebContent/inc.jsp includes WeldTestWeb2/WebContent/index.jsp. Furthermore CDI and security-constraints are enabled. If you deploy the EAR and call <a href="http://localhost:8080/WeldTestWeb1/" class="external-link">http://localhost:8080/WeldTestWeb1/</a> you will see the same NPE as in the asynchron context. So hopefully a solution for both issues will be released soon.</p>

<p>All the best,<br/>
Phil</p>


<p>Here The full stactrace from jBoss 7.1.1:</p>

<p>13:16:45,119 ERROR [org.apache.catalina.core.ContainerBase.<span class="error">&#91;jboss.web&#93;</span>.<span class="error">&#91;default-host&#93;</span>] (http--127.0.0.1-8081-5) Exception sending request destroyed lifecycle event to listener instance of class org.jboss.weld.servlet.WeldListener: java.lang.NullPointerException<br/>
        at org.jboss.weld.context.AbstractBoundContext.deactivate(AbstractBoundContext.java:71) <span class="error">&#91;weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31&#93;</span><br/>
        at org.jboss.weld.context.http.HttpRequestContextImpl.deactivate(HttpRequestContextImpl.java:86) <span class="error">&#91;weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31&#93;</span><br/>
        at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:103) <span class="error">&#91;weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31&#93;</span><br/>
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) <span class="error">&#91;jbossweb-7.0.13.Final.jar:&#93;</span><br/>
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) <span class="error">&#91;jbossweb-7.0.13.Final.jar:&#93;</span><br/>
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) <span class="error">&#91;jbossweb-7.0.13.Final.jar:&#93;</span><br/>
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) <span class="error">&#91;jbossweb-7.0.13.Final.jar:&#93;</span><br/>
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) <span class="error">&#91;jbossweb-7.0.13.Final.jar:&#93;</span><br/>
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) <span class="error">&#91;jbossweb-7.0.13.Final.jar:&#93;</span><br/>
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) <span class="error">&#91;jbossweb-7.0.13.Final.jar:&#93;</span><br/>
        at java.lang.Thread.run(Thread.java:722) <span class="error">&#91;rt.jar:1.7.0_05&#93;</span></p>

<p>And here from Weblogic 12.1.1:</p>

<p>java.lang.NullPointerException<br/>
        at org.jboss.weld.context.AbstractBoundContext.deactivate(AbstractBoundContext.java:71)<br/>
        at org.jboss.weld.context.http.HttpRequestContextImpl.deactivate(HttpRequestContextImpl.java:86)<br/>
        at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:103)<br/>
        at weblogic.servlet.internal.EventsManager.notifyRequestLifetimeEvent(EventsManager.java:389)<br/>
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:30)<br/>
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)<br/>
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)<br/>
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)<br/>
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)<br/>
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)<br/>
        at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)<br/>
        at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)<br/>
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)<br/>
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)<br/>
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)<br/>
        at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)<br/>
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)<br/>
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)</p>



</div>
        <div style="color:#505050;padding:4px 0 0 0;">                </div>
    </td>
</tr>
                    </table>
                </td>
            </tr>
        </table>
    </td>
</tr>













            </table>
        </td><!-- End #email-page -->
    </tr>
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
            This message is automatically generated by JIRA.<br />
            If you think it was sent incorrectly, please contact your JIRA administrators<br />
            For more information on JIRA, see: <a style='color:#326ca6;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
        </td>
    </tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->