Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10526

Trailing ", \" in report definitions throws not helpful error message

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 23.0.1
    • Fix Version/s: 27.0.0
    • Component/s: Reports / Statsd
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Epic Link:
    • Sprint:
      Horizon 2020 - July 8, Horizon 2020 - July 22

      Description

      The error message in output.log which is caused through this config issue:

      reports=powerSupplyTable.powerSupplyOutputWatts, \
      virtualDiskTable.virtualDiskProgress, \
      virtualDiskTable.virtualDiskRemainingRedundancy, \
      
      
      

      is not really helpful to find the problem.

      horizon     | 09:30:18.126 [Main] ERROR org.opennms.netmgt.dao.support.PropertiesGraphDao - Failed to load report ''
      horizon     | org.springframework.dao.DataAccessResourceFailureException: Properties for report '' must contain 'report..name' property
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.getReportProperty(PropertiesGraphDao.java:645) ~[opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.makePrefabGraph(PropertiesGraphDao.java:554) ~[opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.loadPrefabGraphDefinitions(PropertiesGraphDao.java:532) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.loadIncludedFile(PropertiesGraphDao.java:220) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.scanIncludeDirectory(PropertiesGraphDao.java:284) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.createPrefabGraphType(PropertiesGraphDao.java:395) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.createPrefabGraphType(PropertiesGraphDao.java:302) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.loadProperties(PropertiesGraphDao.java:149) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.initPrefab(PropertiesGraphDao.java:98) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.dao.support.PropertiesGraphDao.afterPropertiesSet(PropertiesGraphDao.java:883) [opennms-dao-23.0.1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1642) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [org.apache.servicemix.bundles.spring-beans-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1058) [org.apache.servicemix.bundles.spring-context-4.2.9.RELEASE_1.jar:?]
      horizon     | 	at org.opennms.netmgt.config.tester.ConfigTester.testConfig(ConfigTester.java:89) [opennms-config-tester-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.config.tester.ConfigTester.testConfig(ConfigTester.java:205) [opennms-config-tester-23.0.1.jar:?]
      horizon     | 	at org.opennms.netmgt.config.tester.ConfigTester.main(ConfigTester.java:190) [opennms-config-tester-23.0.1.jar:?]
      horizon     | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191]
      horizon     | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191]
      horizon     | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191]
      horizon     | 	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191]
      horizon     | 	at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525) [opennms_bootstrap.jar:?]
      horizon     | 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
      
      

      The message should tell us more information, for example the line number.

        Attachments

          Activity

            People

            Assignee:
            cpape Christian Pape
            Reporter:
            fuhrmann Marcel Fuhrmann
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: