Zero denominator loop

Hi, I'm seeing "zero denominator converting ratio denominators. (17 :: 18)" when dealing specifically with looped image sequences. This has started recently with AE CC. If I set the loop to something really high, like 9999 - if I try to add an effect to the footage it throws this error. I've tried it on PNG and TIFF and it seems consistent. Interpret the footage to loop 99 times and the affects are applied just fine. Bug?

Yes, I checked the frame rates - everything is running at exactly 24 fps. Setting loops at 9999 seems to consistently trigger the error, 999 appears ok (Ive tried it with a couple different PNG sequences, between 100 and 500 frames). It's not a big deal, as 9999 is overkill - but I used to always throw 9999 in the loop settings and never experienced this error. But I was banging my head against this for a while so wanted to share my findings in case anyone else runs into this.

Similar Messages

  • AE CS5 Crashing with Zero Denominator & Strange Situation errors

    Good afternoon!
    In AE CS5 for OSX, we've started observing a strange behavior:
    - I have an AE project w/ footage loaded, including a Quicktime movie rendered out of another app (e.g., a 3D app)
    - I need a change to the movie, so I re-render it from the 3D app, replacing the existing movie.
    - In AE, I get impatient and click Reload Footage while the movie is still being re-rendered.
    In past versions of AE, I got an error (unrecognized file type) but AE continued to operate.  With CS5, I get a series of errors:
    "may be an unsupported format" (expected)
    "zero denominator in ratio addition"
    "zero denominator comparing ratios"
    "zero denominator converting ratio denominators"
    "After Effects Error: Strange Situation"
    Even after the movie finishes rendering, I keep getting the errors and clicking OK keeps presenting errors.  Have to force-quit AE to get on with my day.
    Is this a bug?  New in CS5?  I understand that I'm trying to do something "wrong" by loading a piece of footage that's invalid, but shouldn't I just get a polite "that piece of footage is no good", the ol' test-pattern, and be able to keep working and come back to it when it's ready?
    Anyone else run into this?
    --Rob

    but shouldn't I just get a polite "that piece of footage is no good", the ol' test-pattern, and be able to keep working and come back to it when it's ready?
    In theory yes, but as I just explained in another thread, 64bit AE vs. ye olde QT is full of workarounds and limitations due to Apple not seeming to care at all. That and the differences in 64bit file access on a more general level may lead AE to wrong conclusions. I'm sure it's a bug of sorts plus perhaps your 3D app (Cinema 4D?) could also do better by closing and re-opening the file from time to time so at least some parts are accessible instead of keeping it permanently open. For the time being, simply use image sequences...
    Mylenium

  • 5.5 trial: zero denominator error message

    First, from within PP 5.5 trial version, I tried to dynamically link an XDCAM clip between with AE 5.5 trial version.  The footage in AE was interpretted as audio only, when it is 1080p 25. ) I have a simple MP4 comp in AE5.
    The same interpretation happens if I do a straight import of the XDCAM into AE5.5.
    Opening AE5 and importing works as expected, so I saved the AE5 comp and opened it is AE5.5 trial.  Once it converts the project to 5.5, I receive the error message:  zero denominator converting ratio demoninators. (17::18).  Once I have clicked through several of these messages, they return when I attempt to scrub the timeline.
    Can anyone give me a steering, please, or is this a trial limitation?

    Thanks Mylenium.  I've tried just about everything, and have reverted back to Production Premium CS5 for the time being.
    Shame, as this would have been the perfect project to put 5.5 through its paces.

  • What causes "After Effects error: zero denominator converting ratio denominators. (17  ::  18)" ?

    I have the latest update 11.0.2. (Saw same issue with version 11.0.0)
    Got the error yesterday from my render computers. Had to render on one machine.
    The next day I was able to use the render farm without any issues at all.
    But then the next time I rendered, same day, merely changing colors on a layer, I get the error message again.
    Same project file each time. Why does it work sometimes but not other times???
    How can this be remedied?
    I have not seen this error in all my years of using AE. I have not made any changes to my computers except regular Windows updates. Last version we couldn't network at all, now there are errors while trying to network render.

    I think I found "my" problem. I don't know if other will solve this issue the same.
    It turns out that a certain .AVI file rendered from Cineform Studio will not work in a network render, onl yin the stand alone AE software.
    I rendered that .AVI out from AE as a .AVI and now I don't get the error. So apparently, the Cineform format won't work on a network render.
    By the way, that might be a really good feature request!

  • After Effects error: Zero denominator in relation multiplication

    Hey guys,
    I don't know what now to do. I got this error ago 30 minutes.
    Render doesn't work. If i press ctrl(strg) + M, then is comming this error. I want only render, this file.
    I'm using Windows 7 - 4 GB RAM, AMD Processor and ATI(AMD) Grahpic card. I'm using the newest version from After Effects CC Version 12.2.0.52 . There is no updates or something. I'm using the Creative Cloud.
    I hope you can help me.. [It's German, so don't worry and translate it, i made it too ]
    Sorry for my really bad English, im German.
    If you need more information, post it.

    Ohne genaue Rendersettings wird das nix. AVI ist nur ein Containerformat und so, woe's ist, nützt uns das nix. Außerdem müßte man schon mal die Comp settings wissen, welche Quellmaterialien verwendet wurden, welche Effekt usw.. Solche Mathe-Fehler sind fast immer entweder beschädigte Ausgangsdateien oder irgendein Effekt, der durchdreht...
    Mylenium

  • 17 :: 19 After Effects Error: zero denominator converting ratio denominators

    Hi,
    I've been getting this error after I installed AE on a fresh installation of Windows. Google has a collection of complicated explanations.
    Mylenium has a nice blog about error messages, but it also has a big explanation.
    So I stated thinking: Fresh install... codecs! What am I using?
    I disabled all mp4 layers and the error went away.
    So if you're getting 17 :: 19, you might want to check for something simple like Advanced Video Codec footage without Quictime, FFDshow or Core installed.

    I think I found "my" problem. I don't know if other will solve this issue the same.
    It turns out that a certain .AVI file rendered from Cineform Studio will not work in a network render, onl yin the stand alone AE software.
    I rendered that .AVI out from AE as a .AVI and now I don't get the error. So apparently, the Cineform format won't work on a network render.
    By the way, that might be a really good feature request!

  • After Effects Error: zero denominator in ratio multiply. ( 17 :: 17 ) | How to Fix?

    I changed the fps rate in the Preview panel.
    From 29.97fps to 59.94fps.
    And I did a preview.
    When I went back to 29.97, and did preview, appears this error, when i try make RAM Preview.
    It seems that fps with number integer works normal, because I've put in 30 fps, 25, 24, 15, and all work normal, the problem appears only when put in 29.97fps or 59.94fps.

    This problem might have some relationship with the Motion Blur settings?
    That i changed.

  • Compute Denominations

    I'm writing a Java program that computes the number of money denominations. I need to display the non-zero denominations only and display singular words for single units like 1 dollar and 1 penny, and display plural words for more than one unit like 2 dollars and 3 pennies. If a zero or a negative amount is entered, it will display a message stating that the amount entered was zero or negative.
    I'm having issues with showig the non-zero denominations & singular words, Help anyone?
    Here's what I have so far:
    // Assignment 3.1: ComputeChange.java
    // This program breaks down an currency amount into smaller units
    import javax.swing.JOptionPane;
    public class ComputeChange
         // main method begins execution of Java program
         public static void main(String[] args)
              double amount; // Amount entered from the keyboard
              // Receive the amount entered from the keyboard
              String amountString = JOptionPane.showInputDialog(null,
                   "Enter an amount in double, for example 23.97",
                   "Compute Change Input", JOptionPane.QUESTION_MESSAGE);
              // Convert string to double
              amount = Double.parseDouble(amountString);
              int remainingAmount = (int)(amount * 100);
              // Find the number of one dollars
              int numOfOneDollars = remainingAmount / 100;
              remainingAmount = remainingAmount % 100;
              // Find the number of quarters in the remaining amount
              int numOfQuarters = remainingAmount / 25;
              remainingAmount = remainingAmount % 25;
              // Find the number of dimes in the remaining amount
              int numOfDimes = remainingAmount / 10;
              remainingAmount = remainingAmount % 10;
              // Find the number of nickels in the remaining amount
              int numOfNickels = remainingAmount / 5;
              remainingAmount = remainingAmount % 5;
              // Find the number of pennies in the remaining amount
              int numOfPennies = remainingAmount;
              // Display results
              if ( amount == 0 )
                   String output = "Your amount is zero";
                 JOptionPane.showMessageDialog(null, output,
                      "Currency Breakdown Output", JOptionPane.INFORMATION_MESSAGE);
              else if ( amount < 0 )
                   String output = "Your amount is negative";
                 JOptionPane.showMessageDialog(null, output,
                      "Currency Breakdown Output", JOptionPane.INFORMATION_MESSAGE);
              else if ( amount > 0 )
                   String output = "Your amount " + amount + " consists of \n" +
                        numOfOneDollars + " dollars\n" +
                        numOfQuarters + " quarters\n" +
                        numOfDimes + " dimes\n" +
                        numOfNickels + " nickel\n" +
                        numOfPennies + " pennies";
                   JOptionPane.showMessageDialog(null, output,
                        "Currency Breakdown Output", JOptionPane.INFORMATION_MESSAGE);
              System.exit(0);
         } //end main method
    }

    I'm having issues with showig the non-zero denominations & singular words, Help anyone?What's the problem, specifically? We're not interested in debugging your code

  • Looking for EXS24 / Loop content - recommendations?

    I can't complain about the content included with LS8 but I want 'more'.
    I'd strongly prefer not to get a 3rd party ROMpler but I'd like content something like Sampletank XL or SonicSynth2 and Stylus RMX. I'm comfortable with the LS8 tools and prefer getting new content that integrates into the LS8 ecosystem of tools, you know?
    Are the Zero-G loops decent? I'd love to find a fat batch of EXS24 instruments as well. Any recommendations?

    I love Logic plugins, some of them are really powerful with lot of features to customize the sound (but if you dislike to play with sound programming.....); to them I add the wonderful Reason, the incredible ImpOSCar (I had the real one some years ago) and the ultrapowerful TimewARP2600 (really hard to handle but.... it could crash your monitors ).
    About sounds and loops check sample4, East & West, Zero-G.
    cheers
    rob

  • Use transaction FILE to store data from a cube into a file with Open Hub

    Hi people:
    I'm using BI 7.0 .Mi requirement is to make a flat file using the information of a virtual cube. The file name must have the number of the month and the year. I know that this is possible through FILE transaction.
    Can anybody give me a clue how this transaction is used?Which are the steps in order to assemble the name of the file? Or is there any other option? I have defined the physical directory where the file must be leaved
    Any help will be great. Thanks in advanced

    Hi,
    pick up the code which you need from below.
    REPORT RSAN_WB_ROUTINE_TEMP_REPORT .
    TYPES: BEGIN OF y_source_fields ,
             /BIC/ZTO_ROUTE TYPE /BIC/OIZTO_ROUTE ,
             ZINT_HU__Z_WM_HU TYPE /BIC/OIZ_WM_HU ,
             CREATEDON TYPE /BI0/OICREATEDON ,
             ROUTE TYPE /BI0/OIROUTE ,
             PLANT TYPE /BI0/OIPLANT ,
             PLANT__0STREET TYPE /BI0/OISTREET ,
             PLANT__0CITY TYPE /BI0/OICITY ,
             PLANT__0REGION TYPE /BI0/OIREGION ,
             PLANT__0POSTAL_CD TYPE /BI0/OIPOSTAL_CD ,
             /BIC/ZRECVPLNT TYPE /BIC/OIZRECVPLNT ,
             ZRECVPLNT__0STREET TYPE /BI0/OISTREET ,
             ZRECVPLNT__0CITY TYPE /BI0/OICITY ,
             ZRECVPLNT__0REGION TYPE /BI0/OIREGION ,
             ZRECVPLNT__0POSTAL_CD TYPE /BI0/OIPOSTAL_CD ,
             KYF_0001 TYPE /BI0/OIDLV_QTY ,
             ROUTE__Z_CR_DOCK TYPE /BIC/OIZ_CR_DOCK ,
             REFER_DOC TYPE /BI0/OIREFER_DOC ,
           END OF y_source_fields .
    TYPES: yt_source_fields TYPE STANDARD TABLE OF y_source_fields .
    TYPES: BEGIN OF y_target_fields ,
             RECORDTYPE TYPE /BI0/OISTREET ,
             CONTAINER TYPE /BI0/OICITY ,
             /BIC/ZTO_ROUTE TYPE /BIC/OIZTO_ROUTE ,
             TRACKINGNUMBER TYPE /BIC/OIZ_WM_HU ,
             PO TYPE /BI0/OICITY ,
             STAGEDDATE TYPE /BI0/OICITY ,
             MOVEMENTTYPE TYPE /BI0/OICITY ,
             ROUTE TYPE /BI0/OIROUTE ,
             PLANT TYPE /BI0/OIPLANT ,
             PLANT__0STREET TYPE /BI0/OISTREET ,
             PLANT__0CITY TYPE /BI0/OICITY ,
             PLANT__0REGION TYPE /BI0/OIREGION ,
             PLANT__0POSTAL_CD TYPE /BI0/OIPOSTAL_CD ,
             ORIGINCONTACTNAME TYPE /BI0/OISTREET ,
             ORIGINCONTACTPHONE TYPE /BI0/OISTREET ,
             /BIC/ZRECVPLNT TYPE /BIC/OIZRECVPLNT ,
             ZRECVPLNT__0STREET TYPE /BI0/OISTREET ,
             ZRECVPLNT__0CITY TYPE /BI0/OISTREET ,
             ZRECVPLNT__0REGION TYPE /BI0/OISTREET ,
             ZRECVPLNT__0POSTAL_CD TYPE /BI0/OISTREET ,
             DESTINATIONCONTACTNAME TYPE /BI0/OISTREET ,
             DESTINATIONCONTACTPHONE TYPE /BI0/OISTREET ,
             RCCCODE TYPE /BI0/OISTREET ,
             GLCORCLLICODE TYPE /BI0/OISTREET ,
             JFCCODE TYPE /BI0/OISTREET ,
             DESCRIPTIONOFWORK1 TYPE /BI0/OISTREET ,
             DESCRIPTIONOFWORK2 TYPE /BI0/OISTREET ,
             INSTRUCTIONS TYPE /BI0/OISTREET ,
             REQUESTEDSHIPDATE TYPE /BI0/OICITY ,
             ROUTE__Z_CR_DOCK TYPE /BIC/OIZ_CR_DOCK ,
             REQUESTEDDELIVERYDATE TYPE /BI0/OICITY ,
             ATTSEORDER TYPE /BI0/OICITY ,
             CUBE TYPE /BI0/OISTREET ,
             WEIGHT TYPE /BI0/OISTREET ,
             PIECES TYPE /BI0/OIREFER_DOC ,
             REEL TYPE /BI0/OISTREET ,
             REELSIZE TYPE /BI0/OISTREET ,
             VENDORSKU TYPE /BI0/OISTREET ,
             ATTSESKU TYPE /BI0/OISTREET ,
             COMPANYNAME TYPE /BI0/OISTREET ,
             OEM TYPE /BI0/OISTREET ,
             REFER_DOC TYPE /BI0/OIREFER_DOC ,
             REFERENCENUMBER2 TYPE /BI0/OISTREET ,
             REFERENCENUMBER3 TYPE /BI0/OISTREET ,
             REFERENCENUMBER4 TYPE /BI0/OISTREET ,
           END OF y_target_fields .
    TYPES: yt_target_fields TYPE STANDARD TABLE OF y_target_fields .
    Begin of type definitions -
    *TYPES: ...
    End of type definitions -
    FORM compute_data_transformation
         USING     it_source TYPE yt_source_fields
                   ir_context TYPE REF TO if_rsan_rt_routine_context
         EXPORTING et_target TYPE yt_target_fields .
    Begin of transformation code -
      DATA: ls_source TYPE y_source_fields,
            ls_target TYPE y_target_fields,
            var1(10),
            var2(10),
            year(4),
            month(2),
            day(2),
            date(10),
            it_workdays type table of /bic/pzworkdays,
            wa_workdays type /bic/pzworkdays,
            sto_date(10),
            V_tabix TYPE sy-tabix,
            Y_tabix TYPE sy-tabix,
            sto_var1(10),
            sto_year(4),
            sto_month(2),
            sto_day(2),
            sto_final_date(10),
            W_HEADER LIKE LS_TARGET-RECORDTYPE,
            W_HEADER1(12) TYPE C VALUE 'HEDR00000000',
            W_FOOTER LIKE W_HEADER VALUE 'TRLR0000',
            CNT(5),
            CMD(125) TYPE C.
    **********CODE FOR GENRATING CSV FILE PATH*******************
    data: OUTFILE_NAME(100) TYPE C,
          OUTFILE_NAME1(10) TYPE C VALUE '/sapmnt/',
          OUTFILE_NAME3(18) TYPE C VALUE '/qoutsap/ATTUVS',
          DATE1 LIKE SY-DATUM,
          DD(2) TYPE C,
          MM(2) TYPE C,
          YYYY(4) TYPE C.
    MOVE SY-DATUM+6(2) TO DD.
    MOVE SY-DATUM+4(2) TO MM.
    MOVE SY-DATUM(4) TO YYYY.
    CONCATENATE YYYY MM DD INTO DATE1.
    CONCATENATE OUTFILE_NAME1 SY-SYSID OUTFILE_NAME3 '.CSV' INTO
    OUTFILE_NAME.
    **********END OF CODE FOR GENRATING CSV FILE PATH*************
      OPEN DATASET OUTFILE_NAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Code for generating Header.
      CONCATENATE W_HEADER1  SY-DATUM SY-UZEIT INTO W_HEADER.
      APPEND W_HEADER TO ET_TARGET.
      TRANSFER W_HEADER TO OUTFILE_NAME.
      CLEAR W_HEADER.
    End of code for generating Header.
    code for excluding the rows who's Quantity(PIECES) equal to zero.
      LOOP AT it_source INTO ls_source where KYF_0001 NE '0'.
    end of code for excluding the rows who's Quantity(PIECES) equal to
    *zero
        MOVE-CORRESPONDING ls_source TO ls_target.
        ls_target-RECORDTYPE = 'PKUP'.
        ls_target-CONTAINER = ''.
        ls_target-TRACKINGNUMBER = ls_source-ZINT_HU__Z_WM_HU.
        ls_target-PO = ''.
    Date Conversion for Staged Date.
        var1 = ls_source-CREATEDON.
        year = var1+0(4).
        month = var1+4(2).
        day = var1+6(2).
        CONCATENATE month '/' day '/' year INTO date.
    End of Date Conversion for Staged Date.
        ls_target-STAGEDDATE = date.
        ls_target-MOVEMENTTYPE = 'P'.
        ls_target-ORIGINCONTACTNAME = ''.
        ls_target-ORIGINCONTACTPHONE = ''.
        ls_target-DESTINATIONCONTACTNAME = ''.
        ls_target-DESTINATIONCONTACTPHONE = ''.
        ls_target-RCCCODE = ''.
        ls_target-GLCORCLLICODE = ''.
        ls_target-JFCCODE = ''.
        ls_target-DESCRIPTIONOFWORK1 = ''.
        ls_target-DESCRIPTIONOFWORK2 = ''.
        ls_target-INSTRUCTIONS = ''.
        ls_target-REQUESTEDSHIPDATE = date.
    Calculating STO Creation Date + 3 working Days.
        select /BIC/ZWORKDAYS from /bic/pzworkdays into table it_workdays.
        loop at it_workdays into wa_workdays.
            if  wa_workdays-/bic/zworkdays = ls_source-CREATEDON.
                V_tabix = sy-tabix.
                Y_tabix = V_tabix + 3.
            endif.
            If sy-tabix = y_tabix.
                sto_date = wa_workdays-/bic/zworkdays.
            endif.
        Endloop.
        clear v_tabix.
        clear Y_tabix.
        sto_var1 = sto_date.
        sto_year = sto_var1+0(4).
        sto_month = sto_var1+4(2).
        sto_day = sto_var1+6(2).
        CONCATENATE sto_month '/' sto_day '/' sto_year INTO sto_final_date.
    End Of Calculating STO Creation Date + 3 working Days.
        ls_target-REQUESTEDDELIVERYDATE = sto_final_date.
        ls_target-ATTSEORDER = ''.
        ls_target-CUBE = ''.
        ls_target-PIECES = ls_source-KYF_0001.
        ls_target-REEL = ''.
        ls_target-REELSIZE = ''.
        ls_target-VENDORSKU = ''.
        ls_target-ATTSESKU = ''.
        ls_target-COMPANYNAME = 'AT&T'.
        ls_target-OEM = ''.
        ls_target-REFERENCENUMBER2 = '0'.
        ls_target-REFERENCENUMBER3 = '0'.
        ls_target-REFERENCENUMBER4 = '0'.
        APPEND ls_target TO et_target.
        TRANSFER ls_target TO OUTFILE_NAME.
        CNT = CNT + 1.
      ENDLOOP.
        CNT = CNT + 2.
    Code for generating Header -Footer.
      SHIFT CNT LEFT DELETING LEADING SPACE.
      CONCATENATE W_FOOTER CNT INTO W_HEADER.
      APPEND W_HEADER TO ET_TARGET.
    End of code for generating Header -Footer.
    Code for file permissions
      TRANSFER W_HEADER TO OUTFILE_NAME.
      CLOSE DATASET OUTFILE_NAME.
      CONCATENATE 'chmod 644' OUTFILE_NAME INTO CMD SEPARATED BY SPACE.
      CALL 'SYSTEM' ID 'COMMAND' FIELD CMD.
    End of code for file permissions
    End of transformation code -
    ENDFORM.
    Hope it helps
    bhaskar

  • Tired of paying for Apple's continued failure. Give us option on phone (NOT thru itunes sync) to MANUALLY delete songs from playlists or the iphone altogether.

    It happens every time I make iTunes music purchases: entire playlists get wiped out, and all I can sync onto the iPhone 5 is what I just purchased, UNLESS, YET AGAIN, I completely restore it to factory and rewrite everything all over.
    So sad, Apple.
    Yes, I have looked thru the forum threads yet again, and found no other working solution.
    Yes, I tried backing up the phone 1st but still get stuck with (expletive) I wanted off the phone, and stuff I wanted on there, ISN'T there.
    For whatever (insert expletive of choice) reason, it will NOT sync my old playlists.
    For whatever (expletive) reason, if I check "manually manage music" under the Summary tab, then go over the music tab, something (expletive of choice)  up in the software decides to uncheck the "Manually manage music" box under the Summary tab, and it just creates a zero-progress loop where I can't sync the old playlists, or even new ones I create, onto the iphone.
    Worse, songs I tried to take off of it long ago seem to manifest the (expletive) right back onto the iphone out of nowhere, and unless I completely restore, LIKE I'M DOING AGAIN, there is no working option I have found that removes the song(s) I THOUGHT I GOT RID OF.
    PLEASE, Apple, is it asking too much to create a music sync that WORKS CORRECTLY all the time?
    It is ONLY ever the music that does this.
    App syncing, photo syncing, all of that functions properly each and every time.
    And yet, oh look, it won't accept any playlists off my AUTHORIZED computer.
    GIVE US THE SIMPLE option on the next iPhone update so we can manually remove/delete unwanted songs from playlists on the iphone, or from the iphone altogether, WITHOUT needing to connect it to a computer thru a faulty iTunes software that obviously consistently fails to properly sync the correct music on and take off what we don't want.
    This is the final time I'm making the mistake of iTunes Store purchases until a sensible fix is implemented that addresses this fail sync issue.
    Again, WHY is it ONLY and only ever the music syncing that (expletive of choice to get the point across) fails, yet apps and photos and mail & phone contacts sync correctly every time?
    Yes, I read in the forum threads and customer support responses what needs to be checked and/or unchecked, yet all too often some software fail decides to revert those selections right back to where they were if I click another tab and come back to it (no, it's not an administrator thing, I am the only authorized user on the computers in question).
      I'm tired of the hassle of having to redo my music library all over again, restore the phone, and hope that once more it will have the correct songs I told it to sync and NOT have a bunch of crap I never checked for it to have on there in the first place.
    FIX THIS PLEASE.

    You're welcome.
    tt2

  • Copy and paste from premiere

    hey guys,
    copy and paste into after effects worked like a charm with CS5.5, but now when i copy and paste to CS6 is gives me a After Effects Error 17::18: zero denominator converting ratio denominators
    the're m4v files, but that's never been a problem before...
    any ideas?

    the're m4v files, but that's never been a problem before...
    Well, so many things never have been a problem before, but then CS6 came around the corner and reared its ugly head... Not realyl an idea, but you might wanan follow some of the advise I just posted yesterday: http://myleniumblog.com/2012/05/15/make-cs6-work-for-you/ Perhaps one setting or a combination of things will avoid the issues.
    Mylenium

  • Displaying multiple max occurrences in a collection.

    Hello, I've written a program that asks the user to input numbers. Once 0 is entered, input ends. The values are then stored in a map, along with their occurrences. I need it to display the value that has the max occurrence only, which I have achieved. Problem is, I also need it to display mutliple values if their occurrence(max) is the same. Any thoughts?
    import java.util.*;
    public class NumberOccurrence {
        public static void main(String[] args) {
            LinkedList<Integer> valueList = new LinkedList<Integer>();
            int input = 1;
            Scanner Keyboard = new Scanner(System.in);
            TreeMap<Integer, Integer> map = new TreeMap<Integer, Integer>(); 
            while (input != 0) {
                System.out.println("Enter a value. If the value 0 is " +
                        "entered, input ends.");
                input = Keyboard.nextInt();
                valueList.add(input);       
            ListIterator<Integer> listIterator = valueList.listIterator();
            while (listIterator.hasNext()) {
                     int key = listIterator.next();
                    if (map.get(key) == null) {
                        map.put(key, 1);
                    else {
                        int value = map.get(key).intValue();
                        value++;
                        map.put(key, value);
            ArrayList<sortedOccurrence> list = new ArrayList<sortedOccurrence>();
            Set<Map.Entry<Integer, Integer>> entrySet = map.entrySet();
            for (Map.Entry<Integer, Integer> entry: entrySet) {
                list.add(new sortedOccurrence(entry.getKey(), entry.getValue()));
            Collections.sort(list, Collections.reverseOrder());
            System.out.println(Collections.max(list));
    class sortedOccurrence implements Comparable<sortedOccurrence> {
        private int number;
        private int count;
        public sortedOccurrence(int number, int count) {
            this.number = number;
            this.count = count;
        public int compareTo(sortedOccurrence o) {
            return count-o.count;
        public String toString() {
            return "The number is " + number + " \t" + "The count is " + count;
    }If I were to input 5, 5, 4, 4, 3, 2, 1 and 0, the display would look like this:
    "The number is 4      The count is 2"
    What I need it to do is display multiple values that have the same (max) occurrence. Output should look like this:
    "The number is 4 The count is 2
    The number is 5 The count is 2"
    Any help would be much appreciated.

    Stop all that sorting, you don't need it.
    Also, this is pointless:
            Collections.sort(list, Collections.reverseOrder());
            System.out.println(Collections.max(list));Collections.max doesn't need the input to be sorted.
    Also you're probably not even allowed to use Collections.max in a homework assignment. And it wouldn't work for this assignment anyway.
    This is so simple I'm just going to give it to you: Keep two integer variables, one for the maximum value and one for the count. Assuming the input integers will all be >= 0, init the max value to -1 and the count to zero.
    Loop through the list. When you find a number bigger than the max value, set the max value to that number and reset the count to one. When you find a number equal to the max value, increment the count. When you're done, confirm that the max value isn't still -1, and output the max value and the count accordingly.

  • Multiple ips in apache proxy

    Hi
    How to add mutiple entries in apache proxy server...Pls give me the solutions
    Regards
    jac

    Hi
    After completing the entries in http.conf , when i entered the url path as ebs.yan.com it shows the error below
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request GET /OA_HTML/AppsLocalLogin.jsp.
    Reason: Max-Forwards has reached zero - proxy loop?
    Please given the possible solution to rectify it...
    Regards
    Jac

  • Help with some ABAP code

    I am trying to fill the quantity value if it is blank by looking for a record with the key and putting it's value in it.  the code is below but the part whee it says where order_qty > 0 is not working.  It just hops out even if it is.
    CLEAR: T_SCHED_DATA, T_QUANTITY_DATA.
      REFRESH: T_SCHED_DATA, T_QUANTITY_DATA.
      SELECT DOC_NUMBER S_ORD_ITEM SCHED_LINE DSDEL_DATE REQ_DATE ORDER_QTY
       INTO TABLE T_SCHED_DATA
       FROM /BIC/AZSCH_O5400
         FOR ALL ENTRIES IN DATA_PACKAGE
        WHERE
         DOC_NUMBER = DATA_PACKAGE-DOC_NUMBER AND
         S_ORD_ITEM = DATA_PACKAGE-S_ORD_ITEM AND
         SCHED_LINE = DATA_PACKAGE-SCHED_LINE.
      SELECT DOC_NUMBER S_ORD_ITEM SCHED_LINE DSDEL_DATE REQ_DATE ORDER_QTY
       INTO TABLE T_QUANTITY_DATA
       FROM /BIC/AZSCH_O5400
        FOR ALL ENTRIES IN T_SCHED_DATA
        WHERE
         DOC_NUMBER = T_SCHED_DATA-VBELN AND
         S_ORD_ITEM  = T_SCHED_DATA-POSNR.
      T_QUANTITY_DATA2[] = T_QUANTITY_DATA[].
      sort t_quantity_data2 by vbeln posnr SCHED_LINE
           ascending.
    sort t_quantity_data by vbeln posnr SCHED_LINE
           ascending.
      loop at T_QUANTITY_DATA into LF_DATA
        where order_qty > 0.
          loop at T_QUANTITY_DATA2 into LF_DATA2
          where
           vbeln = LF_DATA-VBELN AND
           posnr = LF_DATA-POSNR AND
           DSDEL_DATE = LF_DATA-DSDEL_DATE AND
           SCHED_LINE NE LF_DATA-SCHED_LINE and
           order_qty = 0.
            lf_data3 = lf_data2.
            move LF_DATA-order_qty to lf_data3-order_qty.
            append lf_data3 to T_QUANTITY_DATA3.
          endloop.
      endloop.

    loop at T_QUANTITY_DATA into LF_DATA
    where <b>order_qty > 0.</b> <b> " when this is greater than zero</b>
    loop at T_QUANTITY_DATA2 into LF_DATA2
    where
    vbeln = LF_DATA-VBELN AND
    posnr = LF_DATA-POSNR AND
    DSDEL_DATE = LF_DATA-DSDEL_DATE AND
    SCHED_LINE NE LF_DATA-SCHED_LINE and
    <b>order_qty = 0.</b>  <b>" how can it be zero here</b>
    lf_data3 = lf_data2.
    move LF_DATA-order_qty to lf_data3-order_qty.
    append lf_data3 to T_QUANTITY_DATA3.
    endloop.
    endloop.

Maybe you are looking for