Skip to content

Instantly share code, notes, and snippets.

@cmoulliard
Created Oct 18, 2013
Embed
What would you like to do?
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.switchyard.quickstarts.camel.jms.binding.CamelJMSBindingTest
13:02:19,086 INFO [org.jboss.weld.Version] WELD-000900 1.1.5 (Final)
13:02:19,804 WARN [org.hornetq.core.server] HQ222018: AIO was not located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
13:02:19,988 INFO [org.hornetq.core.server] HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=target/data/journal,bindingsDirectory=target/data/bindings,largeMessagesDirectory=target/data/large-messages,pagingDirectory=target/data/paging)
13:02:20,000 WARN [org.hornetq.core.server] HQ222007: Security risk! HornetQ is running with the default cluster admin user and default password. Please see the HornetQ user guide, cluster chapter, for instructions on how to change this.
13:02:20,236 INFO [org.hornetq.core.server] HQ221003: trying to deploy queue jms.queue.GreetingServiceQueue
13:02:20,397 INFO [org.hornetq.core.server] HQ221020: Started Netty Acceptor version 3.6.2.Final-c0d783c localhost:5545 for CORE protocol
13:02:20,400 INFO [org.hornetq.core.server] HQ221007: Server is now live
13:02:20,400 INFO [org.hornetq.core.server] HQ221001: HornetQ Server version 2.3.1.Final (Wild Hornet, 123) [c216ebc5-37e4-11e3-9de9-ddc645090a29]
13:02:20,573 INFO [org.apache.camel.management.ManagementStrategyFactory] JMX enabled.
13:02:20,788 INFO [org.switchyard.security.spi.SecurityProvider] Using SecurityProvider implementation: org.switchyard.security.spi.JaasSecurityProvider
13:02:20,792 INFO [org.switchyard.common.camel.SwitchYardCamelContext] Apache Camel 2.10.5 (CamelContext: camel-1) is starting
13:02:21,001 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] Loaded 188 type converters
13:02:21,021 INFO [org.apache.camel.management.DefaultManagementLifecycleStrategy] StatisticsLevel at All so enabling load performance statistics
13:02:21,031 INFO [org.switchyard.common.camel.SwitchYardCamelContext] Total 0 routes, of which 0 is started.
13:02:21,032 INFO [org.switchyard.common.camel.SwitchYardCamelContext] Apache Camel 2.10.5 (CamelContext: camel-1) started in 0.240 seconds
13:02:21,968 INFO [org.switchyard.common.camel.SwitchYardCamelContext] Route: direct:{urn:switchyard-quickstart:camel-jms-binding:0.1.0}GreetingService started and consuming from: Endpoint[direct://%7Burn:switchyard-quickstart:camel-jms-binding:0.1.0%7DGreetingService]
13:02:21,996 ERROR [org.switchyard.test.SwitchYardRunner] Error while test kit startup
java.lang.NoClassDefFoundError: org/apache/camel/impl/UriEndpointComponent
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:855)
at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:766)
at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:743)
at org.apache.camel.impl.DefaultClassResolver.loadClass(DefaultClassResolver.java:93)
at org.apache.camel.impl.DefaultClassResolver.resolveClass(DefaultClassResolver.java:32)
at org.apache.camel.impl.DefaultFactoryFinder.newInstance(DefaultFactoryFinder.java:128)
at org.apache.camel.impl.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:78)
at org.apache.camel.impl.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:70)
at org.apache.camel.impl.DefaultComponentResolver.findComponent(DefaultComponentResolver.java:97)
at org.apache.camel.impl.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:70)
at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:319)
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:463)
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:857)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:732)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1814)
at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:676)
at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:681)
at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:67)
at org.switchyard.component.camel.common.deploy.BaseBindingActivator.createInboundHandler(BaseBindingActivator.java:51)
at org.switchyard.component.camel.common.deploy.BaseBindingActivator.activateBinding(BaseBindingActivator.java:43)
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:607)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:143)
at org.switchyard.test.SwitchYardTestKit.deploy(SwitchYardTestKit.java:756)
at org.switchyard.test.SwitchYardTestKit.start(SwitchYardTestKit.java:176)
at org.switchyard.test.SwitchYardRunner.createTest(SwitchYardRunner.java:60)
at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:227)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:224)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:85)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.ClassNotFoundException: org.apache.camel.impl.UriEndpointComponent
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 68 more
13:02:22,000 INFO [org.switchyard.common.camel.SwitchYardCamelContext] Apache Camel 2.10.5 (CamelContext: camel-1) is shutting down
13:02:22,000 INFO [org.apache.camel.impl.DefaultShutdownStrategy] Starting to graceful shutdown 1 routes (timeout 30 seconds)
13:02:22,005 INFO [org.apache.camel.impl.DefaultShutdownStrategy] Route: direct:{urn:switchyard-quickstart:camel-jms-binding:0.1.0}GreetingService shutdown complete, was consuming from: Endpoint[direct://%7Burn:switchyard-quickstart:camel-jms-binding:0.1.0%7DGreetingService]
13:02:22,006 INFO [org.apache.camel.impl.DefaultShutdownStrategy] Graceful shutdown of 1 routes completed in 0 seconds
13:02:22,013 INFO [org.switchyard.common.camel.SwitchYardCamelContext] Apache Camel 2.10.5 (CamelContext: camel-1) is shutdown in 0.012 seconds. Uptime 1.221 seconds.
13:02:22,020 WARN [org.hornetq.core.server] HQ222113: On ManagementService stop, there are 2 unexpected registered MBeans: [core.acceptor.netty-acceptor, core.acceptor.invm-acceptor]
13:02:22,069 INFO [org.hornetq.core.server] HQ221002: HornetQ Server version 2.3.1.Final (Wild Hornet, 123) [c216ebc5-37e4-11e3-9de9-ddc645090a29] stopped
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1344)
at org.switchyard.component.test.mixins.cdi.CDIMixIn.uninitialize(CDIMixIn.java:245)
at org.switchyard.test.SwitchYardTestKit.cleanupMixIns(SwitchYardTestKit.java:809)
at org.switchyard.test.SwitchYardTestKit.cleanup(SwitchYardTestKit.java:185)
at org.switchyard.test.SwitchYardRunner$TestLifecycleListener.testFinished(SwitchYardRunner.java:95)
at org.junit.runner.notification.RunNotifier$7.notifyListener(RunNotifier.java:145)
at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:41)
at org.junit.runner.notification.RunNotifier.fireTestFinished(RunNotifier.java:142)
at org.junit.internal.runners.model.EachTestNotifier.fireTestFinished(EachTestNotifier.java:41)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:269)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:85)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.8 sec <<< FAILURE!
Results :
Tests in error:
sendTextMessageToJMSQueue(org.switchyard.quickstarts.camel.jms.binding.CamelJMSBindingTest): java.lang.NoClassDefFoundError: org/apache/camel/impl/UriEndpointComponent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment