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

config-tester exception in clean 1.12 installation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.11.93, 1.12.0
    • Fix Version/s: 1.12.1
    • Component/s: Testing / JUnit
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Hello,

      since 1.11.93 and now that I've just updated to 1.12.0 when I run config-tester -va I got:

      [vagrant@centos62opennms contrib]$ /opt/opennms/bin/config-tester -va
      Testing ackd-configuration.xml ... OK (0.148s)
      Testing actiond-configuration.xml ... OK (0.067s)
      Testing ami-config.xml ... OK (0.06s)
      Testing availability-reports.xml ... OK (0.138s)
      Testing capsd-configuration.xml ... OK (0.144s)
      Testing categories.xml ... OK (0.11s)
      Testing chart-configuration.xml ... OK (0.173s)
      Testing database-reports.xml ... OK (0.026s)
      Testing database-schema.xml ... OK (0.079s)
      Testing datacollection-config.xml ... OK (6.266s)
      Testing destinationPaths.xml ... OK (0.097s)
      Testing discovery-configuration.xml ... OK (0.059s)
      Testing eventconf.xml ... OK (6.724s)
      Testing eventd-configuration.xml ... OK (0.025s)
      Testing events-archiver-configuration.xml ... OK (0.022s)
      Testing exclude-ueis.properties ... OK (0.01s)
      Testing groups.xml ... OK (0.064s)
      Testing http-datacollection-config.xml ... OK (0.038s)
      Testing jasper-reports.xml ... OK (0.046s)
      Testing javamail-configuration.properties ... OK (0.002s)
      Testing javamail-configuration.xml ... OK (0.484s)
      Testing jdbc-datacollection-config.xml ... OK (0.089s)
      Testing jmx-datacollection-config.xml ... OK (0.091s)
      Testing ksc-performance-reports.xml ... OK (0.007s)
      Testing magic-users.properties ... OK (0.195s)
      Testing map.properties ... OK (0.018s)
      Testing microblog-configuration.xml ... OK (0.048s)
      Testing model-importer.properties ... OK (0.0s)
      Testing notifd-configuration.xml ... OK (0.094s)
      Testing notificationCommands.xml ... OK (0.124s)
      Testing opennms-datasources.xml ... OK (0.094s)
      Testing opennms-server.xml ... OK (0.023s)
      Testing otrs.properties ... java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:362)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'otrsConfigDaoCheck' defined in class path resource [META-INF/opennms/applicationContext-configTester.xml]: Cannot resolve reference to bean 'otrsConfigDao' while setting bean property 'targetObject'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.opennms.netmgt.ticketer.otrs.DefaultOtrsConfigDao] for bean with name 'otrsConfigDao' defined in class path resource [META-INF/opennms/applicationContext-configTester.xml]; nested exception is java.lang.ClassNotFoundException: org.opennms.netmgt.ticketer.otrs.DefaultOtrsConfigDao
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
      at org.opennms.netmgt.config.tester.ConfigTester.testConfig(ConfigTester.java:72)
      at org.opennms.netmgt.config.tester.ConfigTester.testConfig(ConfigTester.java:159)
      at org.opennms.netmgt.config.tester.ConfigTester.main(ConfigTester.java:144)
      ... 6 more
      Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.opennms.netmgt.ticketer.otrs.DefaultOtrsConfigDao] for bean with name 'otrsConfigDao' defined in class path resource [META-INF/opennms/applicationContext-configTester.xml]; nested exception is java.lang.ClassNotFoundException: org.opennms.netmgt.ticketer.otrs.DefaultOtrsConfigDao
      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:432)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
      ... 19 more
      Caused by: java.lang.ClassNotFoundException: org.opennms.netmgt.ticketer.otrs.DefaultOtrsConfigDao
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:789)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
      at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282)
      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)
      ... 25 more

      I do not have such file in my /opt/opennms/etc folder so not sure what's wrong.

      thanks

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              mvillarejo manuel villarejo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: