For loop is not behaving as it should

Hi,
Please help me if you can.
I'm using netbeans, I have a Dog class with a bark() method which contains an If/Else Statement:
void bark() {
if (size > 60) {
System.out.println("Woof! Woof!");
} // If
if (size > 14) {
System.out.println("Ruff! Ruff!");
} // If
else {
System.out.println("Yip! Yip!");
When I call this method from the Dog class with a new Dog object (after I have initialised it with a value of 64, the If statements execute If size > 60 AND if size > 14 and it didn't before! Why is this? It used to just execute the top If statement.
The only thing I can think of is that I was trying to define set CLASSPATH on the command prompt the other day (to no success even though it was pointing right to the folder for javac etc) but I don't think this would cause an If statement to execute like this?

Akhkhi wrote:
Check the value of size variable in your method..I think its finding somthing different value what u r expecting ...what the heck are you talking about? This has absolutely nothing to do with the original poster's problem.

Similar Messages

  • FOR LOOP EXCEPTION not working !!! please help

    Hi,
    Why is the NO_DATA_FOUND execption not getting executed. ????
    Hereis the code....
    CURSOR newreccur IS
    SELECT * from emp_table;
    BEGIN
    v_file_handle := UTL_FILE.FOPEN('out','new.dat','W');
    BEGIN
    FOR emp_rec IN newreccur LOOP
    -- Write procurement records
    UTL_FILE.PUT(v_file_handle,'emp_rec.num');
    END LOOP;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    dbms_output.put_line ('No data found ')
    END;
    EXCEPTION
    WHEN UTL_FILE.INVALID_PATH
    THEN
    DBMS_OUTPUT.PUT_LINE ( 'Invalid Path ' || TO_CHAR (SQLCODE) );
    UTL_FILE.FCLOSE_ALL;
    END;

    cursor for loops do not raise no_DatA_found - they simply stop looping when they run out of data. you can set a variable within the loop, and then check it after the loop if you need to know if data was returned or not.

  • When debugging, a for loop is not entered even though the number 6 is passed to "N".

    I cannot figure out why a for loop is not entered when I debug it. When debugging a value of 6 is clearly passed to "N", the number of iterations the loop is supposed to execute. So when I debug, execution highlighting just parses right over the loop, even though I request to enter the loop. Everything inside of the loop is not executed. Have you experienced this before? - Any ideas?

    As mentioned by "eh" auto-indexed arrays that are empty will cause this.
    A "FOR loop" will itereate as many times as is indicated by the smallest number elements in any of its auto-indexed inputs.
    When you watch it in execution-highlighting, you probably will see a "0" coming in on an auto-indexed input.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • For Loop Will Not Execute

    I have been a software engineer for a number of years now, and thus far I have never come across any coding issues that truly merit a post such as this. Someone has almost always run across the issue before, so there is no need to reinvent the wheel, or solution as it were.
    However, a number of times I have run across instances where the JRE simply... does not execute parts of my code, and throws no exceptions.
    The sample code is a simple logging application, watered down to the bare minimum for the purposes of this forum:
    public class Log {
    public static void main(String[] args)    {Log log = new Log();}
    public Log() {Logger.log("Hello World");}
    import java.util.*;*
    import java.io.*;
    import java.text.SimpleDateFormat;
    public abstract class Logger {
    private static final int SIZE = 2;
    private static final SimpleDateFormat DAY = new SimpleDateFormat("EEEE");
    private static final String
      DIR = "logs/",
      EXT = ".log",
      FILTER = ".*log\\z",
      DNE = "DNE";
    private static int i,oldest;
    private static long previous = 0;
    private static FileFilter filter = new LogFilter();
    private static FileWriter out;
    private static File file,directory;
    private static File[] list;
    public synchronized static void log(String param) {
      try {
       directory = new File(DIR);
       file = new File(DIR + getDay() + EXT);
       list = directory.listFiles(filter);
       if (file.createNewFile()) {
        readOnly();
        reconcile();
       write(param);
      catch (Exception exception) {}
    private static void write(String param) throws Exception {
      out = new FileWriter(file, true);
      out.write(param);
      out.close();
    private static void readOnly() throws Exception {
      for (i=0;i<list.length;i++) {list.setReadOnly();}
    private static void reconcile() {
    try {
    previous = list[SIZE].lastModified();
    oldest = SIZE;
    for (i=SIZE;i<=0;i--) {
    if (list[i].lastModified() <= previous) {
    previous = list[i].lastModified();
    oldest = i;
    list[oldest].delete();
    catch (Exception exception) {System.out.println("Skipping reconciliation...");}
    private static String getDay() throws Exception {
    return DAY.format(Calendar.getInstance().getTime());
    private static class LogFilter implements FileFilter {
    public LogFilter() {}
    public boolean accept(File param) {
    try {
    if ((param.getName()).matches(FILTER)) {return true;}
    else {return false;}
    catch (Exception exception) {return false;}
    *The problem*:
    Ok, easy visual, this is the "log/" directory as I run the Log.java application repeatedly and iterate the date on my computer as I do so.
    Thursday
    *log/*
    +Thursday.log+
    Friday
    *log/*
    +Thursday.log+
    +Friday.log+
    Saturday
    *log/*
    +Thursday.log+
    +Friday.log+
    +Saturday.log+
    Sunday
    *log/*
    +Friday.log+
    +Saturday.log+
    +Sunday.log+
    Monday
    *log/*
    +Friday.log+
    +Saturday.log+
    +Monday.log+
    This is the point at which I go ???
    Turns out, the JRE skips the execution of my for loop in the *reconcile()* method when the date rolls over to Monday, and from then on it simply deletes the previous day's log instead of the oldest log.
    Why?  Who knows.
    Things I have tried:
    - Using another variable integer for the *readOnly()* method
    - Removing the synchronized keyword from the *log(String param)* method
    - Second call to *directory.listFiles(filter)* and setting *SIZE* to *3* after the old files have been set to read-only
    - Removing the call to *readOnly()*
    - Verified that the call to *readOnly()* does not alter the +modified+ date on the log files
    - Changed Logger.java from a +static+ class to a +local+ class
    Things I cannot do:
    This log application stores privy information about end-users at locations across the country in the event that there are support issues that need to be resolved, and the agreement is that we store this information no more than three days.  Just wanted to make sure, that the hopefully informed respondants to this issue, know that the obvious solution (storing seven day records), is unfortunately not available to me.
    Edited by: Threadstorm on Jan 8, 2009 8:24 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    HA! Most excellent. The last place I would ever look.
    Yes, seems like Java sorts the files in such a way that everything works fine without the loop until Monday rolls over.
    Now I can have a better appreciation for that second set of eyes.
    I use for loops so frequently that I never look at them (though I did stare at this one myself prior to this post, much to my chagrin now) but the subtracting iteration (which I use once in a blue moon) was necessary for the nature of the code.
    But ok, up and running! (whew) was going to be a long day until now.
    To answer your question though, the Logger is static so I don't have to pass it around to dozens and dozens of other modules but rather just include the package on the fly as I develop new modules that need to log information, and I like to write most mundane things myself if I can, that way I have the freedom to modify them at will.
    Thanks again! I'm now a happy camper once more.
    I'm also thankful that I don't have to chalk up another notch on the wall of cases where the JRE behaves magically and truly ignores code which I have definitely run into before. Something about listCellRenderers and the order of calls made to them, or some such and JRE doesn't read one of the lines. It's been a year or two.
    Edited by: Threadstorm on Jan 8, 2009 8:47 AM

  • For loop is not working

    Hi,
    I am using a if condition that will first check if the above command ran successfully if the errorlevel is 0 then execute the condition inside the if condition. My syntax is as follows
    if %errorlevel%==0 ( for /f "delims=" %%x in ('dir /b/od C:\Folder ') do set recent=%%x
    set FILE=%recent%
    echo %FILE%
    echo "hello world"
    ) else ( exit 1 
    the for loop is finding the latest file inside the C:\Folder .
    The for loop is working fine , if I remove the if condition, but failing when it is inside the if condition. 
    Kindly help.
    Thanks,
    Ashis

    ":eof" is an inbuilt label that is assumed to be at the end of the code. "Goto :eof" causes the program to jump to that label. Now consider this construct. It demonstrates that "goto :eof" terminates the current segment but not necessarily the batch file.
    @echo off
    call :Sub1
    call :Sub2
    goto :eof
    :Sub1
    if  %value% GTR 5 goto :eof
    echo The value is %value%
    goto :eof
    :Sub2
    echo The date is %date%
    if /i %UserName% EQU Ashissau goto :eof
    echo You are not authorised to use this PC.
    goto :eof

  • 500k Unique Limit not behaving as it should?

    Hoping to get an official "Adobe" answer here as results via Twitter were not too successful, plus this is just too detailed to be accurately articulated in 140 character chunks.  Anyways, the problem comes with an instance I am working on where unique page views for URLs that are well over 500K are not being bucketed in to the "low traffic" category as they should be per this adobe documentation:
    Uniques Exceeded (Low-Traffic) Logic
    I've attached a screenshot, these URLs all only have 1 view per the month, and are not previously recorded, so these should all be falling into the low bucket traffic, but they are not, and this number continues to grow.  Anyone experienced this before, and if you have, do you have insights on to why the software is behaving as such?
    Thanks!

    This forum section is for the analytics of Business Catalyst, One of Adobe's CMS's. IT is not the Adobe Marketing Cloud software forum.

  • F4 for filename does not behave good in CALL SELECTION_SCREEN?

    I have a F4_File name called on value -request for p_file which was decalred as part of the CALL SELECTION-SCREEN 500
    It does bring up the file dialog but gets out of the loop as soon as the EXECUTE button is clicked?
    How to over come this?

    That is the standard behvaiour. The value will be in changing parameter (file_table              = t_filetable). you need to read the value.
    Check out this example.
    at selection-screen on value-request for pu_path.
      clear: t_rc.
      refresh: t_filetable.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          window_title            = 'Gui upload demo'
          with_encoding           = 'X'
          initial_directory       = 'C:\test\'
         FILE_FILTER             = '*.XLS'
         DEFAULT_EXTENSION       = 'Excel files [*.XLS]'
        changing
          file_table              = t_filetable
          rc                      = t_rc
          user_action             = user_action
          file_encoding           = encoding
        exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          others                  = 5.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                   with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      elseif user_action eq 0.
        read table t_filetable into wa_filetable index 1.
        t_path = wa_filetable-filename.
        call method cl_gui_frontend_services=>file_exist
          exporting
            file                 = t_path
          receiving
            result               = abap_bool
          exceptions
            cntl_error           = 1
            error_no_gui         = 2
            wrong_parameter      = 3
            not_supported_by_gui = 4
            others               = 5.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
                     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        elseif abap_bool eq 'X'.
          pu_path = t_path.
        else.
      Message File does not exist.
        endif.
      endif.
    If you have questions, look at method documentation.

  • IMAP Mailbox not behaving as it should with Mac

    Hi all,
    Hope you can help.
    Have recently set up an IMAP email account for my business on both my Mac and my iPhone.
    Anything read or deleted on my Mac syncs with my iPhone as it should but when I read the email on my iPhone it does NOT appear as 'read' on my Mac. In fact, it marks itself as unread again if left for a while. Also mail deleted on the phone does not appear deleted on my Mac.
    Any help anyone could give would be greatly appreciated.
    Many thanks in advance,
    Nigel

    My Discover Card App.
    It's frozen... Can't delete it or anything. Just stuck in "waiting" mode...won't open... Nothing.

  • Unable to Burn CDs in iTunes for Windows: (Will not fit, but it should.)

    I am attempting to fix an issue with a friend's iTunes for Windows. Although previously this computer using this media was able to burn audio CDs through iTunes, recently, an error has appeared before any burn. When loading the proper amount of time to fit on a CD, iTunes claims:
    "The songs in this playlist will not fit on one Audio CD"
    "Do you want to create multiple Audio CDs with this playlist split across them?"
    "This will require more than one CD to complete."
    When running CD Diagnostics, I receive the following information:
    ++++++++++++++++++++++++++++++++++++++++++
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    Dell Computer Corporation Dimension XPS Gen 2
    iTunes 7.0.0.70
    CD Driver 2.0.6.0
    CD Driver DLL 2.0.6.0
    UpperFilters: GEARAspiWDM (2.0.6.0),
    Video Driver: 128MB DDR ATI Radeon 9800 Pro\128MB DDR ATI Radeon 9800 Pro
    IDE\DiskMaxtor6Y080L0_________________________YAR41BW0, Bus Type ATA, Bus Address [0,0]
    IDE\DiskWDCWD5000KS-00MNB0____________________07.02E07, Bus Type ATA, Bus Address [0,0]
    IDE\CdRomHL-DT-STDVD-ROM_GDR8162B_______________0015___, Bus Type ATA, Bus Address [0,0]
    IDE\CdRomSONYCD-RW__CRX216E_____________________PD01___, Bus Type ATA, Bus Address [1,0]
    If you have multiple drives on the same IDE or SCSI bus, these drives may interfere with each other.
    Some computers need an update to the ATA or IDE bus driver, or Intel chipset. If iTunes has problems recognizing CDs or hanging or crashing while importing or burning CDs, check the support site for the manufacturer of your computer or motherboard.
    Current user is an administrator.
    D: HL-DT-ST DVD-ROM GDR8162B, Rev 0015
    Drive is empty.
    E: SONY CD-RW CRX216E, Rev PD01
    Media in drive is blank.
    Get drive speed succeeded.
    The drive CDR speeds are: 4 8 10 12 16 24 32 40 48.
    The drive CDRW speeds are: 4.
    The last failed audio CD burn had error code -128(0xffffff80). It happened on drive E: SONY CD-RW CRX216E on CDR media at speed 0X.
    ++++++++++++++++++++++++++++++++++++++++++
    Additionally, I copied the iTunes playlist to a new drive that was recently installed with Windows, and the same problem occurs when rebooting under that system.
    Also, please note that this issue occured prior to updating to iTunes 7.
    Any assistance anyone could offer would be greatly appreciated by both myself and my friend.
    Thank you so much,
    Keith
    iTunes 7   Windows XP Pro  

    Hey,
    Under warranty you'd be better then to call into phone support, if something has to be done with the notebook, they'll be able to set that up with you.
    Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assis​t.html
    I worked on behalf of HP.

  • Combo box not behaving like it should

    I have a form in which I have 4 combo boxes that have more or less the same choices, however there is one that is common to all 4 (E078).
    When "E078" is selected in any of the combo box, a new combo box will appear (and a white rectangle will be hidden so that the new combo box title can be seen). It works when I select that in one or more combo box, however to make it disappear I have to select some other choice in the same combo box twice!!! If I select anything only once, it will not make the new combo box hidden, but if re-select something (same or another choice) then the combo box will disappear!
    I am at lost, and would be very thankful if someone could make it work seamlessly. I mean it works, nut it is just inconvenient and I cannot tell the user to make select something else twice if they want the field to disappear.
    Here is my form:
    https://workspaces.acrobat.com/?d=WjF6aV8IUuBX2w8iZN3k0g

    When you use event.value in a combo box's Validate event it does not give you the export value, which is what you want. It is easier to use place the code in a custom Keystroke script where you can use the event.changeEx property to retrieve the export value of the selected item. See the documentation for more information: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.607.html

  • Rephrase my previois post: why mustsaslserver not behaving as it should be

    Shane,
    I think it is better to rephrase my question:
    In a previous answer you said the following:
    An email server/client was able to connect to your server on port 25
    You can enforce SASL on port 25 connections from non-local hosts (not defined in INTERNAL_IP) by modifying the imta.cnf configuration file and changing the tcp_local channel definition. Replace the "maysaslserver" keyword with "mustsaslserver".
    But I've just found this on my testing server:
    After changing the maysaslserver to mustsaslserver for the tcp_local
    stanza,
    PC clients CANNOT connect to my testing server (for mail relaying)
    , which is correct.
    But mails from email servers
    ^^^^^^^^
    CAN, becos incoming mails are still able to come in and sent to
    the local users.
    The mapping file is okay as the stanza is :
    INTERNAL_IP
    $(ip.of.this.host/24) $Y
    127.0.0.1 $Y
    * $N
    Why?

    Okay, Shane.
    Let me describe what I've tried on this JSMS server.
    But before I do so, here is the relevant lines in my mappings file:
    INTERNAL_IP
    $(158.182.1.76/24) $Y
    127.0.0.1 $Y
    * $N
    My line in imta.cnf , i.e. before I've changed it looks like:
    ! tcp_local
    tcp_local smtp mx single_sys remotehost inner switchchannel identnonenumeric sub
    dirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel t
    cp_auth missingrecipientpolicy 0 loopcheck
    When I tested it by sending mail to one of its users from outside, the mail was received
    okay. This is expected.
    Now according to the manual, if I change the "maysaslserver" in the line above
    to "mustsaslserver", then if I did the same test mentioned above,
    it will reject the mail because it won't accept any smtp connection from
    anything other than its own IP (158.182.1.76) or 127.0.0.1
    Is my understanding CORRECT ?
    But when I did the same test (i.e. sending mail to it like I've described above,
    there's no difference. In other words. it did not reject the mail but received it)
    Why?

  • Navigation menu active page color not behaving as it should

    I created an unordered list for the mainnav links. I use the following lines in the code:
    <li><a href="../index.html" class="thispage">Home</a></li>
            <li><a href="#">Events</a></li>
            <li><a href="#">Music</a></li>
            <li><a href="#">Agenda</a></li>
            <li><a href="../Pages/artists.html">Artists</a></li>
    The Home button shows the color for 'active', but if I go to the artists page it first shows the hover color, then the page opens but does not show the active color.... I.o.w. the Home button stays on active though it is not active.
    Please see the effect on my testsite: www.adrianrooymans.nl

    armona22 wrote:
    I'm sorry, but I tried that already, and it does not solve the problem. If I do that I get TWO active pages, but clicking anywhere on the artists page makes the blue color go away, except for the Home button.... I could temporarily put that on the testserver so that you could see what happens (unless you beleive me).
    You will get two active menu items unless the class is removed from the links that you don't want it on.
    If you look at the example page code in the 'completed' folder of the Bayside Beat tutorial you will see on the 'index' page the class has been added to the 'index' link:
    <nav id="mainnav">
          <ul>
            <li><a href="index.html" class="thispage">Home</a></li>
            <li><a href="sightseeing.html">Sightseeing</a></li>
            <li><a href="#">Eating Out</a></li>
            <li><a href="#">What's On</a></li>
            <li><a href="#">Where to Stay</a></li>
          </ul>
        </nav>
    Whilst on the 'sightseeing' page the class has been moved to the 'sightseeing' link:
    <nav id="mainnav">
            <ul>
                <li><a href="index.html">Home</a></li>
                <li><a href="sightseeing.html" class="thispage">Sightseeing</a></li>
                <li><a href="#">Eating Out</a></li>
                <li><a href="#">What's On</a></li>
                <li><a href="#">Where to Stay</a></li>
            </ul>
        </nav>

  • IPhoto is not behaving as it should!

    It's really slow to load.
    iCloud sharing doesn't seem to work properly although I followed the help instructions meticulously.
    When I click "share" it takes ages to load and "iCloud" is grayed out and the only option given is email.
    It won't let me set up a new stream- or rather it won't let me load anything into a new stream.
    At the moment I've given up and am sharing via a memory stick which is useless for videos!!
    Help!

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • NIC Bonding not behaving as it should

    Hi Folks, am trying to setup NIC bonding on my VM (OEL5u6) having two virtualised NICs, i have done the setup which is quite simple however my active-backup mode is not working as expected.
    My Bonded interface
    [root@Gateway network-scripts]# cat ifcfg-bond0
    DEVICE=bond0
    IPADDR=192.169.25.2
    NETMASK=255.255.255.248
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=no
    BONDING_OPTS='mode=active-backup miimon=1000'
    TYPE=Ethernet
    individual interfaces
    [root@Gateway network-scripts]# cat ifcfg-eth2
    DEVICE=eth2
    HWADDR=08:00:27:1e:57:cf
    MASTER=bond0
    SLAVE=yes
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=no
    [root@Gateway network-scripts]# cat ifcfg-eth4
    DEVICE=eth4
    HWADDR=08:00:27:46:69:69
    MASTER=bond0
    SLAVE=yes
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=no
    Bonding status (looks good)
    [root@Gateway network-scripts]# cat /proc/net/bonding/bond0
    Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
    Bonding Mode: fault-tolerance (active-backup)
    Primary Slave: None
    Currently Active Slave: eth2
    MII Status: up
    MII Polling Interval (ms): 1000
    Up Delay (ms): 0
    Down Delay (ms): 0
    Slave Interface: eth2
    MII Status: up
    Link Failure Count: 0
    Permanent HW addr: 08:00:27:1e:57:cf
    Slave Interface: eth4
    MII Status: up
    Link Failure Count: 0
    Permanent HW addr: 08:00:27:46:69:69
    I am doing a continous ping from another host in the same n/w to this bonded interface IP to check if the ping streak breaks when i test this setup
    Testing -
    [root@Gateway network-scripts]# ifenslave -c bond0 eth4
    and that's it my SSH connection is gone, and ping is broken with "Request timed out"
    when i check the bond status now -
    Bonding Mode: fault-tolerance (active-backup)
    Primary Slave: None
    Currently Active Slave: eth4
    MII Status: up
    MII Polling Interval (ms): 1000
    Up Delay (ms): 0
    Down Delay (ms): 0
    Slave Interface: eth2
    MII Status: up
    Link Failure Count: 0
    Permanent HW addr: 08:00:27:1e:57:cf
    Slave Interface: eth4
    MII Status: up
    Link Failure Count: 0
    Permanent HW addr: 08:00:27:46:69:69
    am afraid there's not much help in the message log to debug this.
    Any views what's wrong and how to resolve? appreciate ur replies. Thanks
    Regards Amit

    Hi,
    I'm having the same problem, when i disconnect the cable from the eth0 (active slave) stop receiving respond
    I have tried bridged conf and interal net.
    I'm using VirtualBox 4.1.16
    This is my conf:
    [root@integrador ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
    DEVICE=bond0
    IPADDR=10.10.0.2
    NETWORK=10.10.0.0
    NETMASK=255.255.255.0
    BONDING_OPTS="mode=1 miimon=100"
    BOOTPROTO=none
    ONBOOT=yes
    [root@integrador ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=none
    MASTER=bond0
    SLAVE=yes
    USERCTL=no
    [root@integrador ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
    DEVICE=eth1
    ONBOOT=yes
    BOOTPROTO=none
    MASTER=bond0
    SLAVE=yes
    USERCTL=no
    [root@integrador ~]# cat /etc/modprobe.d/bonding.conf
    alias bond0 bonding
    [root@integrador ~]# ifconfig -a
    bond0 Link encap:Ethernet HWaddr 08:00:27:5C:C5:BA
    inet addr:10.10.0.2 Bcast:10.10.0.255 Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:fe5c:c5ba/64 Scope:Link
    UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
    RX packets:402 errors:0 dropped:0 overruns:0 frame:0
    TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:39487 (38.5 KiB) TX bytes:11045 (10.7 KiB)
    eth0 Link encap:Ethernet HWaddr 08:00:27:5C:C5:BA
    UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
    RX packets:211 errors:0 dropped:0 overruns:0 frame:0
    TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:23061 (22.5 KiB) TX bytes:10863 (10.6 KiB)
    eth1 Link encap:Ethernet HWaddr 08:00:27:5C:C5:BA
    UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
    RX packets:191 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:16426 (16.0 KiB) TX bytes:182 (182.0 b)
    eth2 Link encap:Ethernet HWaddr 08:00:27:DF:11:A2
    inet addr:192.168.57.1 Bcast:192.168.57.3 Mask:255.255.255.252
    inet6 addr: fe80::a00:27ff:fedf:11a2/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1142 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:119508 (116.7 KiB)
    eth3 Link encap:Ethernet HWaddr 08:00:27:D1:41:9A
    inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:fed1:419a/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:825 errors:0 dropped:0 overruns:0 frame:0
    TX packets:625 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:563221 (550.0 KiB) TX bytes:85914 (83.9 KiB)
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:25 errors:0 dropped:0 overruns:0 frame:0
    TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2690 (2.6 KiB) TX bytes:2690 (2.6 KiB)
    [root@integrador ~]# cat /proc/net/bonding/bond0
    Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
    Bonding Mode: fault-tolerance (active-backup)
    Primary Slave: None
    Currently Active Slave: eth0
    MII Status: up
    MII Polling Interval (ms): 100
    Up Delay (ms): 0
    Down Delay (ms): 0
    Slave Interface: eth0
    MII Status: up
    Speed: 1000 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: 08:00:27:5c:c5:ba
    Slave queue ID: 0
    Slave Interface: eth1
    MII Status: up
    Speed: 1000 Mbps
    Duplex: full
    Link Failure Count: 0
    Permanent HW addr: 08:00:27:fc:6b:f6
    Slave queue ID: 0
    [root@integrador ~]# lsmod | grep -i bond
    bonding 109558 0
    ipv6 264641 39 cnic,bonding,ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
    [root@integrador ~]# uname -a
    Linux integrador 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux
    Sorry for my english!

  • After updating to new version of Firefox, my paid for RoboForm will not work. What should I do? I MUST have it working. Thanks Jane

    Yesterday I downloaded the new version of Firefox as suggested by you. Then my paid for version of RoboForm , which always has worked, would not work. I MUST have it working. What can I do now to solve this crucial problem? PLEASE send detailed info so I can follow exactly. Thanks, Jane P.

    You need version 7 of RoboForm for Firefox 4. Version 6 will only work with Firefox 3.6.* or earlier.
    If you have version 6 this may be viewed as a method to generate income by Roboform in forcing users to update to version 7 and not offering updates to version 6 to make it compatible.
    An alternative free password manager that works with Firefox 4 is Lastpass - https://addons.mozilla.org/firefox/addon/lastpass-password-manager
    If you have version 6 of Roboform and need to use it you will have to downgrade to Firefox 3.6
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

Maybe you are looking for

  • Lenovo yoga 2 13 downgrade to win7 drivers

    Hi everyone, I bought this notebook for my father, but he really can't deal with win8.1 so, I thought about downgrade it to win7. Unfortunately I can't find the drivers for this laptop that are compatible with win7, I only found the ones compatible w

  • To do in Mail from emails to my btopenworld (btinternet) address

    I get btopenworld (btinternet) emails into Mail but cannot create a "to do" from them - says i have to add the selected account to iCal which i think i've done even though i don't want/need a link with the BT Yahoo calendar - but it still doesn't wor

  • Problems with variables in query

    I need add variable to my query, made in query generator. My query is long...doesn't work. I read a possible solution for this: declare variable and then use it. For example: Declare @FromDate as DateTime Declare @ToDate as DateTime set FromDate =  '

  • HT1689 how do i get my itunes from my iphone onto my ipad

    How do i get my itunes on my iphone to appear on my new ipad, this is my first ipad. thanks

  • Old and duplicate CS apps on hard drive...

    Hello, I am trying to clean up my boot drive. I need to free up some space on it because it is an SSD that is a few years old so it is only 200GB. It is almost full, and this is confusing because there is really not that many apps on it. I discovered