Uploaded image for project: 'JBoss OSGi'
  1. JBoss OSGi
  2. JBOSGI-767

StorageManagerPlugin will fail to initialize if system properties change

    Details

      Description

      2015-02-04 21:10:06,056 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC000001: Failed to start service jbosgi.StorageManager: org.jboss.msc.service.StartException in service jbosgi.StorageManager: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_31]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_31]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_31]
      Caused by: java.util.ConcurrentModificationException
      	at java.util.Hashtable$Enumerator.next(Hashtable.java:1367) [rt.jar:1.8.0_31]
      	at org.jboss.osgi.framework.internal.BundleManagerPlugin.getProperties(BundleManagerPlugin.java:364)
      	at org.jboss.osgi.framework.spi.StorageManagerPlugin.start(StorageManagerPlugin.java:62)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      	... 3 more
      

      Solution is to add synchronization on System.getProperties()

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                arcivanov Arcadiy Ivanov
                Reporter:
                arcivanov Arcadiy Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: