Looks like the same issue that was<span></span> reported this morning on the mailing list and a ticket was created <a href="https://issues.jboss.org/browse/KEYCLOAK-3188">https://issues.jboss.org/browse/KEYCLOAK-3188</a><div><br><br>Le dimanche 7 août 2016, shortname &lt;<a href="mailto:shortname@yandex.ru">shortname@yandex.ru</a>&gt; a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I have JAX-RS service secured by Keycloak. It works fine on Wildfly
    8-10 and Glassfish 4. But on Tomee 7.0.1 async methods throws
    NullPointerException (sync works fine). I have created simple
    project for test on tomee 7.0.1 combination sync/async + keycloak
    and here is results:<br>
    <ol>
      <li>no keycloak + sync = ok</li>
      <li>no keycloak + async = ok</li>
      <li>keycloak + sync = ok</li>
      <li>keycloak + async = error</li>
    </ol>
    Method signature sample: <br>
    
    <br>
    @GET<br>
    public void findAll(@Suspended AsyncResponse response) <br>
    <br>
    Exception stacktrace:<br>
    <p>java.lang.NullPointerException<br>
         
org.apache.cxf.jaxrs.impl.<wbr>AsyncResponseImpl.<wbr>initContinuation(<wbr>AsyncResponseImpl.java:305)<br>
         
org.apache.cxf.jaxrs.impl.<wbr>AsyncResponseImpl.&lt;init&gt;(<wbr>AsyncResponseImpl.java:68)<br>
         
org.apache.cxf.jaxrs.utils.<wbr>JAXRSUtils.processParameter(<wbr>JAXRSUtils.java:816)<br>
         
org.apache.cxf.jaxrs.utils.<wbr>JAXRSUtils.processParameters(<wbr>JAXRSUtils.java:789)<br>
         
org.apache.cxf.jaxrs.<wbr>interceptor.<wbr>JAXRSInInterceptor.<wbr>processRequest(<wbr>JAXRSInInterceptor.java:212)<br>
         
org.apache.cxf.jaxrs.<wbr>interceptor.<wbr>JAXRSInInterceptor.<wbr>handleMessage(<wbr>JAXRSInInterceptor.java:77)<br>
         
org.apache.cxf.phase.<wbr>PhaseInterceptorChain.<wbr>doIntercept(<wbr>PhaseInterceptorChain.java:<wbr>308)<br>
         
org.apache.cxf.transport.<wbr>ChainInitiationObserver.<wbr>onMessage(<wbr>ChainInitiationObserver.java:<wbr>121)<br>
         
org.apache.cxf.transport.http.<wbr>AbstractHTTPDestination.<wbr>invoke(<wbr>AbstractHTTPDestination.java:<wbr>254)<br>
         
org.apache.openejb.server.cxf.<wbr>rs.CxfRsHttpListener.doInvoke(<wbr>CxfRsHttpListener.java:251)<br>
         
org.apache.tomee.webservices.<wbr>CXFJAXRSFilter.doFilter(<wbr>CXFJAXRSFilter.java:94)<br>
         
      org.apache.tomcat.websocket.<wbr>server.WsFilter.doFilter(<wbr>WsFilter.java:52)<br>
         
      org.apache.openejb.server.<wbr>httpd.EEFilter.doFilter(<wbr>EEFilter.java:65)</p>
        private void initContinuation() {<br>
            ContinuationProvider provider =
(ContinuationProvider)this.<wbr>inMessage.get(<wbr>ContinuationProvider.class.<wbr>getName());<br>
            <b>this.cont = provider.getContinuation();</b><br>
            this.initialSuspend = true;<br>
        }<br>
    <br>
    How this issue can be resolved? May be this is tomcat adapter bug?<br>
    <br>
    Best regards, Ilia<br>
    <br>
  </div>

</blockquote></div>