XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • 7.0.2.Final
    • REST
    • Hide

      @Path("test")
      @GET
      public void test(final @Suspend(10000) AsynchronousResponse response) {
      Thread t = new Thread() {

      @Override
      public void run() {
      try

      { Response jaxrs = Response.ok("basic").type(MediaType.TEXT_PLAIN).build(); response.setResponse(jaxrs); }

      catch (Exception e)

      { e.printStackTrace(); }

      }
      };
      t.start();
      }

      Show
      @Path("test") @GET public void test(final @Suspend(10000) AsynchronousResponse response) { Thread t = new Thread() { @Override public void run() { try { Response jaxrs = Response.ok("basic").type(MediaType.TEXT_PLAIN).build(); response.setResponse(jaxrs); } catch (Exception e) { e.printStackTrace(); } } }; t.start(); }

    Description

      IllegalAccessError when submitting response to org.jboss.resteasy.spi.AsynchronousResponse.
      Due to this issue resteasy async is not usable at all

      java.lang.IllegalAccessError: tried to access field org.jboss.resteasy.plugins.server.servlet.HttpServletInputMessage.dispatcher from class org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest$1: java.lang.IllegalAccessError: tried to access field org.jboss.resteasy.plugins.server.servlet.HttpServletInputMessage.dispatcher from class org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest$1
      at org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest$1.setResponse(Servlet3AsyncHttpRequest.java:47) [async-http-servlet-3.0-2.2.1.GA.jar:]

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            stanislav.minar Stanislav Minar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: