SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1597

Unable to use Sonar Flex Plugin with Java 7

    Details

      Description

      Restarting sonar instance using java 7 leads to the following exception and it doesnt start. Falling back to java6 works fine.

      Exception :

      org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.server.startup.RegisterRules.start()', instance 'org.sonar.server.startup.RegisterRules@1821ec6, com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.sonar.plugins.flex.flexpmd.xml.FlexRule as it does not have a no-args constructor
              org/picocontainer/monitors/NullComponentMonitor.java:77:in `lifecycleInvocationFailed'
              org/picocontainer/lifecycle/ReflectionLifecycleStrategy.java:132:in `monitorAndThrowReflectionLifecycleException'
              org/picocontainer/lifecycle/ReflectionLifecycleStrategy.java:115:in `invokeMethod'
              org/picocontainer/lifecycle/ReflectionLifecycleStrategy.java:89:in `start'
              org/picocontainer/injectors/AbstractInjectionFactory.java:84:in `start'
              org/picocontainer/behaviors/AbstractBehavior.java:169:in `start'
              org/picocontainer/behaviors/Stored.java:132:in `start'
              org/picocontainer/behaviors/Stored.java:110:in `start'
              org/picocontainer/DefaultPicoContainer.java:996:in `potentiallyStartAdapter'
              org/picocontainer/DefaultPicoContainer.java:989:in `startAdapters'
              org/picocontainer/DefaultPicoContainer.java:746:in `start'
              org/sonar/api/platform/ComponentContainer.java:70:in `startComponents'
              org/sonar/server/platform/Platform.java:230:in `executeStartupTasks'
              org/sonar/server/platform/Platform.java:115:in `start'
      

      Can someone look into this?

      Thanks,
      Gayathri

        Activity

        Hide
        Gayathri Muralidharan added a comment - - edited

        Note : This happens with sonar 2.10, 2.11 and 2.12

        Thanks

        Show
        Gayathri Muralidharan added a comment - - edited Note : This happens with sonar 2.10, 2.11 and 2.12 Thanks
        Hide
        Evgeny Mandrikov added a comment -

        Should be noted that this error can be reproduced by execution of unit tests with JDK 7. And looks similar to SONARPLUGINS-1330

        Show
        Evgeny Mandrikov added a comment - Should be noted that this error can be reproduced by execution of unit tests with JDK 7. And looks similar to SONARPLUGINS-1330
        Hide
        Evgeny Mandrikov added a comment -

        Fixed in r5228.

        Show
        Evgeny Mandrikov added a comment - Fixed in r5228 .

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Gayathri Muralidharan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: