Program hanged while attempting to send java mail

Java program hanges while atempting to send mail and below is the stack track. Can you please let us know what might using program to hang state.
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0xb3b1a680> (a java.io.BufferedInputStream)

Thanks, for your response.
Yes its keep on listening state and not getting any data. Also we have set the timeout configuration and still program hangs.
Not throwing any exception. Each time we have to take the jstack trace to check the error before killing the process id.

Similar Messages

  • Exception Encountered while attempting to send message[JMSExceptions:045103

    Hi - I need help on one the issue I am facing. It seems some minor mistake but unable to find that.
    I have a EJB code deployed on weblogic. I am using OSB business service to invoke EJB and publish data to JMS. I have setup all queue and JNDI properly but for some reason, I am keep on getting below error. I have google and fond couple of doc but all point to JMS server down .. I am able to access that queue through normal OSB project and able to publish data in it..
    Could someone pls what could be wrong I am doing.
    Error:-
    Exception Encountered while attempting to send message[JMSExceptions:045103]While trying to find a topic or a queue we could not find the specific JMSServer requested. The linked exception may contain more information about the reason for failure.

    Restart the server and the SQL Services and Hosts associated. Remove the Dll's from the GAC and re-build and Deploy. This sort of issue might occur due to some cache, Permission or some errors in the odx at run time.
    Also, refer the blog http://atinag.wordpress.com/category/biztalk-server/,  which explains about the similar sort of issue.
    Regards - Rajasekhar.R
    Don't forget to mark the post as answer or vote as helpful if it does,

  • When attempting to send e-mail photos on my i-Photo 11, I keep getting " THE EMAIL SERVER DIDN'T RECOGNIZE YOUR USERNAME/PASSWORD COMBINATION"  even if I already have this in my preference accounts.

    When attempting to send email photos on my iPhoto 11, I keep getting the message  " THE EMAIL SERVER DIDN'T RECOGNIZE YOUR USERNAME/PASSWORD COMBINATION". However, I already have this info in my preferences/account section.  What is the problem and
    how can it be fixed???

    The usual fix: Delete the account from your Preferences and Re-Enter it.

  • Urgent ::: Sending java mail from AbstractPortalComponent

    Hi all,
       I am using WAS SP9 (with EP & KM). I am connecting to corporate exchange server and i am sending mails and i have permission to relay from my server also. The code i used is working fine in webdynpro and also in simple java file but its not working in Abstract Portal Component. Following is the code snippet....
    boolean sessionDebug = false;
    Properties props = System.getProperties();
    props.put("mail.smtp.auth","true");
    props.put("mail.transport.protocol", "smtp");
    Session session = Session.getDefaultInstance(props, null);//getting error in this line
    session.setDebug(sessionDebug);
    In the above acode I am getting PRT error when i get instance of session by session.getDefaultInstance method.
    I didnt configure anything in the server(like javamail client). Help me out on this...
    Thanks in Advance..
    Regards
    Vasu

    Hi Akhilesh,
      Thanks for the info. I tried what u told. But,i still have a problem.
    String host = "<host ip address>";
    boolean sessionDebug = false;
    Properties props = new Properties();
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.auth","true");
    props.put("mail.transport.protocol", "smtp");
    Session session = Session.getDefaultInstance(props, null);   //i am getting the error in this line
    session.setDebug(sessionDebug);
    Any ideas please?
    <b>Regards,
    Sai Krishna.</b>

  • Send java mail throws KM - problems sendMail

    Hellow
    I implementing the Java send mail post in
    send mail throws NoClassDefFoundError: javax/mail/MessagingE
    But I have a little problem with the sentence:
    <b>sendMailSvc.sendMail(mailItem, iuser);</b>
    The stranger is that NetWeaver protests to me that:
    <i>The Method sendMail(IResource, IUser) in the type ISendMailService is not applicable for the arguments (ISendMailItems, IUser)</i>
    But in the class, NetWeaver showme sendMailSvc.(Ctrl+Space) two Method send mail
    1) sendMail(IResource arg0, IUser arg1)
    2) sendMail(ISendMailItem arg0, IUser arg1)
    Why it does not take the second method? I do not understand
    Regards !!

    Thanks Detlev for your answer
    I  import IUser from :
    <b>import com.sap.security.api.IUser;</b>
    and initialize the variable user :
    <b>     IWDClientUser user;
         IUser iuser = user.getSAPUser();</b>
    but you say to me that it would have to use:
    <b>import com.sapportals.portal.security.usermanagement.IUser;</b>
    how I can initialize the variable "user" for:?
    <i>ISendMailItem mailItem = null;
                   try {
                             mailItem = sendMailSvc.createMailItem();
                             mailItem.setContent("Test");
                             mailItem.setTo("[email protected]");
                             <b>sendMailSvc.sendMail(mailItem, user);</b></i>     
    Regards for your help !!!

  • Sample Program hangs while executing mining task

    Hi, we installed 9i (9.2.0.3, JServer Release 9.2.0.3.0) DM option. The two users related to ODM have been created by installation and been unlocked. I am trying to run the sample programs on the AIX UNIX server. I could succesfully compile these java programs but when I run them, they hang (for more than 1 hour) just after executing wait-on-task statement.
    On this server I could compile test java programs on O/S. I could store and execute those classes as java stored procedures.
    I suspect the reason is because ODM_MONITOR gives the following error:
    begin ODM.DMT_ODM.MONITOR_MAIN;end;
    ERROR at line 1:
    ORA-29541: class ODM.oracle/dmt/odm/internal/task/DMSMonitor could not be
    resolved
    ORA-06512: at "ODM.DMT_ODM", line 0
    ORA-06512: at line 1
    The reason could be that 72 Java classes under ODM DB account (including the corresponding class) are invalid. Even after reinstallation, they remain invalid. Anyone has any ideas as to why it is happening? Is there anything that I am missing? Any help is appreciated
    Thanks,
    Kiran

    Hi Kiran,
    Oracle Data Mining is not ported 9.2.0.3.0 release to AIX. The invalid objects are caused because AIX 9.2.0.3.0 relapse is using older version of the ODM libraries.
    Two possible solutions are:
    1. Use AIX 9.2.0.1 release (to which ODM was ported).
    2. Request Oracle support for a 9.2.0.3.0 port of ODM.

  • "no email program" – didn't ask to send a mail!

    Opening .pdfs with Reader XI (11.04) on Windows 7 keeps stalling; after a bit of checking and exploring, I found this is because of an alert box that is not showing up on top of the main Acrobat window. That's bad enough, but the alert itself doesn't make any sense to me when I do manage to display it:
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default Programs control panel.
    I haven't clicked on any sort of Mail to link, and there isn't even a mail-to link in the document.
    Any ideas for persuading Acrobat just to open the document without making a fuss? <g>
    Thanks in advance.

    Good questions, Pat – the PC in question has no e-mail program installed, because it's a corporate-policy no-network box where I'm allowed to play with dangerous ideas like structured DITA/XML.
    But why should Reader be complaing about the absence of an e-mail program when opening a .pdf that doesn't even include a mailto: link? Don't tell me it's trying to e-mail the NSA to tell them I've opened a file <rofl>

  • How to send Java mail with attachment?

    Could you please provide the sample codes using the javax.mail api for sending an email with an attachment?

    this is code
    zareen abbas
    <html><body><center>
    <FORM ACTION="/servlet/Attach" method="post">
    <!--I didn,t used this ENCTYPE-->
    <!--ENCTYPE="multipart/form-data" -->
    <table border=0 bgcolor background="#00000">
    <tr><td><font size=4> <b>From: </b> </font> </td>
    <td><input type=text name=from size=40></td></tr>
    <tr><td><font size=4> <b>To : </b> </font> </td>
    <td><input type=text name=to size=40> </td></tr>
    <tr><td><font size=4> <b>CC : </b> </font> </td>
    <td><input type=text name=cc size=40> </td></tr>
    <tr><td><font size=4> <b>BCC : </b> </font> </td>
    <td><input type=text name=bcc size=40> </td></tr>
    <tr><td><font size=4> <b>Subject : </b> </font> </td>
    <td><input type=text name=subject size=40> </td></tr>
    <tr><td><font size=4> <b>Body : </b> </font> </td>
    <td><textarea name=body rows=15 cols=40> </textarea> </td></tr>
    </table>
    <p>Select a file:<input type=file name=attach>
    <input type=submit value="send">
    <input type=reset name=reset1
    value="Clear"></Form></center></body></html>
    here the servlet code
    File file = new File(filename);
    if (file.exists())
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(text);
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(filename);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(fds.getName());
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    message.setContent(mp);
    else
    message.setText(text);
    Transport.send(message);

  • Program Hangs While Adding First ActionListener

    Hey All,
    I'm trying to build myself a quick and dirty database application for maintaining my church's phone list and have hit a snag.
    My project (being developed in NetBeans IDE 6.5.1 on Slackware Linux 12.2) keeps hanging in the initComponents() function of my one and only form. After it goes through all of the Swing widget creation statements:
        tbMain = new javax.swing.JToolBar();
        btnExit = new javax.swing.JButton();
        tbSep1 = new javax.swing.JToolBar.Separator();
        btnPrint = new javax.swing.JButton();
        // 63 or so widgets deleted for convenience.
        mnuHelpIndex = new javax.swing.JMenuItem();
        mnuHelpSep1 = new javax.swing.JSeparator();
        mnuHelpAbout = new javax.swing.JMenuItem();the code comes to the setup of my first toolbar button, which is the btnExit:
        btnExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cbpekin/art/application-exit.png"))); // NOI18N
        btnExit.setToolTipText("Exit the Application (Alt-x)");
        btnExit.setBorderPainted(false);
        btnExit.setFocusPainted(false);
        btnExit.setFocusable(false);
        btnExit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnExit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnExit.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnExitActionPerformed(evt);
        tbMain.add(btnExit);
        tbMain.add(tbSep1);Now, the btnExit.addActionListener() bit is where the run hangs up. This code is added in and controlled by the IDE, which does not allow me to edit it. Having said that, I don't see anything wrong with it and I get no errors or exceptions...the project just hangs as if it is working on something, but it never seems to go beyond this line. I have given it up to about 20 minutes to see if it was just going slow (which won't work at all, if that had been the case), but it never did continue past this point.
    At first, I thought that it could be an IDE issue, so I compiled my JAR file and tried to execute it directly from the command line, but it hung in my MainForm constructor (according to my logs), but never completed. Due to this, I'm assuming that when I ran it directly, it hung in the same place. When this didn't work, I tried using a different version of the IDE, to no avail...it still hung up at the same place. When I added that ActionListener, I was using NetBeans 6.7 milestone 3. Could that IDE having generated this code caused the problem that I'm experiencing? Changing to an older version of the IDE has not helped, but I'm open to anything at this point.
    Any thoughts as to things that I can try to trap exactly what is going on here or suggestions as to how to fix this weird "hang up" are most appreciated. I look forward to hearing what you all have to say.
    Cheers,
    Sean Carrick
    PekinSOFT Systems

    OK, All, this is what I've got:
    I tried just commenting out code to see where the hang up was being caused. As I had said in my original post:
    the code comes to the setup of my first toolbar button, which is the btnExit:
    btnExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cbpekin/art/application-exit.png"))); // NOI18N
    btnExit.setToolTipText("Exit the Application (Alt-x)");
    btnExit.setBorderPainted(false);
    btnExit.setFocusPainted(false);
    btnExit.setFocusable(false);
    btnExit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    btnExit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    btnExit.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    btnExitActionPerformed(evt);
    tbMain.add(btnExit);
    tbMain.add(tbSep1);
    I could not determine at what point that the hang up started happening. Even after I had added the ActionListener for the btnExit toolbar button, my project still ran, until some indeterminate point where I added something to the project which caused it to start hanging up on this .addActionListener() line.
    Since I couldn't determine when the hang up started taking place by commenting out code. I decided to recreate the project from scratch (but bringing in files that I know were not causing the problem). By doing this, I've gotten to the point where I've got the btnExit ActionListener being added again and am not getting the hang up. This is really weird! I don't want to have to keep recreating my projects because of something crazy like this happening.
    I'm not sure if I had mentioned it in any of my replies to this thread, but when I had originally added the ActionListener for the btnExit toolbar button, I was using NetBeans 6.7 milestone 3. When I recreated the project, I did so in NetBeans 6.5.1. So, I'm beginning to think that the problem I had was actually with the version of NetBeans that I was using and not with the JDK or Java code that I had written.
    Any thoughts on this? This question is mainly for you folks that are like me and kind of a NetBeans freak. ;-)
    Cheers,
    Sean Carrick
    PekinSOFT Systems

  • [4.0] Production SQL Developer hangs when attempting to expand Java in the Connection Navigator

    Folks,
    I'm running production SQL Developer on Oracle Linux 5.8 and whenever I click the Java link in the Connections Navigator with a SYS AS SYSDBA connection SQL Developer hangs.
    Oracle Enterprise Edition 11.2.0.1.0
    SQLDeveloper 4.0.0.13.80
    Oracle Linux 6
    JDK Version 1.7.0_45
    Doing the same thing with user SCOTT (no SYSDBA) works fine (although there are not any Java objects).
    Thanks,
    Rich

    This has been logged as a bug.
    The bad plan/performance has been logged as a bug. SQL Developer didn't hang for me - I was able to cancel the query using the Task Progress panel.

  • Thunderbird hangs while attempting to remove an account.

    We've just migrated our email from one provider to another. I added a new email account to Thunderbird and want to delete the old one, keeping all my address book, local folders, etc. However, when I pop into "Settings..." and then select the old account and do "Account Actions" and then "Remove Account", I get the "Are you sure?" confirmation dialog and after confirming that, it goes back to the "Settings" view and I Thunderbird then hangs (a beachball since I'm on Mac) and I have to force quit it. Any way to help diagnose this? I've looked around and doing things like taking thunderbird offline before attempting the removal of the old account don't make a difference.
    I'd hate to have to migrate my profile (likely just address books and some local folders) to deal with this bug. best, Joe

    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.
    Thus, either delete the app and purchasevit with your account or live with not updating it.

  • How to send Java Mail with EXCEL attachment?

    I tried the following:
    ByteArrayDataSource bs = new ByteArrayDataSource (is, "application/excel");
    as my datasource (all other apis are fine)
    But when I send this message with this datasource as attachment,I get a ParseException with the VM complaining about malformed headers.
    Please help

    Exactly when do you get the ParseException, and what's the message
    with the exception?
    BTW, "application/excel" is not the correct MIME type for Microsoft Office
    Excel files. The correct MIME type is "application/vnd.ms-excel".
    http://www.iana.org/assignments/media-types/application/vnd.ms-excel

  • VI hangs while attempting to save

    When we try to save the VI, it hangs and we have to reopen the LabVIEW, also no modifications are saved. Size of VI is around 1MB. There are no SubVI's in the top level VI. (LabVIEW 6.1)

    Sorry, I don't have a solution, just a comment.
    A single VI of 1MB seems quite large and I wonder where all the bulk is coming from. It would be hard to believe it's all "code". Could it be that all your indicators (arrays, graphs, charts, etc.) contain huge arrays as default vaules? It might be worth clearing all, followed by "set current values to defaults" before saving the VI.
    Go to "File..VI properties..memory usage". What are the numbers for objects, code and data?
    LabVIEW Champion . Do more with less code and in less time .

  • My program hangs while i open a file.

    Using multiple threads, would be able to resolve this.However, i don't know anything about it. Please provide me with resources in labview that will allow me to do this.

    Well, more information is needed in order to provide the adequate advice.
    About Multithreading, check the following information from ni.com:
    Application Note:
    Using LabVIEW to Create Multithreaded Applications for Maximum Performance and Reliability
    http://digital.ni.com/appnotes.nsf/b0be082ea11554328625648f006a132a/99dbde3436c215208625658a00633640?OpenDocument
    KnowledgeBase:
    Is multithreaded LabVIEW real-time?
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/277303856cf47ca3862565bc006c002c?OpenDocument
    Good luck!
    www.vartortech.com

  • Java.mail sending email in html format

    I trying to send emails from my java program, I ve managd to send text mails, I want to send email in html format is there a way of doing that and how
    thanks for your help

    Thanks a lot it is working now but I think that sending mails in text format is the best way since there isn't a way of knowing whether the recepient can handel html mails

Maybe you are looking for

  • Reporting Tools

    I'm relatively new to BW...I've been supporting it internally for our company for the last year+, but I come from a .NET background.  My questions are in regards to the reporting tools that people use at different implementations.  We use the BEx Ana

  • Document Not sent error while sending pdf attchments in smartforms

    Hi All, I am trying to send the smartforms output in the PDF format as an attachment via email but it seems to be not working for me. here is the piece if code i'm trying to use Convert smartform OTF Table data to PDF   CALL FUNCTION 'CONVERT_OTF'   

  • Error while displaying the attached file

    Hi , I am doing one task ,where I need to attach a TIFF file to the workitem . I am getting desired output while attaching the file from presentation server but While doing from application server , I am able to attach the file to corrseponding worki

  • How to call a Stored Procedure with a REF CURSOR output parameter

    I am looking forward an example that call a stored function/procedure with a REF CURSOR output parameter and get the result. In other words, I have a stored function/procedure that execute a SELECT statement using the OCI library and then it could ge

  • Help with installing on a new laptop

    I have the CS4 disc from when I was in school, but now that I bought a new laptop I cannot install by disc. I guess the laptop doesn't read the disc? I'm so confused.