One Star

using tPOP: java.net.SocketException: Network is unreachable: connect

I'm using tPOP to. I'll get emails from local installed hmail-Server.

Job is configured like in the screenshot:
2014-04-25 09_14_15-Talend Open Studio for Data Integration (5.4.1.r111943) _ TEST_Verbindung_ Lokal.png

If I run this Job via tPOP I get the following error:
Starte Job TEST_JOB am 09:36 25/04/2014.

connecting to socket on port 3464
connected
2014-04-25 09:36:08|Bzfydu|Bzfydu|Bzfydu|7608|TEST|TEST_JOB|_X9x8oLmjEeO1BN3lTrXXXg|0.1|Default||begin||
Exception in component tPOP_1
javax.mail.MessagingException: Connect failed;
nested exception is:
java.net.SocketException: Network is unreachable: connect
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
at javax.mail.Service.connect(Service.java:275)
at test.test_job_0_1.TEST_JOB.tPOP_1Process(TEST_JOB.java:426)
at test.test_job_0_1.TEST_JOB.runJobInTOS(TEST_JOB.java:2863)
at test.test_job_0_1.TEST_JOB.main(TEST_JOB.java:2721)
Caused by: java.net.SocketException: Network is unreachable: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81)
at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
... 4 more
2014-04-25 09:36:08|Bzfydu|Bzfydu|Bzfydu|TEST|TEST_JOB|Default|6|Java Exception|tPOP_1|javax.mail.MessagingException:Connect failed|1
2014-04-25 09:36:08|Bzfydu|Bzfydu|Bzfydu|7608|TEST|TEST_JOB|_X9x8oLmjEeO1BN3lTrXXXg|0.1|Default||end|failure|89
disconnected
Job TEST_JOB endet am 09:36 25/04/2014.
With telnet I can connect to port: 110 and LIST and RETR messages in my POP3-Inbox after connecting
to the hmail-server (xx_.*_xx:= was my account-settings, email-adresses, hostnames)
<displayed is a test mail, sended within from hmailer>
-----------------------------------------------------------------------
+OK U are Welcome on xx_hostname_xx
user xx_username_xx@xx_hostname_xx.local
+OK Send your password
pass xx_password_xx
+OK Mailbox locked and ready
list
+OK 3 messages (6634 octets)
1 3170
2 3116
3 348
.
retr 3
+OK 348 octets
Return-Path:
Delivered-To:
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Return-Path: <>
From: "hMail" <xx_username_xx@xx_domainname_xx.de>
Subject: test
Content-Transfer-Encoding: quoted-printable
Date: Thu, 24 Apr 2014 14:25:08 +0200
Message-ID: <DA7CFE54-DA81-4600-8EE2-BFF4EC852CAA@xx_hostname_xx>
sendmail hmailer xx_username_xx@xx_domainname_xx.de
5 REPLIES
Four Stars

Re: using tPOP: java.net.SocketException: Network is unreachable: connect

Hi,
Do you have a mail server on localhost???
This error comes when tPop is not able to communicate with mail server. Can you ping to mail server used in the mailID?
Have you provided credentials like server IP... check the scenario in https://help.talend.com/search/all?query=tPOP&content-lang=en
Thanks
vaibhav
Vaibhav
One Star

Re: using tPOP: java.net.SocketException: Network is unreachable: connect

Hi,
Do you have a mail server on localhost???
> yes, for testing send and receive mails with our client apps
> And for analysing the eMails and their "content/header,base64-attachments, MIME-encoding ...
This error comes when tPop is not able to communicate with mail server.
Can you ping to mail server used in the mailID?
> yes, it is my client-hostname ...
> --------------------------------------------------------------------------------------------------
> ping xx_hostname_xx
>
> Ping wird ausgeführt für xx_hostname_xx.xx_domainname_xx.de mit 32 Bytes Daten:
> Antwort von #IPv6::#IPv6:#IPv6:#IPv6:0%10: Zeit<1ms
> Antwort von #IPv6::#IPv6:#IPv6:#IPv6:0%10: Zeit<1ms
> Antwort von #IPv6::#IPv6:#IPv6:#IPv6:0%10: Zeit<1ms
> Antwort von #IPv6::#IPv6:#IPv6:#IPv6:0%10: Zeit<1ms
>
> Ping-Statistik für #IPv6::#IPv6:#IPv6:#IPv6:0%10:
> Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
> (0% Verlust),
> Ca. Zeitangaben in Millisek.:
> Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
> --------------------------------------------------------------------------------------------------
> ping -4 xx_hostname_xx
>
> Ping wird ausgeführt für xx_hostname_xx.xx_domainname_xx.de mit 32 Bytes Daten:
> Antwort von #IPv4.#IPv4.#IPv4.#IPv4: Bytes=32 Zeit<1ms TTL=128
> Antwort von #IPv4.#IPv4.#IPv4.#IPv4: Bytes=32 Zeit<1ms TTL=128
> Antwort von #IPv4.#IPv4.#IPv4.#IPv4: Bytes=32 Zeit<1ms TTL=128
> Antwort von #IPv4.#IPv4.#IPv4.#IPv4: Bytes=32 Zeit<1ms TTL=128
>
> Ping-Statistik für #IPv4.#IPv4.#IPv4.#IPv4:
> Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
> (0% Verlust),
> Ca. Zeitangaben in Millisek.:
> Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
> -------------------------------------------------------------------------------------------------
>
Have you provided credentials like server IP...
> yes, see screenshot ... (anonymised it with xx_anonymised-value_xx)

check the scenario in https://help.talend.com/search/all?query=tPOP&content-lang=en
> I see differences from my case to the above scenario
> --- Password ist clear-text, no asterisk ---

Thanks
vaibhav
Vaibhav
One Star

Re: using tPOP: java.net.SocketException: Network is unreachable: connect

Hello Vaibhav,
I can connect to local mail server with thunderbird.
Send and receive mails works fine...

Cheers,
St_germain
Four Stars

Re: using tPOP: java.net.SocketException: Network is unreachable: connect

Hi,
What are mail SMTP configurations in thunderbird eg. host, port, username and password, SSL?
Use those inside the tPop Component to configure.
Vaibhav
One Star

Re: using tPOP: java.net.SocketException: Network is unreachable: connect

host -> Same as in tPOP and Telent-Session
port -> Same as in tPOP and Telent-Session
username and password -> Same as in tPOP and Telent-Session
No SSL configured and used on hmail-Server
Use those inside the tPop Component to configure ->That's what I described and used