DEBUG SMTP: exception reading response

Hello,
I am coding a background process to send e-mails. It uses Threads so each Thread opens a connection with a local smtp server and send a configured amount of e-mails.
It goes well when there aren't too many Threads, but in opposite to that i receive the following message :
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: starting protocol to host "localhost", port 25
DEBUG SMTP: exception reading response: java.net.SocketException: Connection reset
MessagingException - Exception reading response; nested exception is: java.net.SocketException: Connection reset
Considering that it is happening initially because the smtp server got overload because the amount of connections i did the following:
Transport t = mailSession.getTransport("smtp");
while(t.isConnected() != true) {
     try {
          t.connect();
     } catch (MessagingException me){
          try {
               Thread.sleep(rand.nextInt(n));
          } catch (InterruptedException ie){
               Log.info("Thread Name/ID: " + jobObj.getName() + " / " + jobObj.getId() + " - " + "Exception : InterruptedException - " + ie.getMessage());                         
          Log.info("Connect: Thread Name/ID: " + jobObj.getName() + " / " + jobObj.getId() + " - " + "Exception : MessagingException - " + me.getMessage());               
Then i do send the respective e-mails for each Thread using :
t.sendMessage();
and i do close the connection after all the e-mails were sent with
t.close();
This is just a small snippet of the code, but represents the loop i am trying to create to solve my problem, which is smtp connections overload. So when the connection is not really established i put the Thread to sleep and then it tries again latter until the success of the connection. It seems to work for some Threads but others keep returning the same error and don't work well.
Can anyone help me on this ?
Thx in advance

Hi,
I face similar problem with same error message. Have you found the solution yet? Could you share with me?
Thanks,
Lngo

Similar Messages

  • MS Exchange Server - SMTP - Exception : Connection reset

    Dear Friends
    This is the code that I am using.. and stack trace follows the code. Please help..
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class Test
    public static void main(String args[])
    try{
    Properties p = System.getProperties();
    p.put("mail.smtp.host","<prefix>.<exchange server>.com");
    p.put("mail.smtp.port","25");
    Session s = Session.getDefaultInstance(p);
    Message msg = new MimeMessage(s);
    msg.setFrom(new InternetAddress("<my email id>"));
    msg.setRecipient(Message.RecipientType.TO,new InternetAddress("<my email id>"));
    msg.setSubject("hi");
    Multipart mp = new MimeMultipart();
    BodyPart bp = new MimeBodyPart();
    bp.setText("Hello ");
    mp.addBodyPart(bp);
    msg.setContent(mp);
    Transport t = s.getTransport("smtp");
    t.send(msg);
    catch(Exception e)
    e.printStackTrace();
    stack trace:
    ============
    javax.mail.MessagingException: Exception reading response;
    nested exception is:
    java.net.SocketException: Connection reset
    at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java
    :1407)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1205)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:32
    2)
    at javax.mail.Service.connect(Service.java:236)
    at javax.mail.Service.connect(Service.java:137)
    at javax.mail.Service.connect(Service.java:86)
    at javax.mail.Transport.send0(Transport.java:150)
    at javax.mail.Transport.send(Transport.java:80)
    at Test.main(Test.java:34)

    HI everyone..
    I got it..
    well the first thing we have to take care is the the host name
    host name should match your mail id...
    eg:
    <your mail id>@<domain>
    now even for exchange server the domain remains same... ask your administrator(exchange) to give u smtp host name not the one used in your MS outlook express. only the id part will change.. if u can get this id properly then this code works fine..
    Cheers
    Ram
    ps: And never ever instantiate the properties object, always get it from System class..

  • Google searches throw Javascript error "Debug Error: Exception...."

    I went away for a week. Everything fine. Since I got back (May 6 2010) when I click on any Google search result a pop-up box appears (sometimes when the search results page first appears before clicking anything) with this message:
    "Debug Error:Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffamazonhot/content/lib/Extension.debug.js Line: 366""
    Continual clicking (100+ clicks!) of the OK button eventually clears the dialogue but any subsequent search starts the whole process again. I also not that the style of the Google results p[age has changed.
    I have to use a different browser for Google searches. IE7-OK Opera 9.64 - OK Chrome - OK (naturally)
    I have cleared Cache, History, Cookies etc. I have tried reinstalling FF. I have disabled JavaScript in he browser. All no good.
    I notice in the forums that others are having this problem in the same time range - i.e it has just started happening. I have tired contacting Google with the usual lack of success!
    Help Please!
    == URL of affected sites ==
    http://www.google.com/search?q=google+javascript+error+in+FF+3.6.3&hl=en&start=10&sa=N

    Additional information about my previous post " Google searches throw Javascript error "Debug Error: Exception...."
    I have disabled the Amazon Add-on since the name Amazon appears in the debug message No change.
    I attach a screen shot of the offending dialogue box
    Hope someone can help.

  • I get an error message when using google search: Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffamazonhot/content/lib/Extension.debug.js Line: 366"]

    Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffamazonhot/content/lib/Extension.debug.js Line: 366"]

    Tools->Add-ons->Extensions
    At the top of the Firefox window, click on the Tools menu and select Add-ons. The Add-ons window will appear.
    In the Add-ons window, select the Extensions panel.
    Select the add-on you wish to uninstall.
    Click the Uninstall button. When prompted, click Uninstall to confirm.
    Then restart Firefox.
    Read here:
    [[Uninstalling add-ons|#How to uninstall extensions and themes|Uninstalling extensions]]

  • I get a message Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js Line: 366"] using Vista. I don't understand how to delete the "ebay

    Every time I try to use google for a search, I get the following error msg. Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js Line: 366"]. I saw the solution provided for MS XP, but not for Vista. Also, while I saw the solution, I need more explicit instructions on how to "delete the ebay extension".
    == This happened ==
    Every time Firefox opened
    == When I try to load google from Firefox, I get the error message, Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js Line: 366"]

    Tools->Add-ons->Extensions
    At the top of the Firefox window, click on the Tools menu and select Add-ons. The Add-ons window will appear.
    In the Add-ons window, select the Extensions panel.
    Select the add-on you wish to uninstall.
    Click the Uninstall button. When prompted, click Uninstall to confirm.
    Then restart Firefox.
    Read here:
    [[Uninstalling add-ons|#How to uninstall extensions and themes|Uninstalling extensions]]

  • Just bought new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I have my hand on the mouse. I can get back to normal size by clicking "actual size" in View. What gives?

    Just bought brand new new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I usually have my hand resting lightly on the mouse. I can get back to normal size by clicking "actual size" in View. But then it does it again a minute or two later. What gives? Something seems defective--but what?

    From System Preferences, Mouse, Point & Click, Secondary click.  Go to it hover over Secondary click and watch the short video sequence change it left right, left right, you will see exactly what is does. No I do not think your Mouse is defective, you simply need to take control of your Mouse finger.

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • Com.sap.xss.config.FPMEonfiguration.Exception: Read of object error

    Hi Experts,
    I have done the technical config of ESS on EP (mySAP ERP05) and using my id (portal admin) i can view the who's who section of ESS.
    But when i log in with the test ess user ESSUSER, then i get the error:
    com.sap.xss.config.FPMEonfiguration.Exception: Read of object error
    Caused by: com.sapportals.portal.pcd.gl.PermissionControlException: Access denied (Object(s): portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.ess.employee_self_service/com.sap.pct.erp.srvconfig.whoiswho/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.whoiswhoapplication)
    1. I have assigned READ permission with END USER tick for EVERYONE group in portal for ESS ROLE
    2. I have assigned EMPLOYEES to the USER and assigned the required composite role and the authorization for S_SERVICE and S_RFC
    The PORTALADMIN user and the ESSUSER user in the portal have exact authorizations in the backend. Still the error persists in ESSUSER.
    Can someone advise.
    Regards,
    Shobhit

    Hi Shobhit,
    Give EVERYONE READ access with END USER on the following folder in PCD.
    Portal Content -> Content Provided by SAP -> srvconfig
    Hope this helps
    Akhilesh

  • Reading response headers on HttpService response

    I'm trying to figure out if there is a way to read response headers on a response from a request to an HTTPService.  I've been scouring the internet for any indication that it might be possible to read them without any luck so I'm guessing its not possible but I figured it would be worth asking here.  I've noticed that ResultEvent.headers is set to null but maybe there is some way to activate them?
    Another possible solution for me would exist if there is any way within an AIR application to read all of the cookies that have been set.  So, if there is any call to query the AIR runtime for all of its cookies that would also be extremely helpful.

    Hello Sir,
    Plese guide me how to access data from other server by using
    http request

  • Read responses from a form

    How do I read responses from a completed PDF form?
    I used adobe acrobat pro extended 9 to create a form. Was confused at the end as all the methods for publishing the form and collecting responses were more involved than I wanted.  I selected the email option.
    As a test I made a copy of the blank form.  Then completed it, saved the resulting document.  How do I read the responses from a completed PDF form document?
    I want to manually distrubute the PDF form document. Then manually receive the completed form document back. ( copy it to an "in box" folder ). Then use a program of some sorts ( the adobe SDK? ) to automatically pull the response data out of the completed form.
    thanks,

    Thanks a lot.   I understand better now. I opened the completed PDF with acrobat and the response data was automatically associated with the original document.
    Very nice.

  • Exception creating response stream in weblogic

    Hi,
    i have a small piece of java code which connects AgilePLM system and creates the session. in Jdeveloper its working but when i convert is as webservice and try to invoke iam getting below exception
    weblogic.rjvm.PeerGoneException: ; nested exception is: weblogic.utils.NestedException: java.lang.AssertionError: Exception creating response stream
    here is my java function
    public String connect() {
    try{
    IAgileSession session = null;
    AgileSessionFactory factory;
    factory = AgileSessionFactory.getInstance("host");
    HashMap params = new HashMap();
    params.put(AgileSessionFactory.USERNAME, "user");
    params.put(AgileSessionFactory.PASSWORD, "password");
    session =factory.createSession(params);
    }catch(Exception e) { }
    i tried all possible ways to resolve this...any help would be appreciated
    Regards,
    Sudhakar.M

    i solved.
    1) Copy "wlsauth.jar" and "crypto.jar" to add-on server from agile server.
    from: [Agile_Home]\agileDomain\lib
    to: e.g. C:\agile9312_lib
    2) Set them as CLASSPATH env. via system property.
    e.g. C:\agile_9312lib\wlsauth.jar;C:\agile9312_lib\crypto.jar
    3) start WebLogic
    i also tried below instead, but it was not working. why??
    Copy jars to user domain's lib:
    e.g. C:oracle:middleware\user_projects\domains\base_domain\lib

  • DEBUG SMTP RCVD : 535 authorization failed (#5.7.0)

    i used qmail mail server i ve hosted sevean domains. in that first domain can send the mail messgae , i try the another domains log file display the folowing error ..
    DEBUG SMTP SENT: bXJpYmVpcm9AY2VwYXNhZmVkcml2ZS5jb20 =
    DEBUG SMTP RCVD: 334 UGFzc3dvcmQ6
    DEBUG SMTP SENT: ODM0ODM0
    DEBUG SMTP RCVD: 535 authorization failed (# 5,7,0)
    Any body have that idea to solve method....................
    regards
    joswaa

    i used qmail mail server i ve hosted sevean domains. in that first domain can send the mail messgae , i try the another domains log file display the folowing error ..
    DEBUG SMTP SENT: bXJpYmVpcm9AY2VwYXNhZmVkcml2ZS5jb20 =
    DEBUG SMTP RCVD: 334 UGFzc3dvcmQ6
    DEBUG SMTP SENT: ODM0ODM0
    DEBUG SMTP RCVD: 535 authorization failed (# 5,7,0)
    Any body have that idea to solve method....................
    regards
    joswaa

  • Siri works, but no longer reads responses.  I have turned the volume up, but nothing.  Any ideas?

    Hi All,
    I have not had much opportunity to use Siri until last night and when I did, it worked, but Siri would not verbally read responses, only display them on screen.  I visited the forums and have the volume turned up on Siri and have tried the enable/disable phone off/phone on trick, but to no avail.  Voice is set to "always".  Any thoughts?

    Ask siri what can you do siri always talks at this command if not then i would go to a apple store

  • Passing values with HttpsURLconnection and reading response back

    i need to communicate with a server url using HttpsURLConnection and pass 2 strings and read the response back.
    how can i make this using HttpsURLConnection object.
    HttpsURLConnection.setDefaultSSLSocketFactory(sslcontext
                        .getSocketFactory());
    HttpsURLConnection https = null;
    https = (HttpsURLConnection) new URL(host).openConnection();// host url of the server program
    https.setRequestMethod("POST");
    https.setDoInput(true);
    https.setDoOutput(true);
    https.setRequestProperty("IP", "10.900.10.2");// i am not sure how to pass two strings.
    https.connect();
    // have to read response back from a server program
    please help,
    thanks in advance.

    You can get around this by using javascript. That way your parent document is not getting refreshed.
    Create form inputs in the parent document for each of the variables you want to gather from the popups.
    You can then fire a function in the parent window when the user clicks a button in each popup that sends the values to the parent window. Just use:opener.funcname(var1, var2, var3...);Create the function funcname() in the parent window that takes each value to be added and sets the form inputs appropriately. You may want to use a different function for each popup window, like submitPopup1, submitPopup2 and so on.
    You can then make the last popup submit the form in the parent window:
    opener.document.FORMNAME.submit();Where FORMNAME is the name of your form.

  • SOAP-Exception: unsupported response content type

    Hi,
    can anybody give me a little hint?.
    I currently try to run the JDeveloper "Tutorial" web service examples. I could successfully implement and deploy the DateTime Web-Service example. But when executing "DateTimeClient.java" I get the error message listed below.
    I'm using JDeveloper 9.0.2 and the OC4J- J2EE Container (standalone) shipped with JDeveloper
    Thanks for your help
    Thomas
    D:\Programme\oracle\jdev\jdev9i902\jdk\bin\javaw.exe -ojvm -classpath D:\Programme\oracle\jdev\jdev9i902\jdev\mywork\WebService\DateTimeClient\classes;D:\Programme\oracle\jdev\jdev9i902\jdev\lib\jdev-rt.jar;D:\Programme\oracle\jdev\jdev9i902\soap\lib\soap.jar;D:\Programme\oracle\jdev\jdev9i902\lib\xmlparserv2.jar;D:\Programme\oracle\jdev\jdev9i902\jlib\javax-ssl-1_2.jar;D:\Programme\oracle\jdev\jdev9i902\jlib\jssl-1_2.jar;D:\Programme\oracle\jdev\jdev9i902\jdk\jre\lib\ext\activation.jar;D:\Programme\oracle\jdev\jdev9i902\jdk\jre\lib\ext\mail.jar;D:\Programme\oracle\jdev\jdev9i902\j2ee\home\lib\http_client.jar -Dhttp.proxyHost=http-proxy.danet.de -Dhttp.proxyPort=8080 datetimeclientpackage.DateTimeClient
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Method Not Allowed&lt;/TITLE&gt;&lt;/HEAD&gt;
    &lt;BODY&gt;&lt;H1&gt;Method Not Allowed&lt;/H1&gt;
    An error has occurred.
    &lt;/BODY&gt;&lt;/HTML&gt;
         java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
         org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
         java.lang.String datetimeclientpackage.DateTimeClientStub.getDate()
         void datetimeclientpackage.DateTimeClient.main(java.lang.String[])
    Exception in thread main
    Process exited with exit code 1.

    I have just found the same/similar problem discussed some months ago. I have adopted the solution proposed by
    Raghu Kodali (disabling usage of http-proxy-server). Now the samples runs well.
    Thanks a lot.

Maybe you are looking for

  • Counter operations in PXI 6722

    Hi, What I want to do : My application requires generating an analog output, after some time the DUT responds with a pulse of 1.5ms duration. I need to find the time between the point where I genrate the AO and the point where I get the pulse. What I

  • Is it possible to share a book purchased in itunes?

    is it possible to share a book purchased on itunes?

  • Why won't 10.5 Server install on my G4 Cube?

    Hello all, I have a Cube running Leopard 10.5.8 and I have a copy of OS X Leopard Server I would like to install on it to use as a home network server. But when I run the installer it tells me this computer does not meet the hardware requirements for

  • Why does TimeMachine say the disk is full when it isn't?

    Hello! A lot of my backups recently have been failing because TimeMachine says the disk is full, when that simply isn't true. As of right now, I have 1.18 TB available of 2 TB. Why do my backups fail even when sufficient space is there? Thank you so

  • B1 Query Manager

    How can i prompt the user input a date range before executing the report in B1 query manager?