Sanne Grinovero created ISPN-8264:
-------------------------------------
Summary: Port conflict in OSGi testsuite preventing multiple containers
Key: ISPN-8264
URL:
https://issues.jboss.org/browse/ISPN-8264
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Reporter: Sanne Grinovero
Fix For: 9.2.0.Final, 9.1.1.Final
The {{integrationtests/osgi}} module build is reporting "no test failures" yet
there are critical errors being reported about a container not booting.
I'm wondering if some tests are supposed to run in multi-containers but actually
running on a single one?
There are multiple errors like this being logged by the build:
{noformat}
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.469 s - in
org.infinispan.it.osgi.distexec.LocalDistributedExecutorTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[ERROR] There are test failures.
Please refer to
/home/infinispan/workspace/Infinispan_master-5OURPVBKVS5PLGVSKVWLBFUZPLIO2DZSV3U7HWSZJBYGBGKYSFXQ/integrationtests/osgi/target/surefire-reports
for the individual test results.
Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and
[date]-jvmRun[N].dumpstream.
Error occurred in starting fork, check output in log
org.apache.maven.surefire.booter.SurefireBooterForkException: Error occurred in starting
fork, check output in log
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:634)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:279)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:243)
at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1077)
{noformat}
{noformat}
[TestSuiteProgress] Test starting:
InfinispanEmbeddedServiceFactoryTest.testNoConfiguration
f.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278)Exception in
thread "JMX Connector Thread
[service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]"
java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers. If you need to start a second container or the
default ports are already in use update the config file
etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused
ports at org.apache.kara2017-09-07 09:56:25,811 | WARN | FelixShutdown | core
| 60 - org.apache.aries.jmx.core - 1.1.6 | Task rejected for JMX
Notification dispatch of event
[org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may
have been shutdown
[TestSuiteProgress] Test starting:
InfinispanEmbeddedServiceFactoryTest.testMissingConfigProperties
f.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278)Exception in
thread "JMX Connector Thread
[service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]"
java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers. If you need to start a second container or the
default ports are already in use update the config file
etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused
ports at org.apache.kara2017-09-07 09:56:30,649 | ERROR | 63-d7e34241b996) | configadmin
| 6 - org.apache.felix.configadmin - 1.8.4 |
[org.osgi.service.cm.ManagedServiceFactory, id=325,
bundle=73/mvn:org.infinispan/infinispan-osgi/9.1.1-SNAPSHOT]: Updating property config of
configuration org.infinispan.manager.embedded.e82ee91a-8012-4be4-b563-d7e34241b996 caused
a problem: Property must be set
org.osgi.service.cm.ConfigurationException: config : Property must be set
at
org.infinispan.osgi.InfinispanEmbeddedServiceFactory.updated(InfinispanEmbeddedServiceFactory.java:44)[73:org.infinispan.osgi:9.1.1.SNAPSHOT]
at Proxyd756599e_13e0_4419_9875_20f355b42016.updated(Unknown Source)[:]
at
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[6:org.apache.felix.configadmin:1.8.4]
at
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[6:org.apache.felix.configadmin:1.8.4]
at
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1747)[6:org.apache.felix.configadmin:1.8.4]
at
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[6:org.apache.felix.configadmin:1.8.4]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_144]
2017-09-07 09:56:30,883 | WARN | FelixShutdown | core | 60
- org.apache.aries.jmx.core - 1.1.6 | Task rejected for JMX Notification dispatch of event
[org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may
have been shutdown
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.832 s - in
org.infinispan.it.osgi.InfinispanEmbeddedServiceFactoryTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
{noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)