Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.9
    • Fix Version/s: 1.9.40
    • Component/s: all
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      811

      Description

      When uploading files over 2 Gb, I get the following exception:

      java.lang.NumberFormatException
      at com.sun.grizzly.util.buf.Ascii.parseLong(Ascii.java:232)
      at com.sun.grizzly.util.buf.ByteChunk.getLong(ByteChunk.java:542)
      at com.sun.grizzly.util.buf.MessageBytes.getLong(MessageBytes.java:712)
      at com.sun.grizzly.tcp.Request.getContentLengthLong(Request.java:367)
      at com.sun.grizzly.http.ProcessorTask.prepareRequest(ProcessorTask.java:1350)
      at com.sun.grizzly.http.ProcessorTask.parseRequest(ProcessorTask.java:867)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:659)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)

      #]

      It looks like somewhere the file size in bytes is not being kept as a long, since ints cannot store the
      bytesize for files over 2Gb. Can this be fixed in Grizzly? 2Gb is not such a big file size.

      I am using GlassFish v3 and the grizzly installed is the glassfish-grizzly that was released with it.
      Version 1.9.18-9.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            oleksiys
            Reporter:
            makoto1337
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: