You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Christian Eugster <c....@docuteam.ch> on 2015/03/13 13:09:23 UTC

Running test fails due to not transferred file

Hi,

at last I arrived to run a camel test in karaf, thanks to you. My next issue is, that the test is running. 

1. I get a NPE when creating the MockEndpoint int the test method:

test(ch.eugster.ingest.sip.identification.KarafContainerTest)  Time elapsed: 73.953 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)


2. The route is not executed.

Do you have an idea, what this could be?

Thank you very much!

Regard Christian

Following (hopefully) all necessery information:

The error in log is:

2015-03-13 12:58:30,899 | 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 12:58:30,904 | 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 12:58:30,916 | 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 12:58:30,920 | 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 12:58:30,921 | 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 12:58:30,921 | 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 12:58:30,922 | 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 12:58:31,044 | 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 12:58:31,112 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.package.command
2015-03-13 12:58:31,125 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.commands
2015-03-13 12:58:31,297 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.system.command
2015-03-13 12:58:31,322 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
2015-03-13 12:58:31,329 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.command
2015-03-13 12:58:31,470 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.modules
2015-03-13 12:58:31,492 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.features.command
2015-03-13 12:58:31,542 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.wrap
2015-03-13 12:58:31,553 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.system.core
2015-03-13 12:58:31,560 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.core
2015-03-13 12:58:31,566 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.features
2015-03-13 12:58:31,570 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.features.core
2015-03-13 12:58:31,583 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.kar
2015-03-13 12:58:31,584 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.kar.core
2015-03-13 12:58:31,586 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle sip-identification-processor
2015-03-13 12:58:31,590 | 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 12:58:31,593 | INFO  | FelixShutdown    | DefaultShutdownStrategy          | 46 - org.apache.camel.camel-core - 2.14.2 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
2015-03-13 12:58:31,598 | 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 12:58:31,599 | INFO  | FelixShutdown    | DefaultShutdownStrategy          | 46 - org.apache.camel.camel-core - 2.14.2 | Graceful shutdown of 1 routes completed in 0 seconds
2015-03-13 12:58:31,605 | INFO  | FelixShutdown    | BlueprintCamelContext            | 46 - org.apache.camel.camel-core - 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) uptime 2.376 seconds
2015-03-13 12:58:31,605 | INFO  | FelixShutdown    | BlueprintCamelContext            | 46 - org.apache.camel.camel-core - 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) is shutdown in 0.014 seconds
2015-03-13 12:58:31,607 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.camel.camel-blueprint
2015-03-13 12:58:31,610 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.config.command
2015-03-13 12:58:31,668 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.config.core
2015-03-13 12:58:31,671 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.management.server
2015-03-13 12:58:31,681 | 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@263ee920 with name osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
2015-03-13 12:58:31,681 | 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@263ee920 with name osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
2015-03-13 12:58:31,701 | 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@263ee920 with name osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
2015-03-13 12:58:31,701 | 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@263ee920 with name osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
2015-03-13 12:58:31,702 | 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@263ee920 with name osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
2015-03-13 12:58:31,703 | 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@263ee920 with name osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
2015-03-13 12:58:31,710 | 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 12:58:31,723 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.service.core
2015-03-13 12:58:31,726 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.log.core
2015-03-13 12:58:31,730 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.diagnostic.core
2015-03-13 12:58:31,755 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.instance.core
2015-03-13 12:58:31,756 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.package.core
2015-03-13 12:58:31,758 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.config
2015-03-13 12:58:31,760 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.console
2015-03-13 12:58:31,766 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.blueprint
2015-03-13 12:58:31,768 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.spring
2015-03-13 12:58:31,769 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.aries.blueprint.core
2015-03-13 12:58:31,772 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.aries.blueprint.cm
2015-03-13 12:58:31,776 | INFO  | FelixShutdown    | ContextLoaderListener            | 91 - org.springframework.osgi.extender - 1.2.1 | Stopping [org.springframework.osgi.extender] bundle v.[1.2.1]
2015-03-13 12:58:31,793 | INFO  | FelixShutdown    | TimerTaskExecutor                | 86 - org.apache.servicemix.bundles.spring-context - 3.2.11.RELEASE_1 | Cancelling Timer
2015-03-13 12:58:31,815 | INFO  | FelixStartLevel  | Activator                        | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator stopping
2015-03-13 12:58:31,815 | INFO  | FelixStartLevel  | Activator                        | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator stopped
2015-03-13 12:58:31,817 | INFO  | FelixStartLevel  | core                             | 110 - org.apache.aries.jmx.core - 1.1.2 | Stopping JMX OSGi agent
2015-03-13 12:58:31,818 | 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=be4d8555-a13f-46a1-8b68-18c813031c36] for service with service.id [14]
[                          main] ReactorManager                 INFO  suite finished
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 74.048 sec <<< FAILURE! - in ch.eugster.ingest.sip.identification.KarafContainerTest
test(ch.eugster.ingest.sip.identification.KarafContainerTest)  Time elapsed: 73.953 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:19 min
[INFO] Finished at: 2015-03-13T12:58:32+01:00
[INFO] Final Memory: 18M/225M
[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

My route builder is built from blueprint:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/blueprint"
	xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
       	http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">

	<reference-list id="sipConnectors" interface="ch.eugster.ingest.sip.connector.api.SipConnector"
              availability="mandatory">
		<reference-listener bind-method="bindSipConnector" unbind-method="unbindSipConnector">
			<bean class="ch.eugster.ingest.sip.identification.SipIdentificationProcessor"/>        
      	</reference-listener>
   </reference-list>

	<bean id="fileroute" class="ch.eugster.ingest.sip.identification.KarafContainerRouteBuilder"/>
	
	<camelContext id="blueprintContext" trace="false"
		xmlns="http://camel.apache.org/schema/blueprint">
		<routeBuilder ref="fileroute"/>
	</camelContext>

</blueprint>

and the KarafContainerRouteBuilder looks like:

package ch.eugster.ingest.sip.identification;

import org.apache.camel.builder.RouteBuilder;

/**
 * A Camel Java DSL Router
 */
public class KarafContainerRouteBuilder extends RouteBuilder {

    /**
     * Let's configure the Camel routing rules using Java code...
     */
    public void configure() {
		System.out.println("Route configured");
		SipIdentificationProcessor processor = new SipIdentificationProcessor();
		from("file://target/inbox").process(processor).to("mock:file");
    }

}

while the test class is:

package ch.eugster.ingest.sip.identification;

import static org.ops4j.pax.exam.CoreOptions.maven;
import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
import static org.ops4j.pax.exam.CoreOptions.streamBundle;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.configureConsole;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.features;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.karafDistributionConfiguration;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.keepRuntimeFolder;
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.logLevel;
import static org.ops4j.pax.tinybundles.core.TinyBundles.bundle;

import java.io.File;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;

import javax.inject.Inject;

import org.apache.camel.CamelContext;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.apache.karaf.features.FeaturesService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ops4j.pax.exam.Configuration;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
import org.ops4j.pax.exam.util.Filter;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Constants;

@RunWith(PaxExam.class)
public class KarafContainerTest extends CamelTestSupport
{
	private static final String templatePath = new File("../../../../src/test/resources/SIP_20150306_Matterhorn.zip").getAbsolutePath();

	private static final String sourcePath = new File("../../../inbox/SIP_20150306_Matterhorn.zip").getAbsolutePath();

	private static final String targetPath = new File("../../../outbox/SIP_20150306_Matterhorn.zip").getAbsolutePath();

	@Inject
	protected BundleContext bundleContext;
	
	@Inject
	protected FeaturesService featuresService;

	@Inject
	@Filter(value="(camel.context.name=blueprintContext)", timeout=10000)
	protected CamelContext testContext;

	@Configuration
	public static Option[] configuration() throws Exception 
	{
		System.out.println("Configuring container");
		return new Option[] {
				karafDistributionConfiguration().frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf")
						.type("zip").versionAsInProject())
						.unpackDirectory(new File("target/paxexam/unpack/"))
						.useDeployFolder(false),
				configureConsole().ignoreLocalConsole(),
				logLevel(LogLevel.INFO),
				keepRuntimeFolder(),
				features(
						maven().groupId("org.apache.camel.karaf").artifactId("apache-camel").type("xml")
								.classifier("features").versionAsInProject(), "camel-blueprint", "camel-test"),
				features(
						maven().groupId("org.apache.karaf.features")
								.artifactId("standard").type("xml")
								.classifier("features").versionAsInProject(),
						"eventadmin"),
				mavenBundle().groupId("ch.eugster.ingest")
						.artifactId("sip-connector-api")
						.version("0.0.1-SNAPSHOT"),
				mavenBundle().groupId("ch.eugster.ingest")
						.artifactId("checksum-api")
						.version("0.0.1-SNAPSHOT"),
				mavenBundle().groupId("ch.eugster.ingest")
						.artifactId("sip-connector-matterhorn")
						.version("0.0.1-SNAPSHOT"),
				streamBundle(
						bundle()
								.add(SipIdentificationProcessor.class)
								.add(KarafContainerRouteBuilder.class)
								.add("OSGI-INF/blueprint/camel-context.xml",
										new File("src/main/resources/OSGI-INF/blueprint/blueprint.xml")
												.toURL())
										.set(Constants.BUNDLE_SYMBOLICNAME, "sip-identification-processor")
										.set(Constants.DYNAMICIMPORT_PACKAGE, "*").build())
								.start() 
				};
	}
	
	@Override
	public boolean isCreateCamelContextPerClass() 
	{
		// we override this method and return true, to tell Camel test-kit that
		// it should only create CamelContext once (per class), so we will
		// re-use the CamelContext between each test method in this class
		return true;
	}
	
	@Test
	public void test() throws Exception 
	{
		System.out.println("test running");
		assertTrue(featuresService.isInstalled(featuresService.getFeature("eventadmin")));
		assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-core")));
		assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-blueprint")));
		
		MockEndpoint mock = getMockEndpoint("mock:file");
		System.out.println(mock.toString());
		mock.expectedFileExists(targetPath);

//		Files.copy(FileSystems.getDefault().getPath(templatePath), FileSystems.getDefault().getPath(sourcePath), StandardCopyOption.REPLACE_EXISTING);
		assertTrue(new File(sourcePath).exists());
		System.out.println(sourcePath);

		Thread.sleep(5000);

		assertMockEndpointsSatisfied();
	}

}






Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugster@docuteam.ch






Re: Running test fails due to not transferred file

Posted by Christian Eugster <c....@docuteam.ch>.
Hi Achim,

yes recipe 5 chapter 10 worked for me. And I removed doPreSetup() because it is an empty method as I see. I put it back anyway and will try again...

Regards Christian

Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugster@docuteam.ch





> Am 13.03.2015 um 13:43 schrieb Achim Nierbeck <bc...@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.eugster@docuteam.ch <ma...@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 <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 <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 <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 <http://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 <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 <http://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 <http://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 <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 <tel:%2B41%20%280%2956%20470%2003%2037>
> c.eugster@docuteam.ch <ma...@docuteam.ch>
> 
> 
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
> 
> Software Architect / Project Manager / Scrum Master 
> 


Re: Running test fails due to not transferred file

Posted by Christian Eugster <c....@docuteam.ch>.
Hi Achim,

what is doPreSetup() expected to do?

Christian

Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugster@docuteam.ch



Re: Running test fails due to not transferred file

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

Great that it worked now.

Regards, Achim

sent from mobile device
Am 14.03.2015 11:22 schrieb "Christian Eugster" <c....@docuteam.ch>:

> Hi Achim,
>
> The problem was, that the the use of relativ paths in
>
> <route>
> <from uri="file://target/inbox"/>
> ...
> <route>
>
> The context while testing is another than in project. So never an exchache
> was sent.
>
> Phiuu...
>
> Thanks for helping!
>
> Christian
>
> Christian Eugster
> Docuteam GmbH
> Langacker 16
> Postfach
> CH-5405 Baden-Dättwil
> +41 (0)56 470 03 37
> c.eugster@docuteam.ch
>
>
>
>
>
> Am 13.03.2015 um 13:46 schrieb Achim Nierbeck <bc...@googlemail.com>:
>
> 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 <bc...@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....@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.eugster@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
>
>
>

Re: Running test fails due to not transferred file

Posted by Christian Eugster <c....@docuteam.ch>.
Hi Achim,

The problem was, that the the use of relativ paths in 

<route>
	<from uri="file://target/inbox"/>
	...
<route>

The context while testing is another than in project. So never an exchache was sent.

Phiuu...

Thanks for helping!

Christian

Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugster@docuteam.ch





> Am 13.03.2015 um 13:46 schrieb Achim Nierbeck <bc...@googlemail.com>:
> 
> 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 <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 <bcanhome@googlemail.com <ma...@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.eugster@docuteam.ch <ma...@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 <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 <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 <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 <http://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 <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 <http://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 <http://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 <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 <tel:%2B41%20%280%2956%20470%2003%2037>
> c.eugster@docuteam.ch <ma...@docuteam.ch>
> 
> 
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
> 
> Software Architect / Project Manager / Scrum Master 
> 
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
> 
> Software Architect / Project Manager / Scrum Master 
> 


Re: Running test fails due to not transferred file

Posted by Achim Nierbeck <bc...@googlemail.com>.
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 <bc...@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....@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.eugster@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

Re: Running test fails due to not transferred file

Posted by Achim Nierbeck <bc...@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....@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.eugster@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

Re: Running test fails due to not transferred file

Posted by Christian Eugster <c....@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.eugster@docuteam.ch



Re: Running test fails due to not transferred file

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi could you please post the first part of the log, where the test is
started.
The NullPointers regarding the GuardProxy seem to be related to the
shutdown of the container.

Regards, Achim


2015-03-13 13:09 GMT+01:00 Christian Eugster <c....@docuteam.ch>:

> Hi,
>
> at last I arrived to run a camel test in karaf, thanks to you. My next
> issue is, that the test is running.
>
> 1. I get a NPE when creating the MockEndpoint int the test method:
>
> test(ch.eugster.ingest.sip.identification.KarafContainerTest)  Time
> elapsed: 73.953 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)
>
>
> 2. The route is not executed.
>
> Do you have an idea, what this could be?
>
> Thank you very much!
>
> Regard Christian
>
> Following (hopefully) all necessery information:
>
> The error in log is:
>
> 2015-03-13 12:58:30,899 | 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 12:58:30,904 | 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 12:58:30,916 | 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 12:58:30,920 | 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 12:58:30,921 | 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 12:58:30,921 | 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 12:58:30,922 | 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 12:58:31,044 | 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 12:58:31,112 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.package.command
> 2015-03-13 12:58:31,125 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.shell.commands
> 2015-03-13 12:58:31,297 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.system.command
> 2015-03-13 12:58:31,322 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.shell.help
> 2015-03-13 12:58:31,329 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.bundle.command
> 2015-03-13 12:58:31,470 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.jaas.modules
> 2015-03-13 12:58:31,492 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.features.command
> 2015-03-13 12:58:31,542 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.deployer.wrap
> 2015-03-13 12:58:31,553 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.system.core
> 2015-03-13 12:58:31,560 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.bundle.core
> 2015-03-13 12:58:31,566 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.deployer.features
> 2015-03-13 12:58:31,570 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.features.core
> 2015-03-13 12:58:31,583 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.deployer.kar
> 2015-03-13 12:58:31,584 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.kar.core
> 2015-03-13 12:58:31,586 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle sip-identification-processor
> 2015-03-13 12:58:31,590 | 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 12:58:31,593 | INFO  | FelixShutdown    |
> DefaultShutdownStrategy          | 46 - org.apache.camel.camel-core -
> 2.14.2 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
> 2015-03-13 12:58:31,598 | 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 12:58:31,599 | INFO  | FelixShutdown    |
> DefaultShutdownStrategy          | 46 - org.apache.camel.camel-core -
> 2.14.2 | Graceful shutdown of 1 routes completed in 0 seconds
> 2015-03-13 12:58:31,605 | INFO  | FelixShutdown    |
> BlueprintCamelContext            | 46 - org.apache.camel.camel-core -
> 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) uptime 2.376
> seconds
> 2015-03-13 12:58:31,605 | INFO  | FelixShutdown    |
> BlueprintCamelContext            | 46 - org.apache.camel.camel-core -
> 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) is shutdown
> in 0.014 seconds
> 2015-03-13 12:58:31,607 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.camel.camel-blueprint
> 2015-03-13 12:58:31,610 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.config.command
> 2015-03-13 12:58:31,668 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.config.core
> 2015-03-13 12:58:31,671 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.management.server
> 2015-03-13 12:58:31,681 | 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@263ee920 with name
> osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,681 | 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@263ee920 with name
> osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,701 | 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@263ee920 with name
> osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,701 | 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@263ee920 with name
> osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,702 | 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@263ee920 with name
> osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,703 | 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@263ee920 with name
> osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,710 | 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 12:58:31,723 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.service.core
> 2015-03-13 12:58:31,726 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.log.core
> 2015-03-13 12:58:31,730 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.diagnostic.core
> 2015-03-13 12:58:31,755 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.instance.core
> 2015-03-13 12:58:31,756 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.package.core
> 2015-03-13 12:58:31,758 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.jaas.config
> 2015-03-13 12:58:31,760 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.shell.console
> 2015-03-13 12:58:31,766 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.deployer.blueprint
> 2015-03-13 12:58:31,768 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.karaf.deployer.spring
> 2015-03-13 12:58:31,769 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.aries.blueprint.core
> 2015-03-13 12:58:31,772 | INFO  | FelixShutdown    | BlueprintExtender
>             | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying
> BlueprintContainer for bundle org.apache.aries.blueprint.cm
> 2015-03-13 12:58:31,776 | INFO  | FelixShutdown    |
> ContextLoaderListener            | 91 - org.springframework.osgi.extender -
> 1.2.1 | Stopping [org.springframework.osgi.extender] bundle v.[1.2.1]
> 2015-03-13 12:58:31,793 | INFO  | FelixShutdown    | TimerTaskExecutor
>             | 86 - org.apache.servicemix.bundles.spring-context -
> 3.2.11.RELEASE_1 | Cancelling Timer
> 2015-03-13 12:58:31,815 | INFO  | FelixStartLevel  | Activator
>             | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator
> stopping
> 2015-03-13 12:58:31,815 | INFO  | FelixStartLevel  | Activator
>             | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator
> stopped
> 2015-03-13 12:58:31,817 | INFO  | FelixStartLevel  | core
>             | 110 - org.apache.aries.jmx.core - 1.1.2 | Stopping JMX OSGi
> agent
> 2015-03-13 12:58:31,818 | 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=be4d8555-a13f-46a1-8b68-18c813031c36]
> for service with service.id [14]
> [                          main] ReactorManager
>   INFO  suite finished
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 74.048 sec
> <<< FAILURE! - in ch.eugster.ingest.sip.identification.KarafContainerTest
> test(ch.eugster.ingest.sip.identification.KarafContainerTest)  Time
> elapsed: 73.953 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:19 min
> [INFO] Finished at: 2015-03-13T12:58:32+01:00
> [INFO] Final Memory: 18M/225M
> [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
>
> My route builder is built from blueprint:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="
> http://camel.apache.org/schema/blueprint"
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>        http://camel.apache.org/schema/blueprint
> http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
>
> <reference-list id="sipConnectors" interface=
> "ch.eugster.ingest.sip.connector.api.SipConnector"
>               availability="mandatory">
> <reference-listener bind-method="bindSipConnector" unbind-method=
> "unbindSipConnector">
> <bean class=
> "ch.eugster.ingest.sip.identification.SipIdentificationProcessor"/>
>
>       </reference-listener>
>    </reference-list>
>
> <bean id="fileroute" class=
> "ch.eugster.ingest.sip.identification.KarafContainerRouteBuilder"/>
>
>
> <camelContext id="blueprintContext" trace="false"
> xmlns="http://camel.apache.org/schema/blueprint">
> <routeBuilder ref="fileroute"/>
> </camelContext>
>
> </blueprint>
>
> and the KarafContainerRouteBuilder looks like:
>
> package ch.eugster.ingest.sip.identification;
>
> import org.apache.camel.builder.RouteBuilder;
>
> /**
>  * A Camel Java DSL Router
>  */
> public class KarafContainerRouteBuilder extends RouteBuilder {
>
>     /**
>      * Let's configure the Camel routing rules using Java code...
>      */
>     public void configure() {
> System.out.println("Route configured");
> SipIdentificationProcessor processor = new SipIdentificationProcessor();
> from("file://target/inbox").process(processor).to("mock:file");
>     }
>
> }
>
> while the test class is:
>
> package ch.eugster.ingest.sip.identification;
>
> import static org.ops4j.pax.exam.CoreOptions.maven;
> import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
> import static org.ops4j.pax.exam.CoreOptions.streamBundle;
> import static
> org.ops4j.pax.exam.karaf.options.KarafDistributionOption.configureConsole;
> import static
> org.ops4j.pax.exam.karaf.options.KarafDistributionOption.features;
> import static
> org.ops4j.pax.exam.karaf.options.KarafDistributionOption.karafDistributionConfiguration;
> import static
> org.ops4j.pax.exam.karaf.options.KarafDistributionOption.keepRuntimeFolder;
> import static
> org.ops4j.pax.exam.karaf.options.KarafDistributionOption.logLevel;
> import static org.ops4j.pax.tinybundles.core.TinyBundles.bundle;
>
> import java.io.File;
> import java.nio.file.FileSystems;
> import java.nio.file.Files;
> import java.nio.file.StandardCopyOption;
>
> import javax.inject.Inject;
>
> import org.apache.camel.CamelContext;
> import org.apache.camel.component.mock.MockEndpoint;
> import org.apache.camel.test.junit4.CamelTestSupport;
> import org.apache.karaf.features.FeaturesService;
> import org.junit.Test;
> import org.junit.runner.RunWith;
> import org.ops4j.pax.exam.Configuration;
> import org.ops4j.pax.exam.Option;
> import org.ops4j.pax.exam.junit.PaxExam;
> import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
> import org.ops4j.pax.exam.util.Filter;
> import org.osgi.framework.BundleContext;
> import org.osgi.framework.Constants;
>
> @RunWith(PaxExam.class)
> public class KarafContainerTest extends CamelTestSupport
> {
> private static final String templatePath = new
> File("../../../../src/test/resources/SIP_20150306_Matterhorn.zip").getAbsolutePath();
>
> private static final String sourcePath = new
> File("../../../inbox/SIP_20150306_Matterhorn.zip").getAbsolutePath();
>
> private static final String targetPath = new
> File("../../../outbox/SIP_20150306_Matterhorn.zip").getAbsolutePath();
>
> @Inject
> protected BundleContext bundleContext;
>  @Inject
> protected FeaturesService featuresService;
>
> @Inject
> @Filter(value="(camel.context.name=blueprintContext)", timeout=10000)
> protected CamelContext testContext;
>
> @Configuration
> public static Option[] configuration() throws Exception
> {
> System.out.println("Configuring container");
> return new Option[] {
>
> karafDistributionConfiguration().frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf")
> .type("zip").versionAsInProject())
> .unpackDirectory(new File("target/paxexam/unpack/"))
> .useDeployFolder(false),
> configureConsole().ignoreLocalConsole(),
> logLevel(LogLevel.INFO),
> keepRuntimeFolder(),
> features(
>
> maven().groupId("org.apache.camel.karaf").artifactId("apache-camel").type("xml")
> .classifier("features").versionAsInProject(), "camel-blueprint",
> "camel-test"),
> features(
> maven().groupId("org.apache.karaf.features")
> .artifactId("standard").type("xml")
> .classifier("features").versionAsInProject(),
> "eventadmin"),
> mavenBundle().groupId("ch.eugster.ingest")
> .artifactId("sip-connector-api")
> .version("0.0.1-SNAPSHOT"),
> mavenBundle().groupId("ch.eugster.ingest")
> .artifactId("checksum-api")
> .version("0.0.1-SNAPSHOT"),
> mavenBundle().groupId("ch.eugster.ingest")
> .artifactId("sip-connector-matterhorn")
> .version("0.0.1-SNAPSHOT"),
> streamBundle(
> bundle()
> .add(SipIdentificationProcessor.class)
> .add(KarafContainerRouteBuilder.class)
> .add("OSGI-INF/blueprint/camel-context.xml",
> new File("src/main/resources/OSGI-INF/blueprint/blueprint.xml")
> .toURL())
> .set(Constants.BUNDLE_SYMBOLICNAME, "sip-identification-processor")
> .set(Constants.DYNAMICIMPORT_PACKAGE, "*").build())
> .start()
> };
> }
>  @Override
> public boolean isCreateCamelContextPerClass()
> {
> // we override this method and return true, to tell Camel test-kit that
> // it should only create CamelContext once (per class), so we will
> // re-use the CamelContext between each test method in this class
> return true;
> }
>  @Test
> public void test() throws Exception
> {
> System.out.println("test running");
>
> assertTrue(featuresService.isInstalled(featuresService.getFeature("eventadmin")));
>
> assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-core")));
>
> assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-blueprint")));
>  MockEndpoint mock = getMockEndpoint("mock:file");
> System.out.println(mock.toString());
> mock.expectedFileExists(targetPath);
>
> // Files.copy(FileSystems.getDefault().getPath(templatePath),
> FileSystems.getDefault().getPath(sourcePath),
> StandardCopyOption.REPLACE_EXISTING);
> assertTrue(new File(sourcePath).exists());
> System.out.println(sourcePath);
>
> Thread.sleep(5000);
>
> assertMockEndpointsSatisfied();
> }
>
> }
>
>
>
>
>
>
> Christian Eugster
> Docuteam GmbH
> Langacker 16
> Postfach
> CH-5405 Baden-Dättwil
> +41 (0)56 470 03 37
> c.eugster@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

Running test fails due to not transferred file: Addendum

Posted by Christian Eugster <c....@docuteam.ch>.
The NPE is thrown because the CamelContext context in CamelTestSupport is null!?

Christian

Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugster@docuteam.ch





> Anfang der weitergeleiteten Nachricht:
> 
> Von: Christian Eugster <c....@docuteam.ch>
> Betreff: Running test fails due to not transferred file
> Datum: 13. März 2015 13:09:23 MEZ
> An: user@karaf.apache.org
> 
> Hi,
> 
> at last I arrived to run a camel test in karaf, thanks to you. My next issue is, that the test is running. 
> 
> 1. I get a NPE when creating the MockEndpoint int the test method:
> 
> test(ch.eugster.ingest.sip.identification.KarafContainerTest)  Time elapsed: 73.953 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)
> 
> 
> 2. The route is not executed.
> 
> Do you have an idea, what this could be?
> 
> Thank you very much!
> 
> Regard Christian
> 
> Following (hopefully) all necessery information:
> 
> The error in log is:
> 
> 2015-03-13 12:58:30,899 | 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 12:58:30,904 | 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 12:58:30,916 | 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 12:58:30,920 | 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 12:58:30,921 | 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 12:58:30,921 | 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 12:58:30,922 | 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 12:58:31,044 | 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 12:58:31,112 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.package.command
> 2015-03-13 12:58:31,125 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.commands
> 2015-03-13 12:58:31,297 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.system.command
> 2015-03-13 12:58:31,322 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
> 2015-03-13 12:58:31,329 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.command
> 2015-03-13 12:58:31,470 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.modules
> 2015-03-13 12:58:31,492 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.features.command
> 2015-03-13 12:58:31,542 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.wrap
> 2015-03-13 12:58:31,553 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.system.core
> 2015-03-13 12:58:31,560 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.core
> 2015-03-13 12:58:31,566 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.features
> 2015-03-13 12:58:31,570 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.features.core
> 2015-03-13 12:58:31,583 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.kar
> 2015-03-13 12:58:31,584 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.kar.core
> 2015-03-13 12:58:31,586 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle sip-identification-processor
> 2015-03-13 12:58:31,590 | 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 12:58:31,593 | INFO  | FelixShutdown    | DefaultShutdownStrategy          | 46 - org.apache.camel.camel-core - 2.14.2 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
> 2015-03-13 12:58:31,598 | INFO  | 1 - ShutdownTask | DefaultShutdownStrategy          | 46 - org.apache.camel.camel-core - 2.14.2 | Route: route1 shutdown complete, was consuming from: Endpoint[file://target/inbox] <file://target/inbox]>
> 2015-03-13 12:58:31,599 | INFO  | FelixShutdown    | DefaultShutdownStrategy          | 46 - org.apache.camel.camel-core - 2.14.2 | Graceful shutdown of 1 routes completed in 0 seconds
> 2015-03-13 12:58:31,605 | INFO  | FelixShutdown    | BlueprintCamelContext            | 46 - org.apache.camel.camel-core - 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) uptime 2.376 seconds
> 2015-03-13 12:58:31,605 | INFO  | FelixShutdown    | BlueprintCamelContext            | 46 - org.apache.camel.camel-core - 2.14.2 | Apache Camel 2.14.2 (CamelContext: blueprintContext) is shutdown in 0.014 seconds
> 2015-03-13 12:58:31,607 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.camel.camel-blueprint
> 2015-03-13 12:58:31,610 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.config.command
> 2015-03-13 12:58:31,668 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.config.core
> 2015-03-13 12:58:31,671 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.management.server
> 2015-03-13 12:58:31,681 | 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@263ee920 with name osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,681 | 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@263ee920 with name osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,701 | 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@263ee920 with name osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,701 | 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@263ee920 with name osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,702 | 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@263ee920 with name osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,703 | 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@263ee920 with name osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=be4d8555-a13f-46a1-8b68-18c813031c36
> 2015-03-13 12:58:31,710 | 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 12:58:31,723 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.service.core
> 2015-03-13 12:58:31,726 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.log.core
> 2015-03-13 12:58:31,730 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.diagnostic.core
> 2015-03-13 12:58:31,755 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.instance.core
> 2015-03-13 12:58:31,756 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.package.core
> 2015-03-13 12:58:31,758 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.config
> 2015-03-13 12:58:31,760 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.console
> 2015-03-13 12:58:31,766 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.blueprint
> 2015-03-13 12:58:31,768 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.deployer.spring
> 2015-03-13 12:58:31,769 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.aries.blueprint.core
> 2015-03-13 12:58:31,772 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.aries.blueprint.cm
> 2015-03-13 12:58:31,776 | INFO  | FelixShutdown    | ContextLoaderListener            | 91 - org.springframework.osgi.extender - 1.2.1 | Stopping [org.springframework.osgi.extender] bundle v.[1.2.1]
> 2015-03-13 12:58:31,793 | INFO  | FelixShutdown    | TimerTaskExecutor                | 86 - org.apache.servicemix.bundles.spring-context - 3.2.11.RELEASE_1 | Cancelling Timer
> 2015-03-13 12:58:31,815 | INFO  | FelixStartLevel  | Activator                        | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator stopping
> 2015-03-13 12:58:31,815 | INFO  | FelixStartLevel  | Activator                        | 46 - org.apache.camel.camel-core - 2.14.2 | Camel activator stopped
> 2015-03-13 12:58:31,817 | INFO  | FelixStartLevel  | core                             | 110 - org.apache.aries.jmx.core - 1.1.2 | Stopping JMX OSGi agent
> 2015-03-13 12:58:31,818 | 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=be4d8555-a13f-46a1-8b68-18c813031c36] for service with service.id [14]
> [                          main] ReactorManager                 INFO  suite finished
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 74.048 sec <<< FAILURE! - in ch.eugster.ingest.sip.identification.KarafContainerTest
> test(ch.eugster.ingest.sip.identification.KarafContainerTest)  Time elapsed: 73.953 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:19 min
> [INFO] Finished at: 2015-03-13T12:58:32+01:00
> [INFO] Final Memory: 18M/225M
> [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 <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>
> 
> My route builder is built from blueprint:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0 <http://www.osgi.org/xmlns/blueprint/v1.0.0>"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance>" xmlns:camel="http://camel.apache.org/schema/blueprint <http://camel.apache.org/schema/blueprint>"
> 	xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 <http://www.osgi.org/xmlns/blueprint/v1.0.0> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>
>        	http://camel.apache.org/schema/blueprint <http://camel.apache.org/schema/blueprint> http://camel.apache.org/schema/blueprint/camel-blueprint.xsd <http://camel.apache.org/schema/blueprint/camel-blueprint.xsd>">
> 
> 	<reference-list id="sipConnectors" interface="ch.eugster.ingest.sip.connector.api.SipConnector"
>               availability="mandatory">
> 		<reference-listener bind-method="bindSipConnector" unbind-method="unbindSipConnector">
> 			<bean class="ch.eugster.ingest.sip.identification.SipIdentificationProcessor"/>        
>       	</reference-listener>
>    </reference-list>
> 
> 	<bean id="fileroute" class="ch.eugster.ingest.sip.identification.KarafContainerRouteBuilder"/>
> 	
> 	<camelContext id="blueprintContext" trace="false"
> 		xmlns="http://camel.apache.org/schema/blueprint <http://camel.apache.org/schema/blueprint>">
> 		<routeBuilder ref="fileroute"/>
> 	</camelContext>
> 
> </blueprint>
> 
> and the KarafContainerRouteBuilder looks like:
> 
> package ch.eugster.ingest.sip.identification;
> 
> import org.apache.camel.builder.RouteBuilder;
> 
> /**
>  * A Camel Java DSL Router
>  */
> public class KarafContainerRouteBuilder extends RouteBuilder {
> 
>     /**
>      * Let's configure the Camel routing rules using Java code...
>      */
>     public void configure() {
> 		System.out.println("Route configured");
> 		SipIdentificationProcessor processor = new SipIdentificationProcessor();
> 		from("file://target/inbox <file://target/inbox>").process(processor).to("mock:file");
>     }
> 
> }
> 
> while the test class is:
> 
> package ch.eugster.ingest.sip.identification;
> 
> import static org.ops4j.pax.exam.CoreOptions.maven;
> import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
> import static org.ops4j.pax.exam.CoreOptions.streamBundle;
> import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.configureConsole;
> import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.features;
> import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.karafDistributionConfiguration;
> import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.keepRuntimeFolder;
> import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.logLevel;
> import static org.ops4j.pax.tinybundles.core.TinyBundles.bundle;
> 
> import java.io.File;
> import java.nio.file.FileSystems;
> import java.nio.file.Files;
> import java.nio.file.StandardCopyOption;
> 
> import javax.inject.Inject;
> 
> import org.apache.camel.CamelContext;
> import org.apache.camel.component.mock.MockEndpoint;
> import org.apache.camel.test.junit4.CamelTestSupport;
> import org.apache.karaf.features.FeaturesService;
> import org.junit.Test;
> import org.junit.runner.RunWith;
> import org.ops4j.pax.exam.Configuration;
> import org.ops4j.pax.exam.Option;
> import org.ops4j.pax.exam.junit.PaxExam;
> import org.ops4j.pax.exam.karaf.options.LogLevelOption.LogLevel;
> import org.ops4j.pax.exam.util.Filter;
> import org.osgi.framework.BundleContext;
> import org.osgi.framework.Constants;
> 
> @RunWith(PaxExam.class)
> public class KarafContainerTest extends CamelTestSupport
> {
> 	private static final String templatePath = new File("../../../../src/test/resources/SIP_20150306_Matterhorn.zip").getAbsolutePath();
> 
> 	private static final String sourcePath = new File("../../../inbox/SIP_20150306_Matterhorn.zip").getAbsolutePath();
> 
> 	private static final String targetPath = new File("../../../outbox/SIP_20150306_Matterhorn.zip").getAbsolutePath();
> 
> 	@Inject
> 	protected BundleContext bundleContext;
> 	
> 	@Inject
> 	protected FeaturesService featuresService;
> 
> 	@Inject
> 	@Filter(value="(camel.context.name=blueprintContext)", timeout=10000)
> 	protected CamelContext testContext;
> 
> 	@Configuration
> 	public static Option[] configuration() throws Exception 
> 	{
> 		System.out.println("Configuring container");
> 		return new Option[] {
> 				karafDistributionConfiguration().frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf")
> 						.type("zip").versionAsInProject())
> 						.unpackDirectory(new File("target/paxexam/unpack/"))
> 						.useDeployFolder(false),
> 				configureConsole().ignoreLocalConsole(),
> 				logLevel(LogLevel.INFO),
> 				keepRuntimeFolder(),
> 				features(
> 						maven().groupId("org.apache.camel.karaf").artifactId("apache-camel").type("xml")
> 								.classifier("features").versionAsInProject(), "camel-blueprint", "camel-test"),
> 				features(
> 						maven().groupId("org.apache.karaf.features")
> 								.artifactId("standard").type("xml")
> 								.classifier("features").versionAsInProject(),
> 						"eventadmin"),
> 				mavenBundle().groupId("ch.eugster.ingest")
> 						.artifactId("sip-connector-api")
> 						.version("0.0.1-SNAPSHOT"),
> 				mavenBundle().groupId("ch.eugster.ingest")
> 						.artifactId("checksum-api")
> 						.version("0.0.1-SNAPSHOT"),
> 				mavenBundle().groupId("ch.eugster.ingest")
> 						.artifactId("sip-connector-matterhorn")
> 						.version("0.0.1-SNAPSHOT"),
> 				streamBundle(
> 						bundle()
> 								.add(SipIdentificationProcessor.class)
> 								.add(KarafContainerRouteBuilder.class)
> 								.add("OSGI-INF/blueprint/camel-context.xml",
> 										new File("src/main/resources/OSGI-INF/blueprint/blueprint.xml")
> 												.toURL())
> 										.set(Constants.BUNDLE_SYMBOLICNAME, "sip-identification-processor")
> 										.set(Constants.DYNAMICIMPORT_PACKAGE, "*").build())
> 								.start() 
> 				};
> 	}
> 	
> 	@Override
> 	public boolean isCreateCamelContextPerClass() 
> 	{
> 		// we override this method and return true, to tell Camel test-kit that
> 		// it should only create CamelContext once (per class), so we will
> 		// re-use the CamelContext between each test method in this class
> 		return true;
> 	}
> 	
> 	@Test
> 	public void test() throws Exception 
> 	{
> 		System.out.println("test running");
> 		assertTrue(featuresService.isInstalled(featuresService.getFeature("eventadmin")));
> 		assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-core")));
> 		assertTrue(featuresService.isInstalled(featuresService.getFeature("camel-blueprint")));
> 		
> 		MockEndpoint mock = getMockEndpoint("mock:file");
> 		System.out.println(mock.toString());
> 		mock.expectedFileExists(targetPath);
> 
> //		Files.copy(FileSystems.getDefault().getPath(templatePath), FileSystems.getDefault().getPath(sourcePath), StandardCopyOption.REPLACE_EXISTING);
> 		assertTrue(new File(sourcePath).exists());
> 		System.out.println(sourcePath);
> 
> 		Thread.sleep(5000);
> 
> 		assertMockEndpointsSatisfied();
> 	}
> 
> }
> 
> 
> 
> 
> 
> 
> Christian Eugster
> Docuteam GmbH
> Langacker 16
> Postfach
> CH-5405 Baden-Dättwil
> +41 (0)56 470 03 37
> c.eugster@docuteam.ch <ma...@docuteam.ch>
> 
> 
> 
> 
>