SSLcontextparameters in http4 component
Hi, I am trying to invoke an endpoint url with sslContextParameters applied to it. I am using camel-http4-2.11.3jar. Below is the code snippet, GET Basic YWRtaW46dGVzdHBhc3M= https://something.com/some http://camel.apache.org/schema/spring;> but getting the below error, Failed delivery for (MessageId: ID-XYZ on ExchangeId: ID-XYZZZ). Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException: java.lang.NullPointerException at org.apache.camel.component.http4.HttpComponent.registerPort(HttpComponent.java:332) [camel-http4-2.11.3.jar:2.11.3] at org.apache.camel.component.http4.HttpComponent.createEndpoint(HttpComponent.java:298) [camel-http4-2.11.3.jar:2.11.3] at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:119) [camel-core-2.11.0.jar:2.11.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.6.0_45] at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_45] Where am I going wrong? Please help me out. -- View this message in context: http://camel.465427.n5.nabble.com/SSLcontextparameters-in-http4-component-tp5771355.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Using different SSLContextParameters with HTTP4 component
Hi Yeah this is a bug. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6880 On Mon, Sep 30, 2013 at 10:07 AM, Guillermo glamm...@tecsisa.com wrote: Thanks for your reply Claus. But I still have a problem. My basic route definition is like this: ... ... .to(http4-foo:) In this case an exception is thrown by the method getPort in HttpComponent class because the scheme is not https4, http4, https or http: Unknown scheme, cannot determine port number for uri: Any ideas? Thank you for your attention. -- View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430p5740460.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
Re: Using different SSLContextParameters with HTTP4 component
Hi Thank you for the information. I'll be waiting for more news. Regards, Guillermo. -- View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430p5741970.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Using different SSLContextParameters with HTTP4 component
Thanks for your reply Claus. But I still have a problem. My basic route definition is like this: ... ... .to(http4-foo:) In this case an exception is thrown by the method getPort in HttpComponent class because the scheme is not https4, http4, https or http: Unknown scheme, cannot determine port number for uri: Any ideas? Thank you for your attention. -- View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430p5740460.html Sent from the Camel - Users mailing list archive at Nabble.com.
Using different SSLContextParameters with HTTP4 component
Hi, I'm using the http4 component (camel-http4) and I recently found a problem. Let me explain: I need to configure an endpoint with differents ssl configs each time. To do that, I have read in the camel docs that I can use different SSLContextParameters if I setup multiple HTTP4 components. For example, I have 2 components, each using their own instance of sslContextParameters property like this: bean id=http4-foo class=org.apache.camel.component.http4.HttpComponent property name=sslContextParameters ref=sslContextParams1/ /bean bean id=http4-bar class=org.apache.camel.component.http4.HttpComponent property name=sslContextParameters ref=sslContextParams2/ /bean The thing is: how can I make clear to the endpoint which component should it use? I mean, where should I write the name http4-foo or http4-bar to know for sure the config I should to use for each hhtp invocation? Thanks in advance. Guillermo. Additional info: Using camel version 2.11.2 -- View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Using different SSLContextParameters with HTTP4 component
Just use http4-foo and http4-bar as the component name, instead of just http4, eg eg use to uri=http4-foo:/ On Sun, Sep 29, 2013 at 3:47 PM, Guillermo glamm...@tecsisa.com wrote: Hi, I'm using the http4 component (camel-http4) and I recently found a problem. Let me explain: I need to configure an endpoint with differents ssl configs each time. To do that, I have read in the camel docs that I can use different SSLContextParameters if I setup multiple HTTP4 components. For example, I have 2 components, each using their own instance of sslContextParameters property like this: bean id=http4-foo class=org.apache.camel.component.http4.HttpComponent property name=sslContextParameters ref=sslContextParams1/ /bean bean id=http4-bar class=org.apache.camel.component.http4.HttpComponent property name=sslContextParameters ref=sslContextParams2/ /bean The thing is: how can I make clear to the endpoint which component should it use? I mean, where should I write the name http4-foo or http4-bar to know for sure the config I should to use for each hhtp invocation? Thanks in advance. Guillermo. Additional info: Using camel version 2.11.2 -- View this message in context: http://camel.465427.n5.nabble.com/Using-different-SSLContextParameters-with-HTTP4-component-tp5740430.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen