Problem with jakarta commons email

i am using in addition to the javamail libary the jakarta commons libary.
do anyone of you havee anyxpieriences with this libary??
here is my code for send a simple mail:
String host=null;
        SimpleEmail email = new SimpleEmail();
        try {
             host=DbJdbc.getSetting("SmptHost");
            try {
                email.setHostName(host);
                email.addTo(emailadress);
               email.setFrom("[email protected]");
                email.setSubject("Ears mail scheduler");
                email.setMsg("test");
                email.setAuthentication("test","test");
                email.send();
            } catch (EmailException eex) {
            LoggerLars.log("[SendMail] : Error" + eex.getMessage(),4);
            throw new Exception(eex.getMessage());
        } catch  (Exception ex) {
            LoggerLars.log("[SendMail] Exception in Sendmail: "+ex.getMessage(),4);  
     }i am working with the bea weblogic 8.1.3 and i get an error that the catch parameter is not an java.lang.throwable.
so the try/catch construct doesn't work....did anyone got the same problem?? i don't see any programming fault in the code, i simple copied is from the jakarta websites howto.

problem solved!!!
i just had to restart bea und to update the libaries!! thx

Similar Messages

  • Problem with links on email templates

    Problem with links on email templates
    Hi,
    We have been having issues with links on our email templates. Some of the links point to the following URL:
    http://server'sname/thirdparty/FCKeditor/editor/fckeditor.html?InstanceName=emailTemplatesDTO.htmlBody&Toolbar=NewscaleFCKEditorToolBar#URL
    Sometimes we get “Unknown internal error” on the web page.
    Can anyone help or advise on how to resolve this issue?
    Many thanks,
    Wesley.

    Hi Wesley,
    This is rather late, but we've seen the same thing frequently (and I believe can replicate it).  It's caused when you a creating a new email by copying the content of an existing one with a name space in it.
    Upon copying, the link gets scrambled.  The approach we use is to copy the email in to a new template, then strip out all of the URL links and add them back in.
    Thanks!
    Ant

  • HT5622 Due to problems with my original email I changed my apple id email and password months ago.  Suddenly it is reverting to my old email.  How do I get it to totally forget the original? I have iPhone, iPad and MacBook Pro.

    Due to problems with my original email I changed my apple id email and password months ago.  Suddenly it is reverting to my old email.  How do I get it to totally forget the original? I have iPhone, iPad and MacBook Pro.

    Hey 1Jerry,
    Thanks for the question. You'll want to delete and re-add your iCloud account (utilizing the new Apple ID address). When prompted, opt to keep as much information on your device as possible. The following article provides information on how to do so:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Turn off iCloud completely
    Depending on whether you want to stop using iCloud on all or only some devices, do one or more of the following:
    On your iOS device’s Home screen, tap Settings > iCloud, then at the bottom of the screen, tap Delete Account.
    Thanks,
    Matt M.

  • Problems with my yahoo email account using Firefox

    I am using Firefox 14.0.1 and I have problems with my yahoo email account. I send an email, the receiver got a good version of my email, but when I see the same email into my sent box I see a differente text. When I use any other Internet browser, I can see a good version of my original email into the sent box.
    Why???

    Hi,
    Please try a '''Ctrl + F5''' refresh. This helps to bring in the page contents afresh. You can also consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.
    (To revert to the previous profile, close the new profile, start Firefox and choose the '''*.default''' profile. While the [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager] is open, you can also delete the newly reset profile (the one containing random numbers)).
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    If you have security software (antivirus, firewall etc.) installed, you can try deleting all existing instances of Firefox and related files in all the different configuration areas/modules of the security software. Instead create new allow/trusted rules for Firefox + its related processes. Even otherwise the security software may also ask again when Firefox is started and you can try to allow/trust at that time. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
    [http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration]

  • I have a problem with a few emails i wrote which were in the outbox. The outbox disappeared all of a sudden with my mails... However they were not sent since the email address was not correct (just 3 initials). Is there a way to get it back somewhere?

    Hello,
    I have a problem with a few emails i wrote which were in the outbox. The outbox disappeared all of a sudden with my mails... However they were not sent since the email address was not correct (just 3 initials). I was waiting to find out the correct email address of that person, put in in and then sen it...Is there a way to get it back somewhere on the ipad or in some cached folder?
    Many thanks for an answe to this.
    Swisslady2

    There is no cache where the emails would be stored on the iPad, but you could try quitting the mail app and then launch it again and see if the emails return.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Tap the home button. Then try mail again.

  • How to correct checkout form "there is a problem with the PayPal email address supplied"

    PayPal Pro submissions do not go through. The error message reads "We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller."
    I called PayPal. They checked and said my checkout form was not sending my email address to them. Any help on getting this to work will be sincerly appreciated. Thank you.

    - If you want to replace the headphone jack yourself see:
    iPod Touch Repair - iFixit
    - Apple will only exchange your iPod for a refurbished one for this price, You get a new battery.  However, it may not be worth it for a 2G iPod.
    Apple - Support - iPod - Repair pricing- A third-party place like this one is less expensive. Google from more places.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • I continue to have problems with links in email, they don't  Work.

    I continue to have problems with links in email, they don't work. When I called apple support she said to hard boot by holding off and home keys and restart. However this is only since the new release of the operating system,  it happens ever day and it's getting OLD.. Any solutions?

    Yes, almost daily since the iOS update. Is there a permanent solution. And does the hard reboot hurt the iPad?

  • I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.

    I just started using my iphone 5s. I have a problem with new incoming emails from my POP account. Why are they marked as read automatically even though I have not even opened them yet.
    At first I thought it might be because I was using simultaneously my old iPhone 4S so it somehow realized the emails where being pushed to another device and the it marked as read, this has nothing to do since I have deleted the email account from the iPhone 4S

    Contact the email provider for assistance with their service.

  • HT1146 problem with bt/yahoo email password

    I have had an email set up on my macbook air. suddenly, it started to ask me about password "imap.yahoo.mail does not recognise your password" however, when I log on via Safari I have no problem. I deleted the email, restarted my laptop and still having same problem.
    I even tried to set up a different email (hotmail) and still got same pop up window showing the message "imap.yaho.mail server did not recognise your password"!
    I am not sure what went wrong. Any advice?

    My advice would be to ignore the email until Yahoo have had time to fix all the bugs and problems with their new email system.

  • For about 2 weeks I have been unable to leave feedback on ebay. Firefox brings up login page but will not accept password. I am having the same problem with my yahoo email. It will not accept my passwords, so I have to use IE to login to these accounts.

    On yahoo email, it accepted my login id, but not password. This started on one account about two weeks ago. Today when I tried to login to another yahoo email, which worked yesterday, but it would not accept my password on this account.
    I bought some items on ebay and wanted to leave feedback. When I clicked on the leave feedback button a sign in window appeared, this should not have happened, when I tried to sign in, it would not accept my password. I called ebay and was told they have had many complaints from customers using firefox when trying to leave feedback. The help desk suggested I try with Internet Explorer, I did, and it worked perfectly.
    I have been using firefox for a long time and really do not want to go back to IE, but when I cannot sign into my accounts, I can't, so I will have to use IE.
    As far as I know, no new programs have been installed on this computer.

    Try deleting cookies and cache:
    1. Tools| Clear recent history
    2. Time range to clear: Everything
    3. If it isn't already selected, select '''Cookies''' and '''Cache'''
    4. '''Clear now'''
    '''Check cookie exceptions'''
    1. Tools | Options | Privacy Panel
    2. Set '''Firefox will: Use custom settings for history.''' '''Insure Accept cookies for sites and accept third-party cookies''' is selected
    3. Click '''Exceptions'''. If the misbehaving site is in that list, select it and click '''Remove site'''
    '''Safe Mode'''
    Add-ons can cause problems with not being able to log into certain websites. To see if this is the case with your issue, run [[Safe mode]]. When you get to the safe mode window, select Continue in Safe Mode. If this resolves your problem, see [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Also see [[Updating Firefox]] and [[Cannot log in to websites]]

  • Problem with Adobe Send Email functionality

    I have come across an issue in Adobe Reader 9 where if a PDF doucment loads with an IE frame, and you click the 'Send Email' button, the subject line is blank.
    Example URL: http://sc.openoffice.org/excelfileformat.pdf
    On clicking the Send Email button -> Send Copy
    Does anyone know a workaround to get the subject line populated?
    In addition, with previous versions of Abode (6,7,8) the subject line defaults to the name of the PDF instead of the PDF title? Is there a way of changing this?
    Any help would be most appreciated.

    I'm sorry to hear that you're having a problem with sending your files through Adobe Send.  Can you provide more details?
    What type of file are you sending?
    When you download the file yourself, is it blank?
    Are all recipients having the same problem?
    Do the recipients get a Preview of the file?
    Are they seeing the blank document as a Preview as well as after downloading?
    Would it be possible for you to send the file to me through Adobe Send?  I will provide you with my email address in a Private Message.

  • Problems with Apache Commons FileUpload

    I'm completely stymied here. I've been trying to get the Apache Commons FileUpload working with a JBoss 4.2 server, and having no luck whatsoever. The servlet is listed out here:
    package com.areteinc.servlets;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Iterator;
    import java.util.List;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.commons.fileupload.FileItem;
    import org.apache.commons.fileupload.FileItemFactory;
    import org.apache.commons.fileupload.FileUploadException;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    public class Filer extends HttpServlet {
         private Logger logger = Logger.getLogger(Filer.class);
         public Filer() {
              logger.setLevel(Level.DEBUG);
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              logger.debug("Serving up a GET page...");
              PrintWriter writer = resp.getWriter();
              StringBuffer response = new StringBuffer();
              response.append("<HTML><HEAD><TITLE>JENA File Uploader</TITLE></HEAD><BODY>");
              response.append("<FORM action=\"Filer\" method=\"POST\" enctype=\"multipart/form-data\">");
              response.append("Upload file: <input type=\"file\" name=\"file1\"/><br>");
              response.append("Upload file: <input type=\"file\" name=\"file2\"/><br>");
              response.append("<input type=submit value=\"Start upload\">");
              response.append("</BODY>");
              writer.println(response);
         protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              // First see if someone is uploading more than one file at a time...
              boolean isMultipart = ServletFileUpload.isMultipartContent(req);
              logger.debug("Received a POST request.  Multipart is flagged as " + isMultipart);
              // Create a factory for disk-based file items
              FileItemFactory factory = new DiskFileItemFactory();
              // Create a new file upload handler
              ServletFileUpload upload = new ServletFileUpload(factory);
              // Parse the request
              try {
                   List<FileItem> items = upload.parseRequest(req);
                   Iterator itr = items.iterator();
                   logger.debug("Size of upload is " + items.size() + " items.");
                   while(itr.hasNext()) {
                        FileItem item = (FileItem) itr.next();
                        logger.debug("Filename is " + item.getName());
              } catch (FileUploadException e) {
                   e.printStackTrace();
    }When run, I hit it with a get operation, and get the form. When I put in 2 forms (in reality, all i want to do is use one, but I'm tinkering), I see nothing in items list...
    Run, with 2 files selected to upload:
    13:50:15,421 DEBUG [Filer] Received a POST request. Multipart is flagged as true
    13:50:15,421 DEBUG [Filer] Size of upload is 0 items.
    I've tried variation after variation after variation, and it jst doesn't work. I'm using commons-fileupload-1.2.1.
    Help! :)

    On the client side, the client's browser must support form-based upload. Most modern browsers do, but there's no guarantee. For your case,
    The servlet can use the GET method parameters to decide what to do with the upload while the POST body of the request contains the file data to parse.
    When the user clicks the "Upload" button, the client browser locates the local file and sends it using HTTP POST, encoded using the MIME-type multipart/form-data. When it reaches your servlet, your servlet must process the POST data in order to extract the encoded file. You can learn all about this format in RFC 1867.
    Unfortunately, there is no method in the Servlet API to do this. Fortunately, there are a number of libraries available that do. Some of these assume that you will be writing the file to disk; others return the data as an InputStream.
    Jason Hunter's MultipartRequest (available from [http://www.servlets.com/])
    Apache Jakarta Commons Upload (package org.apache.commons.upload) "makes it easy to add robust, high-performance, file upload capability to your servlets and web applications"
    *CParseRFC1867 (available from [http://www.servletcentral.com/]).
    *HttpMultiPartParser by Anil Hemrajani, at the isavvix Code Exchange
    *There is a multipart/form parser availailable from Anders Kristensen ([http://www-uk.hpl.hp.com/people/ak/java/] at [http://www-uk.hpl.hp.com/people/ak/java/#utils].
    *JavaMail also has MIME-parsing routines (see the Purple Servlet References).
    *Jun Inamori has written a class called org.apache.tomcat.request.ParseMime which is available in the Tomcat CVS tree.
    *JSPSmart has a free set of JSP for doing file upload and download.
    *UploadBean by JavaZoom claims to handle most of the hassle of uploading for you, including writing to disk or memory.
    There's an Upload Tag in dotJ
    Once you process the form-data stream into the uploaded file, you can then either write it to disk, write it to a database, or process it as an InputStream, depending on your needs. See How can I access or create a file or folder in the current directory from inside a servlet? and other questions in the Servlets:Files Topic for information on writing files from a Servlet.
    Please note: that you can't access a file on the client system directly from a servlet; that would be a huge security hole. You have to ask the user for permission, and currently form-based upload is the only way to do that.
    I still have doubt if all the moentioned resources are alive or not

  • Problems with CC in email

    I have some problems with my coding below.
    Table cc_itab contains :
         [email protected]
            [email protected]
            [email protected]
    Table to_itab contains :
         [email protected]
            [email protected]
    The emails are sended correctly but when i look at the mails in outlook i see
    1st mail :     TO : [email protected]
              CC : [email protected];[email protected]
    This is still correct  but now the problem starts
    2nd mail :      TO : [email protected]
              CC : [email protected];[email protected];[email protected];[email protected]
    in cc every email address is used 2 times.
    3th mail :     TO : [email protected]
              CC : [email protected];[email protected];[email protected];[email protected];[email protected];[email protected]
    in cc every email address is used 3 times.
    loop at cc_itab.
      TRY.
    Create persistent send request
          send_request = cl_bcs=>create_persistent( ).
    Create document
          document = cl_document_bcs=>create_document(
          i_type = 'RAW'
          i_text = bodytext
      i_subject = subject ).
          i_subject = 'Overview emails of 06/10/2006' ).
    Add document to send request
          CALL METHOD send_request->set_document( document ).
    Get sender object
          sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
          CALL METHOD send_request->set_sender
            EXPORTING
              i_sender = sender.
    Create recipient TO -> Vendor
          CLEAR c_address.
          c_address = cc_itab-s_name_text.
          CLEAR recipient.
       recipient = cl_cam_address_bcs=>create_internet_address( c_address ).
    Add recipient with its respective attributes to send request
          CALL METHOD send_request->add_recipient
            EXPORTING
              i_recipient  = recipient
              i_express    = ' '
              i_copy       = ' '
              i_blind_copy = ' '.
        Create recipient CC -> Purchaser
          LOOP AT cc_itab.
            CLEAR c_address.
            c_address = cc_itab-smtp_addr.
            CLEAR recipient.
       recipient = cl_cam_address_bcs=>create_internet_address( c_address ).
          Add recipient with its respective attributes to send request
            CALL METHOD send_request->add_recipient
              EXPORTING
                i_recipient  = recipient
                i_express    = ' '
                i_copy       = 'X'
                i_blind_copy = ' '.
          ENDLOOP.
    set send immediately flag
          send_request->set_send_immediately( 'X' ).
    Send document
          CALL METHOD send_request->send( ).
          COMMIT WORK.
        CATCH cx_bcs INTO bcs_exception.
          RAISE EXCEPTION bcs_exception.
      ENDTRY.
    endloop.

    Hi,
    the mail sending is inside the loop.
    loop at cc_itab.
    In the starting itself each time <b>refresh</b> that recipient internal table <b>that u r passing to email FM</b>
    other ways the emails get appended over and over again
    endloop.
    hiope u got the problem solution
    rgds
    Anver
    if hlped pls mark points

  • Having problem with big pond email account downloading on all devices

    Hi,
    Have just bought the Mac Air and am having enormous problems with emails downloading on all devices (ipad, iphone and Mac). If it downloads on one it does not download on another. I have a Telstra bigpond.net.au account. I do not want to change net.au account since I have had it since the dawn of time!
    What is the most effective solution? Apple suggest using gmail as a conduit but does this work. They say it may work but do not guarantee success.
    Help!

    With multiple computers, POP is a royal pain. Back in the days when I had to use POP mail, my solution was to access my POP accounts only from work due to the reason you describe. Basically POP works like this: mail goes into your POP account, you access the account and download the mail onto your computer, the mail that's downloaded is deleted from the mail server. When we were using just one computer that was fine but not now.
    The idea of using gmail should work. Once you are in the gmail setup window choose the Accounts tab and read the help screen under Learn More about Check mail from other accounts (using POP3) This will have gmail access your bigpond email account and move it to gmail which can be set up as IMAP so all your devices can access it 'properly'. I had this working perfectly with my work email until we finally got the go-ahead to upgrade our mail server and started using IMAP.

  • Interactive Report - problem with export by email

    Hi,
    We're upgrading to Apex 4.0 and we encountered a problem with the email export in html format for the Interactive Reports. The french accents are displayed with some weird symbols in the HTML file.
    When I export directly in html from my report instead of the email, the accents are fine. So the problem must be the encoding of the email which is set to UTF-8. Our database use WE8MSWIN1252 encoding for the NLS Characterset.
    Without changing our NLS Characterset, is there something I can do to correct this ?
    Thanks

    Hi Denes,
    The administrator have created a mapping table,and they send me this two lines in JMT.conf file:
    /htmldb-test /i/fck/*
    /htmldb-test /pls/*
    The error still exists,i would like to know if these two lines generate a kind of confusion in any treatment of filtre in interactive report.
    Aymen

Maybe you are looking for