Question

8
Replies
1549
Views
PankajR7 Member since 2016 15 posts
Process360
Posted: 11 months ago
Last activity: 10 months 2 weeks ago

Email Account Setup Error UnknownHost Exception

Hi,

I'm getting the below error while trying to connect to gmail server.

I'm not using any proxy settings.

Use SMTPS is not checked.

Port is 587.

When SMTPS was checked, port was 465. Still then the error was same. Need urgent resolution.

Also I have lowered the security access in Gmail Settings. Still no help.

Overall result

Status
Fail:Configuration
Message
MessagingException caught connecting to email server: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 587; timeout 60000;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com

Steps performed

Step
Result
Establish session for email server
Success
Obtain transport object
Success
Connect to email server
Fail
Disconnect
Not attempted

Components tested

Description
Value
Authenticated
true
Port
587
Email_Address
Email_Server
smtp.gmail.com
Protocol
SMTP
User_ID

Errors and Exceptions

com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 587; timeout 60000;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2100)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:699)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)
at com.pegarules.generated.SendEmailMessage_071031_ZpM7Yf_ZOTj7Qbqkpr8DPA.SendEmailMessage07_10_31(SendEmailMessage_071031_ZpM7Yf_ZOTj7Qbqkpr8DPA.java:371)
at com.pegarules.generated.SendEmailMessage_071031_ZpM7Yf_ZOTj7Qbqkpr8DPA.invoke(SendEmailMessage_071031_ZpM7Yf_ZOTj7Qbqkpr8DPA.java:90)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:222)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:119)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:9201)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflectionWithException(LibrarySupport.java:275)
at com.pegarules.generated.activity.ra_action_smtpconnectivity_eb72171e54145da5b5e38f44b16aacae.step8_circum0(ra_action_smtpconnectivity_eb72171e54145da5b5e38f44b16aacae.java:868)
at com.pegarules.generated.activity.ra_action_smtpconnectivity_eb72171e54145da5b5e38f44b16aacae.perform(ra_action_smtpconnectivity_eb72171e54145da5b5e38f44b16aacae.java:223)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10845)
at com.pegarules.generated.activity.ra_action_pysmtpconnectivity_5c13f1a5ac74a06b31f7e159865f1032.step3_circum0(ra_action_pysmtpconnectivity_5c13f1a5ac74a06b31f7e159865f1032.java:350)
at com.pegarules.generated.activity.ra_action_pysmtpconnectivity_5c13f1a5ac74a06b31f7e159865f1032.perform(ra_action_pysmtpconnectivity_5c13f1a5ac74a06b31f7e159865f1032.java:105)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597)
at com.pega.pegarules.exec.internal.declare.infengine.pages.DeclarativePageDirectoryImpl.runRule(DeclarativePageDirectoryImpl.java:1092)
at com.pega.pegarules.exec.internal.declare.infengine.pages.DeclarativePageDirectoryImpl.runLoadActivity(DeclarativePageDirectoryImpl.java:446)
at com.pega.pegarules.session.internal.mgmt.base.handler.ReadOnlyDataPageHandler.loadDataPage(ReadOnlyDataPageHandler.java:241)
at com.pega.pegarules.session.internal.mgmt.base.handler.ReadOnlyDataPageHandler.findDataPage(ReadOnlyDataPageHandler.java:403)
at com.pega.pegarules.session.internal.mgmt.base.AbstractPageDirectory.findDataPageInCurrentDir(AbstractPageDirectory.java:941)
at com.pega.pegarules.session.internal.mgmt.base.AbstractPageDirectory.getDirectPage(AbstractPageDirectory.java:721)
at com.pega.pegarules.session.internal.mgmt.base.ThreadPageDir.getDirectPage(ThreadPageDir.java:471)
at com.pega.pegarules.session.internal.mgmt.base.ThreadPageDir.getPage(ThreadPageDir.java:429)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.getPage(PRThreadImpl.java:559)
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2168)
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2137)
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2115)
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2097)
at com.pega.pegarules.session.internal.mgmt.autostreams.uicomponent.context.ContextProcessor.processSection(ContextProcessor.java:952)
at com.pega.pegarules.session.internal.mgmt.autostreams.uicomponent.context.ContextProcessor.processSection(ContextProcessor.java:1232)
at com.pega.pegarules.session.internal.mgmt.autostreams.uicomponent.context.RuntimeContextTree.loadSection(RuntimeContextTree.java:446)
at com.pegarules.generated.flowaction.ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.buildSection_1(ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.java:261)
at com.pegarules.generated.flowaction.ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.includeSectionBody_1(ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.java:267)
at com.pegarules.generated.flowaction.ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.performStream_1(ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.java:318)
at com.pegarules.generated.flowaction.ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.execute(ra_stream_pysmtpconnectivity_79e37c0f4a914daeec8d9a5b24a166e1.java:107)
at com.pega.pegarules.session.internal.mgmt.StreamBuilderTools.appendStreamKeepProperties(StreamBuilderTools.java:779)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.getStream(IncludeStreamRuntime.java:332)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.emitIncludeStreamReference(IncludeStreamRuntime.java:252)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuntimeImpl.emitIncludeStreamReference(AutoStreamRuntimeImpl.java:409)
at com.pegarules.generated.html_section.ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.performStream_7(ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.java:2058)
at com.pegarules.generated.html_section.ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.execute(ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.java:122)
at com.pega.pegarules.session.internal.mgmt.StreamBuilderTools.appendStreamKeepProperties(StreamBuilderTools.java:779)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.getStream(IncludeStreamRuntime.java:332)
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.emitIncludeStreamReference(IncludeStreamRuntime.java:252)
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuntimeImpl.emitIncludeStreamReference(AutoStreamRuntimeImpl.java:409)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.sectionBodyIncludeInCell_1(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:2119)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.sectionIncludeInCell_pzModalAction_1(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:2228)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.layoutBody_1(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:2238)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.pzLayoutBodyWrapper_1(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:2076)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.pzLayout_1(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:2263)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.pzSectionBody_1(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:278)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.performStream_4(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:2270)
at com.pegarules.generated.html_section.ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.execute(ra_stream_pymodaltemplate_779ff635811ab09baffa22a4eb36c547.java:118)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4136)
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3958)
at com.pegarules.generated.activity.ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.step23_circum0(ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.java:2284)
at com.pegarules.generated.activity.ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.perform(ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.java:440)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:481)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3414)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:399)
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1338)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1075)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:930)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:336)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:854)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:331)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:274)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:251)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:678)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:394)
at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: smtp.gmail.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:329)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2066)
... 110 more
Data Integration
Share this page LinkedIn