IMAPInputStream instead of Multipart when handling MIME message

Hi all,
I'm creating standalone java application, which read e-mails from exchange server using IMAP protocol.
I have a problem with handling MIME Multipart messages. My message is type of "multipart/alternative", but content is IMAPInputStream instead of Multipart object and I don't know why.
if (message.isMimeType("multipart/alternative")) {
  System.out.println(message.getContent().getClass()
}and i get >>> class com.sun.mail.imap.IMAPInputStream
I found only 1 advice - to have a mail.jar before activation.jar in classpath, but this didn't help. {I'm using latest jars}
Thanks for any answer.
Regards,
djuri

If it wasn't being loaded from the mail.jar file, something else is
broken in your environment. You might want to look for the root
cause and fix it before it causes other problems.
Note that there are other configuration files that are read from
mail.jar, and not all of them can be copied to your home directory.

Similar Messages

  • Getting javax.mail.internet.ParseException when parsing MIME message

    Hi All,
    The MIME Content Type is as below.
    Content-Type: application/pdf;
    name="ecm-000669.pdf";
    Content-Disposition: attachment;
    filename="ecm-000669.pdf";
    When executing the following statement
    ContentType ct = new ContentType(contentType);
    where contentType is application/pdf;
    name="ecm-000669.pdf";
    Getting the below error
    javax.mail.internet.ParseException
         at javax.mail.internet.ParameterList.<init>(ParameterList.java:61)
         at javax.mail.internet.ContentType.<init>(ContentType.java:83)
         at oracle.apps.fnd.wf.common.MIMEUtils.handleContent(MIMEUtils.java:488)
         at oracle.apps.fnd.wf.mailer.EmailParser.processSingleContent(EmailParser.java:1851)
         at oracle.apps.fnd.wf.mailer.EmailParser.parseBody(EmailParser.java:2166)
         at oracle.apps.fnd.wf.mailer.EmailParser.parseEmail(EmailParser.java:1195)
         at oracle.apps.fnd.wf.mailer.IMAPResponseHandler.processSingleMessage(IMAPResponseHandler.java:255)
         at oracle.apps.fnd.wf.mailer.IMAPResponseHandler.processMessage(IMAPResponseHandler.java:92)
         at oracle.apps.fnd.cp.gsc.SvcComponentProcessor.process(SvcComponentProcessor.java:659)
         at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283)
         at java.lang.Thread.run(Thread.java:534)
    The error is not happening when I remove the semi colon at the end of content-type header as shown below
    Content-Type: application/pdf;
    name="ecm-000669.pdf"
    Can you please tell that semi colon at the end of Content-Type header is not supported in MIME standard? This MIME is coming from the rediff email client. Is there any parameter in Java Mail API to avoid these kind of issues?

    Yes, a trailing semicolon violates the MIME syntax spec.
    You can work around this bug in the client by setting the System property "mail.mime.parameters.strict" to "false",
    as described here: http://javamail.kenai.com/nonav/javadocs/javax/mail/internet/package-summary.html

  • Problem when handling multiple messages using sequential convoy

    Hi Guys,
    We receive two files from FTP server. One is Order file and other one is notes file which is optional one. If the note flag in order file is 1 then we should process notes file as well. Here we implemented sequential convoy and it was working fine when we
    receive order file first and then notes file. it is throwing error when we receive notes file first as we set initialize correlation for Order file.  Please share your ideas what to do when we receive notes file first than order file?. Thanks!!

    Hi,
    i added debug points and ran it. i dropped one order file and one note file but it is initializing active instance for both order and note files. Here is the order of logs.
    Initialized Order
    Initialized Note
    followed Note

  • E-mail receiver QPAC crashes when receiving MIME/multipart messages with various subparts

    Hi,
    does the E-Mail receiver currently support MIME/multipart messages which contain various subparts?
    When receiving a mime message like
    message 34
    over here, E-Mail receiver stalls and throws the following exception:
    Exception occurred - explicitly stalling action. Exception:com.adobe.workflow.pat.PATRuntimeException: The attachment null could not be retrieved because its type cannot be handled by this qpac. Type: class javax.mail.internet.MimeMultipart
    Does e-mail receiver currently support mime/multipart messages containing various subparts or not?
    Is there anyone out there to clarify this?
    Steve

    Hmm. No unfortunately I cannot send you the original message because I didn't keep it.
    But never mind. We managed to implement a simple workaround: the Email server reformats emails before forwarding them to the workflow server. Which is quite good a solution since the workflow doesn't care about message-bodies but about attachments. So, it's safe to reformat the message body (or even throw it away).
    Steve

  • 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.

  • I use the apple email in my mac air. When I foward messages, people that use Outlook receive the text in form of attachment instead of the message opened in the body of the email. How can I solve this?

    I use the apple email in my mac air. When I foward messages, people that use Outlook receive the text fowarded in form of attachment instead of the message opened in the body of the email. How can I solve this? Thanks. Best regards.

    this:
    Did not exist at the point of delivery to the consumer.
    Nor did the white corrosive agent present exist at the point of sale.
    " exposure   of copper   alloys   to   moisture   or   salt   spray   will   cause   the formation  of  blue  or  green  salts  called  verdigris.  The presence   of   verdigris   indicates   active   corrosion."
    I see also 2 contact points with DEEP corrosion pitting not indicative of any defect from the factory.

  • 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..

  • 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!

  • Parsing MIME message and Constructing a MIME message

    Hi All,
    I want to formulate a MIME message in NetweaverXI. The MIME messsage will contain a cXML and an attachment. Then send the message to a JCA adapter.
    Similarly when the JCA adapter sends a MIME message i want to parse it and get access to each part of the MIME message.
    Is there any support available for MIME in NetweaverXI? Are there any sample examples for the same?
    The message will be in the below format.
    --Bouundary
    Content-Type: text/xml; charset=UTF-8
    Content-ID: 1255070783528.1638087094
    <cXML>
    <Attachment>
    <url> AAAAA</url>
    </Attachment>
    </cXML>
    --Bouundary
    Content-Type: text/xml; charset=UTF-8
    Content-ID: AAAAA
    Attachment
    Bouundary
    Any help will be really appreciated.
    Thanks

    Hi Ameeth,
    Please check the link below:
    /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Also, Mail can be processed using Java Mail API. Below is the code snippet send mail.
         public static boolean sendMail(String mailHost, String toAddress ,String fromAddress, String ccAddress,String subject,String mailbody,String attachmentContent,String attachmentName,MessageKey messageKey, AuditAccess audit) throws MessagingException{
              String subloc = "JavaMailSender.sendMail()";
              PIFTWrapper.entering(subloc);
              audit.addAuditLogEntry(messageKey, AuditLogStatus.SUCCESS, "Sending Mail to SMTP server");
              Properties properties = new Properties();
              properties.setProperty("mail.smtp.host", mailHost);
              Session session = Session.getInstance(properties,null);
              MimeMessage mimeMessage = new MimeMessage(session);
              mimeMessage.setFrom(new InternetAddress(fromAddress));
              mimeMessage.setRecipients(RecipientType.TO, toAddress);
              mimeMessage.setRecipients(RecipientType.CC, ccAddress);
              mimeMessage.setSubject(subject);
              mimeMessage.setSentDate(new Date());
              MimeBodyPart contentMimeBodyPart = new MimeBodyPart();
              contentMimeBodyPart.setDisposition(MimeMessage.INLINE);
              contentMimeBodyPart.setText(mailbody);
              MimeBodyPart attachmentMimeBodyPart = new MimeBodyPart();
              attachmentMimeBodyPart.setDisposition(MimeMessage.ATTACHMENT);
              attachmentMimeBodyPart.setFileName(attachmentName);
              attachmentMimeBodyPart.setText(attachmentContent);
              Multipart multipart = new MimeMultipart();
              multipart.addBodyPart(contentMimeBodyPart);
              multipart.addBodyPart(attachmentMimeBodyPart);
              mimeMessage.setContent(multipart);
              mimeMessage.saveChanges();
              Transport.send(mimeMessage);
              PIFTWrapper.exiting();
              audit.addAuditLogEntry(messageKey, AuditLogStatus.SUCCESS, "Mail Sent");
              return true;
    Similar processing can be done using Java Mail API for incomming messages.
    Regards,
    Sumant
    Edited by: SumantKRaja on Oct 20, 2009 8:07 AM

  • How to update a ListBox binding when a toast message arrives in windows phone

    I have a MVVM windows phone application and it has a Home page where after entering login data it goes to "Posts" page.
    Posts page has PostsModel with the following data :
    class MyClass
    public string NewPostText { get; set; }
    public string NewPostSender { get; set; }
    public string NewPostAttachment { get; set; }
    "Posts" page has the following View Model and GetPosts will read data from isolatedstorage for now i have hardcoded with some static data though.This data needs to be stored back to isolated storage while exiting the app.
    private PostsViewModel _PostsViewModel ;
    public Conversation()
    InitializeComponent();
    _PostsViewModel = new PostsViewModel ();
    this.DataContext = _PostsViewModel ;
    public ObservableCollection<PostsModel> MyPostsDataSource
    get
    if (_MyPostsDataSource== null)
    _MyPostsDataSource= GetMyPosts();
    return _MyPostsDataSource;
    set
    this._MyPostsDataSource = value;
    RaisePropertyChanged("MyPostsDataSource");
    "Posts.cs" has only the following code:
    protected override void OnNavigatedTo(NavigationEventArgs e)
    base.OnNavigatedTo(e);
    "Posts" page has the following xaml:
    <ListBox x:Name="listMyPosts" ItemsSource="{Binding Path=MyPostsDataSource}" Grid.Row="0" >
    <ListBox.ItemTemplate >
    <DataTemplate >
    <StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding NewPostText ,Mode=TwoWay}"/>
    <TextBlock Text="{Binding NewPostSender}"/>
    </StackPanel>
    <Image x:Name="SenderImage" Margin="8" Source="/MyApp;component/Assets/Icons/NewPostAttachment.png"/>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>
    First time when app loads the static data i have shows all the data in the list box without any issues but when a toast message comes all the data is gone and also the new message is also not displayed.
    The question i have is when i get a new toast message(to Posts.xaml page) i just want to refresh the current Posts page with the latest message details . And i dont know how to do this and whether i need to handle this in the page NavigatedTo method(if
    so how do i refresh the or atleast reload the Posts.xaml page with its PREVIOUS data plus the new data as well) as the toast notification has the navigation uri of "/Posts.xaml" page.
    I would really appreciate any help on this ?

    For comparison , Its like a Chat application. When a new message comes and the message is from the user for which the conversation page is already open then we just append the message to it.
    In ShellNotificationReceived we are just calling the "Posts.xaml" page.
     Relative Uri here is " /View/Posts.xaml" plus some paraemters like sender email id , sender message and the image..
    Application.Current.RootVisual
    asPhoneApplicationFrame).Navigate(newUri(relativeUri,
    UriKind.RelativeOrAbsolute))
    Krrishna

  • Issue while parsing the chinese character from Mime Message

    Hi,
    I have a issue with the chinese characters while parsing the mime message (MimeBodypart). In the MimeMessage charset is mentioned as "gb2312". i am using the MimeBodyPart.getContent() to get the content. When mimetype is html, it will be uploaded as a file to an FTP site (wapache commons net - ftp client). When uploaded file is viewed, the content is displayed as garbage text.
    i tried the following but it didnt work. i got the inputstream from the Mimebodypart. and then created InputStreamReader and used the encoding "GB18030" while initializing the content. i got the String out of it and stored in the file. i just replaced "Gb2312" with "UTF-8" in the html string. While creating the output file, i used the UTF-8 encoding. when opened this file using IE, it is displaying the character without any issues. i examined the file and the file encoding is UTF-8 as expected.
    but when i upload the file to FTP site and view, the text is not displayed correctly. It seems the file encodig is ANSI. i used the Notepad++ to examine these files. Please note that we use apache comments net - FTp client to upload the file.
    below are my questions:
    am i doing the right thing? it seems mime message was created using outlook.
    How to upload a file to FTp withe file base encoding is "UTF-8" or some other ?
    below are few references
    http://www.anyang-window.com.cn/tag/java-gb2312/
    JavaMail: Chinese Simplified Character Problem

    Thank you for the Replies. i am using the binary mode and it works fine for most of the files. i found that the issue here is not while uploading but the content itself. the characters present in the Mimemessge is not as per the charset. Hence i could not upload the content as it is. This happens only when charset is GB2312 (chinese). it seems that Mimemessage contains the characters which cannot be represented by Gb2312 but can be represented by Gb18030. Hence i converted the content using from Gb18030 to UTF-8 and created a file. i used the SetControlEncoding("utf-8") to upload the file and it is working fine.

  • BPM handle empty message in send step

    Hi, Friends:
    I have a following BPM sceario(PI7.1 EHP1)
    It mainly has following steps:
    Receive -> Transformation (Multi-Mapping) -> Fork (4 branches: one send step each branch)
    The multi-mapping result is to generate 4 types of messages based on logic.
    Sometimes all 4 types of message generated, and sometimes only one type of message generated.
    When there is a message not generated, the send step generate error which is not caught in exception branch.
    I searched forum, so far not lucky to find solution.
    Any idea how to  handle empty message (do not send it) in send step?
    Regards
    Liang
    Edited by: Liang Ji on Dec 7, 2010 8:42 PM

    Hi, Abhishek:
    The reason to use Fork is that all the branches can be reached.
    By using switch, it only judge one input value and only one condition turns true.
    Actually in most cases, the number of my input value is more than one, saying two or more message types generated.
    And this is not multi-line situaion, because the messages generated are different types.
    Your reply remind me to add switch inside fork.
    Regards
    Liang
    Edited by: Liang Ji on Dec 8, 2010 5:32 PM

  • Can't open PDF's on my Mac coming in on MS Outlook 2010. Reinstalled Adobe software 4 x and still get "Adobe PDF Preview Handler" error message.

    Can't open PDF's on my Mac coming in on MS Outlook 2010. Reinstalled Adobe software 4 x and still get "Adobe PDF Preview Handler" error message.

    No. Reader will not damage files. It is only meant to read pdf files. PDF files are frequently damaged when sent as email due to encoding issues.

  • 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

  • Handling log messages in procedure

    Hi All,
    Which is the best way to handle log messages in procedures or packages.When I run a procedure it is taking long time and getting cunfuse it is running or not.Please let me know how to handle log messages other than dbms_ouput and inserting values to log table.
    Thanks & Regards,
    Rajasekhar

    It really depends on what you want.
    If you want to see what stage of a procedure you are at, then DBMS_application_info is the way to go.
    You set the name and text in the package and the current state seT can be seen in v$SESSION
    Of course it helps if you remember to set it to finished before it ends.
    The other alternative I like is to have an autonomous procedure which logs the steps.
    You just pass a call to the procedure.
    The benefit of this is that the commits are effectively in another session, so won't affect your existing procedure.
    You can also code this in such a way that it is off by default but you can turn it on eg by changing a value in a db column.
    If I did this, I would have it so that each individual procedure/function within a package could be turned on as necessary.
    This means that you can turn your tracing on just for a specific problem even for a production system without affecting the vast majority of users.
    Edited by: Keith Jamieson on Jan 6, 2009 11:10 AM
    FIXED TYPO:

Maybe you are looking for

  • Can I use my time capsule for back up only and not as a router?

    I have been trying to set up my time capsule as a router but have not been successful, the dsl I am using is not responding. Can I just use my time capsule as a back up device and not as a router? if so how can I do this?

  • Outstanding performance: OfficeJet Pro 8500

    I have a HP OfficeJet Pro 8500 A909g Series printer, and just wanted to remark on once again having a pleasant surprise with its function.  I had a multi-page paper-based survey that I had earlier printed in duplex mode on my 8500.  Tonight, the memb

  • Update Named query in EJB

    Hi Experts, I have created an EJB DC to interact with CE database using JPA's and named query. My read query is working fine and i can see the output in WS Navigator. For "Update" i have written a named query like : @NamedQuery(name = "updatePos", qu

  • Are there any "execute once" buttons in labview?? (the likes of command buttons in VB)

    In VB, a button can be able to exucute a task or command once when pressed, in other words, we can NOT hold down this button as in the following case: Command1_Click() text3 = text1 + text2 Note,that if the form is still running and yo add new number

  • How do I get photos from old device backups

    I used to have an iphone for work and backed it up before I switched jobs - I also have a personal iphone that I had to replace after it broke.  I have backups sitting on the icloud from all these devices.  Can I access them?