SAP EP whit the MS Exchange server Integration Help

Hi Guys,
Need some help, I'm trying to integrate my SAP EP whit the MS Exchange server to view the calendar options but there is not much update help out there, Iu2019m using Connectivity Architecture based on CDO and working whit exchange 2007 and Netweaver 7.0 ehp 1
I get these errors:
When Iu2019m on the collaboration room service at the calendar iview
1. An exception occurred while reading or writing from/to the IIS server
And this one when Iu2019m on the content administration window at collaboration at the calendar review
2. Portal runtime error.
An exception occurred while processing your request. Send the exception ID to your portal administrator.
Exception ID: 02:43_01/09/11_0001_6559750
Please Help me whit this, if u have some update guide to do this integration ill be grateful
Regards,
Eli Daniel

Hi,
I am new in SAP EP and the implementation till going on in our company. I follow the below link which is help for me.
Can you please check it..May be it will help you too..
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/08def089-0a01-0010-9c82-ee2040b4eced?quicklink=index&overridelayout=true
Regards
Bhuban

Similar Messages

  • How To Setup A Local Exchange Server Integrated With Office365 For A Single Mailbox

    Hello,
    We recently migrated to Office365 but had an issue since we need more than 16 simultaneous connections to a single mailbox. Because of this, we need to deploy a local Exchange Server that will be used to host a single mailbox that requires up to 500 simultaneous
    connections for a Contact Center application. I'm looking for information on how to setup the local Exchange Server to basically create a local instance of a mailbox hosted on Office 365. So we can have our application open the numerous simultaneous connections
    to our local server which will then connection to Office 365 to send/receive email through the mailbox hosted on Office365.
    Please let me know if you have any information or resources you can direct me toward.
    Thanks,
    Chris

    Hi,
    To deploy local Exchange server integrated with Office 365, we can depend on Exchange Server Deployment Assistant:
    http://technet.microsoft.com/en-us/exdeploy2013/Checklist?state=2419-W-AAAAAAAAQAAAAAEAAAAAAAA%7e
    Please note that there may be 9646 error if there are many simultaneous connections at the same time.
    Thanks,
    Angela Shi
    TechNet Community Support

  • Missing the "Microsoft Exchange Server Auth Certificate"

    Hi Everyone,
    I have a single Exchange box.    
    Was integrating my Lync and Exchange and noticed some issues after configuring my Lync pre-reqs: http://technet.microsoft.com/en-us/library/jj721919.aspx
    Following the line of communication and event logs, I quickly saw that the error was not on my Lync Server, but on my Exchange.  The "Microsoft Exchange Server Auth Certificate" that is created during Ex2013 install was missing.
     It was not there to give out tokens for the Server to Server authentication required to integrate Lync, Exchange, and Sharepoint.
    Running Get-AuthConfig: http://technet.microsoft.com/en-us/library/jj215766(v=exchg.150).aspx
    pointed to a thumbprint that did not exist anymore.  
    I confirmed this by checking the local cert store (local computer>personal>certificates), looking in the ECP (servers>certificates), and also running Get-ExchangeCertificate
    In my Exchange Server event log, I found the following errors: 
    Log Name: Application
    Source: MSExchange Certificate Deployment
    Date: 6/8/2014 4:00:50 AM
    Event ID: 2005
    Task Category: General
    Level: Warning
    Keywords: Classic
    User: N/A
    Computer: server.domain.com
    Description:
    Federation or Auth certificate not found: ED2C3E86EBE821AAC2C0DEA85CAB5787E2CAC5F3. Unable to find the certificate in the local or neighboring sites. Confirm that the certificate is available in your topology and if necessary, reset the certificate on the Federation
    Trust to a valid certificate using Set-FederationTrust or Set-AuthConfig. The certificate may take time to propagate to the local or neighboring sites.
    Event Xml:
    2005
    3
    1
    0x80000000000000
    2391484
    Application
    server.domain.com
    ED2C3E86EBE821AAC2C0DEA85CAB5787E2CAC5F3
    AND
    Log Name: Application
    Source: MSExchange OAuth
    Date: 6/8/2014 1:25:41 PM
    Event ID: 2004
    Task Category: Configuration
    Level: Warning
    Keywords: Classic
    User: N/A
    Computer: server.domain.com
    Description:
    Unable to find the certificate with thumbprint ED2C3E86EBE821AAC2C0DEA85CAB5787E2CAC5F3 in the current computer or the certificate is missing private key. The certificate is needed to sign the outgoing token.
    Event Xml:
    2004
    3
    2
    0x80000000000000
    2397430
    Application
    server.domain.com
    ED2C3E86EBE821AAC2C0DEA85CAB5787E2CAC5F3
    Googling has only produced one article that is about another issue that I would have found further down the line if I wasn't testing within the pre-reqs.  The solution is the same, but the article is somewhat poorly written and does not respond to all
    the comments enough to leave one feeling it's 100% correct.  
    http://blogs.technet.com/b/jenstr/archive/2012/11/22/getting-internal-server-error-500-when-creating...
    The broad strokes are clear:
    The fix is to create a new "Microsoft Exchange Server Auth Certificate" by using the following sequence of cmdlets In EMS on the MBX server:
    1. New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn= Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -Services smtp
    Do not accept to replace the SMTP certificate when prompted
    2. Note the thumbprint of the new certificate. Let us assume it is 7A39541F8DF58D4821967DD8F899B27410F7C081
    3. $a=get-date
    4. Set-AuthConfig -NewCertificateThumbprint 7A39541F8DF58D4821967DD8F899B27410F7C081 –NewCertificateEffectiveDate $a
    Accept to continue despite the fact that the certificate effective date is not 48 hours into the future
    5. Set-AuthConfig –PublishCertificate
    6. Make sure to remove any potential reference to the previous certificate (which might not exist anymore) by doing Set-AuthConfig -ClearPreviousCertificate.
    Remember to do iisreset on both CAS and MBX servers. Then finally, you can try to re-issue the New-CsPartnerApplication cmdlet.
    65 Million Dollar question:
    Is the syntax in part 1 correct?  Two people says to add the domain?  Jens responds, but it's vague.  What would the correct command look like?  I do not know where to add the -DomainName within the command and which name I
    should add?  The FQDN of the CAS?
    New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn= Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -DomainName server.domain.com -Services
    smtp
    Thank you everyone

    Hi,
    Yes, we need to specify a valid FQDN for either the Subject or the DomainName parameter. Please run the following command:
    New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn= Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -DomainName server.domain.com -Services
    smtp
    Then following the other steps in your posting to re-create the Microsoft Exchange Server Auth Certificate.
    Regards,
    Winnie Liang
    TechNet Community Support

  • Securing your Email from SAP with security signatures from exchange server

    Hello
    I have been exploring a solution for the following requirement:
    Important Emails such as HR payslips which are being generated from SAP need to be encrypted using security signatures stored at an exchange server.
    I have looked at Secure email proxy but I believe that is a more standard functionality, the payslips are being generated, being converted into pdfs and are being sent as an attachment in emails,all custom coding.
    Is there a way to utilize the secure email proxy feature using custom code?
    Are there other ways to use the existing signatures at the exchange server. Help.sap.com also mentions a badi - SX_secure_email - would this suffice for my needs?
    Thank you

    Generating the request with a particular user who has the parameter set to on gets the trick done.

  • No e-mail address for contact on the same Exchange server in "From", when access is limited by address book policy

    Hello,
    I have following awkward situation:
    I have [email protected] and [email protected] on the same exchange server.
    Address book policies for this users are configured in such way, so contoso.com users do not see tailspintoys.com users at all (customer address list, based on OU - different domain users are in different OUs; custom globaladdressbooks, based on PrimarySmtpAddress
    filtering and custom Offline Address books, based on customized address list, mentioned earlier).
    [email protected] send an e-mail to [email protected] When [email protected] checks his inbox (in OWA) he sees new e-mail but when he checks "From" field - he sees only the name and even when checking (double-click) contact details everything
    is blank, no e-mail/phone/additional info.
    I want users to have access to e-mail, so this problem does not occur (it causes other problems with replies in Outlook 2011 for Mac), but still do not want contoso.com users see tailspintoys.com users in any address books (offline/GAB).
    Any suggestions?
    Thank you in advance!

    Hi Phillip,
    According to the description, I found that you want to hide information except sender's display name (?) to another domain. Please correct me if there is any misunderstanding.
    Based on my experience, it is impossible.
    Would you like to tell me the reason that why you want to hide additional information, maybe we can achieve this goal via other methods, like Outlook Rules or Transport Rules.
    I also notice this, 'it causes other problems with replies in Outlook 2011 for Mac' , if there is any problem on Outlook 2011 for Mac, I suggest creating a new thread on the Mac forum.
    For your convenience:
    http://answers.microsoft.com/en-us/mac/forum/macoutlook?tab=Threads
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • How do I read a Email from the MS exchange server

    could any one tell me as to how i could read the mail from the exchange server and store it in a seperate folder.

    I have an application which reads the mail from our mail server and then writes the body of the message into a file and then deletes the email anf those values are then read from that file and stored into the database .
    Here is the code which pops the mail from the exchange server and then stores it into a file .
    import javax.mail.*;
    import com.sun.mail.pop3.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.util.*;
    * Title:
    * Description:
    * Copyright: Copyright (c) 2001
    * Company:
    * @author
    * @version 1.0
    public class SunMailConnection implements Runnable{
         boolean suspendFlag;
         ErrorLogWriter log = new ErrorLogWriter("SunMail.log");
         public SunMailConnection() {
              this.start() ;
         public void run(){
              try {
                   int start = 1;int end = -1;
                   String host = "cyde-cehh-exh1";//the local exchange server name AND DOESNT WORK IF U CONNECT TO EXT MAIL SERVER DIRECTLY
                   //DUE TO SECURED AUTHORISATION
                   //String host ="http://www.conergy-electronics.de";
                   String username ="SunReader\\Sun\\saa";
                   String password = "xxxxx";
                   // Create empty properties
                   Properties props = new Properties();
                   props.put("mail.protocol.store","pop3");
                   // Get session
                   Session session = Session.getDefaultInstance(props, null);
                   Provider[] p = session.getProviders();
                   //for (int i=0;i<p.length;i++) System.out.println(p.getProtocol());
                   // Get the store
                   Store store = session.getStore("pop3");
                   store.connect(host, username, password);
                   // Get folder
                   Folder folder = store.getFolder("INBOX");
                   if (folder == null || !folder.exists()) {
                        //System.out.println("Invalid folder: " + folder.getName());
                        log.write("Invalid folder: " + folder.getName()) ;
                        System.exit(1);
                   folder.open(Folder.READ_WRITE);
                   //Get the number of Unread Messages
                   int count = folder.getUnreadMessageCount();
                   if (count == 0) { // No messages in the source folder
                        //System.out.println(folder.getName() + " is empty");
                        // Close folder, store and return
                        folder.close(false);
                        store.close();
                        return;
                   if (end == -1)
                        end = count;
                   // Get the message objects to copy
                   log.write("Test");
                   Message[] msgs = folder.getMessages(start, end);
                   //System.out.println("Moving " + msgs.length + " messages");
                   //log.write("Moving " + msgs.length + " messages") ;
                   if (msgs.length != 0) {
                        //If there is any mail
                        //System.out.println(msgs.length );
                        //read mail from server into files
                        MoveMessageTo saveFile = new MoveMessageTo(msgs);
                        if(saveFile.createdFile=true){
                             folder.setFlags(msgs,new Flags(Flags.Flag.SEEN),true);
                             //delete flag set here to remove the email from INBOX
                             folder.setFlags(msgs, new Flags(Flags.Flag.DELETED), true);
                        //folder.expunge(); //removes messages marked as deleted
                        //check for deleting messages
                        for (int i = 0; i < msgs.length; i++) {
                             if (!msgs[i].isSet(Flags.Flag.DELETED))
                                  log.write("Message # "+msgs[i]+" not deleted.");
                             //else System.out.println("Message "+i+"-is deleted") ;
                   // Close connection
                   folder.close(true);
                   // dfolder.close(false);
                   store.close();
                   //this.start() ;
              }catch (Exception ex) {
                   ex.printStackTrace() ;
              //this.t.start();
         public void start(){
              try {
                   while(this!= null){
                        this.run() ;
                        Thread.sleep(15000);//every 15 seconds
              }catch (Exception ex) {
                   ex.printStackTrace();
         public void exit(){
              this.exit();
              System.out.println("Exit");
         public static void main(String[] args) {
              SunMailConnection sunMail = new SunMailConnection();
    This is to show the messages
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class msgshow {
    static String protocol;
    static String host = null;
    static String user = null;
    static String password = null;
    static String mbox = "INBOX";
    static String url = null;
    static int port = -1;
    static boolean verbose = false;
    static boolean debug = false;
    static boolean showStructure = false;
    static boolean showMessage = false;
    public static void main(String argv[]) {
         int msgnum = -1;
         int optind;
         protocol = "pop3";
         host="cyde-cehh-exh1";
         user="SunReader\\Sun\\saa";
         password="xxxxxx";
         mbox="INBOX";
         /*for (optind = 0; optind < argv.length; optind++) {
         if (argv[optind].equals("-T")) {
              protocol = argv[++optind];
         } else if (argv[optind].equals("-H")) {
              host = argv[++optind];
         } else if (argv[optind].equals("-U")) {
              user = argv[++optind];
         } else if (argv[optind].equals("-P")) {
              password = argv[++optind];
         } else if (argv[optind].equals("-v")) {
              verbose = true;
         } else if (argv[optind].equals("-D")) {
              debug = true;
         } else if (argv[optind].equals("-f")) {
              mbox = argv[++optind];
         } else if (argv[optind].equals("-L")) {
              url = argv[++optind];
         } else if (argv[optind].equals("-p")) {
              port = Integer.parseInt(argv[++optind]);
         } else if (argv[optind].equals("-s")) {
              showStructure = true;
         } else if (argv[optind].equals("-m")) {
              showMessage = true;
         } else if (argv[optind].equals("--")) {
              optind++;
              break;
         } else if (argv[optind].startsWith("-")) {
              System.out.println(
    "Usage: msgshow [-L url] [-T protocol] [-H host] [-p port] [-U user]");
              System.out.println(
    "\t[-P password] [-f mailbox] [msgnum] [-v] [-D] [-s]");
              System.out.println(
    "or msgshow -m [-v] [-D] [-s] < msg");
              System.exit(1);
         } else {
              break;
         try {
         // if (optind < argv.length)
         // msgnum = Integer.parseInt(argv[optind]);
              //msgnum = 5;
         // Get a Properties object
         Properties props = System.getProperties();
         // Get a Session object
         Session session = Session.getDefaultInstance(props, null);
         session.setDebug(debug);
         if (showMessage) {
              MimeMessage msg = new MimeMessage(session, System.in);
              dumpPart(msg);
              System.exit(0);
         // Get a Store object
         Store store = null;
         if (url != null) {
              URLName urln = new URLName(url);
              store = session.getStore(urln);
              store.connect();
         } else {
              if (protocol != null)
              store = session.getStore(protocol);
              else
              store = session.getStore();
              // Connect
              if (host != null || user != null || password != null)
              store.connect(host, port, user, password);
              else
              store.connect();
         // Open the Folder
         Folder folder = store.getDefaultFolder();
         if (folder == null) {
              System.out.println("No default folder");
              System.exit(1);
         folder = folder.getFolder(mbox);
         if (folder == null) {
              System.out.println("Invalid folder");
              System.exit(1);
         // try to open read/write and if that fails try read-only
         try {
              folder.open(Folder.READ_WRITE);
         } catch (MessagingException ex) {
              folder.open(Folder.READ_ONLY);
         int totalMessages = folder.getMessageCount();
         if (totalMessages == 0) {
              System.out.println("Empty folder");
              folder.close(false);
              store.close();
              System.exit(1);
         if (verbose) {
              int newMessages = folder.getNewMessageCount();
              System.out.println("Total messages = " + totalMessages);
              System.out.println("New messages = " + newMessages);
              System.out.println("-------------------------------");
         if (msgnum == -1) {
              // Attributes & Flags for all messages ..
              Message[] msgs = folder.getMessages();
              // Use a suitable FetchProfile
              FetchProfile fp = new FetchProfile();
              fp.add(FetchProfile.Item.ENVELOPE);
              fp.add(FetchProfile.Item.FLAGS);
              fp.add("X-Mailer");
              folder.fetch(msgs, fp);
              for (int i = 0; i < msgs.length; i++) {
              System.out.println("--------------------------");
              System.out.println("MESSAGE #" + (i + 1) + ":");
              dumpEnvelope(msgs[i]);
              // dumpPart(msgs[i]);
         } else {
              System.out.println("Getting message number: " + msgnum);
              Message m = null;
              try {
              m = folder.getMessage(msgnum);
              dumpPart(m);
              } catch (IndexOutOfBoundsException iex) {
              System.out.println("Message number out of range");
         folder.close(false);
         store.close();
         } catch (Exception ex) {
         System.out.println("Oops, got exception! " + ex.getMessage());
         ex.printStackTrace();
         System.exit(1);
         System.exit(0);
    public static void dumpPart(Part p) throws Exception {
         if (p instanceof Message)
         dumpEnvelope((Message)p);
         /** Dump input stream ..
         InputStream is = p.getInputStream();
         // If "is" is not already buffered, wrap a BufferedInputStream
         // around it.
         if (!(is instanceof BufferedInputStream))
         is = new BufferedInputStream(is);
         int c;
         while ((c = is.read()) != -1)
         System.out.write(c);
         pr("CONTENT-TYPE: " + p.getContentType());
         String filename = p.getFileName();
         if (filename != null)
         pr("FILENAME: " + filename);
         * Using isMimeType to determine the content type avoids
         * fetching the actual content data until we need it.
         if (p.isMimeType("text/plain")) {
         pr("This is plain text");
         pr("---------------------------");
         if (!showStructure)
              System.out.println((String)p.getContent());
         } else if (p.isMimeType("multipart/*")) {
         pr("This is a Multipart");
         pr("---------------------------");
         Multipart mp = (Multipart)p.getContent();
         level++;
         int count = mp.getCount();
         for (int i = 0; i < count; i++)
              dumpPart(mp.getBodyPart(i));
         level--;
         } else if (p.isMimeType("message/rfc822")) {
         pr("This is a Nested Message");
         pr("---------------------------");
         level++;
         dumpPart((Part)p.getContent());
         level--;
         } else if (!showStructure) {
         * If we actually want to see the data, and it's not a
         * MIME type we know, fetch it and check its Java type.
         Object o = p.getContent();
         if (o instanceof String) {
              pr("This is a string");
              pr("---------------------------");
              System.out.println((String)o);
         } else if (o instanceof InputStream) {
              pr("This is just an input stream");
              pr("---------------------------");
              InputStream is = (InputStream)o;
              int c;
              while ((c = is.read()) != -1)
              System.out.write(c);
         } else {
              pr("This is an unknown type");
              pr("---------------------------");
              pr(o.toString());
         } else {
         pr("This is an unknown type");
         pr("---------------------------");
    public static void dumpEnvelope(Message m) throws Exception {
         pr("This is the message envelope");
         pr("---------------------------");
         Address[] a;
         // FROM
         if ((a = m.getFrom()) != null) {
         for (int j = 0; j < a.length; j++)
              pr("FROM: " + a[j].toString());
         // TO
         if ((a = m.getRecipients(Message.RecipientType.TO)) != null) {
         for (int j = 0; j < a.length; j++)
              pr("TO: " + a[j].toString());
         // SUBJECT
         pr("SUBJECT: " + m.getSubject());
         // DATE
         Date d = m.getSentDate();
         pr("SendDate: " +
         (d != null ? d.toString() : "UNKNOWN"));
         // FLAGS
         Flags flags = m.getFlags();
         StringBuffer sb = new StringBuffer();
         Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
         boolean first = true;
         for (int i = 0; i < sf.length; i++) {
         String s;
         Flags.Flag f = sf[i];
         if (f == Flags.Flag.ANSWERED)
              s = "\\Answered";
         else if (f == Flags.Flag.DELETED)
              s = "\\Deleted";
         else if (f == Flags.Flag.DRAFT)
              s = "\\Draft";
         else if (f == Flags.Flag.FLAGGED)
              s = "\\Flagged";
         else if (f == Flags.Flag.RECENT)
              s = "\\Recent";
         else if (f == Flags.Flag.SEEN)
              s = "\\Seen";
         else
              continue;     // skip it
         if (first)
              first = false;
         else
              sb.append(' ');
         sb.append(s);
         String[] uf = flags.getUserFlags(); // get the user flag strings
         for (int i = 0; i < uf.length; i++) {
         if (first)
              first = false;
         else
              sb.append(' ');
         sb.append(uf[i]);
         pr("FLAGS: " + sb.toString());
         // X-MAILER
         String[] hdrs = m.getHeader("X-Mailer");
         if (hdrs != null)
         pr("X-Mailer: " + hdrs[0]);
         else
         pr("X-Mailer NOT available");
    static String indentStr = " ";
    static int level = 0;
    * Print a, possibly indented, string.
    public static void pr(String s) {
         if (showStructure)
         System.out.print(indentStr.substring(0, level * 2));
         System.out.println(s);
    This code is to move the message into a file
    import javax.mail.*;
    import com.sun.mail.pop3.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.util.*;
    import java.io.*;
    //This class copies the content of the received e-mail into files. The file names are given by
    //the urgent flag value and the subject
    public class MoveMessageTo {
         boolean createdFile = true;
         static final byte urgentFlagPos=13;
         public MoveMessageTo() {
         public MoveMessageTo(Message[] msgs) {
              if(msgs.length != 0)
              try {
                   for(int i = 0;i<msgs.length ;i++){
                        //Reads the content of the mail into an Object
                        Object currMultipart = msgs[i].getContent();
                        //converts this object into a String and then to a byte array, so we can read the urgnet flag
                        String content=(String)currMultipart;
                        byte[] testBytes=content.getBytes();
                        //The urgent flag is the first digit in the filename
                        StringBuffer fileName=new StringBuffer();
                        if (testBytes.length>urgentFlagPos)
                             fileName.append(new Byte(testBytes[urgentFlagPos]).toString());
                        //Then comes the subject of the e-mail
                        String mailSubject=msgs[i].getSubject();
                        if (mailSubject.length()>0)
                             fileName.append(mailSubject);
                        else fileName.append("noSubject");
                        fileName.append(".dat");
                        //create a directory to save the files
                        File baseDir = new File("c:/EMails/New");
                        baseDir.mkdirs();
                        //create file for with the subject as name
                        File eFile = new File(baseDir+"/"+fileName.toString());// creates a file by name of email subject
                        //Opening an stream for writting to the files
                        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(eFile));
                        ObjectOutputStream oos = new ObjectOutputStream(bos);
                        //Writing the message body to the file
                        oos.writeObject(currMultipart) ;
                        //Closing the stream
                        oos.flush() ;
                        oos.close() ;
                        createdFile = true;
              }catch (Exception ex) {
                   createdFile = false;
                   System.out.println("eFile is not created ");
                   ex.printStackTrace() ;
         public static void main(String[] args) {
              MoveMessageTo moveMessageTo1 = new MoveMessageTo();
    This code is if there is an error in reading a file it will write those error into the file
    import java.io.*;
    import javax.swing.*;
    import java.awt.Color;
    import javax.swing.border.*;
    //This class appends an error message to the log file
    public class ErrorLogWriter {
         //JPanel jPanel2 = new JPanel();
         //Border border1;
         String logDirectory="c:/EMails/log/";
         File errFile; //= new File(errDir+"/"+"errorLog.dat");
         //The constructor initializes the errFile given the filename
         public ErrorLogWriter(String fileName) {
              errFile=new File(logDirectory+fileName);
              /*try {
                   jbInit();
              }catch(Exception e) {
                   e.printStackTrace();
         public void write(String writeStr){
              try {
                   //Creates directory if doesn't exist
                   File errDir = new File(logDirectory);
                   errDir.mkdirs() ;
                   //If the directory exists...
                   if(errDir.isDirectory()){
                        //File errFile = new File(errDir+"/"+"errorLog.dat");
                        byte[] lastContent=new byte[0];
                        //If there is already a file with this name: Read its content so it can be preserved
                        if (errFile.exists()){
                             FileInputStream fis=new FileInputStream(errFile);
                             //Read everything into the byte array
                             lastContent=new byte[fis.available()];
                             fis.read(lastContent);
                        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(errFile));
                        PrintWriter oos = new PrintWriter(bos);
                        String newWriteString=new String(lastContent);
                        writeStr.trim() ;
                        //Appends the new string to the old content
                        newWriteString+=writeStr;
                        newWriteString+="\n";
                        //writes everthing back to the file
                        oos.write(newWriteString) ;
                        oos.flush();
                        oos.close();
              }catch (Exception ex) {
                   ex.printStackTrace() ;
         public static void main(String[] args) {
              ErrorLogWriter log = new ErrorLogWriter("logerror.log");
              log.write("Hello Log!") ;
    All these file are in one package called SunMail and i run this in jbuilder in 4.0 ,I get the following error
    eFile is not created
    java.lang.ClassCastException: javax.mail.internet.MimeMultipart
         at MoveMessageTo.<init>(MoveMessageTo.java:26)
         at SunMailConnection.run(SunMailConnection.java:86)
         at SunMailConnection.start(SunMailConnection.java:118)
         at SunMailConnection.<init>(SunMailConnection.java:21)
         at SunMailConnection.main(SunMailConnection.java:133)
    I know the it would be difficult if anyone could help me out it would be a great favour !!!
    pls help me out of this !!!!

  • My iphone 5 stopped syncing to outlook email, calender and contacts after the IT department switched from a HP exchange server to MS2010 exchange server.  Help?

    My iphone 5 stopped syncing to outlook email, calender and contacts after the IT department switched from a HP exchange server to MS2010 exchange server.  Help?

    Try deleting your exchange account on your iPhone, then adding it again fresh.  I had the same problem when we upgraded servers and this fix worked for me.

  • TCP packet out of state: First packet isn't SYN & Outlook is trying to retrieve data from the Microsoft Exchange Server [CAS-ARray]

    We are transitioning from Exchange 2003 to Exchange 2010.  We found Outlook online mode (non-cached mode) have many warning "Outlook is trying to retrieve data from the Microsoft Exchange Server [CAS-ARray]", usually happen when users tried to open
    address book but sometimes even normal operation like click the Send button.  The problem does not affect OWA and extremely rare when Outlook is running in cached mode.  Check the firewall logs, we notice a lot of "TCP Packet Out of State" drops.
    We have a lot from the CAS/HT to DC/GC on TCP_3268 and LDAP.  And the errors are "TCP packet out of state: First packet isn't SYN" with tcp_flags FIN-ACK, PUSH-ACK.
    We also have a lot from CAS/HT to the Outlook Clients on the static RPC port (TCP_59933).   And the errors are "TCP packet out of state: First packet isn't SYN" with tcp_flags FIN-ACK, PUSH-ACK and RST-ACK, ACK.
    This happens even on Outlook 2010 which I though it has TCP Keep Alive implmented to keep the session active within 1 hour. 
    Can somebody tell me if these out-of-state are the cause of our problem?  And how to fix it?
    THANK 1,000,000

    Hello AndyHWC,
    I did some consulting with our CAS team and received the following feedback to your post:
    It is difficult to determine what is causing resets without seeing the captures first hand however, the concern is that you are seeing dropped packets on the firewall logs.  Where is this firewall located?
    Based on the description "Check the firewall logs, we notice a lot of "TCP Packet Out of State" drops." and "We have a lot from the CAS/HT to DC/GC on TCP_3268 and
    LDAP." indicates to me that the firewall is between CAS and GC.  This not supported under any circumstances and would explain the issue they are seeing with clients trying to "retrieve data from the GC".
    If there is not a firewall between the GC and CAS then a Microsoft support engineer would need to have concurrent Netmon Captures from client, CAS, GC during the
    issue to analyze.  If only one GC exists consider adding another GC to handle the client requests and for fault tolerance.
    Also verify that all NIC card drivers are updated to the latest driver version
    More information about firewalls with Exchange 2007/2010
    http://msexchangeteam.com/archive/2009/10/21/452929.aspx
    http://technet.microsoft.com/en-us/library/bb232184(EXCHG.80).aspx
    You can install the Client Access server role on an Exchange 2007 computer that is running any other server roles except for the Edge Transport server role. You
    cannot install the Client Access server role on a computer that is installed in a cluster. Installation of a Client Access server in a perimeter network is not supported.
    http://technet.microsoft.com/en-us/library/dd577077(EXCHG.80).aspx
    “The Installation of a Client Access Server in a Perimeter Network Is Not Supported
    Issue You may want to install an Exchange 2007 Client Access server in a perimeter network. However, this type of installation is not supported in Exchange
    2007.
    Cause The Exchange 2007 Client Access server role is not supported in any configuration in which a firewall is located between the Client Access server
    and a Mailbox server or a domain controller. This includes firewall devices, firewall programs, or any program or device that is designed to restrict traffic between two network locations.
    For correct operation, Client Access servers require typical domain connectivity to domain controllers and global catalog servers. Because any devices
    or programs that restrict or reduce access to domain controllers or global catalog servers may affect the correct operation of the Client Access server, we do not support this type of configuration.
    Resolution To resolve this issue, move the Client Access servers to the internal network. For more information about the ports that Exchange 2007 uses
    for various services, see Data Path Security Reference.”
    Thanks,
    Kevin Ca - MSFT
    Kevin Ca - MSFT

  • Wlserver.exe error occur while start the web logic server-please help

    hi
    Iam getting wlserver.exe error when I start the web logic server-please help. and I cant able to start the web logic server.
    Thannks in Advance,
    Cheers,
    bala...

    Could you please mail the errors and the WLS Version and service pack as well.
    - Ramkumar

  • CRM 5.0 and microsoft exchange server integration

    Hi,
    I'm facing problem in setting up email integration in SAP CRM.
    What I woul like to achieve is that an email sent to the call center should be see the email in this way:
    from: customer email
    to: [email protected]
    The exchange server responsible says that it is not possible to do this but exchange has to change the "to" domain before sending the email and so the call center agent should see in the inbox an email like this:
    from: customer email
    to: [email protected]
    Is it right? Any hint?
    Can you help me?
    Thanks in advance.
    Roberto

    Hello Roberto,
    E-Mail rerouting is possible with an Exchange server. We use an adress [email protected] provided from the Exchangeserver. The mail is then forwarded to [email protected] to be retrieved by our CRM System for further processing. Please ask your Exchange admin again. I think he has to get wome more information about configuration possibilities.
    Regards
    Gregor

  • IPhone now sends emails using the wrong Exchange server

    I have 2 ActiveSync exchange accounts setup on my iPhone 4S, Gmail and Hotmail.  I have had this setup for awhile, and all of a sudden messages sent with a from: address of gmail.com is being sent by Hotmail.  The message appears in my Hotmail outbox, and headers reveal that it is being sent from hotmail on behalf of gmail.  This was never a problem in the past.  The default account is set to Gmail, and there is no SMTP account since it is Exchange-based.
    Thanks.

    I have the exact same issue reported here.  I have deleted all my mail account and re-added them.  The problem persists.  It does not seem to matter in what order I add the accounts, the messages always are sent from the live.com Exchange account, even if the message shows it is being sent from my work email.  If I delete the live.com account, things work just fine, but as soon as I add it back in, all mail routes through it.  I can see messages that should have been sent through my work Exchange server in the sent items on live.com.  This seems like a very bad bug in IOS...

  • IMAP/Exchange Server integration - finally getting all of my folders

    This may or may not be the right place to post this - moderators, please move if not.
    My IT guys were able to get my iPhone talking to our Exchange 2003 Server via IMAP earlier in the week - they had to turn on the IMAP service and open the appropriate port(s). Problem was, I was only seeing my inbox. If my path prefix was set to "INBOX", I saw the inbox plus any sub-folders under inbox. If the prefix path was set to "/", I saw only the inbox - no subfolders under inbox and no other folders at all.
    After testing and surfing, I finally found a solution. This may or may not work for you but as I sit here now, I have full access to ALL of my Exchange folders. AND, it also solved the issue of items sent from my iPhone not going into my Sent Items on the server side and deleted not going into the server Deleted Items. [Still no solution to the riddle of items deleted from my inbox still leaving a copy in my server inbox).
    I deleted all of my mail accounts on the iPhone. Just to be sure, I powered off the iPhone and then back on (I've been a Windows guy for too long, I guess - reboots are a way of life on the other side). I then set up a new IMAP account (not Exchange - I set it up as IMAP under Settings/Mail/Add Account/Other) using all of the same setting as my old account (which was set up as Exchange instead of Other). I did not change anything under Advanced. Presto! I checked my Exchange account and I had every folder - all of my private folders and even all of the Public folders on the Exchange server.
    To solve the problem of making sure I got my Sent & Deleted Items to go into the appropriate Exchange folders, I went into Advanced mail settings on the iPhone and changed the default location of Sent & Deleted to their respective counterparts on the Exchange server.

    I had the same experience. It was just frustration and not knowing anything else to try that made me set up the account under IMAP4 when a specific Exchange option is available.
    As to the deleted item question, I posted this in another thread:
    I haven't had a full day to verify this but the settings-Mail-account - advanced has a default setting of NEVER under the remove option. I take this to mean that it never removes deleted items. I changed it to one day since there is not a "immediate" option.

  • Unable to connect to the MS Exchange server after upgrading to ios 7.1.2

    I received a new iPad 4 through work.  Upgraded to ios 7.1.2, but now I'm not able to connect to the Exchange server.  Contacted IT through work, they have no idea how to correct it.  They say all of my settings are fine.  The error message says "Cannot Get Mail   The connection to the server failed."  Any thoughts?

    Appears to be a wifi connection problem. Did it work prior to the iOS update?
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    Since it's a company wifi, you won't be able to do many of these.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at
    http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are drooping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    iPad: Issues connecting to Wi-Fi networks
    http://support.apple.com/kb/ts3304
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.hmL
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Signal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How to Change Your iPhone’s (iPad’s) DNS Servers
    http://www.macinstruct.com/node/558
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Mail bouncing from the Microsoft Exchange Server.

    Hi  All,
               This is Brajesh from Mobinius Technologies. When ever  we are sending mails to our client those  who are using Microsoft exchange server. Our mail are getting rejected as spam content . How to resolve this
    issue. Please help us.   

    Hi,
    According to your description, I understand that failed to send message to recipient and rejected as a spam.
    If I misunderstand your concern, please do not hesitate to let me know.
    I want to double confirm whether all account or some special account contain this domain experience this question, how about internal and external mail flow?
    If this issue only occur on some special recipient, it indicate that target domain may be configured to reject your message, I recommend to contact its administrator to change the setting.
    Otherwise, please try to enable protocol log to get more details about this issue. More details about Protocol logging, for your reference:
    https://technet.microsoft.com/en-us/library/aa997624(v=exchg.150).aspx
    Best Regards,
    Allen Wang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • How to quickly recover from the broken Exchange Server VM due to Windows Update patch or Service Pack ?

    Folks,
    I'm planning to apply the Exchange Server 2010 Service Pack 3 and also applying the Cumulative Update 7 along with Windows Update which haven't been done since the past two years (~100+ patches).
    So in this case it I cannot afford to lose any of the Exchange Server due to the bad updates or broken server due to patches. At The moment all of the VMs currently running on VMware:
    HT/CAS role Windows NLB:
    PRODMAIL01-VM
    PRODMAIL02-VM
    Mailbox Server stand-alone non-DAG:
    PRODMBX01-VM
    PRODMBX02-VM
    Domain Controllers:
    PRODDC01
    PRODDC02
    My questions are:
    1. When taking the VMware snapshot for easy roll-back, do I have to take the entire 2 sets of the domain controller as well?
    2. Assuming I have done the Schema Update successfully and moving on to apply the SP3 to the HT/CAS server role, do I have to take both of the mailbox server VMs snapshot as well?
    3. Can I disconnect the virtual NIC inside the guest OS to safely take snapshot before applying the patches or service pack ? or do I have to let the network to be always connected during the Service Pack or CU patch process ?
    Any kind of suggestion for a better way to quickly roll back broken Exchange server due to patching would be greatly appreciated.
    Thanks,
    /* Server Support Specialist */

    not only not recommended, not supported:
    https://technet.microsoft.com/en-us/library/jj619301(v=exchg.150).aspx
    Some hypervisors include features for taking snapshots of virtual machines. Virtual machine snapshots capture the state of a virtual machine while it's running. This feature enables you to take multiple snapshots of a virtual machine and then revert the
    virtual machine to any of the previous states by applying a snapshot to the virtual machine. However, virtual machine snapshots aren't application aware, and using them can have unintended and unexpected consequences for a server application that maintains
    state data, such as Exchange. As a result, making virtual machine snapshots of an Exchange guest virtual machine isn't supported.
    The only supported way to recover a lost Server is gracefully through Setup either Add/Remove programs or recoverserver option
    https://technet.microsoft.com/en-us/library/dd876880(v=exchg.150).aspx
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

Maybe you are looking for

  • I need information about a database

    Hi I am making an application and the data base that I am using is a dbf. I have found two jdbcs to connect me. One is DBF_JDBC20.jar but it is trial. I began the application with this. After I found tinySQL.jar I try to change but some functions do

  • Will Audio Update 1.0 work with MacPro2,1?

    I have a MacPro2,1 (Clovertown Processors) dual 3 Ghz Quad Core Xeon X5365's that runs hot everytime I run audio apps including iTunes. Also heats up when running videos (You Tube). The specs for audio update indicate that it is specific to early 200

  • WLAN Connectivity problems using Nokia 5800 Xpress...

    Folks, I really need help here. I am trying to connect to my company WLAN called BLUESSO. The visible config settings required to access this hidden WLAN access point are as seen in the attachment also seen below: SSID: BLUESSO Encryption type: TKIP

  • Should I update to 10.5.7?

    I have a August 2008 iMac. 3.06Ghz processor, 4 gigs of ram, 512Mb Nvidia Geforce 8800. I have the default programs installed. Not much else isntalled yet. Things like... Handbrake, iMovie 06, Rosetta Stone, Mpeg streamclip, a vnc viewer, Adobe desig

  • Is It Possiable to Run the Payroll For Male Separately and Females Separety

    Hi to all    Above the case is possiable or not and can we run  the payroll age wise?