Problem when ping the mail server.

i want to ensure whether the mail server is started in the particular machine.thru the java code how can i ping.

Sexy liddle Servlet for yer;-
import java.io.*;
import javax.servlet.http.*;
public class TestPingServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) {
   try {
      response.setContentType("text/plain");
      String target = request.getParameter("ip");
      PrintWriter out = response.getWriter();
      Process pingProc = Runtime.getRuntime().exec(new String[] { "ping", target });
      BufferedReader procOutput = new BufferedReader(new InputStreamReader(pingProc.getInputStream()));
      String line;
         while((line = procOutput.readLine()) != null) {
            out.println(line);
         pingProc.waitFor();
     out.close();
   catch(Exception e) {
         e.printStackTrace();
}

Similar Messages

  • Problem when launching the inegration server with -Xrunhprof

    Hi,
    I tried to launch an integration server with this java option -Xrunhprof
    java -Xrunhprof:file=dump.hprof, format=b mainclass
    but I get this :
    HotSpot Virtual Machine Error, Internal Error
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
    # Error ID: 504152414C4C454C33434156454E4745284541500E4350500202 01
    # Problematic Thread: prio=10 tid=0x001bf668 nid=0x5 runnable
    Heap at VM Abort:
    Heap
    PSYoungGen total 16256K, used 0K [0xe6000000, 0xe7000000, 0xe7000000)
    eden space 16128K, 0% used [0xe6000000,0xe6000000,0xe6fc0000)
    from space 128K, 0% used [0xe6fe0000,0xe6fe0000,0xe7000000)
    to space 128K, 0% used [0xe6fc0000,0xe6fc0000,0xe6fe0000)
    PSOldGen total 114688K, used 81K [0xe7000000, 0xee000000, 0xf6000000)
    object space 114688K, 0% used [0xe7000000,0xe7014480,0xee000000)
    PSPermGen total 4096K, used 811K [0xf6000000, 0xf6400000, 0xfa000000)
    object space 4096K, 19% used [0xf6000000,0xf60cad58,0xf6400000)
    Abort - core dumped
    could anyone help, please ?
    thanks
    red1

    I was using these flags (-XX:+PrintGCDetails -XX:+UseParallelGC ) and when I stopped using them, the error went away.
    Appears like I will not be able to profile with parallel GC which is the method we have adopted in production.
    gil.

  • Why do I get an "unable to connect - There may be a problem with the mail server or network." message from iCloud.  I have verified the settings.  I can access my iCloud account online but can't send or receive e-mail via the mail account.

    Text limits to the "Question" link prevents a full explanation:
    This is a long-time problem.  I have tried to resolve it with Apple but their "Customer Support" is merely a name.
    I can go online and access my e-mail but when I try to send or receive e-mail via iCloud through my internet server (Google fiber now but the same situation existed with my prior service), I receive "There may be a problem with the mail server or network.  Verify the settings for 'Apple Email' and try again.
    "The server returned the error:  The server 'p0-imap.mail.me.com' refused to allow a connection on port 143."
    Well, I have verified the setting and tried again and again and …
    Well, you get the idea …

    JungleTaxi Cabbie wrote:
    Csound1: iCloud: Configuring Mail with Mac OS X v10.6 or iOS 4
    Enter your Incoming Mail Server, User Name, and Password using the following settings:
    Incoming Mail Server: mail.me.com
    User Name: Your iCloud email address (excluding @me.com)
    Password: Your password
    Last Modified: Jun 27, 2013
    Maybe you should test these things before calling people out, because these settings do function perfectly well.
    iCloud is not supported on Snow Leopard or lower, why bother to mention it?
    The OP has an iCloud account, and that can not be opened without Lion or Mountain Lion (on a Mac), IOS5 or 6 (on an iPhone/iPad)
    The document I linked to is Apples documentation for iCloud on current devices,I don't care whether you believe that you know better than they do, but it will affect the people who follow your advice as it won't work
    JungleTaxi Cabbie wrote:
    Also, if you're not running Lion or Mountain Lion, there is no "Mail, Contacts & Calendars" prefpane.
    I never said that there was, perhaps you imagined it.

  • When I send mail, I keep getting this message. An error occurred while sending mail. The mail server responded: "JunkMail rejected - 71-12-190-31.dhcp.leds.al

    When I send mail, I keep getting this message.
    An error occurred while sending mail. The mail server responded: "JunkMail rejected - 71-12-190-31.dhcp.leds.al.charter.com ([127.0.0.1])
    [71.12.190.31]:52956 is in an RBL, see
    http://www.spamhaus.org/query/bl?ip=71.12.190.31". Please check the message recipient [email protected] and try again.
    How do I get rid of this problem?
    WNS

    Hi there,
    If you have a closer look at message you are receiving it already states the problem. The domain 71-12-190-31.dhcp.leds.al.charter.com is blacklisted by spamhaus.org (is in an RBL).
    Your TB is (my guess) setup to send the message directly to the recipient.
    As a rule of thumb the majority of mail sent from a dynamic dns address (the kind of address you are getting from your ISP) is blacklisted as a precaution against spam abuse due to virus/trojan infected PC's.
    Nothing you can change there. Stop sending the message directly and use your ISP's account instead.
    /Frans

  • SSL Error when connecting to the mail server

    Hi,
         i started having a wiered SSL error for some of my users on the mail servers when they connect using their mac machines to the mail server telling its the wrong username and password, but the same username and password works from the hand held devices including ipads and iphones. I checked the syslog and the maillog which is showing no errors regarding this. Althou i started getting this error com.apple.launchd[1] (org.dovecot.fts.update): Throttling respawn: Will start in 10 second for the past 1 week. i am using 10.9.1 Maverics. I can provide all the logs of the server if needed.

    Make sure you are using right security protocol, for IMAP you need to enable TLS/SSL. Go to email settings> Incoming mail > Security.
    If a reply has solved your problem click Accept as solution button, doing it will help others know the solution. Thanks.

  • HT4864 I am getting a triangle with an exclamation point next to my inbox...it says: There may be a problem with the mail server or network. Verify the settings for account "MobileMe" or try again.  The server returned the error: Mail was unable to log in

    I can send but cannot recieve email
    This is the messege I am gewtting:
    There may be a problem with the mail server or network. Verify the settings for account “MobileMe” or try again.
    The server returned the error: Mail was unable to log in to the IMAP server “p02-imap.mail.me.com” using “Password” authentication. Verify that your account settings are correct.
    The server returned the error: Service temporarily unavailable

    Also if I go to system preferences accounts and re-enter the password it fixes the glitch sometimes.

  • My email account in Mail.app is IMAP, but when I delete emails, they don't delete from other devices connected to the mail server with IMAP. Deleted mail on other devices delete as normal from the server and thus from other devices as normal.

    MacBook Pro, late 2011 version. Up to date Mountain Lion.
    My email account in the Mail.app is set up as IMAP, but when I delete emails in the Mac Mail App, they are not deleted from the mail clients of the other devices that are connected to the mail server with IMAP. IMAP works perfectly between Windows Outlook 2010, iPad Mail App and Android default mail client. Deleted messages behave correctly, as in delete from one device and the mail is deleted from all devices.
    Having just tested in reverse order on the Mac; emails deleted from the email client on Windows, iPad and Android are not deleted in the Mac Mail App.  It appears that the account is behaving like POP rather than IMAP.
    Any advice on how to have IMAP work correctly on the MacBook Pro Mail.app?
    Thank you.

    Hi Csound1, thanks. The email host is 1and1.co.uk, however, i am going to fess up and make myself look like a plonker now -
    the email account in question was set up in Outlook as POP - stupid, stupid, stupid me, wasted an afternoon on this!  I have now changed the Outlook account to IMAP and Mail.app works perfectly - and looks much nicer than Outlook did.  Im in the middle of converting from Windows to a Mac, and still finding my way around the Mac
    The lesson learned, never assume - always double  check!  All my other email addresses with 1and1 are all imap, except this one, and it happened to be the first one I set up in the Mail.app. (bows head in disgrace!)
    Thank you anyway for attempting to help me!
    Cheers

  • When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does nog display my name or e mail address. This only since upgrading my iPhone5 to iOS7

    When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does not display my name or e mail address. This only since upgrading my iPhone5 to iOS7. I've checked all settings etc. anyone have a solution please?

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • I am set up mac mini and when I test the mail server by sending a mail from administrator to administrator I get the error message 'Diagnostic-Code: X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection    refused'. Can any one suggest a solution

    I set up mac mini and when I test the mail server by sending a mail from administrator to administrator I get the error message 'Diagnostic-Code: X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection    refused'. Can any one suggest a solution

    Thanks. Where could I possibly look for a firewall rule. I knowingly did not creat any. My system has internet coming to a Modem which then is connected to a wireless router. I have computers connecting to the router through cable as well as wireless. One of these computers has been our  mailserver using Mercury and Pegasus and that computer has a static IP address. The Mac Mini also has been assigned a different srtatic IP address. I have only set up user account, none of them an email account as I initially expect them to receive only internal mails. Is it necessary that I must set up an email id for each user while setting up the user account. My server id is server.local. So would the email id for local users be [email protected]?

  • Just trying out my new mac but email won't load, error says "The mail server denied access to the account because an administrator or other mail client was using it when Mail tried to log in. Try again later." A little lock is beside the email inbox

    Just trying out my new mac but email won't load, error says "The mail server denied access to the account because an administrator or other mail client was using it when Mail tried to log in. Try again later." A little lock is beside the email inbox account, no password prompted and account is online and enabled... Thoughts?

    Have you tried clicking on the lock to see it it will then ask for a passwored.  Otherwise, try reblooting.

  • Problem: Mail couldn't discover the account settings for the Mail server "Unknown"

    I have a problem setting up my internet accounts on the System Preferences.
    This message always comes up,
    Mail couldn't discover the account settings for the Mail server “Unknown”.
    Thanks

    In Mail's Add Account dialog, enter the account information, then hold down the option key and click Continue. Finish setting up the account manually.

  • Has there been any problems with the mail server?

    Has there been any problems with the mail server? I keep getting a notice of server failure.

    Unfortunately the error message does not identify the specific server, I (as many folks do) have several, Mac, yahoo, google ect.

  • Can no longer access blueyonder emails on iphone.I get the following error message: The mail server 'imap4.blueyonder.co.uk is not responding', how do I fix pls?

    Hi there
    As I've mentioned above, I can't seem to access my emails from my blueyonder account on my iphone. When I first set up my account on the phone, I had no problems at all receiving emails. Then recently, just out of the blue I get the following error message: 'Cannot Get Mail, The Mail Server 'imap4.blueyonder.co.uk' is not responding.  Verfiy that you have entered the correct account info in mail settings.  I definitely have the right settings, I even checked with Virgin but they are not able to assist with my problem. Has anyone else experienced this problem, if so,how did you fix it? If you could explain in simple terms as I'm not tech savvy!
    Many thanks!

    http://www.apple.com/uk/support/iphone/mail/
    work through this

  • Mail cannot access the mail server, but other email clients do.

    My web host recently had extended problems with the mail server my sites are on. Now, Mail on my iMac Intel 27 Duo says it cannot access the server. However, Thunderbird and Entourage Mac have no problem. Sending from Mac Mail seems to be Ok as well. I've checked the settings over and over.  I received no system disk for this machine when I bought it. Do I need to reinstall Mail, and if so, how?
    The info below from Connection Doctor shows it appears to be trying to access through Port 25 but I have Mail set for 587 as instructed by the hosting company. I have renamed private info in the text below.
    READ Jan 16 09:56:42.941 [kCFStreamSocketSecurityLevelNone]  -- host:mail.myemail.com -- port:25 -- socket:0x11f51aed0 -- thread:0x122c48a20
    250-servername-a41.g.webhostname.com
    250-PIPELINING
    250-SIZE 40960000
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250 8BITMIME

    However, Thunderbird and Entourage Mac have no problem. Sending from Mac Mail seems to be Ok as well. I've checked the settings over and over.
    Well if TB and Entourage can both send and receive but Mail can only send I can only conclude you missed something in you rechecking.  Of course with you being the only one checking you are going to make the same "mistake" and never no it.  So post the relevant POP server info for your ISP (edit out personal info and passwords of course):
    Account Info:
    Incoming Mail server:  pop server address
    User Name:             required user name POP server is looking for (censor)
    Password:              password required by POP server (censor)
    Advanced:
    Port:      995, 25, default?
    Use SSL:   yes or no
    Auth:      kind of authentication

  • I cannot send mail. Been so for 2 days. Get the message: An error occurred while sending mail. The mail server responded: Access denied

    When I send message the reply is "Access Denied" and a bunch of gobbly-gook ending with please re-check message. What would I check for? The G-G is of absolutely no value to the human species.
    An error occurred while sending mail. The mail server responded: Access denied...3c61d9886161c1c1b119b169f84d0c00bd1d41014c8da58d391805d17cbcdccd89e9557dcc85058535d178217d0831cc6d65.... Please check the message and try again.
    So what now. Mozilla must be the offspring of Microsoft in that help NEVER HELPS, EVER.

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

Maybe you are looking for