Zip file attachment errors

Hi,
I have written a simple email client that sends a multipart message with a zip file attachment. I have written another email client that receives that email. I built it from looking at the javamail samples and the JGuru tutorial. Everything works fine on one mail host I am using, but I get errors on another email host. The two errors I see are....
javax.mail.internet.ParseException
     at javax.mail.internet.ParameterList.<init>(ParameterList.java:61)
     at javax.mail.internet.ContentType.<init>(ContentType.java:83)
     at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:269)
     at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159)
and...
javax.mail.MessagingException: Missing start boundary
     at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:297)
     at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159)
both of these errors occur when I call the MultiPart.getCount() method. I have seen a lot of similar posts here, but no solution. One hint at what my problem might be is that the host that I get the error on is in Europe. The most confusing thing is that other than having a different boundary, the received message that works correctly looks identical to the one that doesn't work.
Any ideas on what the problem is?
Thanks.

Yes, I am having the same issue. But I am seeing these issue after the exchange server is upgraded to 2003. It seems like there is an issue with Message format in Exchange 2003. Any idea what we need to do fix this issue?

Similar Messages

  • ZIP file attachment in DMS

    Hello All
    How to attach a ZIP file in DMS while creating document from CV01N transaction.
    I have tried this in CV01n & ZIP file is attached but after creating Document when I am go in CV02N transaction & tries to open the ZIP file attachement system is giving the error "File can not be opened...File format is not correct"
    Is there any seeting I need to do for data carrier type & Application type.
    Your reply is appreciated.
    Thanks
    Pravink.

    Hi Pravin,
    Have you maintained in DC30 "work station application" following entries
    for eg:
    TZP   *.zip
    For the required DMS document type.
    If yes, let us know the error message you get.
    Regards,
    Deepak Kori

  • Zip file attachment in Apple Mail

    I am new to Mac and Apple Mail. I received a mail with a zip file attached. But Apple Mail shows the attachment as some html text. How do I retrieve and save the zip file?

    some one sent you a zip file and you are having trouble opening it... it shouldn't... but if you do you can down load: http://www.stuffit.com/mac-expander.html
    or http://itunes.apple.com/us/app/stuffit-expander/id405580712?mt=12

  • How to email a .zip file attachment from PC

    Hi,
    Please, let me know how to email a .zip file attachment from Presentation Server.
    Thanks,
    Madhuri.

    Hi,
    try fm SO_DOCUMENT_SEND_API1
    it's well documented (look with SE37)
    and look here:
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    regards Andreas

  • Retreiving zip file attachement

    Hi,
    How can I read a zip file attachment that is sent
    inline in the message?
    thanks,
    dannyy

    I dont think
    u can do much with the zipped attachments only solution would be to give the download option for this zipped attachment and i think u know how to do it
    [email protected]
    regards
    hari

  • Java.util.zip.ZipException: error in opening zip file Deploment Error

    Hi All,
    I am getting the fallowing Deployment exception while i am trying to deploy my webdynpro DC. Kindly help me if anybody know the solution for it.
    deployment aborted : file:/C:/DOCUME1/291123/LOCALS1/Temp/temp7081pg.comiprscipr~dc_intreg_process.ear
    Aborted: development component 'ipr/scipr/dc_intreg_process'/'pg.com'/'GGD_EPREGDEV_D'/'20101220152524'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error while getting the internal libraries of application pg.com/iprsciprdc_intreg_process in operation update.. Reason: error in opening zip file; nested exception is:      java.util.zip.ZipException: error in opening zip file (message ID: com.sap.sdm.serverext.servertype.i
    Thanks,
    Mahesh Nuli.

    Hello Ram,
    It is saying that the library file is missing. Can you deploy pg.com/iprsciprdc_intreg_process  first and try to deploy this ear temp7081pg.comiprscipr~dc_intreg_process.ear.
    Regards
    Nizamudeen SM

  • Zip file attachment

    Hello,
    we are searching for an answer to the following problem...
    We are trying to send an email with an attached file via the email adapter. We are using the mail package format for sending the email. The content of the mail package is converted into an file attachment in the mail adapter. Because we have to define the attachment name we use the MessageTransformationBean to change it.
    Now we want to zip the attached file... Can anyone give me a hint, how to realize it? Have we write a module, which we have to call inside the mail adapter? If so, where must we place this module in the EJB sequence?
    Thank you for your replies...
    Best regards,
    Lars

    Hi Palaniraja,
    thank you for your answer...
    My question to your suggestion is, can we use it in our case? Because we generate the attached file with the email adapter. I don't know exactly if the file is already send, if we place the module behind the mail adapter EJB. Or must we place it before this EJB. Which step will be the best time to place the new module? Before or after the mail adapter EJB?
    It would be great to get the code from your site... Could you please send the code to my EMail address from my Business Card?
    Thanks a lot...
    Regards,
    Lars

  • Zip file exxtracting error of these two zip files

    Hi
    i download both zip files. when i click on these zip files, i receive a messeage that "NO ZIP FILE, BAD ZIP FILE OR PART OF A SPANNED/SPLIT ZIP FILE". When i try to extract it again show me error . Please guide me. when i download it , it download very smothly.
    Thanks
    Atiq

    please provide exact filesizes when you report such installation/unzip issues, also, you can compare the md5sum with the one posted on the website.
    sizes / name / md5sum:
    2055432139 RHEL3-DVD1-Oracle-v1.4.zip c571eec50edfd8c032e86cfacc7976cc
    812339260 RHEL3-DVD2-Linux-v1.4.zip 756444bc87871ed52eee9baeb1880390
    for md5sum on windows you can use: http://www.md5summer.com/
    on linux just type md5sum <filename>
    99.99% it's the download, based on the size/md5sum you'll know which zip you'll need to redownload.
    enjoy.

  • Send email with password protected zip file attachment

    Hi Experts,
    The requirement is to zip a password protected excel file and send the zipfile through email. There is no middleware(PI) involved. The program has to be run in background mode. It is possible to create a password protected excel file using OLE method, but it will not work in background mode.
    Also it is possible to place the zip file in application server, but I am not able to give password for this file.
    Any help would be greatly appreciated.
    Regards,
    Renjith Nair

    Hi,
    You have to write a customer adapter module to handle this requirement.
    Zip/Unzip can be done using the payloadzipbean standard module:
    http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Is encoding an option instead of password for you:
    /people/farooq.farooqui3/blog/2008/09/24/sap-xipi-encode-outgoing-payload-using-adapter-module

  • Zip file extraction errors

    Hi, i'm not sure whether this is in the right forum, please feel free to move it if it's not appropriate here.
    I'm trying to extract the contents of a .zip file and i'm getting the following exception:
    java.io.FileNotFoundException: zip test\zip test.txt (The system cannot find the
    path specified)
            at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at java.io.FileOutputStream.<init>(Unknown Source)
            at unzip3.main(unzip3.java:47)Here is the code i'm trying to run, it's a sample code I picked up off a tutorial. I've looked at a few tutorials and the code is more or less the same in all of them...
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    public class unzip3 {
      public static final void copyInputStream(InputStream in, OutputStream out)
      throws IOException
        byte[] buffer = new byte[1024];
        int len;
        while((len = in.read(buffer)) >= 0)
          out.write(buffer, 0, len);
        in.close();
        out.close();
      public static final void main(String[] args) {
        Enumeration entries;
        ZipFile zipFile;
        if(args.length != 1) {
          System.err.println("Usage: Unzip zipfile");
          return;
        try {
          zipFile = new ZipFile(args[0]);
          entries = zipFile.entries();
          while(entries.hasMoreElements()) {
            ZipEntry entry = (ZipEntry)entries.nextElement();
            if(entry.isDirectory()) {
              // Assume directories are stored parents first then children.
              System.err.println("Extracting directory: " + entry.getName());
              // This is not robust, just for demonstration purposes.
              (new File(entry.getName())).mkdir();
              continue;
            System.err.println("Extracting file: " + entry.getName());
            copyInputStream(zipFile.getInputStream(entry),
               new BufferedOutputStream(new FileOutputStream(entry.getName())));
          zipFile.close();
        } catch (IOException ioe) {
          System.err.println("Unhandled exception:");
          ioe.printStackTrace();
          return;
    }It doesn't seem to even be creating the directory for me.
    Any help would be greatly appreciated!

    What do you mean by adjusting my expectation?You expect the zip file to hand you back entries with "isDirectory" returning true, when it doesn't, as you have observed. So you have to change that expectation.
    What do you suggest?For each entry you get, create a File object, invoke the getParentFile() method, and if that returns something (a File object representing the directory the target file belongs to), invoke its mkdirs() method to create the directory/directories the target file will belong to.
    Experiment with it...

  • Mail Adapter ZIP File Attachment

    Hello,
    I have created an interface using the mail receiver to mail a file as an attachment to an email address. I have used an ABAP mapping to create the Mail message associating the required content of Mail message. This all works fine and the emails with the required attachments are delivered successfully.
    I now need the ability to ZIP the file attachments. I have had a look through some of the forum messages and it looks like I am going to have to create a java module for the receiver mail adapter to ZIP the file.
    Has anyone done this before? If so can you give me some pointers. I have developed modules for the file adapter but am not sure how to ZIP.
    Alternatively can this be done as part of the ABAP mapping. I have started looking at class CL_ABAP_ZIP. I am now able to compress the content but this does not create a valid archive as the attachment.
    Any help would be much appreciated.
    Thanks
    Gary

    Dear Sameer ,
    Can you send me the Java Code which zips the folder or files .
    My email id is [email protected]
    Regards
    Prabhat

  • How do I open a zip file attachment

    I received a one-page file in Excell as a zipped attachment. I do not know how to open it and I don't have Excel on my iMac. I am running 10.6.8 Snow Leopard ona single user Intel iMac. HOW do I open this attachment? Thank you.

    Drag the attachment to your Desktop. Double-click on the file. It should unzip automatically. If it does not then download and install The Unarchiver 3.6.1.
    Although this will de-archive the attachment, there is little you can do with it without Excel or something similar.
    You can try the freeware suite, Libre Office, that is functionally similar to Office 2007 for Windows except it works on Lion.
    You may want to consider as well:
    These two suites are similar to Libre Office but not as current or as well-supported:
    NeoOffice
    Open Office
    And, then there is Apple's iWork suite:
    Pages - word processing and layout
    Keynote - presentation
    Numbers - spreadsheet
    Each can open and save Office compatible files. They may be purchased separately via the Mac App Store for $19.99 each.
    (Access to the Mac App Store requires Snow Leopard 10.6.6 or higher and an Apple ID.)

  • How do I open a zip file attached to an email.

    The email is from a trusted individual

    First save it outside mail, e.g. on desktop; simply drag it there or use save function of attached files in Mail.app
    If you double click on it and does not open, the file is corrupt or incomplete.
    If you did that while in Mail.app, I assume the download had not yet been completed at the time you clicked on it.

  • Problem with attached zip file

    I received an email with a zip file attached, but whenever I try to open it I get the message "Unable to unarchive "filename.zip: into "Desktop." (Error 1 - Operation not permitted)"
    Can anyone help?

    Download Stuffit Expander which can open just about anything you throw at it. You can obtain this "free" utility from Versiontracker and Macupdate.

  • Zip file Mail attachment download in ios 7

    Hi
    I have downlaoded a zip file attachment from my Mail in ios 7 on Iphone. I am not able to locate the location of the file.
    Please help me in locating the file.
    Thanks

    Hi,
    as I found this in wikipedia:
    Another common problem is the use of '\n' when communicating using an Internet protocol that mandates the use of ASCII CR+LF for ending lines. Writing '\n' to a text mode stream works correctly on Windows systems, but produces only LF on Unix, and something completely different on more exotic systems. Using "\r\n" in binary mode is slightly better, as it works on many ASCII-compatible systems, but still fails in the general case. One approach is to use binary mode and specify the numeric values of the control sequence directly, "\x0D\x0A".
    Back to my issue:
    In the UDF I am adding "\r\n" but only the "\n" seems to survive!
    In Mapping test line feeds are available and the lines are shown as expected.
    Using Notepad ++ to open the created txt file from the mail shows that LF is in the file at each end of line but CR is missing.
    CR is only at the end of the last line in the file and is not from the UDF that creates the mail or the UDF that creates the attachment lines. Seems that this is added somewhere else behind the mapping.
    This is what I found in galileo computing
    (http://www.galileocomputing.de/glossar/gp/anzeige-11241/FirstLetter-Z, SORRY, only available in german language!):
    In Parsing of XML-Documents the XML-Parser changes the end of line delimiter internally in general to a simple line feed (LF, #0A) as usual in UNIX. ..... In Windows this could result in problems with readability of  source texts (e.g. in Notepad) which can be solved by choosing the right editor.
    My target application is on Windows and not able to "choose" the right editor (PI system is on windoes OS too) !
    But Im wondering where the CR at the end of the text comes from when all the \r\n will be replaced with \n as described.
    Ideas are really welcome!
    Best regards
    Dirk
    Edited by: Meinhard Dirk on May 31, 2011 2:45 PM

Maybe you are looking for