glassfish
  1. glassfish
  2. GLASSFISH-21029

Logging throw java.lang.IllegalStateException: Queue full. When use System.out.println.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: logging
    • Labels:
      None
    • Environment:

      glassfish4 JDK7 windows

      Description

      When following code run GF4 throw java.lang.IllegalStateException
      for (int i = 0; i < 20000; i++)

      { System.out.println("-----------------------------"); }

      not only above statement will cause error,but also logging to console.
      -----------------
      I was fixed this error by com.sun.common.util.logging.LoggingOutputStream put following code at line 116

      try

      { pendingRecords.add(logRecord); }

      catch (IllegalStateException e) {
      try

      { pendingRecords.put(logRecord); }

      catch (InterruptedException ex)

      { //log will lose. }

      }

        Activity

        Hide
        sandeep.shrivastava added a comment -

        Committed revision 63273.

        Show
        sandeep.shrivastava added a comment - Committed revision 63273.
        Hide
        Pavel Bucek added a comment -

        change related to this issue was reverted.

        Show
        Pavel Bucek added a comment - change related to this issue was reverted.
        Hide
        sandeep.shrivastava added a comment -

        Modified the original fix. Committed revision 63316.

        Show
        sandeep.shrivastava added a comment - Modified the original fix. Committed revision 63316.

          People

          • Assignee:
            sandeep.shrivastava
            Reporter:
            p_suwanpech
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: