Could you verify if the following will help? adda call to doPreSetup();
to your test as in Recipe5 of chapter 10 [1]. regards, Achim [1] - https://github.com/jgoodyear/ApacheKarafCookbook/blob/master/chapter10/chapter10-recipe5/src/test/java/com/packt/TestCamelInKaraf.java#L88 2015-03-13 13:43 GMT+01:00 Achim Nierbeck <bcanh...@googlemail.com>: > Hi, > > from the logs I can tell your route is up and running, so the issue is > that the camelContext used in the test is not the same as the one used in > your RouteBuilder. That's the reason you don't get a hold of the > MockEndpoint, therefore the nullpointer. > > Again as sanitiy-check, recipe 5 of chapter 10 did work for you? > > regards, Achim > > > 2015-03-13 13:30 GMT+01:00 Christian Eugster <c.eugs...@docuteam.ch>: > >> Hi Achim, >> >> I send you the whole log, because I tried further: >> >> [INFO] Scanning for projects... >> [WARNING] >> [WARNING] Some problems were encountered while building the effective >> model for >> ch.eugster.ingest:sip-identification-processor:bundle:0.0.1-SNAPSHOT >> [WARNING] 'build.plugins.plugin.version' for >> org.apache.felix:maven-bundle-plugin is missing. @ line 37, column 12 >> [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] Using the builder >> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder >> with a thread count of 1 >> [INFO] >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building SIP identification processor 0.0.1-SNAPSHOT >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] >> [INFO] --- depends-maven-plugin:1.2:generate-depends-file >> (generate-depends-file) @ sip-identification-processor --- >> [INFO] Created: >> /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-engine/sip-identification-processor/target/classes/META-INF/maven/dependencies.properties >> [INFO] >> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ >> sip-identification-processor --- >> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered >> resources, i.e. build is platform dependent! >> [INFO] Copying 2 resources >> [INFO] >> [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ >> sip-identification-processor --- >> [INFO] Nothing to compile - all classes are up to date >> [INFO] >> [INFO] --- maven-resources-plugin:2.7:testResources >> (default-testResources) @ sip-identification-processor --- >> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered >> resources, i.e. build is platform dependent! >> [INFO] Copying 6 resources >> [INFO] >> [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ >> sip-identification-processor --- >> [INFO] Nothing to compile - all classes are up to date >> [INFO] >> [INFO] --- maven-surefire-plugin:2.18:test (default-test) @ >> sip-identification-processor --- >> [INFO] Surefire report directory: >> /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-engine/sip-identification-processor/target/surefire-reports >> >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >> SLF4J: Class path contains multiple SLF4J bindings. >> SLF4J: Found binding in >> [jar:file:/Users/christian/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: Found binding in >> [jar:file:/Users/christian/.m2/repository/org/apache/karaf/org.apache.karaf.client/3.0.3/org.apache.karaf.client-3.0.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: Found binding in >> [jar:file:/Users/christian/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.8.1/pax-logging-api-1.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: Found binding in >> [jar:file:/Users/christian/.m2/repository/ch/qos/logback/logback-classic/1.0.6/logback-classic-1.0.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an >> explanation. >> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] >> [ main] DefaultExamSystem INFO Pax >> Exam System (Version: 4.4.0) created. >> [ main] ProbeRunner INFO >> creating PaxExam runner for class >> ch.eugster.ingest.sip.identification.KarafContainerTest >> Configuring container >> Running ch.eugster.ingest.sip.identification.KarafContainerTest >> [ main] ProbeRunner INFO >> creating PaxExam runner for class >> ch.eugster.ingest.sip.identification.KarafContainerTest >> Configuring container >> [ main] ProbeRunner INFO >> running test class ch.eugster.ingest.sip.identification.KarafContainerTest >> [ main] KarafTestContainer INFO >> Wait for test container to finish its initialization [ RelativeTimeout >> value = 180000 ] >> [ main] RemoteBundleContextClient INFO >> Waiting for remote bundle context.. on 21000 name: >> 817216ef-bdfc-4ac9-93a5-12974b3477f1 timout: [ RelativeTimeout value = >> 180000 ] >> 2015-03-13 13:10:44,476 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from jmx.acl.org.apache.karaf.bundle.cfg >> 2015-03-13 13:10:44,481 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from org.apache.karaf.jaas.cfg >> 2015-03-13 13:10:44,484 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from org.apache.karaf.shell.cfg >> 2015-03-13 13:10:44,487 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from org.apache.karaf.webconsole.cfg >> 2015-03-13 13:10:44,491 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from jmx.acl.org.apache.karaf.config.cfg >> 2015-03-13 13:10:44,494 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from org.ops4j.pax.url.mvn.cfg >> 2015-03-13 13:10:44,500 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from jmx.acl.osgi.compendium.cm.cfg >> 2015-03-13 13:10:44,510 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from jmx.acl.java.lang.Memory.cfg >> 2015-03-13 13:10:44,520 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from org.apache.karaf.features.obr.cfg >> 2015-03-13 13:10:44,539 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from org.apache.karaf.command.acl.config.cfg >> 2015-03-13 13:10:44,558 | INFO | FelixStartLevel | fileinstall >> | 7 - org.apache.felix.fileinstall - 3.4.2 | Creating >> configuration from org.apache.karaf.command.acl.kar.cfg >> 2015-03-13 13:10:46,537 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature package 3.0.3 >> 2015-03-13 13:10:46,565 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature eventadmin 3.0.3 >> 2015-03-13 13:10:46,578 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature camel-blueprint 2.14.2 >> 2015-03-13 13:10:46,578 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature camel-core 2.14.2 >> 2015-03-13 13:10:46,579 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature xml-specs-api 2.2.0 >> 2015-03-13 13:10:46,685 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature exam 4.4.0 >> 2015-03-13 13:10:46,838 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature standard 3.0.3 >> 2015-03-13 13:10:47,052 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature region 3.0.3 >> 2015-03-13 13:10:47,085 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature camel-test 2.14.2 >> 2015-03-13 13:10:47,085 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature camel-core 2.14.2 >> 2015-03-13 13:10:47,085 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature xml-specs-api 2.2.0 >> 2015-03-13 13:10:47,111 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature camel-spring 2.14.2 >> 2015-03-13 13:10:47,113 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature spring 3.2.11.RELEASE_1 >> 2015-03-13 13:10:47,204 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature spring-dm 1.2.1 >> 2015-03-13 13:10:47,283 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature spring-tx 3.2.11.RELEASE_1 >> 2015-03-13 13:10:47,332 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature ssh 3.0.3 >> 2015-03-13 13:10:47,394 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature kar 3.0.3 >> 2015-03-13 13:10:47,512 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature test-dependencies 0.0.0 >> 2015-03-13 13:11:17,551 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature management 3.0.3 >> 2015-03-13 13:11:17,579 | INFO | FelixStartLevel | FeaturesServiceImpl >> | 20 - org.apache.karaf.features.core - 3.0.3 | Installing >> feature config 3.0.3 >> 2015-03-13 13:11:17,777 | INFO | FelixStartLevel | >> BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - >> 1.4.2 | Bundle org.apache.karaf.features.command is waiting for namespace >> handlers [http://karaf.apache.org/xmlns/shell/v1.1.0] >> 2015-03-13 13:11:17,820 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config org.apache.karaf.command.acl.feature >> into service ACL configs >> [org.apache.karaf.service.acl.command.feature.uninstall, >> org.apache.karaf.service.acl.command.feature.install] >> 2015-03-13 13:11:17,827 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config org.apache.karaf.command.acl.jaas >> into service ACL configs [org.apache.karaf.service.acl.command.jaas.update] >> 2015-03-13 13:11:17,836 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config org.apache.karaf.command.acl.config >> into service ACL configs >> [org.apache.karaf.service.acl.command.config.property-append, >> org.apache.karaf.service.acl.command.config.property-delete, >> org.apache.karaf.service.acl.command.config.property-set, >> org.apache.karaf.service.acl.command.config.edit, >> org.apache.karaf.service.acl.command.config.update, >> org.apache.karaf.service.acl.command.config.cancel, >> org.apache.karaf.service.acl.command.config.delete] >> 2015-03-13 13:11:17,855 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config org.apache.karaf.command.acl.shell >> into service ACL configs [org.apache.karaf.service.acl.command.shell.java, >> org.apache.karaf.service.acl.command.shell.new, >> org.apache.karaf.service.acl.command.shell.edit, >> org.apache.karaf.service.acl.command.shell.exec] >> 2015-03-13 13:11:17,867 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config org.apache.karaf.command.acl.system >> into service ACL configs >> [org.apache.karaf.service.acl.command.system.property, >> org.apache.karaf.service.acl.command.system.shutdown, >> org.apache.karaf.service.acl.command.system.start-level] >> 2015-03-13 13:11:17,897 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config >> org.apache.karaf.command.acl.scope_bundle into service ACL configs >> [org.apache.karaf.service.acl.command.scope_bundle.shell, >> org.apache.karaf.service.acl.command.scope_bundle.packages, >> org.apache.karaf.service.acl.command.scope_bundle.admin, >> org.apache.karaf.service.acl.command.scope_bundle.ssh, >> org.apache.karaf.service.acl.command.scope_bundle.osgi, >> org.apache.karaf.service.acl.command.scope_bundle.config, >> org.apache.karaf.service.acl.command.scope_bundle.jaas, >> org.apache.karaf.service.acl.command.scope_bundle.features, >> org.apache.karaf.service.acl.command.scope_bundle.log] >> 2015-03-13 13:11:17,916 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config org.apache.karaf.command.acl.kar into >> service ACL configs [org.apache.karaf.service.acl.command.kar.uninstall, >> org.apache.karaf.service.acl.command.kar.install] >> 2015-03-13 13:11:17,921 | INFO | FelixStartLevel | >> SecuredCommandConfigTransformer | 25 - org.apache.karaf.shell.console - >> 3.0.3 | Generating command ACL config org.apache.karaf.command.acl.bundle >> into service ACL configs >> [org.apache.karaf.service.acl.command.bundle.watch, >> org.apache.karaf.service.acl.command.bundle.update, >> org.apache.karaf.service.acl.command.bundle.install, >> org.apache.karaf.service.acl.command.bundle.uninstall, >> org.apache.karaf.service.acl.command.bundle.refresh, >> org.apache.karaf.service.acl.command.bundle.restart, >> org.apache.karaf.service.acl.command.bundle.stop, >> org.apache.karaf.service.acl.command.bundle.start] >> 2015-03-13 13:11:17,978 | INFO | FelixStartLevel | >> BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - >> 1.4.2 | Bundle org.apache.karaf.jaas.modules is waiting for namespace >> handlers [http://karaf.apache.org/xmlns/jaas/v1.0.0] >> 2015-03-13 13:11:17,984 | INFO | rint Extender: 1 | >> BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - >> 1.4.2 | Bundle org.apache.karaf.features.command is waiting for >> dependencies [(objectClass=org.apache.karaf.features.FeaturesService)] >> 2015-03-13 13:11:18,426 | INFO | FelixStartLevel | >> BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - >> 1.4.2 | Bundle org.apache.karaf.instance.command is waiting for >> dependencies [(objectClass=org.apache.karaf.features.FeaturesService)] >> 2015-03-13 13:11:19,032 | INFO | FelixStartLevel | >> RegionsPersistenceImpl | 79 - org.apache.karaf.region.persist - >> 3.0.3 | Loading region digraph persistence >> 2015-03-13 13:11:19,326 | INFO | FelixStartLevel | >> RegionsPersistenceImpl | 79 - org.apache.karaf.region.persist - >> 3.0.3 | initializing region digraph from etc/regions-config.xml >> 2015-03-13 13:11:19,583 | INFO | FelixStartLevel | >> ContextLoaderListener | 91 - org.springframework.osgi.extender - >> 1.2.1 | Starting [org.springframework.osgi.extender] bundle v.[1.2.1] >> 2015-03-13 13:11:19,708 | INFO | FelixStartLevel | >> ExtenderConfiguration | 91 - org.springframework.osgi.extender - >> 1.2.1 | No custom extender configuration detected; using defaults... >> 2015-03-13 13:11:19,716 | INFO | FelixStartLevel | TimerTaskExecutor >> | 86 - org.apache.servicemix.bundles.spring-context - >> 3.2.11.RELEASE_1 | Initializing Timer >> 2015-03-13 13:11:19,984 | INFO | FelixStartLevel | SecurityUtils >> | 28 - org.apache.sshd.core - 0.12.0 | BouncyCastle not >> registered, using the default JCE provider >> 2015-03-13 13:11:20,434 | INFO | FelixStartLevel | >> BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - >> 1.4.2 | Bundle org.apache.karaf.kar.core is waiting for dependencies >> [(objectClass=org.apache.karaf.features.FeaturesService)] >> 2015-03-13 13:11:20,445 | INFO | FelixStartLevel | >> BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - >> 1.4.2 | Bundle org.apache.karaf.kar.command is waiting for dependencies >> [(&(name=installedRepoNameCompleter)(objectClass=org.apache.karaf.shell.console.Completer)), >> (objectClass=org.apache.karaf.kar.KarService)] >> 2015-03-13 13:11:47,470 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Starting JMX OSGi >> agent >> 2015-03-13 13:11:47,524 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Registering MBean >> with ObjectName >> [osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261] >> for service with service.id [14] >> 2015-03-13 13:11:47,562 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Registering >> org.osgi.jmx.framework.ServiceStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:47,564 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Registering >> org.osgi.jmx.framework.BundleStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:47,565 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Registering >> org.osgi.jmx.framework.wiring.BundleWiringStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:47,566 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Registering >> org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:47,567 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Registering >> org.osgi.jmx.framework.FrameworkMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:47,567 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Registering >> org.osgi.jmx.framework.PackageStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:47,881 | INFO | FelixStartLevel | Activator >> | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator >> starting >> 2015-03-13 13:11:47,915 | INFO | FelixStartLevel | Activator >> | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator >> started >> Route configured >> 2015-03-13 13:11:49,601 | INFO | FelixStartLevel | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) is starting >> 2015-03-13 13:11:49,603 | INFO | FelixStartLevel | >> ManagedManagementStrategy | 46 - org.apache.camel.camel-core - >> 2.14.2 | JMX is enabled >> 2015-03-13 13:11:49,809 | INFO | FelixStartLevel | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | AllowUseOriginalMessage is enabled. If access to the original >> message is not needed, then its recommended to turn this option off as it >> may improve performance. >> 2015-03-13 13:11:49,810 | INFO | FelixStartLevel | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | StreamCaching is not in use. If using streams then its recommended >> to enable stream caching. See more details at >> http://camel.apache.org/stream-caching.html >> 2015-03-13 13:11:49,874 | INFO | FelixStartLevel | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | Route: route1 started and consuming from: Endpoint[ >> file://target/inbox] >> 2015-03-13 13:11:49,876 | INFO | FelixStartLevel | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | Total 1 routes, of which 1 is started. >> 2015-03-13 13:11:49,879 | INFO | FelixStartLevel | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) started in >> 0.274 seconds >> 2015-03-13 13:11:49,975 | INFO | rint Extender: 1 | >> BlueprintContainerImpl | 15 - org.apache.aries.blueprint.core - >> 1.4.2 | Bundle org.apache.karaf.kar.command is waiting for dependencies >> [(objectClass=org.apache.karaf.kar.KarService)] >> 2015-03-13 13:11:50,626 | INFO | tion(3)-10.0.0.4 | ContainerTestRunner >> | 66 - org.ops4j.pax.exam.invoker.junit - 4.4.0 | running test >> in reactor >> test running >> 2015-03-13 13:11:50,689 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle sip-connector-matterhorn >> 2015-03-13 13:11:50,703 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.kar.command >> 2015-03-13 13:11:50,736 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.shell.ssh >> 2015-03-13 13:11:50,763 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.region.command >> 2015-03-13 13:11:50,780 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.service.command >> 2015-03-13 13:11:50,798 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.log.command >> 2015-03-13 13:11:50,862 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.diagnostic.command >> 2015-03-13 13:11:50,871 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.jaas.command >> 2015-03-13 13:11:50,917 | WARN | ce Proxy Creator | GuardProxyCatalog >> | 5 - org.apache.karaf.service.guard - 3.0.3 | Problem creating >> secured service proxy >> java.lang.NullPointerException >> at org.apache.karaf.service.guard.impl.GuardProxyCatalog$1.run( >> GuardProxyCatalog.java:251)[5:org.apache.karaf.service.guard:3.0.3] >> at >> org.apache.karaf.service.guard.impl.GuardProxyCatalog$ServiceProxyCreatorCustomizer$1.run( >> GuardProxyCatalog.java:566)[5:org.apache.karaf.service.guard:3.0.3] >> at java.lang.Thread.run(Thread.java:745)[:1.8.0_40] >> 2015-03-13 13:11:50,919 | WARN | ce Proxy Creator | GuardProxyCatalog >> | 5 - org.apache.karaf.service.guard - 3.0.3 | Problem creating >> secured service proxy >> java.lang.NullPointerException >> at org.apache.karaf.service.guard.impl.GuardProxyCatalog$1.run( >> GuardProxyCatalog.java:251)[5:org.apache.karaf.service.guard:3.0.3] >> at >> org.apache.karaf.service.guard.impl.GuardProxyCatalog$ServiceProxyCreatorCustomizer$1.run( >> GuardProxyCatalog.java:566)[5:org.apache.karaf.service.guard:3.0.3] >> at java.lang.Thread.run(Thread.java:745)[:1.8.0_40] >> 2015-03-13 13:11:50,975 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.instance.command >> 2015-03-13 13:11:51,073 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.camel.karaf.camel-karaf-commands >> 2015-03-13 13:11:51,139 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.package.command >> 2015-03-13 13:11:51,153 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.shell.commands >> 2015-03-13 13:11:51,324 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.system.command >> 2015-03-13 13:11:51,349 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.shell.help >> 2015-03-13 13:11:51,358 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.bundle.command >> 2015-03-13 13:11:51,468 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.jaas.modules >> 2015-03-13 13:11:51,480 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.features.command >> 2015-03-13 13:11:51,513 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.deployer.wrap >> 2015-03-13 13:11:51,517 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.system.core >> 2015-03-13 13:11:51,528 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.bundle.core >> 2015-03-13 13:11:51,535 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.deployer.features >> 2015-03-13 13:11:51,540 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.features.core >> 2015-03-13 13:11:51,548 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.deployer.kar >> 2015-03-13 13:11:51,549 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.kar.core >> 2015-03-13 13:11:51,552 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle sip-identification-processor >> 2015-03-13 13:11:51,554 | INFO | FelixShutdown | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) is shutting >> down >> 2015-03-13 13:11:51,556 | INFO | FelixShutdown | >> DefaultShutdownStrategy | 46 - org.apache.camel.camel-core - >> 2.14.2 | Starting to graceful shutdown 1 routes (timeout 300 seconds) >> 2015-03-13 13:11:51,563 | INFO | 1 - ShutdownTask | >> DefaultShutdownStrategy | 46 - org.apache.camel.camel-core - >> 2.14.2 | Route: route1 shutdown complete, was consuming from: Endpoint[ >> file://target/inbox] >> 2015-03-13 13:11:51,563 | INFO | FelixShutdown | >> DefaultShutdownStrategy | 46 - org.apache.camel.camel-core - >> 2.14.2 | Graceful shutdown of 1 routes completed in 0 seconds >> 2015-03-13 13:11:51,571 | INFO | FelixShutdown | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) uptime 1.969 >> seconds >> 2015-03-13 13:11:51,571 | INFO | FelixShutdown | >> BlueprintCamelContext | 46 - org.apache.camel.camel-core - >> 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) is shutdown >> in 0.016 seconds >> 2015-03-13 13:11:51,572 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.camel.camel-blueprint >> 2015-03-13 13:11:51,575 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.config.command >> 2015-03-13 13:11:51,610 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.config.core >> 2015-03-13 13:11:51,612 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.management.server >> 2015-03-13 13:11:51,616 | INFO | FelixShutdown | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Unregistering >> org.osgi.jmx.framework.ServiceStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:51,617 | INFO | FelixShutdown | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Unregistering >> org.osgi.jmx.framework.BundleStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:51,617 | INFO | FelixShutdown | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Unregistering >> org.osgi.jmx.framework.wiring.BundleWiringStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:51,617 | INFO | FelixShutdown | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Unregistering >> org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:51,618 | INFO | FelixShutdown | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Unregistering >> org.osgi.jmx.framework.FrameworkMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:51,618 | INFO | FelixShutdown | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Unregistering >> org.osgi.jmx.framework.PackageStateMBean to MBeanServer >> com.sun.jmx.mbeanserver.JmxMBeanServer@176b6310 with name >> osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261 >> 2015-03-13 13:11:51,619 | WARN | FelixShutdown | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Task rejected for >> JMX Notification dispatch of event >> [org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - >> Dispatcher may have been shutdown >> 2015-03-13 13:11:51,624 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.service.core >> 2015-03-13 13:11:51,626 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.log.core >> 2015-03-13 13:11:51,631 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.diagnostic.core >> 2015-03-13 13:11:51,636 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.instance.core >> 2015-03-13 13:11:51,637 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.package.core >> 2015-03-13 13:11:51,638 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.jaas.config >> 2015-03-13 13:11:51,640 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.shell.console >> 2015-03-13 13:11:51,644 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.deployer.blueprint >> 2015-03-13 13:11:51,645 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.karaf.deployer.spring >> 2015-03-13 13:11:51,646 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.aries.blueprint.core >> 2015-03-13 13:11:51,649 | INFO | FelixShutdown | BlueprintExtender >> | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying >> BlueprintContainer for bundle org.apache.aries.blueprint.cm >> 2015-03-13 13:11:51,653 | INFO | FelixShutdown | >> ContextLoaderListener | 91 - org.springframework.osgi.extender - >> 1.2.1 | Stopping [org.springframework.osgi.extender] bundle v.[1.2.1] >> 2015-03-13 13:11:51,663 | INFO | FelixShutdown | TimerTaskExecutor >> | 86 - org.apache.servicemix.bundles.spring-context - >> 3.2.11.RELEASE_1 | Cancelling Timer >> 2015-03-13 13:11:51,674 | INFO | FelixStartLevel | Activator >> | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator >> stopping >> 2015-03-13 13:11:51,675 | INFO | FelixStartLevel | Activator >> | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator >> stopped >> 2015-03-13 13:11:51,676 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Stopping JMX OSGi >> agent >> 2015-03-13 13:11:51,677 | INFO | FelixStartLevel | core >> | 110 - org.apache.aries.jmx.core - 1.1.2 | Unregistering MBean >> with ObjectName >> [osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=20f38168-7b74-4b2d-8919-46581acde261] >> for service with service.id [14] >> [ main] ReactorManager INFO >> suite finished >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 70.88 sec >> <<< FAILURE! - in ch.eugster.ingest.sip.identification.KarafContainerTest >> test(ch.eugster.ingest.sip.identification.KarafContainerTest) Time >> elapsed: 70.856 sec <<< ERROR! >> java.lang.NullPointerException: null >> at org.apache.camel.test.junit4.TestSupport.resolveMandatoryEndpoint( >> TestSupport.java:287) >> at org.apache.camel.test.junit4.CamelTestSupport.resolveMandatoryEndpoint( >> CamelTestSupport.java:549) >> at org.apache.camel.test.junit4.CamelTestSupport.getMockEndpoint( >> CamelTestSupport.java:573) >> at org.apache.camel.test.junit4.CamelTestSupport.getMockEndpoint( >> CamelTestSupport.java:559) >> at ch.eugster.ingest.sip.identification.KarafContainerTest.test( >> KarafContainerTest.java:112) >> >> >> Results : >> >> >> Tests in error: >> >> KarafContainerTest.test:112->CamelTestSupport.getMockEndpoint:559->CamelTestSupport.getMockEndpoint:573->CamelTestSupport.resolveMandatoryEndpoint:549->TestSupport.resolveMandatoryEndpoint:287 >> » NullPointer >> >> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 01:15 min >> [INFO] Finished at: 2015-03-13T13:11:52+01:00 >> [INFO] Final Memory: 20M/226M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on >> project sip-identification-processor: There are test failures. >> [ERROR] >> [ERROR] Please refer to >> /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-engine/sip-identification-processor/target/surefire-reports >> for the individual test results. >> [ERROR] -> [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/MojoFailureException >> >> >> Christian Eugster >> Docuteam GmbH >> Langacker 16 >> Postfach >> CH-5405 Baden-Dättwil >> +41 (0)56 470 03 37 >> c.eugs...@docuteam.ch >> >> >> > > > -- > > Apache Member > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > blog <http://notizblog.nierbeck.de/> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> > > Software Architect / Project Manager / Scrum Master > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master