[
https://issues.apache.org/jira/browse/CAMEL-12516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476374#comment-16476374
]
Andrea Cosentino commented on CAMEL-12516:
------------------------------------------
Ask on the users mailing list first please
> How to resolve the 400 The plain HTTP request was sent to HTTPS port issue in
> Apache Camel?
> -------------------------------------------------------------------------------------------
>
> Key: CAMEL-12516
> URL: https://issues.apache.org/jira/browse/CAMEL-12516
> Project: Camel
> Issue Type: Task
> Reporter: Arjun
> Priority: Major
>
>
> *How to resolve the 400 The plain HTTP request was sent to HTTPS port issue?*
> {{from: empValidation to: myhost:443/EmpValidation/EmpValidationAPIService
> rules.getRules().forEach(x->{ final LoadBalanceDefinition lb =
> from("jetty:[http://0.0.0.0:|http://0.0.0.0/]"+rules.getPort()+"/"+x.getFrom()+"??matchOnUriPrefix=true").log(LoggingLevel.DEBUG,
> "Processing ${id}").log("Incoming Context Request :"+x.getFrom())
> .loadBalance().roundRobin();
> x.getTo().forEach(z->lb.to("http4://"+z+"?bridgeEndpoint=true&throwExceptionOnFailure=true").log("Outgoing
> mapping urls :"+z)) ; }); }}{{}}
> *if i use "https4" component it's working the above url(empValidation) but
> it's not working for below url.*
> {\{Url: myhost:9008/emp-web-service/services/addEmp Error:
> javax.net.ssl.SSLHandshakeException: Remote host closed connection during
> handshake at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at
> sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at
> sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
> }}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)