JavaMail hangs up does not send mail nor throws exception when sending with attachment.

So basically i have a problem that has been reported, but none of the answers solved in my case.
I'm trying to send a mail with attachment using java mail, and it hangs in the transport.Send without sending an exception.
I've put the debug to true to try to understand what's going on and the result that i get is this:
DEBUG: not loading system providers in <java.home>/lib
DEBUG: not loading optional custom providers file: /META-INF/javamail.providers
DEBUG: successfully loaded 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.S  MTPSSLTransport,Sun Microsystems, Inc],  com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.
SMTPTransport,Sun Microsystems, Inc],  com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLSto  re,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLSto re,Sun M
icrosystems, Inc],  com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun   Microsystems, Inc],  com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun   Microsystems, Inc]}
DEBUG: Providers Listed By Protocol:   {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems,   Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems,   Inc], smtps=javax.mail.Provider[TRANSPORT,
smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc],  pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc],  pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems,   Inc], smtp=java
x.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: not loading optional address map file: /META-INF/javamail.address.map
i've tried set the both connection timeout proprieties to 5000 but it stil does nott generate an exception. i've tried to chage the try catch block to catch Exception rather than MessagingException but it still does not generate an exception.
So i have another environment where using the same mail server and code it is working and i.ve generated the debug message and the next message is
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
I don't understand why it blocks here and why this message is not shown. i don't think its a connection problem. maybe a configuration issue, so i'm triyng to understand whats going wrong.
Any help would be appreciated. Thanks.

Based on the debug output, you're using a very old version of JavaMail.  You should consider upgrading.
The debug output shows no attempt to connect to any server, so it appears that something is going wrong even before then.
If the program is really blocked, try to get a stack trace showing where it's blocked.
Also, try catching Throwable to make sure you're not missing some kind of unexpected failure.
Do you have a standalone application, or is it running in some sort of application server?
What version of the JDK are you using?

Similar Messages

  • Macbook does not recognize external USB drive - except when booting with CD

    Hi all,
    I recently swapped my Macbook's internal HD (Toshiba 100gb 5400 rpm) into an external USB enclosure (Eagle Consus). The computer does not recognize the external HD, even when using two USB cables for extra power. No luck with safe mode or resetting PRAM. Disk utility just hangs with spinning wheel if I start it. Switching the USB ports does not help.
    I thought it might be a power problem until I noted the following:
    1)The external drive works fine if I boot the Macbook from the Mac OS install CD... with this I can run disk utility and scan the drive with no problem
    2)It works fine on an old Mac Mini with only ONE of the USB connectors plugged in
    3)The enclosure worked fine on the Macbook when I had the new drive in it (320 GB 7200 RPM) while copying the files over
    Any thoughts?
    Many thanks,
    --T

    It is actually using a power supply, yet it will not actually power on unless it is connected to a computer's USB port. At least this is how it works on my old desktop running Windows 2000. When you disconnect the drive from Windows, or put the machine in hibernate mode, the device actually shuts down. It powers back up once the machine wakes up from hibernate mode.
    It's a somewhat older device which predates the Macbook Pro, but it claims to support older Mac, such as the G3, G4, G5, iMac, iBook. OSX 10.0.4. So perhaps it's just too old?
    It's a Buffalo HD-HB250U2 (250 GB).
    So you're in Japan too?

  • Round badi does not work in default formulas triggered when sending a value

    I have implemented the round BADI from sdn (how to). Problem is that it works perfect when :
    -  I execute it in UKT
    - I run it as a data manager package
    - I put it in default formulas and run the default formulas as a packe
    It however doesn't work when it is executed in default formulas when sending a value from an input scheduls.It gives an error "error converting records -  the root element is missing"
    Anybody a clue ?
    Cheers
    Nico

    Answering to myself!
    Code correction required:
    loop at it_cv into ls_cv.
    *{   INSERT         BPCK900005                                        2
    CHECK ls_cv-dimension NE 'MEASURES'.
    *}   INSERT

  • Transport.send(Message) sends mail but throws exception

    Is it possible in any scenario that Transport.send(Message) method deliveres the message successfully, but throws an exception also?
    Any help is appreciated. Thanks.

    Yes, but only if you've configured it to do so.
    See the javadocs for the com.sun.mail.smtp package for the property
    you can set to cause it to do that.
    If you haven't set that property and you're seeing that behavior, please provide
    more detail, including especially the protocol trace.

  • Using Verizon Email, Form Fill is not working when I respond to a sender, their address does not come up nor does the address search work. VZ says it has to do with Form Fill being turned off ???

    Running Windows 2000 and Firefox 3.6 Email does not do search in address field when replying to a sender. Have to manually type each address...

    To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
    Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step.

  • Yesterday I updated my mac software and now my ilustrator cs6 does not save files nor open old ones

    I was working just fine with my desktop imac and it said there were som software updates available so I click on it.
    Now my ilustrator Cs6 does not save files nor open them, the finder is behaving strangely or crushing...somebody asked me if I have downloades a font recently, yes I have.im in the middle of an important job and dont know wht to do

    Moving this discussion to the Illustrator forum.

  • The earphone port on my ipod touch 4 does not work anymore, will I need to send it in for repairs?

    The earphone port on my ipod touch 4 does not work anymore, will I need to send it in for repairs?

    Apple will exchange your Pod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    A third-party place like this one is less expensive.  Google for more places.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Since 7.1.2 mail does NOT retrieve mail in background and notify

    After updating to ios 7.1.2 and having to do a complete reset and restore from backup, mail does NOT retrieve mail and notify me that a new message has arrived.
    In the past (and with every version of the OS until 7.1.2) mail would vibrate when a new message arrived - I did not have to open the mail app and wait for the download.
    What is the fix? In the past, mail was not in notification center - I don't want to see a badge or other on screen listing of the message that has arrived, only have the phone vibrate when a new message arrives.
    Thanks.

    Of course - have an open case with Apple support as well. Co-workers are receiving notifications, IOW, when mail is received their phone will buzz (if in silent or vibrate mode) or ding or similar.
    I have to actually open the mail app and only then will it grab email and 'notify' me it's been received.
    And yes, configuration is set to push - meaning the e-mail server will push it out to the clients immediately,

  • IPad Mini 2 goes ballistic when being charged -- in other words, it hangs abruptly ; does not type properly. Moreover, in some instances open apps peculiarly force quit without the screen being touched whatsoever.

    iPad Mini 2 goes ballistic when being charged -- in other words, it hangs abruptly ; does not type properly. Moreover, in some instances open apps peculiarly force quit without the screen being touched whatsoever.

    Hi, RomeroSalsa. 
    Thank you for visiting Apple Support Communities. 
    I understand that you are experiencing an issue with the responsiveness of your iPad mini while charging.  I would need a little more information on how you are charging the device to provide a better answer.  While the steps below are not exactly labeled for this issue, they may help resolve the issue.
    If the battery doesn’t charge
    If the battery doesn’t charge, unplug your device and try these steps:
    Look at the connector at the bottom of your device and make sure it’s free of debris.
    If you're using a USB power adapter, make sure it's plugged in all the way and the power outlet is working. If you're connecting to a computer, make sure it's on and can charge your device. To charge an iPad, you might need to use a USB power adapter and plug into a power outlet.
    Try a different USB cable, USB power adapter, or USB port.
    If everything seems to be working, reconnect your device and wait for 30 minutes.
    If your device still doesn’t charge, try to restart it while it's connected to power. If you can't restart, reset your device.
    If you can’t charge your iPhone, iPad, or iPod touch
    -Jason H. 

  • After I upgraded to OS x 10.7.5 my Mail account does not post mail, how come?

    After I upgraded to OS x 10.7.5 my Mail account does not post mail, how come?

    No. Tried all that. Server finally says they don't understand what's happening so better if I just delete accounts and set them up again from scratch. Haven't done that yet in hopes someone in the Apple world will have found a solution.

  • My CC does NOT offer LR6 nor CC LR.  When will it be posted to CC subscriber sites?

    My CC does NOT offer LR6 nor CC LR.  When will it be posted to CC subscriber sites?

    Lightroom CC(2015) is Live Now. You might see it under "Find New Apps" section of CC desktop app.
    Sign out and sign in back : Sign in, Sign out | Creative Cloud desktop app
    Cheers!
    ~ Arpit

  • Server mail does not delete mail queue

    mail server does not delete mail queue.

    Apparently, Mail sometimes fails to remove messages from the server when Remove copy from server is set to Right away -- don’t know why.
    I can only guess Mail sometimes has problems communicating with the server, and precisely because the setting is Right away, never tries again. I’d try changing the setting to After one day or When moved from Inbox, and see whether that makes a difference.
    Also, go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list.
    Have you checked whether Thunderbird does remove the messages from that server?
    BTW, woodie is wrong. It’s true that Gmail ignores any requests to delete messages from the server made by a POP client, but it doesn’t let the same messages to be downloaded more than once via POP either. Gmail just doesn’t work like a normal POP server would.

  • Been trying to use an external memory card reader with my macbook air- connecting via usb port, air does not recognize device nor the microSD card from my gopro - help

    Been trying to use an external memory card reader with my macbook air… connecting via usb port, air does not recognize device nor the microSD card from my gopro … help

    Some external ones do not work with the Mac's although most do. There are some driver compadibility issues with Mavericks, so I would wait for an update.

  • This XML file does not appear to have any style information associated with

    Hi All,
    I have IDOC to XML file scenario.
    In SXMB_MONI, it showed the message processed successfully (checkered flag).
    I open the payload in the target, I'm able to see the XML format without error.
    then I checked in RWB the overall status is successful.
    But when I checked the detail (message content) I got the following message:
    "This XML file does not appear to have any style information associated with it".
    So physical file created is like corrupted.
    If using XML marker to open the file it show warning "Invalid Unicode Sequence".
    The thing is when rerun the whole interface again, which is mean the same idoc send from the source, the file created successfully. Sometimes need to rerun twice or more than that to get the file.
    Anyone has idea on what is wrong here?
    Thanks,
    Victor.

    Hi Baskar,
    Thanks for your reply.
    It's PI 7.0.
    Overall status is successful but when I go to RWB to check the message content i got the error message above.
    Target system is only normal FTPS server.
    XML file is created as well but it's showing error when we open it.
    The weird thing is without fixing anything if we rerun the same interface with same set of data sometimes the error is gone by itself.
    Thanks,
    Victor.

  • Send mail to external address using send mail step.

    Hi all,
    I have one question.
    In a send mail step of workflow, when the recipient type is a Organizational Object and Org Unit, the mail is only sent to workplace? I would need to send the mail to external address from all users of Org Unit. Is possible it?
    Thanks
    Regards,
    David.

    Hi,
    1) In the Recipient type select the E-Mail address from the drop down
    2) And give the email id (in the text box)
    3) Then save & test it.
    4) Once it execute goto t.code SOST and see the email entry.
    5) If entry not found, the SCOT settings is not done then check with Basis Team
    6) If found, select it and execute.
    7) And check you email
    Regards,
    Surjith

Maybe you are looking for