Trouble receiving multipart mime messages

I am encountering a problem which has me perplexed... I am attempting to create and send a simple multipart mime message through an smtp server which requires authentication. The thing is the mail gets delivered OK, but nothing appears in the body of the message nor are there any attachments. My code follows, wonder if anyone has any ideas... A full day of searching though Sun documentation, forums and internet surfing has not given me any help... sigh.. Thanks, Marc...
private void sendEmail(
     String emailURL,
     String notes) {
     String to = emailURL;
     String from = "[email protected]";
     String smtpHost = "mail.myservername.com";
     String user = "myId";
     String password = "myPassword";
     boolean debug = true;
     // create some properties and get the default Session
     Properties props = new Properties();
     props.put("mail.smtp.host", smtpHost);
     props.put("mail.smtp.auth", "true");
     Session session = Session.getDefaultInstance(props, null);
     session.setDebug(debug);
     try {
          // create a message
          MimeMessage msg = new MimeMessage(session);
          msg.setFrom(new InternetAddress(from));
          InternetAddress[] address = { new InternetAddress(to)};
          msg.setRecipients(Message.RecipientType.TO, address);
          msg.setSubject("Welcome to JavaMail");
          msg.setSentDate(new Date());
          // create and fill the first message part
          MimeBodyPart mbp1 = new MimeBodyPart();
          mbp1.setText(notes);
          mbp1.addHeaderLine("Content-Type: text/plain; charset=\"iso-8859-1\"");
          mbp1.addHeaderLine("Content-Transfer-Encoding: quoted-printable");
          // create and fill the second message part
          MimeBodyPart mbp2 = new MimeBodyPart();
          // Use setText(text, charset), to show it off !
          mbp2.setText("Eventually I plan to attach an image here");
          mbp2.addHeaderLine("Content-Type: text/plain; charset=\"iso-8859-1\"");
          mbp2.addHeaderLine("Content-Transfer-Encoding: quoted-printable");
          // create the Multipart and its parts to it
          MimeMultipart mp = new MimeMultipart("mixed");
          mp.addBodyPart(mbp1);
          mp.addBodyPart(mbp2);
          // add the Multipart to the message
          msg.setContent(mp);
          msg.saveChanges();
          // send the message
          javax.mail.Transport transport = session.getTransport("smtp");
          transport.connect(smtpHost, user, password);
          transport.sendMessage(msg, address);
          transport.close();
     } catch (MessagingException mex) {
          handleException(mex);
          Exception ex = null;
          if ((ex = mex.getNextException()) != null) {
               handleException(ex);

OH NEVER MIND!!!! What a NASTY NASTY NASTY trap! Shame on Sun and their design/implementation of JavaMail!!!! I didn't have the activation jar file installed on my server.... Gives no errors, no warnings, no exceptions are thrown! Absolutely no clue whatsoever that it is missing!!!
Marc..

Similar Messages

  • HT4623 Hi....I am having trouble receiving all text messages.  What do you suggest?  I just upgraded to the 5s

    How to fix my iphone 5s so that I can receive text messages?

    Are you referring to actual text (SMS) messages or iMessages? The fixes can be different.

  • Copy A Multipart Mime message and Edit it

    I need to read messages from an IMAP folder, change the Subject and append to another folder.
    Is there a way to make a copy of the Message object in which I can change the subject, without creating the message, copying piece by piece in a new Message object?
    TIA,
    Kevin

    The MimeMessage class has a copy constructor that does that. Your Message is almost certainly a MimeMessage, so just cast it to that.

  • Trouble receiving picture message

    I received a text message showing "message size:  30 KB, expires...." then the download button.  I touched the download button, it showed "downloading".  But no picture shown after it was done.
    Please advise what I did wrong?
    I saw one of the post in this forum about the same problem, so I followed the suggested fix:
    (Tap Messaging > Tap the menu key > Select Settings > Uncheck Auto Retrieve)
    after I did it, clicked the "download" button, it showed "downloading", after awhile, the button "download" reappeared.  No picture!!

    You're welcome.
    Just remember that if you leave data on, you may get data usage when you don't expect it, like when you're asleep, if the phone is doing updates (turning off automatic updates will help).

  • Trouble receiving international messages from one specific number

    I cannot receive international text messages from my dad’s phone who lives in the Czech Republic (Vodafone provider) since 12/2014.  There were no issues prior to that date, and he did not change his provider. I can receive text messages from other phones also serviced by Vodafone in the Czech Republic. I can successfully send text messages to phones in the Czech R., including my dad’s, and he can successfully send messages to other cell phones in the US. Simply put, every combination works just fine except for one direction from his phone to mine. I have iPhone 6+, iOS 8.3, and I am not blocking his number (Settings/Messages/Blocked). I troubleshot this issue with Vodafone, and they swear that his messages reach the US.  I deleted my dad’s contact and put it back, did not help. Any ideas what it could be? Thank you so much,Dudley

    Hey there
    I’m sorry to hear you have been unable to text your dad! We certainly need to help get this sorted out as soon as possible. What we can do is research our systems to see if there have been any issues on our end receiving those texts. Can you please send me a private message by Clicking Here and include the following information?
    Full name
    Cell number
    Dad’s number
    Best time to reach you
    Thanks!
    Charise

  • I received a spam message from my iCloud email to my hotmail account - what gives?

    So I have my Hotmail email and iCloud (@me.com) account on my iPhone. Suddenly today, I received an email from my @me.com account - to my Hotmail account - this is very odd as I rarely-to-never use my iCloud email account. So I have a feeling either A. it was a genuine security breach or B. it's some weird hoax.
    Yes, I know many people spam with names that look similar etc - but I've checked the message headers - and they appear like a legitimate message. Also, I replied to the message - and received it in my @me.com account. I'm not some n00b who calls the help desk - but was wondering if anyone else had this issue today...
    I've included the message header below - *note that I've replaced my real email address with 'main_user'
    x-store-info:J++/JTCzmObr++wNraA4Pa4f5Xd6uensxNRGNyaWNydXPXcED4E6wrUhfaiZqpZKByo GDWQObmTLUKdwtwlRkTRev4908JE96hAcKLDUvCgXNiY8OnYRCFzSWBzdcvGHfGDnW7FMhqY=
    Authentication-Results: hotmail.com; sender-id=pass (sender IP is 17.158.161.9) [email protected]; dkim=none header.d=me.com; x-hmca=pass
    X-SID-PRA: [email protected]
    X-SID-Result: Pass
    X-DKIM-Result: None
    X-Message-Status: n:0:n
    X-AUTH-Result: PASS
    X-Message-Delivery: Vj0xLjE7dXM9MDtsPTE7YT0xO0Q9MTtHRD0xO1NDTD0w
    X-Message-Info: NhFq/7gR1vRjUmbB+D0yqAkLsNaqWYoPZC+kT1p39YSm427nLMzOn27OajnAnounhvDMEvDB3BxOswC Q5ARMIJZpm6vNY6QFEeAiv0RCxttwFBeH3Jz380eNc/Wmov/uQK3yFnMXSDftfv8M3KMoxg==
    Received: from nk11p00mm-asmtp010.mac.com ([17.158.161.9]) by SNT0-MC3-F43.Snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
         Wed, 16 May 2012 12:09:55 -0700
    MIME-version: 1.0
    Content-type: multipart/alternative;
    boundary="Boundary_(ID_IkKHXnVwOqs8JawmT8F6hw)"
    Received: from nk11p00mm-spool001.mac.com ([17.158.161.66])
    by nk11p00mm-asmtp010.mac.com
    (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug
    10 2011)) with ESMTP id <[email protected]> for
    [email protected]; Wed, 16 May 2012 19:09:55 +0000 (GMT)
    X-Proofpoint-Virus-Version: vendor=fsecure
    engine=2.50.10432:5.6.7580,1.0.260,0.0.0000
    definitions=2012-05-16_08:2012-05-16,2012-05-16,1970-01-01 signatures=0
    X-Proofpoint-Spam-Details: rule=notspam policy=default score=45 spamscore=45
    ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
    adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000
    definitions=main-1205160215
    Date-warning: Invalid date header replaced by nk11p00mm-spool001.mac.com;
    original content: 16 2012 12:09:42
    Received: from localhost ([17.158.42.222]) by nk11p00mm-spool001.mac.com
    (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug
    10 2011)) with ESMTP id <[email protected]>; Wed,
    16 May 2012 19:09:45 +0000 (GMT)
    To: [email protected] <<<Some other addresses were here that appear in my contacts both in Hotmail and iPhone/iCloud>>>
    From: [email protected]
    Subject:
    Date: Wed, 16 May 2012 19:09:45 +0000 (GMT)
    X-Mailer: MobileMe Mail (1J25+8525)
    X-Originating-IP: [188.241.134.225]
    Message-id: <[email protected]>
    Return-Path: [email protected]
    X-OriginalArrivalTime: 16 May 2012 19:09:55.0678 (UTC) FILETIME=[7ACA77E0:01CD3397]
    --Boundary_(ID_IkKHXnVwOqs8JawmT8F6hw)
    Content-type: text/plain; CHARSET=US-ASCII; format=flowed
    Content-transfer-encoding: 7BIT
    Ways to make, earn or get money on the Internet   http://www.salvatorespagnolo.com/fastmoney.php?sypage=02tu1
    --Boundary_(ID_IkKHXnVwOqs8JawmT8F6hw)
    Content-type: multipart/related;
    boundary="Boundary_(ID_W03CW7iVvP4VrFE/UiqRZw)"; type="text/html"
    --Boundary_(ID_W03CW7iVvP4VrFE/UiqRZw)
    Content-type: text/html; CHARSET=US-ASCII
    Content-transfer-encoding: 7BIT
    <html><body>Ways to make, earn or get money on the Internet   http://www.salvatorespagnolo.com/fastmoney.php?sypage=02tu1</body></html>
    --Boundary_(ID_W03CW7iVvP4VrFE/UiqRZw)--
    --Boundary_(ID_IkKHXnVwOqs8JawmT8F6hw)--

    Also, I have same problem.
    In my case, I received a spam message from my iCloud to  other people. They r in my iCloud contact.
    my sent box isuue.
    case 1:
    sent date:
    5-16-2012 15:15
    subject:
    Re:
    body:
    Earn extra cash in your spare time!  
    case 2:
    sent date:
    5-16-2012 15:15
    subject:
    Re:9
    body:
    Start making money immediately without risk - from the comfort of your home  
    case 3:
    sent date:
    5-16-2012 15:15
    subject:
    (none)
    body:
    Step by Step How You Can Work From Home 
    case 4:
    sent date:
    5-16-2012 15:15
    subject:
    Re:f
    body:
    Get Back Some Financial Independence Into Your Life.
    Now, I've just changed my password immediately.
    Should I call to Apple suport center?
    <Links Edited by Host>

  • Convergence not displaying all of Mulitpart MIME messages

    Occasionally a message will come through, readable in IMAP, and even in Comms Express 6.3, but it's blank in Convergence 1u2.
    Invariably said message will always start with:
    "This is a multi-part message in MIME format."
    And in Convergence the rest of it is blank. Here's an example. The part that says "For those planning to go, Chotchky's at 5:30pm." is not visible in Convergence, but is visible over IMAP and in CE 6.3:
    Return-path: <[email protected]>
    Received: from mta4.school.edu ([10.1.106.74])
    by ms0.school.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar
    14 2008; 32bit)) with ESMTP id <[email protected]> for
    [email protected]; Thu, 20 Aug 2009 16:37:13 -0400 (EDT)
    Original-recipient: rfc822;[email protected]
    Received: from lyris.school.edu ([130.68.1.204])
    by mta4.school.edu (Sun Java(tm) System Messaging Server 6.3-8.01 (built
    Dec 16 2008; 32bit)) with SMTP id <[email protected]> for
    [email protected] (ORCPT [email protected]); Thu,
    20 Aug 2009 16:37:13 -0400 (EDT)
    Message-id:
    <LISTMANAGER-439878-20171-2009.08.20-16.37.06--me#[email protected]>
    Date: Thu, 20 Aug 2009 16:33:11 -0400
    From: Veep Headguy <[email protected]>
    Reply-to: Veep Headguy <[email protected]>
    Organization: School
    User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
    MIME-version: 1.0
    To: Information Technology <[email protected]>
    Subject: [msu-it-all] End of summer gathering
    Content-type: multipart/mixed; boundary=------------040003060804070804070803
    List-Unsubscribe: <mailto:[email protected]>
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: header
    --------- Information Technology mailing list --------
    This is a multi-part message in MIME format.
    --------------040003060804070804070803
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    For those planning to go, Chotchky's at 5:30pm.
    --------------040003060804070804070803
    Content-Type: text/x-vcard; charset=utf-8;
    name="vcard.vcf"
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename="vcard.vcf"
    begin:vcard
    ...snip...
    end:vcard
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: footer
    Veep Headguy, CIO of School
    --------------040003060804070804070803--

    Shane,
    After a long delay I'm looking at this issue again and your initial argument for the bug doesn't seem to hold true. We've switched mailing list providers since, which has resolved the "space on blank line" issue and the incorrect placement of the "multi-part MIME" message (at least for messages sent in plain text). Convergence (1u3 now) takes the header MIME portion, duplicates it, and does not display the message content.
    As the message source appears:
    Content-type: multipart/mixed; boundary="----------=_1277239432-28582-15"
    This is a multi-part message in MIME format...
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-header.txt"
    Content-Disposition: inline; filename="message-header.txt"
    Content-Transfer-Encoding: 8bit
    MIME-Version: 1.0
    X-Mailer: MIME-tools 5.427 (Entity 5.427)
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 7bit
    Still delicious, though.
    Adam N. Copeland
    Office of Information Technology
    Systems and Security Group
    www.montclair.edu/~copelanda
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
    Content-Disposition: inline; filename="message-footer.txt"
    Content-Transfer-Encoding: 8bit
    test-copelanda
    Your favorite chewing gum is coming back into style! Football.
    ------------=_1277239432-28582-15--How the message appears in Convergence:
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    test-copelanda Your favorite chewing gum is coming back into style! Football.

  • Multipart mime in XI for attachments?

    Hi,
    I am not big on all the terminology, so please me nice
    But in a discussion for B2B with a marketplace, the subject of recieving attachments came up and he asked if we could accept our attachments in Multipart mime. Now I know Binary and text of the attachment types, but I do not know how MIME format comes into play.
    Any explanation or a simple, yes you can accept attachment in multipartr mime would be fine!
    The adapter will be the HTTP adapter not an email adapter.
    Kind Regards,
    Chris

    Hi Chris,
    The HTTP adapter does not support multipart messages, but you can use the SOAP sender adapter in no-soap mode instead.
    When the SOAP adapter receives a multipart message, it creates an attachment for each part. The first part becomes the main payload, the other parts become attachments.
    The problem is, that most adapters can not work with attachments, so you need SOAP or Mail receiver adapter, Java or ABAP proxy to handle the attachments in receiver direction.
    Regards
    Stefan

  • Parsing mime message using MimeMessage seems to do nothing.

    I've loaded a mime message into a string, and I'm trying to parse it into a MimeMessage object, but it doesn't appear to do anything useful with it - it doesn't fail, but it just doesn't do anything!
    A segment of the code:
    System.out.println( "String size: " + msgTxt.length() );
    System.out.println( msgTxt );
    msg = new MimeMessage( session, new ByteArrayInputStream( msgTxt.getBytes() ) );
    System.out.println( "Class:" + msg.getContent().getClass().getName() );
    System.out.println( "Sender: " + msg.getSender() );
    System.out.println( "Content type: " + msg.getContentType() );
    System.out.println( "Subject: " + msg.getSubject() );
    System.out.println( "Lines: " + msg.getLineCount() );
    produces the following:
    String size: 1425
    Return-Path: <[email protected]>
    Received: from cs.ucl.ac.uk by lancaster.nexor.co.uk via JANET with NIFTP (XTPP) id
    <[email protected]>; Thu, 5 Jan 1995 17:46:35 +0000
    To: <IETF-Announce:;>
    From: [email protected]
    Subject: I-D ACTION:draft-ietf-mailext-pipeline-01.txt
    Date: Thu, 05 Jan 95 10:53:24 -0500
    Message-ID: <[email protected] I.Reston.VA.US>
    Mime-Version: 1.0
    Content-type: Multipart/Mixed; boundary="NextPart"
    --NextPart
    Content-type: text/plain; charset="us-ascii"
    A Revised Internet-Draft is available from the on-line Internet-Drafts directories.
    This draft is a work item of the Mail Extensions Working Group of the IETF.
    Title : SMTP Service Extension for Command Pipelining
    Author(s) : N. Freed, A. Cargille
    Filename : draft-ietf-mailext-pipeline-01.txt
    Pages : 9
    Date : 01/04/1995
    This memo defines an extension to the SMTP service whereby a server can indicate
    the extent of its ability to accept multiple commands in a single TCP send operation.
    Using a single TCP send operation for multiple commands can improve SMTP
    performance significantly.
    --NextPart
    Content-type: Message/External-body;
    name="draft-ietf-mailext-pipeline-01.txt";
    site="ds.internic.net"; access-type="anon-ftp"; directory="internet-drafts"
    Content-Type: text/plain
    Content-ID: <[email protected]>
    --NextPart
    Class:java.lang.String
    Sender: null
    Content type: text/plain
    Subject: null
    Lines: -1
    Am I missing the point here, or should it have parsed a mutipart body?
    Any suggestions as to what I'm doing wrongly would be greatly appreciated.
    Thanks!

    What chance did I have - my program was adding a blank line to the msgTxt string at the beginning, and then when I'd sorted that out, my sample mime message has blank lines after each separator so of course it didn't work.
    Thanks for seeing that the problem actually was the "almost invisble", which is perhaps why I'd overlooked it so many times, and why something that should have been simple, seemed to be so excruciatingly difficult!

  • Not Receiving Text (SMS) Messages (On Rogers Network)

    I have recently been experiencing trouble with my iPhone 4s. I would send text messages, however, the recipient would receive them, text me back and I would not get their texts back. After a few days or so, I would receive all the texts I did not receive in bulks. This has happened a few times already. My friends/family members who own a Blackberry have been receiving a notification that there is network congestion. (However, iPhone or Android users do not receive the same notification). No one I know is experiencing the same problem as I am.
    I am on the Rogers network, texting phones (Blackberrys, iPhones, Androids) on the Fido, Rogers, Telus and Bell networks.
    Is this a network problem or a phone problem?

    I am having the exact problem - also a Rogers Customer with an iPhone 4S.   The rest of my family have Blackberrys (on Rogers, and Koodo).    When they text or BBM each other they each receive each others messages immediately.    When I try to text them, most times they receive the text after a delay which can be several minutes or up to a few hours.   Oddly, when they respond to the text, I receive the response immediately.
    I believe this to be a hardware related issue, and am trying to isolate when it happens.    BTW - I get a similar problem with email - where it will not send and eventually goes to the outbox.    I have to resend and sometimes have to disconnect from the network (by turning on Airplane Mode) then re-connect before the emails get sent.
    BTW, I am not running IOS 6 yet because I do not want to lose Google maps.   Running - 5.1.1

  • Receiving an error message when trying to do back up my files with windows backup and restore files

     I received this error message from my windows vista ultimate automatic backup did not complete. I clicked details  in the message and it says " An error occurred. The following information might help you reslove the error: (Access is denied
    0x80070005). Can Anyone help me resolve this issue? Thx.
    DAG

    I have been backing up to the same location for almost a year. I had trouble backing up to this location went I first set it up it is my external HDD. I resolved it after following suggestions from someone from this forum but that thread reply has been
    deleted I looked for it I found the thread but the information in the reply is gone and I can't remember what I had to do to get it to work again.
    DAG

  • HT1926 Can't download iTunes on my laptop receive following error message- an error occurred during the installation of assembly Microsoft vc80.CRT.type="win32", version 8.0.50727. 6195 public key token= ifc8b3b9a1e18e3b process architecture=x86hresult:00

    Can't download iTunes on my laptop receive following error message- an error occurred during the installation of assembly Microsoft vc80.CRT.type="win32", version 8.0.50727. 6195 public key token= ifc8b3b9a1e18e3b process architecture=x86hresult:0073

    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • B2B Message Error - Decrypting S/MIME message failed

    Hi,
    Am getting following error when i receive the inbound message from trading partner
    I have set up the certificates on both sides.
    [2010-04-15T19:53:18.981-04:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@a8acf9] [userId: <anonymous>] [ecid: 0000IW2gpmo7MAYVLqBT8A1BlpVK00000E,0] [APP: soa-infra] [composite_name: StockXferRecSOA] [component_name: StockBPEL/StockXferReciptService] [component_instance_id: 310009] Error -: B2B-51093: Decrypting S/MIME message failed {0}.[[
    Error -: B2B-51093: Decrypting S/MIME message failed {0}.
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.decrypt(SmimeSecureMessaging.java:1024)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processEncryptedMimeBodyPart(MimePackaging.java:1107)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processInputStreamOrStringMessage(MimePackaging.java:1173)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processMessageContent(MimePackaging.java:793)
         at oracle.tip.b2b.packaging.mime.MimePackaging.doUnpack(MimePackaging.java:726)
         at oracle.tip.b2b.packaging.mime.MimePackaging.unpack(MimePackaging.java:632)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1583)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1395)
         at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3216)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:2960)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2706)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:540)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:200)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    [2010-04-15T19:53:18.981-04:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@a8acf9] [userId: <anonymous>] [ecid: 0000IW2gpmo7MAYVLqBT8A1BlpVK00000E,0] [APP: soa-infra] [composite_name: StockXferRecSOA] [component_name: StockBPEL/StockXferReciptService] [component_instance_id: 310009] Error -: B2B-51093: Decrypting S/MIME message failed {0}.[[
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.decrypt(SmimeSecureMessaging.java:1024)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processEncryptedMimeBodyPart(MimePackaging.java:1107)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processInputStreamOrStringMessage(MimePackaging.java:1173)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processMessageContent(MimePackaging.java:793)
         at oracle.tip.b2b.packaging.mime.MimePackaging.doUnpack(MimePackaging.java:726)
         at oracle.tip.b2b.packaging.mime.MimePackaging.unpack(MimePackaging.java:632)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1583)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1395)
         at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3216)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:2960)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2706)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:540)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:200)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    [2010-04-15T19:53:18.981-04:00] [soa_server1] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@a8acf9] [userId: <anonymous>] [ecid:
    Thanks,
    Arun Jadhav                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Arun,
    Problem is that B2B is not able to decrypt the incoming message. There could be two possible reasons behind this -
    1. Your TP is not encrypting the message from your client certificate's public key (you should provide your client cert's public key to your TP and ask them to use that for encrypting the messages)
    2. You have not set up the corresponding private key at your B2B (in Host TP configuration and in deliver channel configuration of host TP)
    Please paste the complete log here/mail it to my id.
    Remote trading partner should encrypt the message using your your client cert's public key and you should decrypt it using your private key.
    For this ask your trading partner to encrypt the message using your provided public cert and at your side select the same cert in the delivery channel of your host DC under encryption credential. Make sure that keystore is containing this cert's private key.
    Regards,
    Anuj

  • Javax.mail.internet.ParseException when trying to send a MIME message

    Hi,
    I am using JavaMail to send a MIME message, but I am getting the following exception:
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at javax.mail.MessagingException.<init>(MessagingException.java:34)
    at javax.mail.internet.ParseException.<init>(ParseException.java:27)
    at javax.mail.internet.ParameterList.<init>(Compiled Code)
    at javax.mail.internet.ContentType.<init>(ContentType.java:82)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1051)
    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
    at javax.mail.Transport.send(Transport.java:101)
    at FPSend.main(Compiled Code)
    The problem seems to be the header of the message, specifically the class-id filed of the content-type. This is the content-type header that causes javaMail to throw that exception:
    Content-Type: multipart/alternative;
    boundary="------------110059296832670";
    class-id=11:9sc9bnYwM87box:2680047
    I think the ":" character in the class-id is causing the problem. Does anybody know if those characters are valid according to MIME standards? And if they are not valid, is there a work around this problem?
    thank you!

    RFC 2046 doesn't mention the existence of the class-id parameter. But it does say this:Thus, a typical "multipart" Content-Type header field might look like this:
         Content-Type: multipart/mixed; boundary=gc0p4Jq0M2Yt08j34c0p
    But the following is not valid:
         Content-Type: multipart/mixed; boundary=gc0pJq0M:08jU534c0p
    (because of the colon) and must instead be represented as
         Content-Type: multipart/mixed; boundary="gc0pJq0M:08jU534c0p"From what I see elsewhere, Class-ID is a Microsoft extension. It wouldn't be surprising to find that Microsoft uses extensions that are incompatible with the MIME standards.

  • Troubles generating an error message in WebDynpro ABAP

    Good evening guys.
    I set the following code in enhancement method (pre-method) of ONACTIONNAVIGATE method, which is triggered after push the "Review" button in WebDynpro Application FITE_REQUEST:
    method PRED78YJIDJ8M8KXTC2MXQI1XK5O . "Exit of ONACTIONNAVIGATE (in ZENH_FITV_FPM_02 )
      data: L_CURRENT_CONTROLLER type ref to IF_WD_CONTROLLER,
            L_MESSAGE_MANAGER    type ref to IF_WD_MESSAGE_MANAGER,
            TEKSTO TYPE STRING.
      IF NAVIGATION_TYPE = 'FORWARD'.
        L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
        call method L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
          receiving
            MESSAGE_MANAGER = L_MESSAGE_MANAGER.
    report message
    CALL METHOD l_message_manager->REPORT_T100_MESSAGE
      EXPORTING
        MSGID                     = '00'
        MSGNO                     = '398'
        MSGTY                     = 'E'
        P1                        = 'Test'
        P2                        = 'Test2'
       P3                        =
       P4                        =
       MSG_USER_DATA             =
       IS_PERMANENT              = ABAP_FALSE
       SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CONTROLLER
       VIEW                      =
       SHOW_AS_POPUP             =
       CONTROLLER_PERMANENT_MSG  =
       MSG_INDEX                 =
         CANCEL_NAVIGATION         = 'X'
       ENABLE_MESSAGE_NAVIGATION =
    RECEIVING
       MESSAGE_ID                =
    ENDIF.
    endmethod.
    Unfortunately, this code is not working, because the message is not appearing. I generated this piece of code with the WebDynpro Code Wizard, but even so is not working.
    The standard application generates standard messages an places them in WDR_MESSAGE_AREA WD component, in the View MESSAGE_AREA, regarding blanks in text fields that are located on another WebDynpro component (FITE_VC_GENERAL_DATA, view GENERAL_DATA_VIEW). I put my own code in WD component FITV_FPM, in the LAYOUT_VIEW. But I wanna the messages also appear at WDR_MESSAGE_AREA WD component, MESSAGE_AREA view.
    Do you know why I am having trouble generating an error message in this standard Webdynpro? It is not possible to generate an error message to appear in another Webdynpro component, but the same WD application?
    Regards guys!

    Hi
    you can store message ID, message no and message type in the context node in ur exit and make this context node interface enabled. Map this node to the component where you want todisplay the message. read the context node .
    Call the method for displaying the messages and pass message id, no and type from context node.
    invalidate this context node using method "invalidate" from interface if_wd_context_node.
    Regards
    Vishal kapoor

Maybe you are looking for