Skip to content

Instantly share code, notes, and snippets.

@ANierbeck
Created January 20, 2015 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ANierbeck/6c35d2cd64c72ff1f133 to your computer and use it in GitHub Desktop.
Save ANierbeck/6c35d2cd64c72ff1f133 to your computer and use it in GitHub Desktop.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.karaf.itests.JmsTest
[org.ops4j.pax.exam.spi.DefaultExamSystem] : Pax Exam System (Version: 4.4.0) created.
[org.ops4j.pax.exam.junit.impl.ProbeRunner] : creating PaxExam runner for class org.apache.karaf.itests.JmsTest
[org.ops4j.pax.exam.junit.impl.ProbeRunner] : running test class org.apache.karaf.itests.JmsTest
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Wait for test container to finish its initialization [ RelativeTimeout value = 180000 ]
[org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting for remote bundle context.. on 21000 name: 0508fc68-b25c-42c6-83fb-fd831c6ccf1a timout: [ RelativeTimeout value = 180000 ]
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.0.0-SNAPSHOT)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()> 23:00:09,946 | INFO | org.apache.karaf.itests.KarafTestWatcher | >>>>>> testCommands(org.apache.karaf.itests.JmsTest) <<<<<
23:00:10,239 | WARN | org.apache.karaf.features.internal.model.JaxbUtil | Old style feature file without namespace found (URI: mvn:org.apache.activemq/activemq-karaf/5.10.0/xml/features). This format is deprecated and support for it will soon be removed
23:00:10,902 | INFO | org.ops4j.pax.web.service.internal.Activator | EventAdmin support is not available, no servlet events will be posted!
23:00:10,903 | INFO | org.ops4j.pax.web.service.internal.Activator | LogService support enabled, log events will be created.
23:00:10,904 | INFO | org.ops4j.pax.web.service.internal.Activator | Pax Web started
23:00:10,998 | INFO | org.eclipse.jetty.server.Server | jetty-9.0.7.v20131107
jms:create -t ActiveMQ -u karaf -p karaf --url tcp://localhost:61616 test
23:00:11,099 | INFO | s4j.pax.web.service.jetty.internal.JettyServerImpl | Pax Web available at [0.0.0.0]:[9081]
23:00:11,129 | INFO | org.eclipse.jetty.server.ServerConnector | Started default@b8e4e58{HTTP/1.1}{0.0.0.0:9081}
23:00:18,956 | INFO | org.apache.activemq.osgi.ActiveMQServiceFactory | Starting broker amq-broker
Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
23:00:18,992 | INFO | org.apache.activemq.osgi.ActiveMQServiceFactory$1 | Refreshing org.apache.activemq.osgi.ActiveMQServiceFactory$1@28c01483: startup date [Tue Jan 20 23:00:18 CET 2015]; root of context hierarchy
Compiler-Warnungen:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
23:00:19,051 | INFO | ean.spring.context.v2.XBeanXmlBeanDefinitionReader | Loading XML bean definitions from file [/Users/anierbeck/git/karaf/itests/target/exam/fa4f7783-92bb-4bdc-8dad-a0a547e3f3a5/etc/activemq.xml]
23:00:19,177 | INFO | rg.apache.activemq.jms.pool.GenericResourceManager | Resource manager is unrecoverable
jms:connectionfactories
JMS Connection Factory
----------------------
jms/test
jms:info test
23:00:19,330 | INFO | .apache.activemq.store.kahadb.plist.PListStoreImpl | PListStore:[/Users/anierbeck/git/karaf/itests/target/exam/fa4f7783-92bb-4bdc-8dad-a0a547e3f3a5/data/amq-broker/amq-broker/tmp_storage] started
23:00:19,342 | ERROR | org.apache.karaf.itests.KarafTestWatcher | >>>>>> FAILED: testCommands(org.apache.karaf.itests.JmsTest) , cause: Error while attempting to add new Connection to the pool
23:00:19,348 | INFO | org.apache.activemq.broker.BrokerService | Using Persistence Adapter: KahaDBPersistenceAdapter[/Users/anierbeck/git/karaf/itests/target/exam/fa4f7783-92bb-4bdc-8dad-a0a547e3f3a5/data/amq-broker/kahadb]
23:00:19,378 | INFO | org.apache.karaf.itests.KarafTestWatcher | >>>>>> testMBean(org.apache.karaf.itests.JmsTest) <<<<<
23:00:19,439 | INFO | org.apache.activemq.broker.BrokerService | Apache ActiveMQ 5.10.0 (amq-broker, ID:Achims-MBP-15.fritz.box-64978-1421791219230-2:1) is starting
23:00:19,460 | INFO | he.activemq.transport.TransportServerThreadSupport | Listening for connections at: tcp://Achims-MBP-15.fritz.box:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
23:00:19,460 | INFO | org.apache.activemq.broker.TransportConnector | Connector openwire started
23:00:19,461 | INFO | org.apache.activemq.broker.BrokerService | Apache ActiveMQ 5.10.0 (amq-broker, ID:Achims-MBP-15.fritz.box-64978-1421791219230-2:1) started
23:00:19,461 | INFO | org.apache.activemq.broker.BrokerService | For help or more information please see: http://activemq.apache.org
23:00:19,741 | WARN | org.apache.karaf.features.internal.model.JaxbUtil | Old style feature file without namespace found (URI: mvn:org.apache.activemq/activemq-karaf/5.10.0/xml/features). This format is deprecated and support for it will soon be removed
Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler-Warnungen:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
23:00:29,259 | INFO | rg.apache.activemq.jms.pool.GenericResourceManager | Resource manager is unrecoverable
23:00:29,409 | INFO | org.apache.activemq.osgi.ActiveMQServiceFactory | Stopping broker org.apache.activemq.server.04d0fa29-55b3-43b4-b489-3b347dd99033
23:00:29,410 | INFO | org.apache.activemq.broker.BrokerService | Apache ActiveMQ 5.10.0 (amq-broker, ID:Achims-MBP-15.fritz.box-64978-1421791219230-2:1) is shutting down
23:00:29,414 | INFO | g.apache.activemq.jms.pool.PooledConnectionFactory | Expiring connection ActiveMQConnection {id=ID:Achims-MBP-15.fritz.box-64978-1421791219230-5:1,clientId=ID:Achims-MBP-15.fritz.box-64978-1421791219230-4:1,started=false} on IOException: java.io.EOFException
23:00:29,417 | INFO | g.apache.activemq.jms.pool.PooledConnectionFactory | Expiring connection ActiveMQConnection {id=ID:Achims-MBP-15.fritz.box-64978-1421791219230-5:2,clientId=ID:Achims-MBP-15.fritz.box-64978-1421791219230-4:2,started=false} on IOException: java.io.EOFException
23:00:29,420 | INFO | g.apache.activemq.jms.pool.PooledConnectionFactory | Expiring connection ActiveMQConnection {id=ID:Achims-MBP-15.fritz.box-64978-1421791219230-5:3,clientId=ID:Achims-MBP-15.fritz.box-64978-1421791219230-4:3,started=false} on IOException: java.io.EOFException
23:00:29,420 | INFO | org.apache.activemq.broker.TransportConnector | Connector openwire stopped
23:00:29,423 | INFO | .apache.activemq.store.kahadb.plist.PListStoreImpl | PListStore:[/Users/anierbeck/git/karaf/itests/target/exam/fa4f7783-92bb-4bdc-8dad-a0a547e3f3a5/data/amq-broker/amq-broker/tmp_storage] stopped
23:00:29,423 | INFO | org.apache.activemq.store.kahadb.KahaDBStore | Stopping async queue tasks
23:00:29,424 | INFO | org.apache.activemq.store.kahadb.KahaDBStore | Stopping async topic tasks
23:00:29,424 | INFO | org.apache.activemq.store.kahadb.KahaDBStore | Stopped KahaDB
23:00:29,476 | INFO | org.apache.activemq.broker.BrokerService | Apache ActiveMQ 5.10.0 (amq-broker, ID:Achims-MBP-15.fritz.box-64978-1421791219230-2:1) uptime 10.141 seconds
23:00:29,477 | INFO | org.apache.activemq.broker.BrokerService | Apache ActiveMQ 5.10.0 (amq-broker, ID:Achims-MBP-15.fritz.box-64978-1421791219230-2:1) is shutdown
23:00:29,508 | INFO | org.eclipse.jetty.server.ServerConnector | Stopped default@b8e4e58{HTTP/1.1}{0.0.0.0:9081}
23:00:29,510 | INFO | org.ops4j.pax.web.service.internal.Activator | Pax Web stopped
[org.ops4j.pax.exam.spi.reactors.ReactorManager] : suite finished
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 23.84 sec <<< FAILURE! - in org.apache.karaf.itests.JmsTest
testCommands(org.apache.karaf.itests.JmsTest) Time elapsed: 9.471 sec <<< ERROR!
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
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.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
at org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:251)
at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:257)
at org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:99)
at org.apache.activemq.jms.pool.PooledConnectionFactory$1.makeObject(PooledConnectionFactory.java:79)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.addObject(GenericKeyedObjectPool.java:1748)
at org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:200)
at org.apache.karaf.jms.internal.JmsConnector.connect(JmsConnector.java:88)
at org.apache.karaf.jms.internal.JmsServiceImpl.info(JmsServiceImpl.java:141)
at org.apache.karaf.jms.command.InfoCommand.execute(InfoCommand.java:36)
at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:72)
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:61)
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:81)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:486)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:412)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:179)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:116)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
at org.apache.karaf.shell.impl.console.HeadlessSessionImpl.execute(HeadlessSessionImpl.java:71)
at org.apache.karaf.itests.KarafTestSupport$1.call(KarafTestSupport.java:184)
at org.apache.karaf.itests.KarafTestSupport$1.call(KarafTestSupport.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
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)
Results :
Tests in error:
JmsTest.testCommands » Connect Connection refused
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment