jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Jetty
  • JETTY-243

IllegalStateException: FULL

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 6.1.2rc0
  • Fix Version/s: 6.1.2rc1
  • Component/s: None
  • Labels:
    None
  • Environment:
    java version "1.5.0_11" on debian

Description

Caused by: java.lang.IllegalStateException: FULL
at org.mortbay.jetty.HttpGenerator.addContent(HttpGenerator.java:121)
at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:615)
at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:570)
at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112)
at org.mortbay.jetty.AbstractGenerator$OutputWriter.write(AbstractGenerator.java:864)
at org.mortbay.jetty.AbstractGenerator$OutputWriter.write(AbstractGenerator.java:715)
at java.io.PrintWriter.write(PrintWriter.java:384)

Happens randomly on server with load, especially on slow pages.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Java Archive File
    jetty-6.1-SNAPSHOT.jar
    24/Feb/07 6:02 PM
    454 kB
    Greg Wilkins
    1. File
      META-INF/MANIFEST.MF 0.2 kB
    2. XML File
      org/mortbay/jetty/webapp/webdefault.xml 21 kB
    3. File
      org/mortbay/.../TagLibConfiguration.class 7 kB
    4. File
      org/mortbay/.../webapp/Configuration.class 0.5 kB
    5. File
      org/mortbay/.../webapp/WebAppContext.class 22 kB
    6. File
      org/mortbay/.../WebXmlConfiguration.class 27 kB
    7. File
      org/.../JettyWebXmlConfiguration.class 3 kB
    8. File
      org/mortbay/.../WebInfConfiguration.class 2 kB
    9. File
      org/mortbay/.../WebAppClassLoader.class 8 kB
    10. File
      org/mortbay/jetty/encoding.properties 0.1 kB
    11. File
      org/mortbay/jetty/mime.properties 4 kB
    12. File
      org/mortbay/jetty/favicon.ico 1 kB
    13. File
      org/.../ClientCertAuthenticator.class 2 kB
    14. File
      org/mortbay/.../security/Authenticator.class 0.4 kB
    15. File
      org/mortbay/.../security/UserRealm.class 0.7 kB
    16. File
      org/mortbay/.../Credential$Crypt.class 2 kB
    17. File
      org/mortbay/.../Credential$MD5.class 3 kB
    18. File
      org/mortbay/.../security/Credential.class 0.9 kB
    19. File
      org/mortbay/.../security/ServletSSL.class 0.8 kB
    20. File
      org/mortbay/.../security/Password.class 4 kB
    21. File
      org/mortbay/.../BasicAuthenticator.class 3 kB
    22. File
      org/mortbay/.../ConstraintMapping.class 1 kB
    23. File
      org/mortbay/.../security/Constraint.class 3 kB
    24. File
      org/mortbay/.../SecurityHandler$1.class 0.6 kB
    25. File
      org/.../SecurityHandler$NotChecked.class 0.9 kB
    26. File
      org/mortbay/.../SecurityHandler$2.class 0.6 kB
    27. File
      org/mortbay/.../SecurityHandler.class 10 kB
    28. File
      org/mortbay/.../security/PKCS12Import.class 4 kB
    29. File
      org/mortbay/.../security/JDBCUserRealm.class 6 kB
    30. File
      org/mortbay/.../HashUserRealm$User.class 2 kB
    Showing 30 of 211 items Download Zip
    Show
    Java Archive File
    jetty-6.1-SNAPSHOT.jar
    24/Feb/07 6:02 PM
    454 kB
    Greg Wilkins
  2. Hide
    Java Archive File
    jetty-util-6.1-SNAPSHOT.jar
    23/Feb/07 4:59 AM
    120 kB
    Greg Wilkins
    1. File
      META-INF/MANIFEST.MF 0.2 kB
    2. File
      org/mortbay/log/Logger.class 0.4 kB
    3. File
      org/mortbay/log/Slf4jLog.class 5 kB
    4. File
      org/mortbay/log/StdErrLog.class 3 kB
    5. File
      org/mortbay/log/Log.class 5 kB
    6. File
      org/mortbay/util/Attributes.class 0.4 kB
    7. File
      org/mortbay/util/TypeUtil.class 12 kB
    8. File
      org/mortbay/util/MultiMap.class 5 kB
    9. File
      org/mortbay/util/ajax/Continuation.class 0.3 kB
    10. File
      org/mortbay/.../WaitingContinuation.class 2 kB
    11. File
      org/mortbay/util/ajax/JSON$Source.class 1 kB
    12. File
      org/mortbay/.../ajax/JSON$Generator.class 0.2 kB
    13. File
      org/mortbay/util/ajax/JSON$Literal.class 0.9 kB
    14. File
      org/mortbay/util/ajax/JSON.class 9 kB
    15. File
      org/.../AjaxFilter$AjaxResponse.class 2 kB
    16. File
      org/mortbay/util/ajax/AjaxFilter$1.class 0.2 kB
    17. File
      org/mortbay/util/ajax/AjaxFilter.class 4 kB
    18. File
      org/mortbay/.../ContinuationSupport.class 1 kB
    19. File
      org/.../RolloverFileOutputStream$RollTask.class 1 kB
    20. File
      org/.../RolloverFileOutputStream$1.class 0.2 kB
    21. File
      org/.../RolloverFileOutputStream.class 7 kB
    22. File
      org/mortbay/util/Scanner$Listener.class 0.3 kB
    23. File
      org/mortbay/util/Scanner$1.class 0.5 kB
    24. File
      org/mortbay/util/Scanner.class 7 kB
    25. File
      org/mortbay/.../MultiPartOutputStream.class 3 kB
    26. File
      org/mortbay/util/DateCache.class 5 kB
    27. File
      org/mortbay/.../QuotedStringTokenizer.class 5 kB
    28. File
      org/mortbay/util/AttributesMap.class 2 kB
    29. File
      org/mortbay/util/MultiPartWriter.class 2 kB
    30. File
      org/mortbay/util/LazyList.class 6 kB
    Showing 30 of 73 items Download Zip
    Show
    Java Archive File
    jetty-util-6.1-SNAPSHOT.jar
    23/Feb/07 4:59 AM
    120 kB
    Greg Wilkins

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Greg Wilkins added a comment - 22/Feb/07 10:47 PM

I did make a change in 6.1.2rc0 that was meant to totally
remove the chance of this happening.... but obviously
I am missing something as it appears to have made it more
frequent?????

Any information you can give me on the traffic profile,
load or how you can repeat this would be really really good.

I have tried several stress tests and I can't reproduce, but
it is obvious that is happening for several users at least?

Show
Greg Wilkins added a comment - 22/Feb/07 10:47 PM I did make a change in 6.1.2rc0 that was meant to totally remove the chance of this happening.... but obviously I am missing something as it appears to have made it more frequent????? Any information you can give me on the traffic profile, load or how you can repeat this would be really really good. I have tried several stress tests and I can't reproduce, but it is obvious that is happening for several users at least?
Hide
Permalink
Greg Wilkins added a comment - 22/Feb/07 11:20 PM

I think I have found something that may fix this. The write method was not checking to see if a previous chunk had not been flushed.

I have checked in a hopeful fix - that does not break anything, but as I could not reproduce I don't know if this is really the issue or not.

can you test svn trunk?

Show
Greg Wilkins added a comment - 22/Feb/07 11:20 PM I think I have found something that may fix this. The write method was not checking to see if a previous chunk had not been flushed. I have checked in a hopeful fix - that does not break anything, but as I could not reproduce I don't know if this is really the issue or not. can you test svn trunk?
Hide
Permalink
Franklin Schmidt added a comment - 23/Feb/07 1:29 AM

I don't know how to build jetty. I haven't used Maven before. If you could send a jar to fschmidt@gmail.com, I will try it. The error only happens in our production system (Nabble), so I will have to do a release and then watch it and get back to you.

Show
Franklin Schmidt added a comment - 23/Feb/07 1:29 AM I don't know how to build jetty. I haven't used Maven before. If you could send a jar to fschmidt@gmail.com, I will try it. The error only happens in our production system (Nabble), so I will have to do a release and then watch it and get back to you.
Hide
Permalink
Greg Wilkins added a comment - 23/Feb/07 4:59 AM

Updated jetty jar

Show
Greg Wilkins added a comment - 23/Feb/07 4:59 AM Updated jetty jar
Hide
Permalink
Greg Wilkins added a comment - 23/Feb/07 4:59 AM

updated jetty util jar

Show
Greg Wilkins added a comment - 23/Feb/07 4:59 AM updated jetty util jar
Hide
Permalink
Greg Wilkins added a comment - 23/Feb/07 5:01 AM

I have attached updated jars to this issue.
remove the lib/jetty-6.1.2rc0.jar and lib/jetty-util-6.1.rc0.jar files
and save these two jars in the lib directory.

thanks

Show
Greg Wilkins added a comment - 23/Feb/07 5:01 AM I have attached updated jars to this issue. remove the lib/jetty-6.1.2rc0.jar and lib/jetty-util-6.1.rc0.jar files and save these two jars in the lib directory. thanks
Hide
Permalink
Franklin Schmidt added a comment - 24/Feb/07 3:42 PM

I tried the attached jars and I still get the same error.

Show
Franklin Schmidt added a comment - 24/Feb/07 3:42 PM I tried the attached jars and I still get the same error.
Hide
Permalink
Greg Wilkins added a comment - 24/Feb/07 6:01 PM

Mmmm - I am very confused.

The write(Buffer) has the following code

while (_generator.isBufferFull() && _generator._endp.isOpen())
blockForOutput();

// Add the _content
_generator.addContent(buffer, Generator.MORE);

So it will not get passed the blockForOutput if the buffer is full and the endpoint is open.

So perhaps this is only happening on clients that actually close their connections while the
server is blocked trying to write to them? In which case the exception is ignorable.

I have attached the jetty jar again on this assuption. it does another test for the
endpoint being closed before throwing a full exception.

sorry to do trial and error withyou.....

Show
Greg Wilkins added a comment - 24/Feb/07 6:01 PM Mmmm - I am very confused. The write(Buffer) has the following code while (_generator.isBufferFull() && _generator._endp.isOpen()) blockForOutput(); // Add the _content _generator.addContent(buffer, Generator.MORE); So it will not get passed the blockForOutput if the buffer is full and the endpoint is open. So perhaps this is only happening on clients that actually close their connections while the server is blocked trying to write to them? In which case the exception is ignorable. I have attached the jetty jar again on this assuption. it does another test for the endpoint being closed before throwing a full exception. sorry to do trial and error withyou.....
Hide
Permalink
Greg Wilkins added a comment - 24/Feb/07 6:02 PM

second attempt

Show
Greg Wilkins added a comment - 24/Feb/07 6:02 PM second attempt
Hide
Permalink
Franklin Schmidt added a comment - 25/Feb/07 8:35 PM

Now the error is gone.

Show
Franklin Schmidt added a comment - 25/Feb/07 8:35 PM Now the error is gone.
Hide
Permalink
Jan Bartel added a comment - 11/Mar/07 1:32 AM

Closing issue, fix went in to 6.1.2rc1.

Show
Jan Bartel added a comment - 11/Mar/07 1:32 AM Closing issue, fix went in to 6.1.2rc1.

People

  • Assignee:
    Greg Wilkins
    Reporter:
    Franklin Schmidt
Vote (0)
Watch (1)

Dates

  • Created:
    22/Feb/07 3:22 PM
    Updated:
    11/Mar/07 1:32 AM
    Resolved:
    11/Mar/07 1:32 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.