Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.1
    • Fix Version/s: 0.4
    • Component/s: samples
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      10

      Description

      I reported an earlier problem with running my tictactoe program on Glassfish.

      That problem still seems to be there.

      I'm now running on GF v3 b56, with Atmosphere .3

      I'm getting the following error in my logs:

      java.lang.IllegalStateException: PWC3990: getWriter() has already been called
      for this response
      at org.apache.catalina.connector.Response.getOutputStream(Response.java:688)
      at
      org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:213)
      at
      org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:865)
      at
      org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:403)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at
      org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1506)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:293)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
      at
      com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
      at
      org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:351)
      at
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:250)
      at
      com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:148)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:746)
      at com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:481)
      at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:350)
      at com.sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84)
      at
      com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:147)
      at
      com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:126)
      at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:88)
      at com.sun.grizzly.http.TaskBase.run(TaskBase.java:189)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:637)

      I believe that I'm using the same tictactoe as in the samples, but I'll attach
      my program as well, just to be sure.

        Activity

        Hide
        driscoll added a comment -

        Created an attachment (id=1)
        TicTacToe program

        Show
        driscoll added a comment - Created an attachment (id=1) TicTacToe program
        Hide
        driscoll added a comment -

        I should also note that this program works fine on Tomcat.

        Show
        driscoll added a comment - I should also note that this program works fine on Tomcat.
        Hide
        jfarcand added a comment -

        Fixed

        Sending
        atmosphere/modules/cpr/src/main/java/org/atmosphere/container/GlassFishv2CometSupport.java
        Sending
        atmosphere/modules/cpr/src/main/java/org/atmosphere/container/GrizzlyCometSupport.java
        Sending
        atmosphere/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java
        Sending
        atmosphere/modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java
        Transmitting file data ....
        Committed revision 413.

        Show
        jfarcand added a comment - Fixed Sending atmosphere/modules/cpr/src/main/java/org/atmosphere/container/GlassFishv2CometSupport.java Sending atmosphere/modules/cpr/src/main/java/org/atmosphere/container/GrizzlyCometSupport.java Sending atmosphere/modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java Sending atmosphere/modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java Transmitting file data .... Committed revision 413.

          People

          • Assignee:
            atmosphere-issues
            Reporter:
            driscoll
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: