ICEfaces
  1. ICEfaces
  2. ICE-9275

NegativeArraySizeException thrown by MonitorRunner.java

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P06
    • Fix Version/s: EE-1.8.2.GA_P07
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      JETTY 8.1.4
    • Assignee Priority:
      P2
    • Salesforce Case Reference:

      Description

      The user is seeing the following exception thrown:

      "NegativeArraySizeException: MonitorRunner.java:56 ":
      java.lang.NegativeArraySizeException
      at java.util.Arrays.copyOf(Arrays.java:2772)
      at java.util.Arrays.copyOf(Arrays.java:2746)
      at java.util.ArrayList.toArray(ArrayList.java:296)
      at java.util.ArrayList.<init>(ArrayList.java:151)
      at com.icesoft.util.MonitorRunner$1.run(MonitorRunner.java:56)

      The exception is thrown on line 56: (Iterator i = new ArrayList(monitors).iterator();) in MonitorRunner.java. This code should be synchronized in order to prevent further issues.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36586 Wed Jul 03 12:52:26 MDT 2013 deryk.sinotte ICE-9275: synchronize the collection to avoid problems with multiple thread access
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/util/MonitorRunner.java

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: