camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JaySenSharma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8613) When proxyAuthHost is defined in camel-https4 with sslContextParameters it fails.
Date Fri, 10 Apr 2015 04:16:12 GMT
JaySenSharma created CAMEL-8613:
-----------------------------------

             Summary: When proxyAuthHost is defined in camel-https4 with sslContextParameters
it fails.
                 Key: CAMEL-8613
                 URL: https://issues.apache.org/jira/browse/CAMEL-8613
             Project: Camel
          Issue Type: Bug
          Components: camel-http4
    Affects Versions: 2.12.0
         Environment: All
            Reporter: JaySenSharma


- camel-https4 fails when  "sslContextParameters" and "proxyAuthHost" are defined together.
{code}
    <to uri="https4://dic.googlecode.com/files/GoogleSearch.wsdl?sslContextParameters=#testSSLContext&amp;throwExceptionOnFailure=true"/>
{code}

Above works fine but if i add the "proxyAuthHost" info then it fails with the following error:
{code}
   <to uri="https4://dic.googlecode.com/files/GoogleSearch.wsdl?sslContextParameters=#testSSLContext&amp;throwExceptionOnFailure=true&amp;proxyAuthHost=my.squid.proxy.com&amp;proxyAuthPort=3128"/>
{code}


  The following Error occurs: 
{code}
[jsensharma@localhost CamelBased]$ mvn clean install camel:run

[INFO] Starting Camel ...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/jsensharma/.m2/repository/org/slf4j/slf4j-log4j12/1.6.6/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/jsensharma/.m2/repository/org/slf4j/slf4j-log4j12/1.7.10/slf4j-log4j12-1.7.10.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]
[mel.test.blueprint.Main.main()] MainSupport                    INFO  Apache Camel 2.12.0.redhat-610379
starting
[mel.test.blueprint.Main.main()] Activator                      INFO  Camel activator starting
[mel.test.blueprint.Main.main()] Activator                      INFO  Camel activator started
[mel.test.blueprint.Main.main()] BlueprintExtender              INFO  No quiesce support is
available, so blueprint components will not participate in quiesce operations
[         Blueprint Extender: 1] BlueprintContainerImpl         INFO  Bundle redhat-case is
waiting for namespace handlers [http://camel.apache.org/schema/blueprint]
[         Blueprint Extender: 1] DefaultTypeConverter           WARN  Overriding type converter
from: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.component.http.HttpConverter.toInputStream(javax.servlet.http.HttpServletRequest,org.apache.camel.Exchange)
throws java.io.IOException to: StaticMethodTypeConverter: public static java.io.InputStream
org.apache.camel.component.http4.HttpConverter.toInputStream(javax.servlet.http.HttpServletRequest,org.apache.camel.Exchange)
throws java.io.IOException
[         Blueprint Extender: 1] DefaultTypeConverter           WARN  Overriding type converter
from: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletRequest org.apache.camel.component.http.HttpConverter.toServletRequest(org.apache.camel.Message)
to: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletRequest org.apache.camel.component.http4.HttpConverter.toServletRequest(org.apache.camel.Message)
[         Blueprint Extender: 1] DefaultTypeConverter           WARN  Overriding type converter
from: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletResponse org.apache.camel.component.http.HttpConverter.toServletResponse(org.apache.camel.Message)
to: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletResponse org.apache.camel.component.http4.HttpConverter.toServletResponse(org.apache.camel.Message)
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Apache Camel 2.12.0.redhat-610379
(CamelContext: myCamelId) is starting
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  StreamCaching is enabled
on CamelContext: myCamelId
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Tracing is enabled on
CamelContext: myCamelId
[         Blueprint Extender: 1] ManagedManagementStrategy      INFO  JMX is enabled
[         Blueprint Extender: 1] HttpComponent                  INFO  Created ClientConnectionManager
org.apache.http.impl.conn.PoolingClientConnectionManager@1a428ecd
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https on port 2831
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https4 on port 2831
[         Blueprint Extender: 1] SSLContextParameters           INFO  Available providers:
SUN version 1.7.
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https on port 443
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https4 on port 443
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  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.
[         Blueprint Extender: 1] DefaultStreamCachingStrategy   INFO  StreamCaching in use
with spool directory: /tmp/camel/camel-tmp-75033967-7017-48d6-9394-d690a6174d87 and rules:
[Spool > 128K body size]
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Apache Camel 2.12.0.redhat-610379
(CamelContext: myCamelId) is shutting down
[         Blueprint Extender: 1] HttpComponent                  INFO  Shutting down ClientConnectionManager:
org.apache.http.impl.conn.PoolingClientConnectionManager@1a428ecd
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Apache Camel 2.12.0.redhat-610379
(CamelContext: myCamelId) uptime 0.308 seconds
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Apache Camel 2.12.0.redhat-610379
(CamelContext: myCamelId) is shutdown in 0.004 seconds
[         Blueprint Extender: 1] BlueprintCamelContext          ERROR Error occurred during
starting Camel: CamelContext(myCamelId) due Failed to create Producer for endpoint: Endpoint[https4://dic.googlecode.com/files/GoogleSearch.wsdl?proxyAuthHost=my.squid.proxy.com&sslContextParameters=%23testSSLContext&throwExceptionOnFailure=true&proxyAuthPort=2831].
Reason: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Only same
instance of SSLContextParameters is supported. Cannot use a different instance. Previous instance
hashcode: 0x2e6857ea, New instance hashcode: 0x0
org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint:
Endpoint[https4://dic.googlecode.com/files/GoogleSearch.wsdl?proxyAuthHost=my.squid.proxy.com&sslContextParameters=%23testSSLContext&throwExceptionOnFailure=true&proxyAuthPort=2831].
Reason: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Only same
instance of SSLContextParameters is supported. Cannot use a different instance. Previous instance
hashcode: 0x2e6857ea, New instance hashcode: 0x0
	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:409)
	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:123)
	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:191)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
	at org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:358)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1154)
	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)
	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:153)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:61)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:994)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:329)
	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2150)
	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2080)
	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1868)
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1740)
	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1579)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1547)
	at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:177)
	at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:209)
	at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:147)
	at de.kalpatec.pojosr.framework.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:872)
	at de.kalpatec.pojosr.framework.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:792)
	at de.kalpatec.pojosr.framework.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:540)
	at de.kalpatec.pojosr.framework.PojoSR$1.serviceChanged(PojoSR.java:66)
	at de.kalpatec.pojosr.framework.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:116)
	at de.kalpatec.pojosr.framework.PojoSRBundleContext.registerService(PojoSRBundleContext.java:88)
	at de.kalpatec.pojosr.framework.PojoSRBundleContext.registerService(PojoSRBundleContext.java:260)
	at org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:97)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)
	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)
	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)
	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)
	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)
	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:668)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
	at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Only
same instance of SSLContextParameters is supported. Cannot use a different instance. Previous
instance hashcode: 0x2e6857ea, New instance hashcode: 0x0
	at org.apache.camel.component.http4.HttpEndpoint.createHttpClient(HttpEndpoint.java:149)
	at org.apache.camel.component.http4.HttpEndpoint.getHttpClient(HttpEndpoint.java:113)
	at org.apache.camel.component.http4.HttpProducer.<init>(HttpProducer.java:83)
	at org.apache.camel.component.http4.HttpEndpoint.createProducer(HttpEndpoint.java:99)
	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:405)
	... 92 more
Caused by: java.lang.IllegalArgumentException: Only same instance of SSLContextParameters
is supported. Cannot use a different instance. Previous instance hashcode: 0x2e6857ea, New
instance hashcode: 0x0
	at org.apache.camel.component.http4.HttpComponent.registerPort(HttpComponent.java:329)
	at org.apache.camel.component.http4.HttpEndpoint.createHttpClient(HttpEndpoint.java:147)
	... 96 more
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Apache Camel 2.12.0.redhat-610379
(CamelContext: myCamelId) is starting
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  StreamCaching is enabled
on CamelContext: myCamelId
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  Tracing is enabled on
CamelContext: myCamelId
[         Blueprint Extender: 1] ManagedManagementStrategy      INFO  JMX is enabled
[         Blueprint Extender: 1] DefaultTypeConverter           WARN  Overriding type converter
from: StaticMethodTypeConverter: public static java.io.InputStream org.apache.camel.component.http.HttpConverter.toInputStream(javax.servlet.http.HttpServletRequest,org.apache.camel.Exchange)
throws java.io.IOException to: StaticMethodTypeConverter: public static java.io.InputStream
org.apache.camel.component.http4.HttpConverter.toInputStream(javax.servlet.http.HttpServletRequest,org.apache.camel.Exchange)
throws java.io.IOException
[         Blueprint Extender: 1] DefaultTypeConverter           WARN  Overriding type converter
from: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletRequest org.apache.camel.component.http.HttpConverter.toServletRequest(org.apache.camel.Message)
to: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletRequest org.apache.camel.component.http4.HttpConverter.toServletRequest(org.apache.camel.Message)
[         Blueprint Extender: 1] DefaultTypeConverter           WARN  Overriding type converter
from: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletResponse org.apache.camel.component.http.HttpConverter.toServletResponse(org.apache.camel.Message)
to: StaticMethodTypeConverter: public static javax.servlet.http.HttpServletResponse org.apache.camel.component.http4.HttpConverter.toServletResponse(org.apache.camel.Message)
[         Blueprint Extender: 1] HttpComponent                  INFO  Created ClientConnectionManager
org.apache.http.impl.conn.PoolingClientConnectionManager@235089b4
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https on port 2831
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https4 on port 2831
[         Blueprint Extender: 1] SSLContextParameters           INFO  Available providers:
SUN version 1.7.
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https on port 443
[         Blueprint Extender: 1] HttpComponent                  INFO  Registering SSL scheme
https4 on port 443
[         Blueprint Extender: 1] BlueprintCamelContext          INFO  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.
[         Blueprint Extender: 1] DefaultStreamCachingStrategy   INFO  StreamCaching in use
with spool directory: /tmp/camel/camel-tmp-75033967-7017-48d6-9394-d690a6174d87 and rules:
[Spool > 128K body size, Spool > 128K body size]
[         Blueprint Extender: 1] BlueprintCamelContext          ERROR Error occurred during
starting Camel: CamelContext(myCamelId) due Failed to create Producer for endpoint: Endpoint[https4://dic.googlecode.com/files/GoogleSearch.wsdl?proxyAuthHost=my.squid.proxy.com&sslContextParameters=%23testSSLContext&throwExceptionOnFailure=true&proxyAuthPort=2831].
Reason: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Only same
instance of SSLContextParameters is supported. Cannot use a different instance. Previous instance
hashcode: 0x2e6857ea, New instance hashcode: 0x0
org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint:
Endpoint[https4://dic.googlecode.com/files/GoogleSearch.wsdl?proxyAuthHost=my.squid.proxy.com&sslContextParameters=%23testSSLContext&throwExceptionOnFailure=true&proxyAuthPort=2831].
Reason: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Only same
instance of SSLContextParameters is supported. Cannot use a different instance. Previous instance
hashcode: 0x2e6857ea, New instance hashcode: 0x0
	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:409)
	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:123)
	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:191)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
	at org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:358)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1154)
	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)
	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:153)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:61)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:994)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)
	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)
	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:329)
	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2150)
	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2080)
	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1868)
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1740)
	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1579)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1547)
	at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:177)
	at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:209)
	at org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:147)
	at de.kalpatec.pojosr.framework.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:872)
	at de.kalpatec.pojosr.framework.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:792)
	at de.kalpatec.pojosr.framework.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:540)
	at de.kalpatec.pojosr.framework.PojoSR$1.serviceChanged(PojoSR.java:66)
	at de.kalpatec.pojosr.framework.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:116)
	at de.kalpatec.pojosr.framework.PojoSRBundleContext.registerService(PojoSRBundleContext.java:95)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:439)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:379)
	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
	at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Only
same instance of SSLContextParameters is supported. Cannot use a different instance. Previous
instance hashcode: 0x2e6857ea, New instance hashcode: 0x0
	at org.apache.camel.component.http4.HttpEndpoint.createHttpClient(HttpEndpoint.java:149)
	at org.apache.camel.component.http4.HttpEndpoint.getHttpClient(HttpEndpoint.java:113)
	at org.apache.camel.component.http4.HttpProducer.<init>(HttpProducer.java:83)
	at org.apache.camel.component.http4.HttpEndpoint.createProducer(HttpEndpoint.java:99)
	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:405)
	... 76 more
Caused by: java.lang.IllegalArgumentException: Only same instance of SSLContextParameters
is supported. Cannot use a different instance. Previous instance hashcode: 0x2e6857ea, New
instance hashcode: 0x0
	at org.apache.camel.component.http4.HttpComponent.registerPort(HttpComponent.java:329)
	at org.apache.camel.component.http4.HttpEndpoint.createHttpClient(HttpEndpoint.java:147)
	... 80 more
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  Test bundle headers:
Bundle-ManifestVersion=2, Bundle-Name=System Bundle, Bundle-SymbolicName=de.kalpatec.pojosr.framework,
Bundle-Vendor=kalpatec, Bundle-Version=0.2.1
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.felix.cm.PersistenceManager],
bundle: org.apache.felix.configadmin [31], symbolicName: org.apache.felix.configadmin
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.framework.hooks.bundle.EventHook],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.url.URLStreamHandlerService],
bundle: org.apache.felix.fileinstall [32], symbolicName: org.apache.felix.fileinstall
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.NamespaceHandler],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.NamespaceHandler],
bundle: org.apache.camel.camel-blueprint [8], symbolicName: org.apache.camel.camel-blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.blueprint.container.BlueprintListener],
bundle: redhat-case [2], symbolicName: redhat-case
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.NamespaceHandler],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.cm.ConfigurationAdmin],
bundle: org.apache.felix.configadmin [31], symbolicName: org.apache.felix.configadmin
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
bundle: org.apache.camel.camel-http [4], symbolicName: org.apache.camel.camel-http
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.NamespaceHandler],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.NamespaceHandler],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.packageadmin.PackageAdmin],
bundle: de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.DataFormatResolver],
bundle: org.apache.camel.camel-core [3], symbolicName: org.apache.camel.camel-core
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.cm.ConfigurationListener,
org.apache.felix.fileinstall.ArtifactListener, org.apache.felix.fileinstall.ArtifactInstaller],
bundle: org.apache.felix.fileinstall [32], symbolicName: org.apache.felix.fileinstall
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.NamespaceHandler],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.ComponentResolver],
bundle: org.apache.camel.camel-core [3], symbolicName: org.apache.camel.camel-core
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.NamespaceHandler],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
bundle: org.apache.camel.camel-blueprint [8], symbolicName: org.apache.camel.camel-blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.blueprint.services.ParserService],
bundle: org.apache.aries.blueprint [20], symbolicName: org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.cm.ManagedServiceFactory],
bundle: org.apache.felix.fileinstall [32], symbolicName: org.apache.felix.fileinstall
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
bundle: org.apache.camel.camel-core [3], symbolicName: org.apache.camel.camel-core
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.aries.proxy.ProxyManager],
bundle: org.apache.aries.proxy.impl [22], symbolicName: org.apache.aries.proxy.impl
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.LanguageResolver],
bundle: org.apache.camel.camel-core [3], symbolicName: org.apache.camel.camel-core
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.blueprint.container.BlueprintContainer],
bundle: redhat-case [2], symbolicName: redhat-case
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.ComponentResolver],
bundle: org.apache.camel.camel-http [4], symbolicName: org.apache.camel.camel-http
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
bundle: org.apache.camel.camel-http4 [7], symbolicName: org.apache.camel.camel-http4
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.osgi.service.startlevel.StartLevel],
bundle: de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.ComponentResolver],
bundle: org.apache.camel.camel-http4 [7], symbolicName: org.apache.camel.camel-http4
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           WARN  ServiceReference: [org.apache.camel.spi.TypeConverterLoader],
bundle: de.kalpatec.pojosr.framework [0], symbolicName: de.kalpatec.pojosr.framework
[mel.test.blueprint.Main.main()] BlueprintExtender              INFO  Destroying BlueprintContainer
for bundle redhat-case
[mel.test.blueprint.Main.main()] BlueprintExtender              INFO  Destroying BlueprintContainer
for bundle org.apache.camel.camel-blueprint
[mel.test.blueprint.Main.main()] BlueprintExtender              INFO  Destroying BlueprintContainer
for bundle org.apache.aries.blueprint
[mel.test.blueprint.Main.main()] Activator                      INFO  Camel activator stopping
[mel.test.blueprint.Main.main()] Activator                      INFO  Camel activator stopped
[mel.test.blueprint.Main.main()] CamelBlueprintHelper           INFO  Deleting work directory
target/bundles/1428558491683
[ERROR] *************************************
[ERROR] Error occurred while running main from: org.apache.camel.test.blueprint.Main
[ERROR] 
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:488)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext)
	at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:240)
	at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:202)
	at org.apache.camel.test.blueprint.Main.doStart(Main.java:104)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.main.MainSupport.run(MainSupport.java:148)
	at org.apache.camel.main.MainSupport.run(MainSupport.java:352)
	at org.apache.camel.test.blueprint.Main.main(Main.java:81)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message