Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-1053

Null pointer exception when doing a backup of a Sonar server configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 3.0
    • Component/s: Database
    • Labels:
      None
    • Environment:
      linux-x86-32
      CentOS release 5 (Final)
      java version "1.6.0_11"
      Oracle 10 Database

      installed plug-ins:
      sonar-plugin-taglist-0.4.jar
      technical-debt-0.2.jar
      sonar-metricsanalytics-plugin-v0.5.0-bin.jar

      Description

      When performing a Backup from Sonar a NullPointer is triggered.

      The stacktrace from the sonar.log (partially):
      2009.08.12 18:07:27 ERROR rails

      NativeException (java.lang.NullPointerException: null):
      com/thoughtworks/xstream/core/util/QuickWriter.java:35:in `write'
      org/sonar/core/configuration/Backup.java:147:in `writeText'
      com/thoughtworks/xstream/io/xml/PrettyPrintWriter.java:182:in `setValue'
      com/thoughtworks/xstream/io/WriterWrapper.java:45:in `setValue'
      org/sonar/core/profiles/ProfilesBackup.java:214:in `writeNode'
      org/sonar/core/profiles/ProfilesBackup.java:41:in `access$000'
      org/sonar/core/profiles/ProfilesBackup.java:146:in `marshal'
      com/thoughtworks/xstream/core/AbstractReferenceMarshaller.java:65:in `convert'
      com/thoughtworks/xstream/core/TreeMarshaller.java:78:in `convertAnother'
      com/thoughtworks/xstream/core/TreeMarshaller.java:63:in `convertAnother'
      com/thoughtworks/xstream/converters/collections/AbstractCollectionConverter.java:63:in `writeItem'
      com/thoughtworks/xstream/converters/collections/CollectionConverter.java:55:in `marshal'
      com/thoughtworks/xstream/core/AbstractReferenceMarshaller.java:65:in `convert'
      com/thoughtworks/xstream/core/TreeMarshaller.java:78:in `convertAnother'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:145:in `marshallField'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:137:in `writeField'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:113:in `visit'
      com/thoughtworks/xstream/converters/reflection/PureJavaReflectionProvider.java:129:in `visitSerializableFields'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:95:in `doMarshal'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:54:in `marshal'
      com/thoughtworks/xstream/core/AbstractReferenceMarshaller.java:65:in `convert'
      com/thoughtworks/xstream/core/TreeMarshaller.java:78:in `convertAnother'
      com/thoughtworks/xstream/core/TreeMarshaller.java:63:in `convertAnother'
      com/thoughtworks/xstream/converters/collections/AbstractCollectionConverter.java:63:in `writeItem'
      com/thoughtworks/xstream/converters/collections/CollectionConverter.java:55:in `marshal'
      com/thoughtworks/xstream/core/AbstractReferenceMarshaller.java:65:in `convert'
      com/thoughtworks/xstream/core/TreeMarshaller.java:78:in `convertAnother'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:145:in `marshallField'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:137:in `writeField'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:113:in `visit'
      com/thoughtworks/xstream/converters/reflection/PureJavaReflectionProvider.java:129:in `visitSerializableFields'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:95:in `doMarshal'
      com/thoughtworks/xstream/converters/reflection/AbstractReflectionConverter.java:54:in `marshal'
      com/thoughtworks/xstream/core/AbstractReferenceMarshaller.java:65:in `convert'
      com/thoughtworks/xstream/core/TreeMarshaller.java:78:in `convertAnother'
      com/thoughtworks/xstream/core/TreeMarshaller.java:63:in `convertAnother'
      com/thoughtworks/xstream/core/TreeMarshaller.java:98:in `start'
      com/thoughtworks/xstream/core/AbstractTreeMarshallingStrategy.java:38:in `marshal'
      com/thoughtworks/xstream/XStream.java:845:in `marshal'
      com/thoughtworks/xstream/XStream.java:834:in `marshal'
      com/thoughtworks/xstream/XStream.java:815:in `toXML'
      com/thoughtworks/xstream/XStream.java:805:in `toXML'
      org/sonar/core/configuration/Backup.java:92:in `getXmlFromSonarConfig'

      Sonar switches to the default "We're sorry, but something went wrong." page.

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            ronaldvdh Ronald
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: