test failure of opennms19.01-1 for ConditionalActiveMQContextTest

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

test failure of opennms19.01-1 for ConditionalActiveMQContextTest

tliu
Hi,
 
  I am brand new to openNMS and maven build system and only have general java knowledge. Following the instruction from the link: https://wiki.opennms.org/wiki/Installation:Source. I installed jdk8 and postgresql-server-dev-9.5 package on ubuntu16.04-1, and check out source code from Git with tag opennms-19.0.1-1.
 After run compile.pl, I got a test error of ConditionalActiveMQContextTest.
 The following is the beginning part of the output  where we can tell the build environment.
 
./compile.pl
[DEBUG] --java-home not passed, searching for $JAVA_HOME
[INFO] Using $JAVA_HOME=/usr/lib/jvm/java-8-oracle
[WARN] You do not have $JAVA_VENDOR set. This is probably OK, but on some platforms
[WARN] you might need to set it, eg, to 'Sun' or 'openjdk'.
[DEBUG] setting root.dir to /home/thales/opennms
[DEBUG] setting build.profile to default
[INFO] JAVA_HOME = /usr/lib/jvm/java-8-oracle
[INFO] PATH = /usr/lib/jvm/java-8-oracle/bin:/home/thales/bin:/home/thales/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[INFO] MVN = /home/thales/opennms/maven/bin/mvn
[INFO] MAVEN_OPTS = -Xmx2048m -XX:ReservedCodeCacheSize=512m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:-UseGCOverheadLimit -XX:+UseParallelGC -XX:+UseParallelOldGC
[INFO] Git Branch = thales
[DEBUG] no maven targets specified, adding 'install' to the command-line
[INFO] running: /home/thales/opennms/maven/bin/mvn -Dbuild.profile=default -Droot.dir=/home/thales/opennms -Dmaven.metadata.legacy=true -Djava.awt.headless=true install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.opennms.features.events:org.opennms.features.events.syslog:bundle:19.0.1
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.mock-impl:jar -> duplicate declaration of version $
{project.version}
@ org.opennms.features.events:org.opennms.features.events.syslog:[unknown-version], /home/thales/opennms/features/events/syslog/pom.xml, line 173, column 17
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.opennms.features:jira-troubleticketer:bundle:19.0.1
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.opennms.dependencies:spring-dependencies:pom -> duplicate declaration of version  @ org.opennms.features:jira-troubleticketer:[unknown-version], /home/thales/opennms/features/ticketing/jira-integration/pom.xml, line 85, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OpenNMS
[INFO] OpenNMS :: Dependencies
[INFO] OpenNMS :: Dependencies :: Hibernate
[INFO] OpenNMS :: Dependencies :: Spring
[INFO] OpenNMS :: Dependencies :: ActiveMQ
[INFO] OpenNMS :: Dependencies :: Spring Web
[INFO] OpenNMS :: Dependencies :: ActiveMQ Web
[INFO] OpenNMS :: Dependencies :: Asterisk
[INFO] OpenNMS :: Dependencies :: Atomikos
[INFO] OpenNMS :: Dependencies :: JAXB
[INFO] OpenNMS :: Dependencies :: Camel
[INFO] OpenNMS :: Dependencies :: Camel Test
[INFO] OpenNMS :: Core
[INFO] OpenNMS :: Core :: Castor Properties
[INFO] OpenNMS :: Dependencies :: Castor
[INFO] OpenNMS :: Dependencies :: CXF
[INFO] OpenNMS :: Dependencies :: DNS Java
[INFO] OpenNMS :: Dependencies :: Drools
[INFO] OpenNMS :: Dependencies :: Apache Felix
[INFO] OpenNMS :: Dependencies :: GWT
[INFO] OpenNMS :: Dependencies :: JFreeChart
[INFO] OpenNMS :: Dependencies :: Jasper Report
[INFO] OpenNMS :: Dependencies :: Jasypt
[INFO] OpenNMS :: Dependencies :: JavaMail
[INFO] OpenNMS :: Dependencies :: JCIFS
[INFO] OpenNMS :: Dependencies :: J-Interop
[INFO] OpenNMS :: Core :: SNMP
[INFO] OpenNMS :: Core :: SNMP :: API
[INFO] OpenNMS :: Core :: API
[INFO] OpenNMS Dependencies OWASP Java Encoder
[INFO] OpenNMS :: Core :: Library
[INFO] OpenNMS :: Core :: Spring
[INFO] OpenNMS :: Core :: XML
[INFO] OpenNMS :: Dependencies :: Spring Test
[INFO] OpenNMS :: Core :: Test APIs
[INFO] OpenNMS :: Core :: Test API :: Library
[INFO] OpenNMS :: Core :: Test API :: XML
[INFO] OpenNMS :: Model :: Config :: JAXB
[INFO] OpenNMS :: Core :: JMX
[INFO] OpenNMS :: Core :: JMX :: API
[INFO] OpenNMS :: Core :: JMX :: Impl
[INFO] OpenNMS :: Dependencies :: JMX
[INFO] OpenNMS :: Dependencies :: JNA
[INFO] OpenNMS :: Dependencies :: JNLP
[INFO] OpenNMS :: Dependencies :: RADIUS
[INFO] OpenNMS :: Dependencies :: JRobin
[INFO] OpenNMS :: Dependencies :: JRRD
[INFO] OpenNMS :: Dependencies :: JRrd2
[INFO] OpenNMS :: Dependencies :: Apache Karaf
[INFO] OpenNMS :: Dependencies :: LiquiBase
[INFO] OpenNMS :: Dependencies :: Mina
[INFO] OpenNMS :: Dependencies :: Netty
[INFO] OpenNMS :: Dependencies :: Newts
[INFO] OpenNMS :: Dependencies :: Apache Pax Exam




The test error log partly taken from the output of compile.pl  is below:

-------------------------------------------------------
 T E S T S
 -------------------------------------------------------
 Running org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemonTest
 Initializing MockLogger.
 SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
 SLF4J: Defaulting to no-operation MDCAdapter implementation.
 SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 sec - in org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemonTest
 Initializing MockLogger.
 2017-04-27 11:04:40,705 INFO [main] org.springframework.test.context.TestContextManager - Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [javax/servlet/ServletContext]
 2017-04-27 11:04:40,718 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener: org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener
 2017-04-27 11:04:40,719 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.core.test.http.JUnitHttpServerExecutionListener: org.opennms.core.test.http.JUnitHttpServerExecutionListener
 2017-04-27 11:04:40,719 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.core.test.dns.JUnitDNSServerExecutionListener: org.opennms.core.test.dns.JUnitDNSServerExecutionListener
 2017-04-27 11:04:40,720 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.netmgt.collectd.JUnitCollectorExecutionListener: org.opennms.netmgt.collectd.JUnitCollectorExecutionListener
 Running org.opennms.netmgt.daemon.ConditionalActiveMQContextTest
 2017-04-27 11:04:40,737 INFO [main] org.springframework.test.context.TestContextManager - Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [javax/servlet/ServletContext]
 2017-04-27 11:04:40,738 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener: org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener
 2017-04-27 11:04:40,739 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.core.test.http.JUnitHttpServerExecutionListener: org.opennms.core.test.http.JUnitHttpServerExecutionListener
 2017-04-27 11:04:40,740 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.core.test.dns.JUnitDNSServerExecutionListener: org.opennms.core.test.dns.JUnitDNSServerExecutionListener
 2017-04-27 11:04:40,741 INFO [main] org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while attempting to load default unit test listener class org.opennms.netmgt.collectd.JUnitCollectorExecutionListener: org.opennms.netmgt.collectd.JUnitCollectorExecutionListener
 2017-04-27 11:04:40,861 WARN [main] org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.opennms.core.test.db.TemporaryDatabaseExecutionListener@20398b7c] to process 'before class' callback for test class [class org.opennms.netmgt.daemon.ConditionalActiveMQContextTest]
 java.util.concurrent.ExecutionException: org.opennms.core.test.db.TemporaryDatabaseException: Failed to get admin connection.
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:192)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.beforeTestClass(TemporaryDatabaseExecutionListener.java:232)
 at org.springframework.test.context.TestContextManager.beforeTestClass(TestContextManager.java:298)
 at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:60)
 at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
 Caused by: org.opennms.core.test.db.TemporaryDatabaseException: Failed to get admin connection.
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatabase(TemporaryDatabasePostgreSQL.java:360)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(TemporaryDatabasePostgreSQL.java:325)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(TemporaryDatabasePostgreSQL.java:161)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNewDatabase(TemporaryDatabaseExecutionListener.java:316)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000(TemporaryDatabaseExecutionListener.java:69)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
 at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:265)
 at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:55)
 at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
 at org.postgresql.Driver.makeConnection(Driver.java:407)
 at org.postgresql.Driver.connect(Driver.java:275)
 at java.sql.DriverManager.getConnection(DriverManager.java:664)
 at java.sql.DriverManager.getConnection(DriverManager.java:208)
 at org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSource.java:113)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatabase(TemporaryDatabasePostgreSQL.java:358)
 ... 10 more
 Caused by: java.net.ConnectException: Connection refused (Connection refused)
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:589)
 at org.postgresql.core.PGStream.<init>(PGStream.java:64)
 at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:147)
 ... 18 more
 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.157 sec <<< FAILURE! - in org.opennms.netmgt.daemon.ConditionalActiveMQContextTest
 org.opennms.netmgt.daemon.ConditionalActiveMQContextTest Time elapsed: 0.151 sec <<< ERROR!
 java.util.concurrent.ExecutionException: org.opennms.core.test.db.TemporaryDatabaseException: Failed to get admin connection.
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:192)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.beforeTestClass(TemporaryDatabaseExecutionListener.java:232)
 at org.springframework.test.context.TestContextManager.beforeTestClass(TestContextManager.java:298)
 at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:60)
 at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
 at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
 Caused by: org.opennms.core.test.db.TemporaryDatabaseException: Failed to get admin connection.
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatabase(TemporaryDatabasePostgreSQL.java:360)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(TemporaryDatabasePostgreSQL.java:325)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(TemporaryDatabasePostgreSQL.java:161)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNewDatabase(TemporaryDatabaseExecutionListener.java:316)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000(TemporaryDatabaseExecutionListener.java:69)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
 at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:265)
 at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:55)
 at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
 at org.postgresql.Driver.makeConnection(Driver.java:407)
 at org.postgresql.Driver.connect(Driver.java:275)
 at java.sql.DriverManager.getConnection(DriverManager.java:664)
 at java.sql.DriverManager.getConnection(DriverManager.java:208)
 at org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSource.java:113)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatabase(TemporaryDatabasePostgreSQL.java:358)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(TemporaryDatabasePostgreSQL.java:325)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(TemporaryDatabasePostgreSQL.java:161)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNewDatabase(TemporaryDatabaseExecutionListener.java:316)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000(TemporaryDatabaseExecutionListener.java:69)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: java.net.ConnectException: Connection refused (Connection refused)
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:589)
 at org.postgresql.core.PGStream.<init>(PGStream.java:64)
 at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:147)
 at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:55)
 at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
 at org.postgresql.Driver.makeConnection(Driver.java:407)
 at org.postgresql.Driver.connect(Driver.java:275)
 at java.sql.DriverManager.getConnection(DriverManager.java:664)
 at java.sql.DriverManager.getConnection(DriverManager.java:208)
 at org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSource.java:113)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatabase(TemporaryDatabasePostgreSQL.java:358)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(TemporaryDatabasePostgreSQL.java:325)
 at org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(TemporaryDatabasePostgreSQL.java:161)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNewDatabase(TemporaryDatabaseExecutionListener.java:316)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000(TemporaryDatabaseExecutionListener.java:69)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
 at org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNewDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)


I am wondering how the release opennms19.0.1 was build ? and how to fix it?

Thanks

Tim Liu

 
 
Reply | Threaded
Open this post in threaded view
|

Re: test failure of opennms19.01-1 for ConditionalActiveMQContextTest

Roskens, Ronald-2
You need to have a postgresql account setup to be able to create the temporary databases used for testing.

If you want to skip the tests, then run "./compile.pl -DskipTests=true -DskipITs=true"

Ron

> -----Original Message-----
> From: tliu [mailto:[hidden email]]
> Sent: Tuesday, May 02, 2017 10:06 AM
> To: [hidden email]
> Subject: [opennms-devel] test failure of opennms19.01-1 for
> ConditionalActiveMQContextTest
>
> Hi,
>
>   I am brand new to openNMS and maven build system and only have general
> java knowledge. Following the instruction from the link:
> https://wiki.opennms.org/wiki/Installation:Source. I installed jdk8 and
> postgresql-server-dev-9.5 package on ubuntu16.04-1, and check out source
> code from Git with tag opennms-19.0.1-1.
>  After run compile.pl, I got a test error of ConditionalActiveMQContextTest.
>  The following is the beginning part of the output  where we can tell the build
> environment.
>
> ./compile.pl
> [DEBUG] --java-home not passed, searching for $JAVA_HOME [INFO] Using
> $JAVA_HOME=/usr/lib/jvm/java-8-oracle
> [WARN] You do not have $JAVA_VENDOR set. This is probably OK, but on
> some platforms [WARN] you might need to set it, eg, to 'Sun' or 'openjdk'.
> [DEBUG] setting root.dir to /home/thales/opennms [DEBUG] setting
> build.profile to default [INFO] JAVA_HOME = /usr/lib/jvm/java-8-oracle
> [INFO] PATH = /usr/lib/jvm/java-8-
> oracle/bin:/home/thales/bin:/home/thales/.local/bin:/usr/local/sbin:/usr/lo
> cal/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> [INFO] MVN = /home/thales/opennms/maven/bin/mvn
> [INFO] MAVEN_OPTS = -Xmx2048m -XX:ReservedCodeCacheSize=512m -
> XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:-UseGCOverheadLimit -
> XX:+UseParallelGC -XX:+UseParallelOldGC [INFO] Git Branch = thales
> [DEBUG] no maven targets specified, adding 'install' to the command-line
> [INFO] running: /home/thales/opennms/maven/bin/mvn -
> Dbuild.profile=default -Droot.dir=/home/thales/opennms -
> Dmaven.metadata.legacy=true -Djava.awt.headless=true install [INFO]
> Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective
> model for
> org.opennms.features.events:org.opennms.features.events.syslog:bundle:
> 19.0.1
> [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)'
> must be unique:
> org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.mock-impl:jar ->
> duplicate declaration of version $ {project.version} @
> org.opennms.features.events:org.opennms.features.events.syslog:[unkno
> wn-version],
> /home/thales/opennms/features/events/syslog/pom.xml, line 173, column
> 17 [WARNING] [WARNING] Some problems were encountered while
> building the effective model for org.opennms.features:jira-
> troubleticketer:bundle:19.0.1
> [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)'
> must be unique: org.opennms.dependencies:spring-dependencies:pom ->
> duplicate declaration of version  @ org.opennms.features:jira-
> troubleticketer:[unknown-version],
> /home/thales/opennms/features/ticketing/jira-integration/pom.xml, line
> 85, column 21 [WARNING] [WARNING] It is highly recommended to fix these
> problems because they threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> [WARNING]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] OpenNMS
> [INFO] OpenNMS :: Dependencies
> [INFO] OpenNMS :: Dependencies :: Hibernate [INFO] OpenNMS ::
> Dependencies :: Spring [INFO] OpenNMS :: Dependencies :: ActiveMQ
> [INFO] OpenNMS :: Dependencies :: Spring Web [INFO] OpenNMS ::
> Dependencies :: ActiveMQ Web [INFO] OpenNMS :: Dependencies ::
> Asterisk [INFO] OpenNMS :: Dependencies :: Atomikos [INFO] OpenNMS ::
> Dependencies :: JAXB [INFO] OpenNMS :: Dependencies :: Camel [INFO]
> OpenNMS :: Dependencies :: Camel Test [INFO] OpenNMS :: Core [INFO]
> OpenNMS :: Core :: Castor Properties [INFO] OpenNMS :: Dependencies ::
> Castor [INFO] OpenNMS :: Dependencies :: CXF [INFO] OpenNMS ::
> Dependencies :: DNS Java [INFO] OpenNMS :: Dependencies :: Drools [INFO]
> OpenNMS :: Dependencies :: Apache Felix [INFO] OpenNMS :: Dependencies
> :: GWT [INFO] OpenNMS :: Dependencies :: JFreeChart [INFO] OpenNMS ::
> Dependencies :: Jasper Report [INFO] OpenNMS :: Dependencies :: Jasypt
> [INFO] OpenNMS :: Dependencies :: JavaMail [INFO] OpenNMS ::
> Dependencies :: JCIFS [INFO] OpenNMS :: Dependencies :: J-Interop [INFO]
> OpenNMS :: Core :: SNMP [INFO] OpenNMS :: Core :: SNMP :: API [INFO]
> OpenNMS :: Core :: API [INFO] OpenNMS Dependencies OWASP Java
> Encoder [INFO] OpenNMS :: Core :: Library [INFO] OpenNMS :: Core :: Spring
> [INFO] OpenNMS :: Core :: XML [INFO] OpenNMS :: Dependencies :: Spring
> Test [INFO] OpenNMS :: Core :: Test APIs [INFO] OpenNMS :: Core :: Test API
> :: Library [INFO] OpenNMS :: Core :: Test API :: XML [INFO] OpenNMS ::
> Model :: Config :: JAXB [INFO] OpenNMS :: Core :: JMX [INFO] OpenNMS ::
> Core :: JMX :: API [INFO] OpenNMS :: Core :: JMX :: Impl [INFO] OpenNMS ::
> Dependencies :: JMX [INFO] OpenNMS :: Dependencies :: JNA [INFO]
> OpenNMS :: Dependencies :: JNLP [INFO] OpenNMS :: Dependencies ::
> RADIUS [INFO] OpenNMS :: Dependencies :: JRobin [INFO] OpenNMS ::
> Dependencies :: JRRD [INFO] OpenNMS :: Dependencies :: JRrd2 [INFO]
> OpenNMS :: Dependencies :: Apache Karaf [INFO] OpenNMS ::
> Dependencies :: LiquiBase [INFO] OpenNMS :: Dependencies :: Mina [INFO]
> OpenNMS :: Dependencies :: Netty [INFO] OpenNMS :: Dependencies ::
> Newts [INFO] OpenNMS :: Dependencies :: Apache Pax Exam
>
>
>
>
> The test error log partly taken from the output of compile.pl  is below:
>
> -------------------------------------------------------
>  T E S T S
>  -------------------------------------------------------
>  Running
> org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemonTes
> t
>  Initializing MockLogger.
>  SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
>  SLF4J: Defaulting to no-operation MDCAdapter implementation.
>  SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for
> further details.
>  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 sec - in
> org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemonTes
> t
>  Initializing MockLogger.
>  2017-04-27 11:04:40,705 INFO [main]
> org.springframework.test.context.TestContextManager - Could not
> instantiate TestExecutionListener
> [org.springframework.test.context.web.ServletTestExecutionListener].
> Specify custom listener classes or make the default listener classes (and their
> required dependencies) available. Offending class:
> [javax/servlet/ServletContext]
>  2017-04-27 11:04:40,718 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener:
> org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener
>  2017-04-27 11:04:40,719 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.core.test.http.JUnitHttpServerExecutionListener:
> org.opennms.core.test.http.JUnitHttpServerExecutionListener
>  2017-04-27 11:04:40,719 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.core.test.dns.JUnitDNSServerExecutionListener:
> org.opennms.core.test.dns.JUnitDNSServerExecutionListener
>  2017-04-27 11:04:40,720 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.netmgt.collectd.JUnitCollectorExecutionListener:
> org.opennms.netmgt.collectd.JUnitCollectorExecutionListener
>  Running org.opennms.netmgt.daemon.ConditionalActiveMQContextTest
>  2017-04-27 11:04:40,737 INFO [main]
> org.springframework.test.context.TestContextManager - Could not
> instantiate TestExecutionListener
> [org.springframework.test.context.web.ServletTestExecutionListener].
> Specify custom listener classes or make the default listener classes (and their
> required dependencies) available. Offending class:
> [javax/servlet/ServletContext]
>  2017-04-27 11:04:40,738 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener:
> org.opennms.core.test.snmp.JUnitSnmpAgentExecutionListener
>  2017-04-27 11:04:40,739 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.core.test.http.JUnitHttpServerExecutionListener:
> org.opennms.core.test.http.JUnitHttpServerExecutionListener
>  2017-04-27 11:04:40,740 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.core.test.dns.JUnitDNSServerExecutionListener:
> org.opennms.core.test.dns.JUnitDNSServerExecutionListener
>  2017-04-27 11:04:40,741 INFO [main]
> org.opennms.core.test.OpenNMSJUnit4ClassRunner - Failed while
> attempting to load default unit test listener class
> org.opennms.netmgt.collectd.JUnitCollectorExecutionListener:
> org.opennms.netmgt.collectd.JUnitCollectorExecutionListener
>  2017-04-27 11:04:40,861 WARN [main]
> org.springframework.test.context.TestContextManager - Caught exception
> while allowing TestExecutionListener
> [org.opennms.core.test.db.TemporaryDatabaseExecutionListener@20398b7
> c] to process 'before class' callback for test class [class
> org.opennms.netmgt.daemon.ConditionalActiveMQContextTest]
>  java.util.concurrent.ExecutionException:
> org.opennms.core.test.db.TemporaryDatabaseException: Failed to get
> admin connection.
>  at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>  at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.beforeTest
> Class(TemporaryDatabaseExecutionListener.java:232)
>  at
> org.springframework.test.context.TestContextManager.beforeTestClass(Tes
> tContextManager.java:298)
>  at
> org.springframework.test.context.junit4.statements.RunBeforeTestClassCall
> backs.evaluate(RunBeforeTestClassCallbacks.java:60)
>  at
> org.springframework.test.context.junit4.statements.RunAfterTestClassCallb
> acks.evaluate(RunAfterTestClassCallbacks.java:71)
>  at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>  at
> org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(Spring
> JUnit4ClassRunner.java:176)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.jav
> a:283)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4P
> rovider.java:173)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Prov
> ider.java:153)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java
> :128)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClas
> sLoader(ForkedBooter.java:203)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Forked
> Booter.java:155)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:1
> 03)
>  Caused by: org.opennms.core.test.db.TemporaryDatabaseException: Failed
> to get admin connection.
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatab
> ase(TemporaryDatabasePostgreSQL.java:360)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(T
> emporaryDatabasePostgreSQL.java:325)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(Temporar
> yDatabasePostgreSQL.java:161)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNew
> Database(TemporaryDatabaseExecutionListener.java:316)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000
> (TemporaryDatabaseExecutionListener.java:69)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1142)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:617)
>  at java.lang.Thread.run(Thread.java:745)
>  Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432
> refused. Check that the hostname and port are correct and that the
> postmaster is accepting TCP/IP connections.
>  at
> org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connec
> tionFactoryImpl.java:265)
>  at
> org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.
> java:55)
>  at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
>  at org.postgresql.Driver.makeConnection(Driver.java:407)
>  at org.postgresql.Driver.connect(Driver.java:275)
>  at java.sql.DriverManager.getConnection(DriverManager.java:664)
>  at java.sql.DriverManager.getConnection(DriverManager.java:208)
>  at
> org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSo
> urce.java:113)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatab
> ase(TemporaryDatabasePostgreSQL.java:358)
>  ... 10 more
>  Caused by: java.net.ConnectException: Connection refused (Connection
> refused)
>  at java.net.PlainSocketImpl.socketConnect(Native Method)  at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:3
> 50)
>  at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImp
> l.java:206)
>  at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>  at java.net.Socket.connect(Socket.java:589)
>  at org.postgresql.core.PGStream.<init>(PGStream.java:64)
>  at
> org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connec
> tionFactoryImpl.java:147)
>  ... 18 more
>  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.157 sec <<<
> FAILURE! - in
> org.opennms.netmgt.daemon.ConditionalActiveMQContextTest
>  org.opennms.netmgt.daemon.ConditionalActiveMQContextTest Time
> elapsed:
> 0.151 sec <<< ERROR!
>  java.util.concurrent.ExecutionException:
> org.opennms.core.test.db.TemporaryDatabaseException: Failed to get
> admin connection.
>  at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>  at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.beforeTest
> Class(TemporaryDatabaseExecutionListener.java:232)
>  at
> org.springframework.test.context.TestContextManager.beforeTestClass(Tes
> tContextManager.java:298)
>  at
> org.springframework.test.context.junit4.statements.RunBeforeTestClassCall
> backs.evaluate(RunBeforeTestClassCallbacks.java:60)
>  at
> org.springframework.test.context.junit4.statements.RunAfterTestClassCallb
> acks.evaluate(RunAfterTestClassCallbacks.java:71)
>  at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>  at
> org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(Spring
> JUnit4ClassRunner.java:176)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.jav
> a:283)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4P
> rovider.java:173)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Prov
> ider.java:153)
>  at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java
> :128)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClas
> sLoader(ForkedBooter.java:203)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Forked
> Booter.java:155)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:1
> 03)
>  Caused by: org.opennms.core.test.db.TemporaryDatabaseException: Failed
> to get admin connection.
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatab
> ase(TemporaryDatabasePostgreSQL.java:360)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(T
> emporaryDatabasePostgreSQL.java:325)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(Temporar
> yDatabasePostgreSQL.java:161)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNew
> Database(TemporaryDatabaseExecutionListener.java:316)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000
> (TemporaryDatabaseExecutionListener.java:69)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1142)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:617)
>  at java.lang.Thread.run(Thread.java:745)
>  Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432
> refused. Check that the hostname and port are correct and that the
> postmaster is accepting TCP/IP connections.
>  at
> org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connec
> tionFactoryImpl.java:265)
>  at
> org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.
> java:55)
>  at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
>  at org.postgresql.Driver.makeConnection(Driver.java:407)
>  at org.postgresql.Driver.connect(Driver.java:275)
>  at java.sql.DriverManager.getConnection(DriverManager.java:664)
>  at java.sql.DriverManager.getConnection(DriverManager.java:208)
>  at
> org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSo
> urce.java:113)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatab
> ase(TemporaryDatabasePostgreSQL.java:358)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(T
> emporaryDatabasePostgreSQL.java:325)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(Temporar
> yDatabasePostgreSQL.java:161)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNew
> Database(TemporaryDatabaseExecutionListener.java:316)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000
> (TemporaryDatabaseExecutionListener.java:69)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1142)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:617)
>  at java.lang.Thread.run(Thread.java:745)
>  Caused by: java.net.ConnectException: Connection refused (Connection
> refused)
>  at java.net.PlainSocketImpl.socketConnect(Native Method)  at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:3
> 50)
>  at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImp
> l.java:206)
>  at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>  at java.net.Socket.connect(Socket.java:589)
>  at org.postgresql.core.PGStream.<init>(PGStream.java:64)
>  at
> org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Connec
> tionFactoryImpl.java:147)
>  at
> org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.
> java:55)
>  at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:219)
>  at org.postgresql.Driver.makeConnection(Driver.java:407)
>  at org.postgresql.Driver.connect(Driver.java:275)
>  at java.sql.DriverManager.getConnection(DriverManager.java:664)
>  at java.sql.DriverManager.getConnection(DriverManager.java:208)
>  at
> org.opennms.core.db.install.SimpleDataSource.getConnection(SimpleDataSo
> urce.java:113)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.createTestDatab
> ase(TemporaryDatabasePostgreSQL.java:358)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.setupDatabase(T
> emporaryDatabasePostgreSQL.java:325)
>  at
> org.opennms.core.test.db.TemporaryDatabasePostgreSQL.create(Temporar
> yDatabasePostgreSQL.java:161)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.createNew
> Database(TemporaryDatabaseExecutionListener.java:316)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener.access$000
> (TemporaryDatabaseExecutionListener.java:69)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:289)
>  at
> org.opennms.core.test.db.TemporaryDatabaseExecutionListener$CreateNe
> wDatabaseCallable.call(TemporaryDatabaseExecutionListener.java:275)
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1142)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:617)
>  at java.lang.Thread.run(Thread.java:745)
>
>
> I am wondering how the release opennms19.0.1 was build ? and how to fix
> it?
>
> Thanks
>
> Tim Liu
> 
>
>
>
>
>
> --
> View this message in context: http://opennms.530661.n2.nabble.com/test-
> failure-of-opennms19-01-1-for-ConditionalActiveMQContextTest-
> tp7595438.html
> Sent from the OpenNMS - devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most engaging
> tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
>
> opennms-devel mailing list
>
> To *unsubscribe* or change your subscription options, see the bottom of
> this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-devel

----------------------------------------------------------------------
This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
Reply | Threaded
Open this post in threaded view
|

Re: test failure of opennms19.01-1 for ConditionalActiveMQContextTest

tliu
Hi Ronald,

    Thank you very much!

   if I use "run "./compile.pl -DskipTests=true -DskipITs=true" , does it mean Maven will skip all the tests?

 
   Tim
Reply | Threaded
Open this post in threaded view
|

Re: test failure of opennms19.01-1 for ConditionalActiveMQContextTest

Roskens, Ronald-2
Yes. You might also want to read through the developers guide: http://docs.opennms.org/opennms/releases/latest/guide-development/guide-development.html

> -----Original Message-----
> From: tliu [mailto:[hidden email]]
> Sent: Tuesday, May 02, 2017 10:25 AM
> To: [hidden email]
> Subject: Re: [opennms-devel] test failure of opennms19.01-1 for
> ConditionalActiveMQContextTest
>
> Hi Ronald,
>
>     Thank you very much!
>
>    if I use "run "./compile.pl -DskipTests=true -DskipITs=true" , does it mean
> Maven will skip all the tests?
>
>
>    Tim
>
>
>
> --
> View this message in context: http://opennms.530661.n2.nabble.com/test-
> failure-of-opennms19-01-1-for-ConditionalActiveMQContextTest-
> tp7595438p7595440.html
> Sent from the OpenNMS - devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most engaging
> tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
>
> opennms-devel mailing list
>
> To *unsubscribe* or change your subscription options, see the bottom of
> this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-devel

----------------------------------------------------------------------
This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
Reply | Threaded
Open this post in threaded view
|

Re: test failure of opennms19.01-1 for ConditionalActiveMQContextTest

tliu


   Thank you!

   I will go through the guide!

  Tim

Reply | Threaded
Open this post in threaded view
|

Re: jnlp-dependencies error

tliu
Hi Ronald,

  There is no luck with skipping all tests, and got the same error" Failed to execute goal on project jnlp-dependencies:" after several retries.
 Could you point me to the right track?  

Thanks

 Tim


  Here is the screen shot:

   BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.469 s
[INFO] Finished at: 2017-05-03T07:48:55-04:00
[INFO] Final Memory: 491M/1281M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jnlp-dependencies: Could not resolve dependencies for project org.opennms.dependencies:jnlp-dependencies:pom:19.0.1: Failed to collect dependencies at javax.samples.jnlp:jnlp-servlet:jar:1.6.0 -> javax.samples.jnlp:jnlp-jardiff:jar:[1.6.0,): No versions available for javax.samples.jnlp:jnlp-jardiff:jar:[1.6.0,) within specified range -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jnlp-dependencies
[ERROR] child exited with value 1