camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4176) camel-http4 component does not support proxy settings for HTTPS
Date Thu, 07 Jul 2011 06:31:17 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061059#comment-13061059
] 

Claus Ibsen commented on CAMEL-4176:
------------------------------------

The getProperties on CamelContext is not for storing JVM system properties. Use the JDK for
that.

This code is wrong
{code}
getContext().getProperties().put("https.proxyHost", "aupdc00-revprx01d");
getContext().getProperties().put("https.proxyPort", "9001");
{code}

Use java.lang.System to set a JVM property at runtime.

> camel-http4 component does not support proxy settings for HTTPS
> ---------------------------------------------------------------
>
>                 Key: CAMEL-4176
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4176
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.8.0
>         Environment: Win 7 x64
> JDK 1.6.0 25
>            Reporter: Don Doffe
>         Attachments: http_exception.log
>
>
> Camel-http4 does not support http proxy configuration for HTTPS (https4:// endpoints).
> Scenario 1:
> Camel -- HTTP --> Proxy -- HTTPS4 --> Destination
> http.proxyHost & http.proxyPort are specified and recognized:
> 		String _authUsername="WS_P2P_INTERNAL";
> 		String _authPassword="WS_P2P_INTERNAL";
> 		
> 		from("servlet:///proxy?matchOnUriPrefix=true")
> 		.removeHeader(Exchange.HTTP_URI)
> 		.removeHeader(Exchange.HTTP_PATH)
> 		.removeHeader(Exchange.HTTP_QUERY)
> 		
> 		.to("https4://aupdc-osb01d:9002/P2P_Creditors/P2P_CreditorWS?wsdl&authUsername="+_authUsername+"&authPassword="+_authPassword+"&x509HostnameVerifier=AllowAllVerifier&proxyAuthHost=aupdc00-revprx01t&proxyAuthPort=9001");
> Getting exception:
> java.lang.IllegalStateException: Scheme 'http' not registered.
> 	at org.apache.http.conn.scheme.SchemeRegistry.getScheme(SchemeRegistry.java:71)
> 	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127)
> Attaching the whole log - http_exception.log
> Scenario 2:
> Camel -- HTTPS --> Proxy -- HTTPS4 --> Destination
> Camel does not seem top recognize and accept https.proxyHost and https.proxyPort settings:
> getContext().getProperties().put("https.proxyHost", "aupdc00-revprx01d");
> getContext().getProperties().put("https.proxyPort", "9001");

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message