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

Test failures in org.opennms.netmgt.vmmgr.SpringLoaderTest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.1
    • Fix Version/s: Unknown Release
    • Component/s: Testing / JUnit
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      1622

      Description

      Note: these failures cause Maven Surefire to semi-quietly fail. It doesn't clearly report that any tests
      failed on stdout, nor in the output XML file, so Cruisecontrol doesn't catch the specific failure. Surefire
      does report that the tests failed and the build fails, as well, so Cruisecontrol correctly reports that
      something failed, the problem is that it isn't obvious as to what (especially since this is buried in
      stdout output).

      All tests in this file fail, but I didn't gather failure output for all of them, as it's time consuming to do
      so.

      testStart:
      log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
      log4j:WARN Please initialize the log4j system properly.
      Creating: TestDaemon
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'init-
      datasource-factory' defined in URL [jar:file:/Users/dgregor/.m2/repository/org/opennms/opennms-
      dao/1.3.2-SNAPSHOT/opennms-dao-1.3.2-SNAPSHOT.jar!/META-INF/opennms/applicationContext-
      dao.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: The
      OpenNMS home directory "/opt/OpenNMS" does not exist
      Caused by: java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS" does not
      exist
      at org.opennms.netmgt.ConfigFileConstants.getConfigFileByName(ConfigFileConstants.java:704)
      at org.opennms.netmgt.config.DataSourceFactory.init(DataSourceFactory.java:125)
      at org.opennms.netmgt.config.DataSourceFactory.init(DataSourceFactory.java:110)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:258) at
      org.springframework.beans.factory.config.MethodInvokingFactoryBean.doInvoke
      (MethodInvokingFactoryBean.java:124)
      at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet
      (MethodInvokingFactoryBean.java:113)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
      (AbstractAutowireCapableBeanFactory.java:877)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
      (AbstractAutowireCapableBeanFactory.java:846)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:419)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
      (DefaultListableBeanFactory.java:247)
      at org.springframework.context.support.AbstractApplicationContext.refresh
      (AbstractApplicationContext.java:331)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:92)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:77)
      at org.opennms.netmgt.vmmgr.SpringLoader.<init>(SpringLoader.java:59)
      at org.opennms.netmgt.vmmgr.SpringLoader.main(SpringLoader.java:145)
      at org.opennms.netmgt.vmmgr.SpringLoaderTest.testStart(SpringLoaderTest.java:53)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
      (AbstractDirectoryTestSuite.java:135)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
      (AbstractDirectoryTestSuite.java:160)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:81)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:182)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:743)
      ROOT CAUSE is java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS" does not
      exist
      Exception occurred: java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS"
      does not exist
      java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS" does not exist
      at org.opennms.netmgt.ConfigFileConstants.getConfigFileByName(ConfigFileConstants.java:704)
      at org.opennms.netmgt.config.DataSourceFactory.init(DataSourceFactory.java:125)
      at org.opennms.netmgt.config.DataSourceFactory.init(DataSourceFactory.java:110)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:258) at
      org.springframework.beans.factory.config.MethodInvokingFactoryBean.doInvoke
      (MethodInvokingFactoryBean.java:124)
      at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet
      (MethodInvokingFactoryBean.java:113)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
      (AbstractAutowireCapableBeanFactory.java:877)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
      (AbstractAutowireCapableBeanFactory.java:846)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:419)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
      (DefaultListableBeanFactory.java:247)
      at org.springframework.context.support.AbstractApplicationContext.refresh
      (AbstractApplicationContext.java:331)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:92)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:77)
      at org.opennms.netmgt.vmmgr.SpringLoader.<init>(SpringLoader.java:59)
      at org.opennms.netmgt.vmmgr.SpringLoader.main(SpringLoader.java:145)
      at org.opennms.netmgt.vmmgr.SpringLoaderTest.testStart(SpringLoaderTest.java:53)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
      (AbstractDirectoryTestSuite.java:135)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
      (AbstractDirectoryTestSuite.java:160)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:81)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:182)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:743)

      testContexts
      log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
      log4j:WARN Please initialize the log4j system properly.
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name
      'serviceDaemons' defined in class path resource [META-INF/opennms/default-startup.xml]: Cannot
      resolve reference to bean 'eventd' while setting bean property 'sourceList' with key [0]; nested exception
      is org.springframework.beans.factory.BeanCreationException: Error creating bean with name
      'eventConfigurationManager-init' defined in URL [file:/Users/.dgregor/opennms/trunk/opennms/
      opennms-services/target/classes/META-INF/opennms/eventd-context.xml]: Invocation of init method
      failed; nested exception is java.io.FileNotFoundException: The OpenNMS home directory "/opt/
      OpenNMS" does not exist
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name
      'eventConfigurationManager-init' defined in URL [file:/Users/.dgregor/opennms/trunk/opennms/
      opennms-services/target/classes/META-INF/opennms/eventd-context.xml]: Invocation of init method
      failed; nested exception is java.io.FileNotFoundException: The OpenNMS home directory "/opt/
      OpenNMS" does not exist
      Caused by: java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS" does not
      exist
      at org.opennms.netmgt.ConfigFileConstants.getFile(ConfigFileConstants.java:643)
      at org.opennms.netmgt.eventd.EventConfigurationManager.init(EventConfigurationManager.java:
      114)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:258) at
      org.springframework.beans.factory.config.MethodInvokingFactoryBean.doInvoke
      (MethodInvokingFactoryBean.java:124)
      at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet
      (MethodInvokingFactoryBean.java:113)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
      (AbstractAutowireCapableBeanFactory.java:877)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
      (AbstractAutowireCapableBeanFactory.java:846)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:419)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:361)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
      (BeanDefinitionValueResolver.java:219)
      at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
      (BeanDefinitionValueResolver.java:115)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList
      (BeanDefinitionValueResolver.java:235)
      at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
      (BeanDefinitionValueResolver.java:119)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
      (AbstractAutowireCapableBeanFactory.java:781)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
      (AbstractAutowireCapableBeanFactory.java:572)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:415)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
      (DefaultListableBeanFactory.java:247)
      at org.springframework.context.support.AbstractApplicationContext.refresh
      (AbstractApplicationContext.java:331)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:92)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:77)
      at org.opennms.netmgt.vmmgr.SpringLoader.<init>(SpringLoader.java:59)
      at org.opennms.netmgt.vmmgr.SpringLoader.main(SpringLoader.java:145)
      at org.opennms.netmgt.vmmgr.SpringLoaderTest.testContexts(SpringLoaderTest.java:65)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
      (AbstractDirectoryTestSuite.java:135)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
      (AbstractDirectoryTestSuite.java:160)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:81)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:182)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:743)
      ROOT CAUSE is java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS" does not
      exist
      Exception occurred: java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS"
      does not exist
      java.io.FileNotFoundException: The OpenNMS home directory "/opt/OpenNMS" does not exist
      at org.opennms.netmgt.ConfigFileConstants.getFile(ConfigFileConstants.java:643)
      at org.opennms.netmgt.eventd.EventConfigurationManager.init(EventConfigurationManager.java:
      114)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:258) at
      org.springframework.beans.factory.config.MethodInvokingFactoryBean.doInvoke
      (MethodInvokingFactoryBean.java:124)
      at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet
      (MethodInvokingFactoryBean.java:113)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
      (AbstractAutowireCapableBeanFactory.java:877)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
      (AbstractAutowireCapableBeanFactory.java:846)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:419)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:361)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
      (BeanDefinitionValueResolver.java:219)
      at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
      (BeanDefinitionValueResolver.java:115)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList
      (BeanDefinitionValueResolver.java:235)
      at
      org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
      (BeanDefinitionValueResolver.java:119)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
      (AbstractAutowireCapableBeanFactory.java:781)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
      (AbstractAutowireCapableBeanFactory.java:572)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:415)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
      (DefaultListableBeanFactory.java:247)
      at org.springframework.context.support.AbstractApplicationContext.refresh
      (AbstractApplicationContext.java:331)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:92)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:77)
      at org.opennms.netmgt.vmmgr.SpringLoader.<init>(SpringLoader.java:59)
      at org.opennms.netmgt.vmmgr.SpringLoader.main(SpringLoader.java:145)
      at org.opennms.netmgt.vmmgr.SpringLoaderTest.testContexts(SpringLoaderTest.java:65)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
      (AbstractDirectoryTestSuite.java:135)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
      (AbstractDirectoryTestSuite.java:160)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:81)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:182)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:743)

      testStatus:
      log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
      log4j:WARN Please initialize the log4j system properly.
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemonMgr'
      defined in class path resource [org/opennms/netmgt/vmmgr/remote-access.xml]: Invocation of init
      method failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost;
      nested exception is:
      java.net.ConnectException: Connection refused
      Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
      java.net.ConnectException: Connection refused
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
      at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
      at java.rmi.Naming.lookup(Naming.java:84)
      at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:
      157)
      at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(RmiClientInterceptor.java:126)
      at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet
      (RmiClientInterceptor.java:111)
      at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet
      (RmiProxyFactoryBean.java:66)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
      (AbstractAutowireCapableBeanFactory.java:877)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
      (AbstractAutowireCapableBeanFactory.java:846)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
      (AbstractAutowireCapableBeanFactory.java:419)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:241)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:152)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
      (DefaultListableBeanFactory.java:247)
      at org.springframework.context.support.AbstractApplicationContext.refresh
      (AbstractApplicationContext.java:331)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:92)
      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>
      (ClassPathXmlApplicationContext.java:77)
      at org.opennms.netmgt.vmmgr.SpringLoader.<init>(SpringLoader.java:59)
      at org.opennms.netmgt.vmmgr.SpringLoader.main(SpringLoader.java:145)
      at org.opennms.netmgt.vmmgr.SpringLoaderTest.testStatus(SpringLoaderTest.java:74)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
      (AbstractDirectoryTestSuite.java:135)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
      (AbstractDirectoryTestSuite.java:160)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:81)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:182)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:743)
      Caused by: java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:430)
      at java.net.Socket.connect(Socket.java:507)
      at java.net.Socket.connect(Socket.java:457)
      at java.net.Socket.<init>(Socket.java:365)
      at java.net.Socket.<init>(Socket.java:178)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:
      128)
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
      ... 47 more
      ROOT CAUSE is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
      java.net.ConnectException: Connection refused

        Attachments

          Activity

            People

            • Assignee:
              buglist@opennms.org OpenNMS Bug Mailing List
              Reporter:
              dgregor DJ Gregor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: