Hello, I am developing an integration that reads from an https4 url and sends the response to an SMTP endpoint. However the SMTP endpoint never receives the response. Here is my route definition.
from("timer:fire?period=10000") .to("https4://<url and query string>") .convertBodyTo(String.class).to("log:convert") .setBody(constant("Set Body for Email")) .setHeader("subject", constant("System Alert")) .to("log:beforesendemail") .to("smtp://smtphost.example.com:25?from=nore...@example.com&mail.debug=true&to=vince.igleh...@example.com") .to("log:aftersendemail"); Here is the output on the console: [ main] DefaultCamelContext INFO Apache Camel 2.17.1 (CamelContext: camel-1) is starting [ main] ManagedManagementStrategy INFO JMX is enabled [ main] DefaultTypeConverter INFO Loaded 200 type converters [ main] DefaultRuntimeEndpointRegistry INFO Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000) [ main] HttpComponent INFO Created ClientConnectionManager org.apache.http.impl.conn.PoolingHttpClientConnectionManager@3eb25e1a [ main] DefaultCamelContext 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. [ main] DefaultCamelContext INFO 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 DEBUG: JavaMail version 1.5.5 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]} DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map [ main] DefaultCamelContext INFO Route: route1 started and consuming from: Endpoint[timer://fire?period=10000] [ main] DefaultCamelContext INFO Total 1 routes, of which 1 are started. [ main] DefaultCamelContext INFO Apache Camel 2.17.1 (CamelContext: camel-1) started in 1.117 seconds [el-1) thread #0 - timer://fire] beforesendemail INFO Exchange[ExchangePattern: InOnly, BodyType: String, Body: Set Body for Email] DEBUG: JavaMail version 1.5.5 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]} DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map [el-1) thread #0 - timer://fire] aftersendemail INFO Exchange[ExchangePattern: InOnly, BodyType: String, Body: Set Body for Email] However, when I take out the https4 logic, I receive the email. from("timer:fire?period=10000") .setBody(constant("Set Body for Email")) .setHeader("subject", constant("System Alert")) .to("smtp://smtphost.example.com:25?from=nore...@example.com&mail.debug=true&to=vince.igleh...@example.com"); Note: I am using camel 2.17.1 on Java 1.8 open JDK -- View this message in context: http://camel.465427.n5.nabble.com/HTTPS-Component-with-SMTP-Mail-tp5783362.html Sent from the Camel - Users mailing list archive at Nabble.com.