You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by fabryprog <fa...@bizmate.it> on 2016/09/13 14:06:35 UTC

Camel-docker upgrade library, test failure!

Hello,

i am working to this jira https://issues.apache.org/jira/browse/CAMEL-10307 

Source code is here: https://github.com/Fabryprog/camel/tree/CAMEL-10307

when i Running tests i have follow error that it could be a JARs conflict.
Can you help me?

<pre>
2016-09-13 15:54:48,426 [main           ] INFO  AuthCmdHeaderTest             
- Testing: null(org.apache.camel.component.docker.headers.AuthCmdHeaderTest)
2016-09-13 15:54:48,427 [main           ] INFO  AuthCmdHeaderTest             
-
********************************************************************************
2016-09-13 15:54:49,092 [main           ] INFO  DefaultCamelContext           
- Apache Camel 2.18.0-SNAPSHOT (CamelContext: camel-1) is starting
2016-09-13 15:54:49,094 [main           ] INFO  DefaultManagementStrategy     
- JMX is disabled
2016-09-13 15:54:49,148 [main           ] INFO  DefaultTypeConverter          
- Loaded 189 type converters
2016-09-13 15:54:49,216 [main           ] INFO  DefaultCamelContext           
- 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
2016-09-13 15:54:49,224 [main           ] INFO  DefaultCamelContext           
- Route: route1 started and consuming from: direct://in
2016-09-13 15:54:49,224 [main           ] INFO  DefaultCamelContext           
- Total 1 routes, of which 1 are started.
2016-09-13 15:54:49,225 [main           ] INFO  DefaultCamelContext           
- Apache Camel 2.18.0-SNAPSHOT (CamelContext: camel-1) started in 0.132
seconds
2016-09-13 15:54:49,271 [main           ] INFO  DockerClientFactory           
- Docker clientProfile DockerClientProfile [host=localhost, port=5000,
username=jdoe, password=password, email=jdoe@example.com,
serverAddress=http://docker.io/v1, requestTimeout=null, certPath=null,
maxTotalConnections=100, maxPerRouteConnections=100,
loggingFilterEnabled=false, followRedirectFilterEnabled=false,
tlsVerify=false, socket=true]
2016-09-13 15:54:49,762 [main           ] ERROR DefaultErrorHandler           
- Failed delivery for (MessageId:
ID-archimede-ubuntu-42944-1473774888486-0-1 on ExchangeId:
ID-archimede-ubuntu-42944-1473774888486-0-2). Exhausted after delivery
attempt: 1 caught: java.lang.IllegalStateException: Error creating SSL
context (algorithm not supported).

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                       
Elapsed (ms)
[route1            ] [route1            ] [direct://in                                                                  
] [       506]
[route1            ] [to1               ] [docker://auth                                                                
] [       502]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
java.lang.IllegalStateException: Error creating SSL context (algorithm not
supported).
	at
org.glassfish.jersey.SslConfigurator.createSSLContext(SslConfigurator.java:801)
~[?:?]
	at
org.glassfish.jersey.SslConfigurator.getDefaultContext(SslConfigurator.java:301)
~[?:?]
	at
org.glassfish.jersey.SslConfigurator.getDefaultContext(SslConfigurator.java:286)
~[?:?]
	at
org.glassfish.jersey.client.JerseyClient$1.getDefaultSslContext(JerseyClient.java:82)
~[?:?]
	at org.glassfish.jersey.client.JerseyClient$2.get(JerseyClient.java:222)
~[?:?]
	at org.glassfish.jersey.client.JerseyClient$2.get(JerseyClient.java:219)
~[?:?]
	at
org.glassfish.jersey.internal.util.collection.Values$LazyUnsafeValueImpl.get(Values.java:425)
~[?:?]

</pre>



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-docker-upgrade-library-test-failure-tp5787511.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Camel-docker upgrade library, test failure!

Posted by fabryprog <fa...@bizmate.it>.
I resolve my problem, it is a simple powermock problem.

Resolution is use @PowerMockIgnore annotation!!!!!!!



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-docker-upgrade-library-test-failure-tp5787511p5787671.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Camel-docker upgrade library, test failure!

Posted by fabryprog <fa...@bizmate.it>.
Hello,

this is my branch https://github.com/Fabryprog/camel/tree/CAMEL-10307



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-docker-upgrade-library-test-failure-tp5787511p5787552.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Camel-docker upgrade library, test failure!

Posted by Andrew Block <an...@gmail.com>.
Hi,

I helped create the original implementation. Is the code you are working on
in a branch that I might be able to access so I can take a look?

Thanks,
Andy

On Tue, Sep 13, 2016 at 9:10 AM, fabryprog <fa...@bizmate.it>
wrote:

> This is maven dependency tree
>
> <pre>
> OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support
> was removed in 8.0
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Camel :: Docker 2.18.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ camel-docker
> ---
> [INFO] org.apache.camel:camel-docker:jar:2.18.0-SNAPSHOT
> [INFO] +- org.apache.camel:camel-core:jar:2.18.0-SNAPSHOT:compile
> [INFO] |  \- org.slf4j:slf4j-api:jar:1.7.21:compile
> [INFO] +- com.github.docker-java:docker-java:jar:3.0.5:compile
> [INFO] |  +-
> com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.8.2:compile
> [INFO] |  |  +-
> com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.8.2:compile
> [INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.8.2:compile
> [INFO] |  |  +-
> com.fasterxml.jackson.core:jackson-databind:jar:2.8.2:compile
> [INFO] |  |  |  \-
> com.fasterxml.jackson.core:jackson-annotations:jar:2.8.2:compile
> [INFO] |  |  \-
> com.fasterxml.jackson.module:jackson-module-jaxb-
> annotations:jar:2.8.2:compile
> [INFO] |  +-
> org.glassfish.jersey.connectors:jersey-apache-connector:jar:2.23.1:compile
> [INFO] |  |  +- org.glassfish.jersey.core:jersey-common:jar:2.23.1:compile
> [INFO] |  |  |  +- javax.annotation:javax.annotation-api:jar:1.2:compile
> [INFO] |  |  |  +-
> org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.23.1:compile
> [INFO] |  |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:
> compile
> [INFO] |  |  \- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
> [INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile
> [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5:compile
> [INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
> [INFO] |  +- org.glassfish.jersey.core:jersey-client:jar:2.23.1:compile
> [INFO] |  |  +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:compile
> [INFO] |  |  |  +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:compile
> [INFO] |  |  |  \-
> org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:compile
> [INFO] |  |  +-
> org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:compile
> [INFO] |  |  \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:compile
> [INFO] |  |     \- org.javassist:javassist:jar:3.18.1-GA:compile
> [INFO] |  +- de.gesellix:unix-socket-factory:jar:2015-01-27T15-02-
> 14:compile
> [INFO] |  +- org.apache.commons:commons-compress:jar:1.12:compile
> [INFO] |  +- commons-codec:commons-codec:jar:1.10:compile
> [INFO] |  +- commons-lang:commons-lang:jar:2.6:compile
> [INFO] |  +- commons-io:commons-io:jar:2.4:compile
> [INFO] |  +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
> [INFO] |  +- com.google.guava:guava:jar:19.0:compile
> [INFO] |  +- org.bouncycastle:bcpkix-jdk15on:jar:1.54:compile
> [INFO] |  |  \- org.bouncycastle:bcprov-jdk15on:jar:1.54:compile
> [INFO] |  +- io.netty:netty-codec-http:jar:4.1.3.Final:compile
> [INFO] |  |  \- io.netty:netty-codec:jar:4.1.3.Final:compile
> [INFO] |  +- io.netty:netty-handler:jar:4.1.3.Final:compile
> [INFO] |  |  +- io.netty:netty-buffer:jar:4.1.3.Final:compile
> [INFO] |  |  \- io.netty:netty-transport:jar:4.1.3.Final:compile
> [INFO] |  |     \- io.netty:netty-resolver:jar:4.1.3.Final:compile
> [INFO] |  +- io.netty:netty-handler-proxy:jar:4.1.3.Final:compile
> [INFO] |  |  \- io.netty:netty-codec-socks:jar:4.1.3.Final:compile
> [INFO] |  \-
> io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.3.Final:compile
> [INFO] |     \- io.netty:netty-common:jar:4.1.3.Final:compile
> [INFO] +- com.github.jnr:jffi:jar:1.2.7:compile
> [INFO] +- com.github.jnr:jffi:jar:native:1.2.7:runtime
> [INFO] +- com.github.jnr:jnr-x86asm:jar:1.0.2:compile
> [INFO] +- org.apache.logging.log4j:log4j-api:jar:2.6.2:test
> [INFO] +- org.apache.logging.log4j:log4j-core:jar:2.6.2:test
> [INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.6.2:test
> [INFO] +- org.apache.camel:camel-test:jar:2.18.0-SNAPSHOT:test
> [INFO] |  \- junit:junit:jar:4.12:test
> [INFO] |     \- org.hamcrest:hamcrest-core:jar:1.3:test
> [INFO] +- org.powermock:powermock-module-junit4:jar:1.6.1:test
> [INFO] |  \- org.powermock:powermock-module-junit4-common:jar:1.6.1:test
> [INFO] |     +- org.powermock:powermock-core:jar:1.6.1:test
> [INFO] |     \- org.powermock:powermock-reflect:jar:1.6.1:test
> [INFO] |        \- org.objenesis:objenesis:jar:2.1:test
> [INFO] +- org.powermock:powermock-api-mockito:jar:1.6.1:test
> [INFO] |  +- org.mockito:mockito-all:jar:1.10.8:test
> [INFO] |  \- org.powermock:powermock-api-support:jar:1.6.1:test
> [INFO] +- org.apache.camel:apt:jar:2.18.0-SNAPSHOT:provided
> [INFO] |  \- org.apache.camel:spi-annotations:jar:2.18.0-SNAPSHOT:provided
> [INFO] +-
> org.springframework.boot:spring-boot-configuration-
> processor:jar:1.4.0.RELEASE:provided
> [INFO] |  +- org.json:json:jar:20140107:provided
> [INFO] |  \- org.springframework:spring-core:jar:4.3.2.RELEASE:provided
> [INFO] +- com.sun.xml.bind:jaxb-core:jar:2.2.11:compile
> [INFO] \- com.sun.xml.bind:jaxb-impl:jar:2.2.11:compile
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.493 s
> [INFO] Finished at: 2016-09-13T16:09:44+02:00
> [INFO] Final Memory: 47M/2875M
>
> </pre>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/Camel-docker-upgrade-library-test-failure-tp5787511p5787512.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>



-- 
Andrew Block
m. 716-870-2408

Re: Camel-docker upgrade library, test failure!

Posted by fabryprog <fa...@bizmate.it>.
This is maven dependency tree

<pre>
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support
was removed in 8.0
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building Camel :: Docker 2.18.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ camel-docker
---
[INFO] org.apache.camel:camel-docker:jar:2.18.0-SNAPSHOT
[INFO] +- org.apache.camel:camel-core:jar:2.18.0-SNAPSHOT:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] +- com.github.docker-java:docker-java:jar:3.0.5:compile
[INFO] |  +-
com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.8.2:compile
[INFO] |  |  +-
com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.8.2:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.8.2:compile
[INFO] |  |  +-
com.fasterxml.jackson.core:jackson-databind:jar:2.8.2:compile
[INFO] |  |  |  \-
com.fasterxml.jackson.core:jackson-annotations:jar:2.8.2:compile
[INFO] |  |  \-
com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.8.2:compile
[INFO] |  +-
org.glassfish.jersey.connectors:jersey-apache-connector:jar:2.23.1:compile
[INFO] |  |  +- org.glassfish.jersey.core:jersey-common:jar:2.23.1:compile
[INFO] |  |  |  +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] |  |  |  +-
org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.23.1:compile
[INFO] |  |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] |  |  \- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5:compile
[INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO] |  +- org.glassfish.jersey.core:jersey-client:jar:2.23.1:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:compile
[INFO] |  |  |  +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:compile
[INFO] |  |  |  \-
org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:compile
[INFO] |  |  +-
org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:compile
[INFO] |  |  \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:compile
[INFO] |  |     \- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] |  +- de.gesellix:unix-socket-factory:jar:2015-01-27T15-02-14:compile
[INFO] |  +- org.apache.commons:commons-compress:jar:1.12:compile
[INFO] |  +- commons-codec:commons-codec:jar:1.10:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO] |  +- commons-io:commons-io:jar:2.4:compile
[INFO] |  +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] |  +- com.google.guava:guava:jar:19.0:compile
[INFO] |  +- org.bouncycastle:bcpkix-jdk15on:jar:1.54:compile
[INFO] |  |  \- org.bouncycastle:bcprov-jdk15on:jar:1.54:compile
[INFO] |  +- io.netty:netty-codec-http:jar:4.1.3.Final:compile
[INFO] |  |  \- io.netty:netty-codec:jar:4.1.3.Final:compile
[INFO] |  +- io.netty:netty-handler:jar:4.1.3.Final:compile
[INFO] |  |  +- io.netty:netty-buffer:jar:4.1.3.Final:compile
[INFO] |  |  \- io.netty:netty-transport:jar:4.1.3.Final:compile
[INFO] |  |     \- io.netty:netty-resolver:jar:4.1.3.Final:compile
[INFO] |  +- io.netty:netty-handler-proxy:jar:4.1.3.Final:compile
[INFO] |  |  \- io.netty:netty-codec-socks:jar:4.1.3.Final:compile
[INFO] |  \-
io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.3.Final:compile
[INFO] |     \- io.netty:netty-common:jar:4.1.3.Final:compile
[INFO] +- com.github.jnr:jffi:jar:1.2.7:compile
[INFO] +- com.github.jnr:jffi:jar:native:1.2.7:runtime
[INFO] +- com.github.jnr:jnr-x86asm:jar:1.0.2:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.6.2:test
[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.6.2:test
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.6.2:test
[INFO] +- org.apache.camel:camel-test:jar:2.18.0-SNAPSHOT:test
[INFO] |  \- junit:junit:jar:4.12:test
[INFO] |     \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.powermock:powermock-module-junit4:jar:1.6.1:test
[INFO] |  \- org.powermock:powermock-module-junit4-common:jar:1.6.1:test
[INFO] |     +- org.powermock:powermock-core:jar:1.6.1:test
[INFO] |     \- org.powermock:powermock-reflect:jar:1.6.1:test
[INFO] |        \- org.objenesis:objenesis:jar:2.1:test
[INFO] +- org.powermock:powermock-api-mockito:jar:1.6.1:test
[INFO] |  +- org.mockito:mockito-all:jar:1.10.8:test
[INFO] |  \- org.powermock:powermock-api-support:jar:1.6.1:test
[INFO] +- org.apache.camel:apt:jar:2.18.0-SNAPSHOT:provided
[INFO] |  \- org.apache.camel:spi-annotations:jar:2.18.0-SNAPSHOT:provided
[INFO] +-
org.springframework.boot:spring-boot-configuration-processor:jar:1.4.0.RELEASE:provided
[INFO] |  +- org.json:json:jar:20140107:provided
[INFO] |  \- org.springframework:spring-core:jar:4.3.2.RELEASE:provided
[INFO] +- com.sun.xml.bind:jaxb-core:jar:2.2.11:compile
[INFO] \- com.sun.xml.bind:jaxb-impl:jar:2.2.11:compile
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.493 s
[INFO] Finished at: 2016-09-13T16:09:44+02:00
[INFO] Final Memory: 47M/2875M

</pre>



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-docker-upgrade-library-test-failure-tp5787511p5787512.html
Sent from the Camel Development mailing list archive at Nabble.com.