Samba infinite loop - need help

somehow I created an error that causes an infinite loop in Samba. In the log.nmbd file I have more than 1 GB of the following:
[2006/06/08 16:59:37, 0] /SourceCache/samba/samba-92.15/samba/source/nmbd/nmbd.c:main(668)
Netbios nameserver version 3.0.10 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/06/08 16:59:37, 0] /SourceCache/samba/samba-92.15/samba/source/nmbd/nmbd.c:main(687)
standard input is not a socket, assuming -D option
[2006/06/08 16:59:37, 0] /SourceCache/samba/samba-92.15/samba/source/lib/utilsock.c:open_socketin(724)
bind failed on port 137 socket_addr = 0.0.0.0.
Error = Address already in use
If I turn on Windows file sharing while the Mac is running Samba works fine. But if I reboot with the Windows sharing left on the infinite loop starts at the end of the reboot process. The loop takes up about 50% of CPU but doesn't show up as a process.
Does anybody know what went wrong and how I can fix it?

I also recently installed XCode, not sure, how that would be the cause...
In any case, the nmbd daemon is started even when the system does not act as a name server. The problem goes away, when Windows File Sharing is turned off. But it returns, when it is turned off.
When it is turned off, a flag is set in /System/Library/LaunchDaemons/nmbd.plist - it is removed, when file sharing is turned on.
I turned off Windows Filesharing, and copied the nmbd.plist file. Then, I turned it back on. After that, I copied the old nmbd.plist file back into the LaunchDaemons directory. I used the terminal shell to do this (with sudo etc.)
Now I can reboot, and all is fine. However, if I cycle Windows Filesharing from the Preferences panel, the problem will return.
Removing the log file cleared 3GB (!) of disk space.
I wish there was a uniform way of how all the services and daeamons are handled, with the merge of multiple systems, under the hood things seem to be strewn all over the place....

Similar Messages

  • IPhone 5 restore boot loop, need help!?

    okay so here is the deal.
    I am travelling at the moment so my iphone is VERY important, yesterday i attempted to update my phone from 6.0.1 to 6.0.2. i plugged in my iphone 5 to my macbook pro and let it download and update.
    sadly it failed and now my iphone 5 is stuck in a recovery loop! as i am currently in the moutains there is no phone repair shops around that i can take it too so i need to figure out how to get it out of this recovery loop!
    currently all i have is the connect to itunes logo on my phone.
    i have tried connecting it and restoring the settings but it fails and i get error code (-1), (1600) or (11) normally it is (-1)
    i tried removing the sim card and reinstalling the software but no luck.
    ive been googling this for the past 5 hours and have got nowhere!
    ive attempted programs like tinyumbrella and Recboot but neither works.
    i am really stuck and need help ASAP!!

    Somebody please help!
    ive spent over 10 hours trying to fix this and being in the canadian mountians i have no other help
    need some advice please!!

  • Thread in infinite loop? (help appreciated)

    Basically, i'm trying to make a basic traffic simulator, and learn java at the same time, so bare with me...
    I want a couple of threads to run concurrently in the applet, but am having touble. Basically one starts inside the run() and works fine, but the other wont...infact nothing after the first thread will run (i.e. if the repaint() goes after the end of catch{}). The source is a bit of a mess with no comments, but its all really basic so should be easy for even the elementary java programmer to understand.
    I know the second thread (well what i hope is a second thread) doesn't actually do anything other than output a line that could be done by the first thread, but its just proof of concept for now, i will put stuff in there later.
    source, class and html are here:
    http://www.soton.ac.uk/~tr403/traff/
    also the slider in the bottom right doesn't appear in the browser unless you click on it, but in the applet viewer it comes up...why is this? its at the bottom of my priorities at the mo, but its puzzling, and obviously something really elementary.
    Any help MUCH appreciated, its for my dissertation which has got be to handed in on may 11th ;)
    This the run bit, initated from the start [method? not sure on terminology yet]
    public void run()
                  Thread carmove = Thread.currentThread();
                   try {
                   while (carmove != null){
                   Thread.currentThread().sleep(carsptimeout);
                   xcount++;
                   repaint(0,144,300,5);
                   if (xcount == maxlength1){
                        xcount = 0;
                catch (InterruptedException e){}
                     Thread sysline = Thread.currentThread();
                   try {
                        while (sysline != null){
                        Thread.currentThread().sleep(carsptimeout);
                        System.out.println(xcount);
                   catch (InterruptedException e){}
         }

    oh wait whoops sorry this is in tottaly the wrong place...apologies, will repost in correct section.

  • Need help with infinite loop in recovery mode in Creative Zen 20

    hi,
    I'm having this problem with my Creative Zen 20 GB:
    When I turned it on, it goes immediately to the rescue/recovery mode. Not sure why. Will do that even when I reset the device.
    So, I selected cleanup. After cleanup, it remained showing the menu of the recovery mode. I selected reboot. After reboot, it went back to the rescue/recovery mode. And it goes on and on like an infinite loop.
    Finally, I decided to do a formatAll. Again, it remained in the recovery mode menu after the formatAll action. After reboot, it again went back to the rescue/recovery mode.
    I have never updated the firmware. So, I thought maybe that will help. However, when I connected the device to my PC, the device went to rescue/recovery mode and the PC could not detect the device connected via USB. In short, I am currently not able to do anything at all with the device except charging it.
    Would appreciate help/advise.
    Tks in advance.

    huggiebear wrote:
    I connected the device to the PC and after the PC tried to load the library, it said "Player is not connected".
    What library are you loading? After you have run that reload os option, you need to connect the player to the computer and run the firmware update software. If you haven't download that, you can go to the download section and download it. If all else fail, the player is probably faulty and you would need to get in contact with Customer Support then.
    Jason

  • TS1394 I have 11 software updates.  The machine says in need to retart to install.  I am in an infinite loop where it just keeps restarting and never installing the updates.  Help!

    I have 11 software updates.  The machine says in need to retart to install.  I am in an infinite loop where it just keeps restarting and never installing the updates.  Help!

    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk.

  • Need help with an infinite loop please

    Can somebody please help me out with displaying text that's been imported from another file onto a JTextArea? this is the code i've been trying to get to work, and it does, but it is stuck in an infinite loop and i can't see why. I've tried adding a counter before the while loop, and displaying and incrementing it inside the loop. The counter gets to 32 (the last line of the file) then goes back to 1 and starts again. Any help, or explanations would be awesome, thanks.
    String line;
         while ((line=reader.readLine())!=null){
              System.out.println(num);
              append(line+" \n");
         }                              

    think you will have to post some more of the code, is that within any sort of loop itself , has it its own method ? is it an event handler ? ..btw the append sould be fine .. is this a subclass of a TextArea ? where is this bit of code ?
    Message was edited by:
    odd_function

  • Another Infinite Login Loop Problem - need help badly

    Hello. I need help.
    When I start up my iMac (24 inch last generation model) I can't log into the OS. When I enter my password I see the default OS wallpaper (nothing else) then it kicks me to a blue screen then right back to the login. Same thing over and over. I've already ran disk utility off of the install CD to repair permissions, etc... but no luck. This even happens when I enter into safe mode. I'm running the latest version of the OS.
    Can anyone help me?

    Restore the bootable backup/clone or Time Machine backup. Without one, you have a difficult situation. First thing to try is boot with your install disc, run Disk Utility, and repair the disk.

  • Iphone stuck in infinite loop, HELP!

    my iphone after resetting all settings through settings>general>reset, is stuck in an infinite loop.
    it turns on, shows the apple logo, then about a minute later the loading symbol appears, after 10mins it quickly flashs black and then starts the loop again, i have left it for over 12 hours, to see if it will fix itself, but it wont.
    i cant get it into dfu or recovery mode, it wont even turn off until it runs out of battery and then repeats its loop. when i charge it it just starts the loop again!
    please i really need help, if i cant resolve this problem, im not going to buy the ipad and the iphone 4g as i planned to do so.
    please could anyone help!

    If you can't get your iPhone into DFU or recovery mode, there is a major problem. You can make an appointment at an Apple store if there is one nearby.
    This is a user to user help forum only, so doubtful if any fellow users will lose any sleep over your threat not to purchase an iPad or the next generation iPhone when released if this problem cannot be resolved. If not, more than likely there is a hardware problem or failure. If a problem arises with your PC that you cannot resolve, are you not going to purchase another PC either?

  • Help on how to make an infinite loop with the same space on all images

    HI:
    I made a movie clip with infinite  loop in which there are images that move from right to left something simple like a marquee, and each image has a blank space between  them, but between last and first image there is a more space, how I can do to  make all images have an equal space between each one and that the motion never stops.

    Thanks for your time and answers my friend, but I'm still not be able to achieve what I want, I forgot to tell that I'm doing this by layers, let's say, I have 5 images, (in fact I have like 50 images converted to movie clip symbols) each image has it's own layer, layer 1, layer 2, layer 3, layer 4, layer 5, then I put a 200 frame motion tween on all layers at 30 fps, then I arranged layer 1 on the first frame to the frame 200, the second layer from frame 50 to frame 250, third layer from frame 100 to frame 300, fourth layer from frame 150 to frame 350, and fifth layer from frame 200 to frame 400, by this I mean I put a 50 frame of space on each image but if you can see, the last image has a duration from frame 200 to frame 400, and there's nothing on frame 250 where it is supposed to be another image to match the same blank space of all the others, the movie clip restarts on the frame 400, and there's a 150 frames of blank space between the last image and the first image, I put the gotoandplay on the frame 250, but it abruptly restarts the movie.
    Is there another way to do this ?
    Am I doing something wrong ?
    Please I really really need help on this.
    Thanks

  • The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    The product that I purchased is not working!!!! I need help and I've been stuck in your "Contact us loop" for the last few days and I'm getting frustrated. How do I contact you for HELP!

    Probably the best place to start is the right forum for your product. This is the forum for Distiller Server, a long dead product used by big companies, and probably not what you have. If you can't find the right forum, please let us know the FULL name of what you paid for (please check your invoice, as Adobe have many similar products), and we can perhaps direct you. Good luck!

  • Need help for BPM Process Task - Looping

    Hi Folks,
        I need some info regarding Task Looping in a BPM Process.
    Is there any code sample which mentions how to perform task looping and setting the context appropriately.
    Thanks,
    Brian.

    Hi Brian,
    Please find the below link for Multiple Looping
    http://help.sap.com/saphelp_nwce72/helpdata/en/3d/786ec2dd1243c28aeffa4c1c70df25/content.htm
    Regards
    Srikanth

  • PLSQL in Infinite Loop -- Help!

    The PLSQL procedure below seems to go into an infinite loop. I am hoping that someone out there can tell me why? Many thanks in advance!
    create or replace procedure GF_POC_Migration is
    v_subdo_data varchar2(180); /* email address */
    v_subdo_type varchar2(180); /* email, rss, my yahoo, etc */
    v_subdo_created date;
    v_subdo_modified date;
    v_subdo_subs_id number(20); /* POC subscritpion set id */
    v_subs_identifier varchar2(80); /* POC System cookie identifier */
    v_subs_id number(19); /* POC Subscription SET Id */
    v_sub_id number(19); /* POC Subscription Id*/
    v_subs_created date;
    v_subs_modified date;
    v_sub_created date;
    v_sub_modified date;
    v_consumer_id number(19);
    v_client_shopper_id number(19);
    v_client_id number(19);
    v_sequence_nxtval number(19);
    v_als_id number(19); /* Alert Selector Id */
    v_product_name varchar2(100);
    v_category_name varchar2(254);
    /* Sub Delivery Options from the POC System contains all the information for
    the consumers email address. Using this to drive the process of migration -
    consumer by consumer*/
    Cursor SUBDO_CURSOR IS
    select SUBDO_SUBS_ID, SUBDO_DATA, SUBDO_TYPE, t.SUBS_CREATED, t.SUBS_MODIFIED
    from rm_sub_delivery_options s, rm_subscription_sets t
    where s.subdo_data not in (select t.ooe_email from rm_optout_emails t)
    and t.subs_id = s.subdo_subs_id;
    /* Subscription Sets in the POC system relates to RM_CLIENT_SHOPPER in v1.5 */
    Cursor SUBSCRIPTION_SETS_CURSOR IS
    select subs_identifier, subs_created, subs_modified, subs_id
    from rm_subscription_sets t
    where t.subs_id = v_subdo_subs_id;
    Cursor CLIENTS_CURSOR IS
    select client_id from rm_client t
    where identifier='GUESSFACTORY';
    Cursor NXTVAL_GLOBAL_SEQ IS /* Rainmaker's one and only seq # generator in v1.5 */
    Select rm_global_sequence.nextval
    from dual;
    Cursor SUBSCRIPTIONS_CURSOR IS
    select t.sub_id, t.sub_created, t.sub_modified
    from rm_subscriptions t
    where t.sub_subs_id = v_subs_id;
    CURSOR POC_CAT_AND_PRODS_CURSOR IS /* Get the selector via two view joins to POC & v1.5 */
    select als_id, tier3, full_cat_name
    from poc_catsprodssubs poc, v15_categories_mig v15
    where upper(poc.prd_name)=upper(v15.tier3)
    and upper(poc.prd_identifier)=upper(v15.full_cat_name)
    and poc.sub_id = v_sub_id;
    begin
    /*DBMS_OUTPUT.ENABLE(100000000);*/
    OPEN CLIENTS_CURSOR; /* Get the Guess Factory ID the one time */
    FETCH CLIENTS_CURSOR INTO v_client_id;
    CLOSE CLIENTS_CURSOR;
    OPEN SUBDO_CURSOR;
    LOOP
    FETCH SUBDO_CURSOR /* Get the Signup Email, RSS, etc Info */
    INTO v_subdo_subs_id, v_subdo_data, v_subdo_type, v_subdo_created, v_subdo_modified;
    EXIT WHEN SUBDO_CURSOR%NOTFOUND;
    /*dbms_output.put_line('v_subdo_subs_id = ' || v_subdo_subs_id || ' + ' || v_subdo_data);*/
    LOOP /* Each line of RM_SUBSCRIPTION_SETS - need to create a new row in RM_CLIENT_SHOPPER */
    OPEN NXTVAL_GLOBAL_SEQ; /* Get the next seq value */
    FETCH NXTVAL_GLOBAL_SEQ INTO v_sequence_nxtval;
    v_client_shopper_id := v_sequence_nxtval; /* Capture client_shopper_id */
    CLOSE NXTVAL_GLOBAL_SEQ;
    /*dbms_output.put_line('v_clientshopper_id = ' || v_client_shopper_id || ' + ' || v_sequence_nxtval);*/
    /* Get corresponding records from RM_SUBSCRIPTION_OPTIONS */
    OPEN SUBSCRIPTION_SETS_CURSOR;
    FETCH SUBSCRIPTION_SETS_CURSOR
    INTO v_subs_identifier, v_subs_created, v_subs_modified, v_subs_id;
    EXIT WHEN SUBSCRIPTION_SETS_CURSOR%NOTFOUND;
    /*dbms_output.put_line('poc cookie = ' || v_subs_identifier || ' + ' || v_subs_id);*/
    /* Get the Consumer Id */
    OPEN NXTVAL_GLOBAL_SEQ;
    FETCH NXTVAL_GLOBAL_SEQ INTO v_sequence_nxtval;
    v_consumer_id := v_sequence_nxtval;
    /*dbms_output.put_line('v_consumer_id = ' || v_consumer_id || ' + ' || v_sequence_nxtval);*/
    CLOSE NXTVAL_GLOBAL_SEQ;
    /* Start the Client Inserts */
    INSERT INTO RM_CONSUMER (CONSUMER_ID, CHANGE_NUMBER, STATUS, CREATED, MODIFIED)
    VALUES(v_consumer_id, 0,0, v_subs_created, v_subs_modified);
    /* dbms_output.put_line('Insert to Client Shopper' || v_client_shopper_id || ' + ' ||'Consumer Id:' ||v_consumer_id);
    dbms_output.put_line('Also..Client Id' || v_client_id );*/
    INSERT INTO RM_CLIENT_SHOPPER (CLIENT_SHOPPER_ID, CONSUMER_ID, CHANGE_NUMBER, COOKIE_IDENTIFIER,
    CLIENT_ID, STATUS, LAST_KNOWN_CRS_PROD_IDX, SIGNUP_SUCCESS_STEP, SIGNUP_FAILURE_STEP,
    CREATED, MODIFIED)
    VALUES (v_client_shopper_id, v_consumer_id, 5, v_subs_identifier, v_client_id, 2,0,1,0,v_subs_created, v_subs_modified);
    CLOSE SUBSCRIPTION_SETS_CURSOR;
    /* Start handing the SUBSCRIPTIONS: move POC --> v1.5 */
    OPEN SUBSCRIPTIONS_CURSOR;
    OPEN POC_CAT_AND_PRODS_CURSOR; /* I know I shouldn't be opening/closing this but ... */
    LOOP
    FETCH SUBSCRIPTIONS_CURSOR
    INTO v_sub_id, v_sub_created, v_sub_modified; /* Get subscription info from the POC tables */
    EXIT WHEN SUBSCRIPTIONS_CURSOR%NOTFOUND;
    /*dbms_output.put_line('v_sub_id = ' || v_sub_id || ' + ' || v_sub_created);*/
    INSERT INTO RM_SUBSCRIPTION (SUBSCRIPTION_ID, CHANGE_NUMBER, CREATED, MODIFIED)
    VALUES (rm_global_sequence.nextval, 0, v_sub_created, v_sub_modified);
    FETCH POC_CAT_AND_PRODS_CURSOR
    INTO v_als_id, v_product_name, v_category_name; /* Get correct Alert Selector, Product & Category by matching to the v1.5 tables */
    EXIT WHEN POC_CAT_AND_PRODS_CURSOR%NOTFOUND;
    INSERT INTO RM_NEW_ARRIVALS_SUBSCRIPTION (SUBSCRIPTION_ID,ALERT_SELECTOR_ID,
    CLIENT_SHOPPER_ID, IS_PRIMARY, STATUS) /* Populate the v1.5 Alert Selector selections */
    VALUES(rm_global_sequence.currval, v_als_id, v_client_shopper_id, 0, 1 );
    END LOOP; /* Subsrciption */
    CLOSE POC_CAT_AND_PRODS_CURSOR;
    CLOSE SUBSCRIPTIONS_CURSOR;
    END LOOP; /*Sub Scription Sets */
    /* Populate the v1.5 RM_DELIVERY_OPTIONS table */
    INSERT INTO RM_DELIVERY_OPTION (DELIVERY_OPTION_ID, CHANGE_NUMBER, TYPE, DATA, CLIENT_SHOPPER_ID,CREATED, MODIFIED)
    VALUES (RM_GLOBAL_SEQUENCE.NEXTVAL, 0, v_subdo_type, v_subdo_data, v_client_shopper_id, v_subdo_created, v_subdo_modified);
    /*COMMIT;*/
    END LOOP; /* Main Control Loop */
    CLOSE SUBDO_CURSOR;
    END GF_POC_Migration;

    If you cut out all the things that are obviously open/closed etc. and look at your loops...
    BEGIN
       OPEN subdo_cursor;
       LOOP
          FETCH subdo_cursor INTO v_subdo_subs_id, v_subdo_data, v_subdo_type, v_subdo_created, v_subdo_modified;
          EXIT WHEN subdo_cursor%NOTFOUND;
          LOOP
             OPEN subscriptions_cursor;
             OPEN poc_cat_and_prods_cursor;
             LOOP
                FETCH subscriptions_cursor INTO v_sub_id, v_sub_created, v_sub_modified;
                EXIT WHEN subscriptions_cursor%NOTFOUND;
                FETCH poc_cat_and_prods_cursor INTO v_als_id, v_product_name, v_category_name;
                EXIT WHEN poc_cat_and_prods_cursor%NOTFOUND;
             END LOOP;                                          /* Subsrciption */
             CLOSE poc_cat_and_prods_cursor;
             CLOSE subscriptions_cursor;
          END LOOP;  << THERE IS NOTHING TO EXIT THIS LOOP
       END LOOP;
       CLOSE subdo_cursor;
    END gf_poc_migration;

  • Need help for loop at screen

    Hi All,
    This is Rajani. I need help on LOOP AT SCREEN statement.
    I have 3 selection blocks in the selection screen.
    First block contains two radio buttions, the second block contains 6 parameters and the third block contains 3 parameters.
    If the first radiobutton is selected, then the parameters in the third block should be grayed out.
    In the similar way for the second radiobutton.
    Please let me know my mistake from the following code :
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
      PARAMETERS : P_SALES TYPE C RADIOBUTTON GROUP G1 MODIF ID R1,
                   P_OPS   TYPE C RADIOBUTTON GROUP G1 MODIF ID R1,
                   P_MONTH TYPE SPMON OBLIGATORY MODIF ID R1.
    SELECTION-SCREEN END   OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
      PARAMETERS : P_SADIS TYPE BZIRK MODIF ID M1,
                   P_CUGRP TYPE KDGRP MODIF ID M1,
                   P_SADCH TYPE VTWEG MODIF ID M1,
                   P_SADIV TYPE SPART MODIF ID M1,
                   P_CUPAR TYPE HIEZU04 MODIF ID M1,
                   P_MAGRP TYPE MVGR1 MODIF ID M1,
                   P_PRHIE TYPE PRODH1 MODIF ID M1.
      SELECT-OPTIONS:  S_MATNR FOR S889-MATNR.
      PARAMETERS :     P_PLANT TYPE WERKS_EXT.
    SELECTION-SCREEN END   OF BLOCK B2.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-003.
        PARAMETERS :  P_WERKS TYPE WERKS_EXT MODIF ID M2,
                      P_MATGR TYPE PMNUX MODIF ID M2,
                      P_MRPCN TYPE DISPO MODIF ID M2.
    SELECTION-SCREEN END   OF BLOCK B3.
    *INITIALIZATION.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'M1'.
        IF P_OPS = 'X'.
          SCREEN-INPUT = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDIF.
        IF SCREEN-GROUP1 = 'M2'.
        IF P_SALES = 'X'.
          SCREEN-INPUT = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

    Hi,
    This is your expected solution.
    TABLES: mara.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : p_sales TYPE c RADIOBUTTON GROUP g1 USER-COMMAND ucom   DEFAULT 'X',  "MODIF ID r1
    p_ops TYPE c RADIOBUTTON GROUP g1 .  "MODIF ID r1
    PARAMETERS: p_month TYPE spmon OBLIGATORY ." MODIF ID r1
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : p_sadis TYPE bzirk MODIF ID m1,
    p_cugrp TYPE kdgrp MODIF ID m1,
    p_sadch TYPE vtweg MODIF ID m1,
    p_sadiv TYPE spart MODIF ID m1,
    p_cupar TYPE hiezu04 MODIF ID m1,
    p_magrp TYPE mvgr1 MODIF ID m1,
    p_prhie TYPE prodh1 MODIF ID m1.
    SELECT-OPTIONS: s_matnr FOR mara-matnr.
    PARAMETERS : p_plant TYPE werks_ext.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    PARAMETERS : p_werks TYPE werks_ext MODIF ID m2,
    p_matgr TYPE pmnux MODIF ID m2,
    p_mrpcn TYPE dispo MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_sales = 'X'.
          IF screen-group1 = 'M2'.
            screen-input = '0'.
          ENDIF.
        ENDIF.
        IF p_ops IS NOT INITIAL.
          IF screen-group1 = 'M1'.
            screen-input = '0'.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Close this thread if you got soloution.
    Regards,
    Peranandam

  • Help me pls! - Infinite loop!!

    Dear Guys,
    I am totally lost in my codes, pls help, TQ:
    import java.io.*;
    public class opReadLine {
         public opReadLine() {} //class constructor
         public static void main(String args[]) {
              FileReader inFile;
              BufferedReader inData;
              try {
                   inFile = new FileReader("test.cfg");
                   inData = new BufferedReader(inFile);
                   String temp = inData.readLine();
                   do {
                        System.out.println("The UID is: " + temp);
                   } while (temp != "END");
                   inData.close();
              catch (IOException ie) {
              ie.printStackTrace();
    Content of "test.cfg":
    END
    note: there is no blank line above "END"!!
    Rgds,
    Daniel

    Sorry I forgot to state the problem I am facing and the code I actually wanted.
    I want my code to read from a file line by line until it meets the word "END".
    However, I found there is a big syntax problem in:
    do {
    } while (temp != "END");
    The result for the code above is infinite loop of System.out.println("The UID is: " + temp);
    However,
    when I changed the code to:
    do {
    } while (temp == "END");
    it will execute "System.out.println(The UID is: " + temp) once and stops.
    In other words, the code recognizes END, but why when I try to compare with !=, it gives me problem??
    Pls help! TQ

  • I need Help with loop

    Hello everyone this is my first time posting here, i have always find java easy(up to this point), this is my first class in programming java i am just needing help with the "for loops" i cant seem to get the program generate 10 random math questions. if you guys can please help i will appreciate it, i have been working on it for a couple of hours. I am not finished with it yet but thats the only thing i need help with.
    import javax.swing.JOptionPane;
    public class Lab5
    public static void main(String[] args)
    int num1 = (int) (Math.random() * 100 + 1);
    int num2 = (int) (Math.random() * 100 + 1);
    int sum = num1 + num2;
    int product = num1 * num2;
    int quotient = num1 / num2;
    int difference = num1 - num2;
    for (int i = 0; i > 11; i++);
    int number = (int)(Math.random()*4);
    if (number == 0 )
    String s1 = JOptionPane.showInputDialog(null, num1 + " + " + num2 + "=" );
    if(number == 1)
    String s3 = JOptionPane.showInputDialog(null, num1 + " - " + num2 + "=" );
    if(number == 2)
    String s3 = JOptionPane.showInputDialog(null, num1 + " x " + num2 + "=" );
    if(number == 3)
    String s4 = JOptionPane.showInputDialog(null, num1 + " &divide; " + num2 + "=" );

    for (int i = 0; i > 11; i++);Two problems with this line:
    1) The second part of a For loop is the constraint. You have said that for the loop to be entered, i must be greater than 11. Well since you've also told i to begin at 0, this will never happen. Thus, the loop will never enter. You may have meant less than?
    2) You put a semicolon in the line. Semicolons are used to end statements. The For loop, when used as a block with curly braces, is not a single statement and does not require a semicolon. Here's the two structures of a basic For loop:
    for(int i = 0; i <= 100; i++) {
        //this is a block. you can put multiple statements in here and they are all part of the loop
        int a = 1;
        int b = i;
    //if your loop only needs to use a single statement, no braces are required
    for(int i = 0; i <= 100; i++)
        int a = i;

Maybe you are looking for

  • Purchased movies on Apple TV no longer sync back to iTunes on computer

    Many TIA, the movies I have purchased on the Apple TV via iTunes have stopped syncing back to my computer. They initially did, but stopped about 4-6 weeks ago. It syncs movies just fine from Computer's iTunes to the Apple TV, but not the other way. I

  • Calling a java loaded API from PL/SQL

    HI, I have a java program loaded in the Database. For sake of clarity I am posting the java Program also. package mypackage1; public class WriteClob extends CLOB public static void main(String[] args) { Connection conn = null; String url = null; Stri

  • Cannot open iTunes after upgrade due to missing .dll file

    I cannot open iTunes after a recent upgrade. The error is "Applepushservice.dll is missing.  Please reinstall iTunes."  Which I have now done 8 times. I have uninstalled everything, clear the cache and rebooted. Now what?  Can I download the file fro

  • Help required in Struts Layout Tags

    Is it possible to pass more the one parameter in paramProperty & paramId attribute of<layout:link /> tag. I am using an collecetion item. pls let me know if it is possible. <layout:collectionItem  title="Edit" property="editImage" styleClass="FORM">

  • Search Help with value on SE11

    Hi Gurus, I have two parameters on my screen, PARTNER and PSOBKEY. I have created a Search Help on SE11 for the second parameter, and this search help has that 2 parameters too. First I enter PARTNER, then I open the search help for PSOBKEY, and I wa