Jetspeed 2
  1. Jetspeed 2
  2. JS2-967

Preferences Concurrent Modification Exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.4
    • Labels:
      None
    • Environment:
      Jetspeed-2 Performance Test Portal
      Websphere/WAS
      Oracle
      Linux 4-way Server

      Description

      The following stack trace occurs multiple times, (~5), during long running load tests:

      [4/14/09 11:36:05:492 PDT] 00000862 WebApp A SRVE0181I: j2pt#j2pt-app.war [/j2pt-app] [Servlet.LOG]: JetspeedContaine
      rServlet: Error rendering portlet "j2pt-app::PrefsFileContentLarge": java.util.ConcurrentModificationException: concurrent acces
      s to HashMap attempted by Thread[WebContainer : 2111,5,main]: java.util.ConcurrentModificationException: concurrent access to Ha
      shMap attempted by Thread[WebContainer : 2111,5,main]
      at java.util.HashMap.onExit(HashMap.java:226)
      at java.util.HashMap.transfer(HashMap.java:690)
      at java.util.HashMap.resize(HashMap.java:676)
      at java.util.HashMap.addEntry(HashMap.java:1049)
      at java.util.HashMap.put(HashMap.java:561)
      at org.apache.jetspeed.components.portletentity.PortletEntityImpl.getPreferenceSet(PortletEntityImpl.java:154)
      at org.apache.jetspeed.components.portletentity.PortletEntityImpl.getPreferenceSet(PortletEntityImpl.java:139)
      at org.apache.pluto.core.impl.PortletPreferencesImpl.<init>(PortletPreferencesImpl.java:72)
      at org.apache.pluto.factory.impl.PortletPreferencesFactoryImpl.getPortletPreferences(PortletPreferencesFactoryImpl.java:39)
      at org.apache.pluto.factory.PortletObjectAccess.getPortletPreferences(PortletObjectAccess.java:127)
      at org.apache.pluto.core.impl.RenderRequestImpl.getPreferences(RenderRequestImpl.java:74)
      at com.onehippo.jetspeed.portlets.FileContentPortlet.doView(FileContentPortlet.java:32)

        Activity

        Hide
        Randy Watler added a comment -

        Synchronized access to map of user preferences.

        svn commit: 765873

        Show
        Randy Watler added a comment - Synchronized access to map of user preferences. svn commit: 765873

          People

          • Assignee:
            Randy Watler
            Reporter:
            Randy Watler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development