Never ending loop prevents all access on Prime pla...

Two or three weeks ago I signed up to Prime Places. I received the post card last week and tried to verify location. Upon signing in to the system it took me to a URL that is TOTALLY STUCK. I then tried to sign in on another browser and it went directly upon signin to the same looping URL.
My concern is that since it only loops I can't access any services inside Here.com. As soon as I signed in on my other browser (with my username) the loop started. MY WHOLE username ONLY LOOPS to that url. I have no way of accessing anything on here.com.
I tried callin switchboard and I was cut off since I don't have a name. I live in Finland.
Can you please contact directly here support internally because I'm totally lost. I repeat, if I sign in it loops immediately on my username!
What to do?
Here's the url http://primeplaces.here.com/places/verify/246ud9y7-f562061138fa4d59945c6ee2fc13b108

Hi,
The scenario here is that we need to add a line item (component) in IW32. We have to make use of Workflow to ensure that the component is added. If there are errors in adding the line item the workflow should get executed again untill it has successfully added a component/s.
For this reason we are triggering a BOR object method (configured as triggering event in the task of WF) from 1 of the BADIs and calling a BAPI to update the work order.
The problem is that even when the component has been added successfully the workflow doesn't end and keep on creating several similar components.
I have tried to use loop condition and set the container value of flag to 'X' using FM SAP_WAPI_WRITE_CONTAINER but still the workflow keeps on creating the components in the background.
Would appreciate your help on getting this solved, since this is a very critical delivery and also my 1st object in WF.
Thanks,
Sugandh

Similar Messages

  • A never ending loop...not sure why?

    When I run my current procedure, it seems to be getting caught in a never ending loop, not entirley sure what the problem is...? I'm not quite the expert so if possible, the more detail in the explaniation the better...thanks!!
    --The cursors
    cursor konami_mlb_pitchers_crsr is
       select player_id_1032
       from customer_data.cd_baseball_pit_ytd_stats
       where split_number = -3
         and game_type_id = 1
         and sequence = 0
         and season_id = iSeasonID
       order by player_id_1032;
    cursor konami_mlb_career_pit_crsr is
       select ytd.player_id_1032,
          ytd.player_id,
          ytd.moniker,
          ytd.last_name,
          sum(ytd.games_played),
          trunc(sum(ytd.outs_pitched) / 3) || '.' || mod(sum(ytd.outs_pitched), 3) as innings_pitched,
          sum(ytd.complete_games),
          sum(ytd.shut_outs),
          sum(ytd.wins),
          sum(ytd.losses),
          to_char((sum(ytd.wins)) / decode(sum(ytd.wins) + sum(ytd.losses), 0, 1, null, 1, sum(ytd.wins) + sum(ytd.losses)), '0d000') as winning_pct,
          trim(to_char( (9 * sum(ytd.earned_runs)) / (sum(ytd.outs_pitched) / 3) , '990d00')) as era,
          sum(ytd.strikeouts),
          sum(ytd.saves),
          sum(ytd.hits),
          sum(ytd.home_runs),
          sum(ytd.walks),
          sum(ytd.hit_batters),
          sum(ytd.earned_runs),
          sum(ytd.runs)
       from customer_data.cd_baseball_pit_ytd_stats ytd,  customer_data.cd_baseball_roster rost
       where ytd.split_number = -3
         and ytd.game_type_id = 1
         and ytd.sequence = 0
         and rost.player_id = ytd.player_id
         and rost.league_id = iLeagueID
         and ytd.season_id <= iSeasonId   
         and ytd.active_record != 'R'
         and ytd.player_id_1032 in
        --Includes Players that were on the DL for the entire season                                          
          select player_id_1032
         from customer_data.cd_baseball_roster r
         where r.year_last = 2008
         and r.league_id = iLeagueID
         and r.player_id_1032 is not NULL
         group by ytd.player_id_1032,ytd.player_id, ytd.moniker,  ytd.last_name;   --Where the cursor gets opened
    open konami_mlb_pitchers_crsr;
       loop
          fetch konami_mlb_pitchers_crsr into pitcher;
          exit when konami_mlb_pitchers_crsr%notfound;
          open konami_mlb_career_pit_crsr;
          loop
             fetch konami_mlb_career_pit_crsr into pitcher_record;
             exit when konami_mlb_career_pit_crsr%notfound;
             utl_file.put_line(file_handle, pitcher_record.first_name || ',' ||
                                            pitcher_record.last_name || ',' ||
                                            pitcher_record.id || ',' ||
                                            pitcher_record.games_played || ',' ||
                                            pitcher_record.innings_pitched || ',' ||
                                            pitcher_record.complete_games || ',' ||
                                            pitcher_record.shutouts || ',' ||
                                            pitcher_record.wins || ',' ||
                                            pitcher_record.losses || ',' ||
                                            pitcher_record.winning_pct || ',' ||
                                            pitcher_record.era || ',' ||
                                            pitcher_record.strikeouts || ',' ||
                                            pitcher_record.saves || ',' ||
                                            pitcher_record.hits || ',' ||
                                            pitcher_record.homeruns || ',' ||
                                            pitcher_record.walks || ',' ||
                                            pitcher_record.hit_batters || ',' ||
                                            pitcher_record.earned_runs || ',' ||
                                            pitcher_record.runs);
          end loop; -- end loop through the stats for each pitcher
          close konami_mlb_career_pit_crsr;
       end loop; -- end loop through all the pitchers
       close konami_mlb_pitchers_crsr;

    You don't seem to be using the cursor iterator variable "pitcher" when you print the data to the file. You are not even passing any parameter to the "konami_mlb_career_pit_crsr" cursor. As such the first cursor "konami_mlb_pitchers_crsr" appears to be redundant.
    Maybe the loop is time-consuming (instead of "never-ending"), and if you wait long enough, it will end. In the meantime, you may want to tune your logic.
    isotope

  • Wireless printer is setup, but the HP Installer Setup program is in a never-ending loop

    Wireless printer is setup (HP Officejet 4500), but the HP Installer Setup program is in a never-ending loop.  It says "Fatal error during installation." and keeps trying to uninstall/reinstall/ etc etc etc.  Printer is setup and runs fine, just need to get rid of this crazy loop - any guidance?
    Dee
    This question was solved.
    View Solution.

    Which OS is installed?
    I recommend that you uninstall the printer software from the HP folder in start-->All Programs -->HP --> uninstall software
    After the uninstall is completed and your system restarted install and configure the printer again.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Problem on I-TUNES,,,says my computer is not authorized to listen to a song I purchased....when I go to STORE/AUTHORIZE..it says my computer is already authorized....never-ending loop...won't play on IPOD either,,,HELP !

    Purchased a song on I-tunes....won't let me listen to it...says my computer is not authorized...first time in 3 years that this problem occured ...I went to STORE/AUTHORIZE ,,,and it says my computer is already authorized....never-ending loop ...HELP ! Won't play on Ipod either

    Delete and redownload it if doing so is free in your country.
    (88542)

  • AdamSync from AD to LDS goes into a continuous never ending loop... can't figure this out.

    I THINK I've got this thing configured up to the point where it should be able to sync.  The XML config is set to just grab a single OU with roughly 12 accounts in it.
    Everything seems to connect OK, then it does a ton of "Processing Entry", even though there are only a few accounts in this OU.
    Then it begins to do "Adding target object..." and gets stuck in a never ending loop.
    Can someone point me in the right direction on how to troubleshoot this?
    This is what the log looks like:
    ==========================
    Adamsync.exe v1.0 (6)
    Establishing connection to target server localhost:6389.
    There is already an active sync session in progress. 
    Please allow the session to complete, or use -mai to seize the role.
    Saving Configuration File on CN=Test,DC=domain,DC=org
    Saved configuration file.
    ADAMSync is querying for a writeable replica of 10.10.10.10.
    Error: DCLocator call failed with error 1355. Attempting to bind directly to string.
    Establishing connection to source server 10.10.10.10:389.
    Using file .\dam9280.tmp as a store for deferred dn-references.
    Populating the schema cache
    Populating the well known objects cache
    Starting synchronization run from dc=domain,dc=org.
    Starting DirSync Search with object mode security.
    Processing Entry: Page 1, Frame 1, Entry 0, Count 0, USN 0
    Processing source entry <guid=94f6d930da2339439df75278a02accae>
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 1, Frame 1, Entry 1, Count 1, USN 0
    Processing source entry <guid=bf15bc4b684ece4f99010548e79decb0>
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 1, Frame 1, Entry 2, Count 1, USN 0
    Processing source entry <guid=fcea01637658134eab7ec74fe022d4fe>
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 1, Entry 35, Count 1, USN 0
    Processing source entry <guid=5e768f4392863b4d86935e6bf01acc25>
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 1, Entry 36, Count 1, USN 0
    Processing source entry <guid=b5d263a264aad045b8f42f19b49dd844>
    Previous entry took 0 seconds (16, 0) to process
    Processing Entry: Page 3, Frame 1, Entry 37, Count 1, USN 0
    Processing source entry <guid=f19994051c804846b7bcbd066d9e9d40>
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 1, Entry 38, Count 1, USN 0
    Processing source entry <guid=b16cd765bafa4f4d8649d91f0f055e5f>
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 1, Entry 39, Count 1, USN 0
    Processing source entry <guid=6be6a7d551978445aafd3803e60dc560>
    Processing in-scope entry 6be6a7d551978445aafd3803e60dc560.
    Adding target object CN=User Name,OU=Staff Accounts,OU=Users,OU=ITS,CN=Test,dc=domain,dc=org.
    Adding attributes: sourceobjectguid, instanceType, objectSid, sAMAccountName, lastagedchange, objectclass, 
    Adding target object CN=User Name,OU=Staff Accounts,OU=Users,OU=ITS,CN=Test,dc=domain,dc=org. Requesting replication of parent.
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 2, Entry 0, Count 0, USN 53438354
    Processing source entry <guid=bbb4a760a8281741a11d9331efaa3d7a>
    Processing in-scope entry bbb4a760a8281741a11d9331efaa3d7a.
    Adding target object OU=Staff Accounts,OU=Users,OU=ITS,CN=Test,dc=domain,dc=org.
    Adding attributes: objectClass, instanceType, sourceobjectguid, lastagedchange, 
    Adding target object OU=Staff Accounts,OU=Users,OU=ITS,CN=Test,dc=domain,dc=org. Requesting replication of parent.
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 3, Entry 0, Count 0, USN 52660067
    Processing source entry <guid=8d3ef319dff31f47819632af2da5df2c>
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 2, Entry 0, Count 0, USN 53438354
    Processing source entry <guid=bbb4a760a8281741a11d9331efaa3d7a>
    Processing in-scope entry bbb4a760a8281741a11d9331efaa3d7a.
    Adding target object OU=Staff Accounts,OU=Users,OU=ITS,CN=Test,dc=domain,dc=org.
    Adding attributes: objectClass, instanceType, sourceobjectguid, lastagedchange, 
    Adding target object OU=Staff Accounts,OU=Users,OU=ITS,CN=Test,dc=domain,dc=org. Requesting replication of parent.
    Previous entry took 0 seconds (0, 0) to process
    Processing Entry: Page 3, Frame 3, Entry 0, Count 0, USN 52660067
    Processing source entry <guid=8d3ef319dff31f47819632af2da5df2c>
    Previous entry took 0 seconds (0, 0) to process
    ===================================================

    Hi,
    Are there any error messages from the event log?
    Here is a KB article which describes a similar issue below I suggest you refer to:
    Error message when you use the Adamsync tool in Windows Server 2003: "Error: We seem to be in an infinite recursive loop"
    http://support2.microsoft.com/kb/926933
    Best Regards,
    Amy

  • How to make a never-ending(looping) page in DW?

    I want to make a page which repeats itself on the ipad when you scroll in any direction. In essense a never ending page.
    Jus began using HTML5 for our app.

    Hi
    You can do this just by repeating the code, but this is a sure way to stop anyone visiting your site -
    The 'new' page is downloaded every time, (complete waste of bandwidth).
    Your user will think that there is something wrong, so will go somewhere else.
    On mobile devices bandwidth is now often limited and/or paid for.
    A site that just repeats itself will on devices that can display the entire page download all the pages, ad infinitum.
    PZ

  • Min/Max never-ending loop

    I am trying to stream data off a real time module and then perform some calculations on it. I am reading the data through a front panel on my PC. I want to find a way to measure the max and the min of each data stream. I constructed the attached VI to do that. Since the loop does not end, the data gets stuck in the loop and no more data is read from the real time module. I cannot end the loop because then the max/min calculations will end. I have thought about storing all of the information in an array and then using the array min/max VI to do my calculations, but this would be extremely inefficient because I need my model to run for hours on end. Is there a way to calculate minimums and maximums without a loop or storing everything in an array? Sorry for the newbie question.
    Attachments:
    max test.vi ‏27 KB

    You are close to your solution. You need to wrap you data acquisition code with something similar to this loop. The way it is now the data is only read in once, then as you note it is stuck in the array. Another thing is the initializing values. If you make both of them 0, and use the same type as the input data, they will immediately show the min and maxes. Additionally, you can make your comparisons G.T or L.T rather than G.E. or L.E. Another method, if you can't put the data acquisition in this loop would be to make it a "LabVIEW2 style global", consisting of three states, initialize, write, read. The vi is called, with the initialize method before the DAQ loop, the write is called right after your DAQ, and in another loop the read is called.
    Putnam Monroe
    Senior Engineer - North Shore Technology, Inc.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    MinMax.vi ‏45 KB

  • Never ending loop

    Hi all,
    I want to stop a loop which is not stopping. Is there any system variables in workflow, by setting that we can stop the workflow.
    Or please give me any other solution to stop it programattically,.
    Regards,
    Rubin
    Edited by: Rubin Luke on Sep 8, 2010 8:14 PM

    Hi,
    The scenario here is that we need to add a line item (component) in IW32. We have to make use of Workflow to ensure that the component is added. If there are errors in adding the line item the workflow should get executed again untill it has successfully added a component/s.
    For this reason we are triggering a BOR object method (configured as triggering event in the task of WF) from 1 of the BADIs and calling a BAPI to update the work order.
    The problem is that even when the component has been added successfully the workflow doesn't end and keep on creating several similar components.
    I have tried to use loop condition and set the container value of flag to 'X' using FM SAP_WAPI_WRITE_CONTAINER but still the workflow keeps on creating the components in the background.
    Would appreciate your help on getting this solved, since this is a very critical delivery and also my 1st object in WF.
    Thanks,
    Sugandh

  • How do you fix the never ending loop with Itunes authorization process??

    Every time I try to Sync my Iphone, an itunes popup shows up claiming that my computer is no longer authorized for the apps on my phone. On the pop up it gives three options to choose from: "Cancel", "Authorize", and "Don't Authorize". If I choose authorize, it asks me to put in my apple ID and password. Now right here confuses me because when that pops up, it show's a very old email that hasn't been used with itunes in atleast over a year (most likely longer).On an offside note, with my phone I understand a bit of why the email popups with my Iphone because I used to use the email until I got my own apple ID. But now when I try to Sync my girlfriends ipod, which has never come into contact with the email, it shows the same email. Anyway, I change the email to my current one and type in my password and click on "Authorize". Then comes the final pop up telling me "This computer is already authorized. Includin this one, you have authorized one computer out of your available 5." and then gives me the option "OK". I click OK and and the process repeats itself.
    Here is a picture of the first popup.
    I'm new to this so I don't really know if I need to blur anything out but this is it.
    This is the second popup.This first pictures shows what it looks like at first and the second is me putting in my information.
    Then the third popup after I click "Authorize"
    and of course after this it repeats itself.
    I have tried authorizing the computer under the itunes store tab but then it says its already authorized. I don't know how to fix this and it's been a pain for over a month. I heard someone else in my family had the same problem and it just randomly went away after certain amount of time, which I don't get. Any help is gladly accepted.
    Also Merry Christmas

    A few more details....
    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Spotlight constantly indexing in a never ending loop

    I've upgraded my older Aluminium iMac Early 2008 model from Tiger to Snow Leopard to Lion and then Mountain Lion.
    Since Mountain Lion, I've been having indexing problems. The mds process just doesn't want to stop. I have tried all the solutions.
    Turn off mds from launchtl and then delete the /.Spotlight.V100/ folder, relaunch via launchctl again, then stopping indexing using, mdutil deleting via mdutil. Reboot, then also trying the recommended Machintosh HD drag into privacy and out again. I've done them all. I've added bootcamp to my privacy and also sugarsync drive and also my incomplete torrent folder.
    I've re-indexed my drive, it's just no longer funny anymore. The problem is that the indexing process is running away. I check it via fs_usage for mds, and I can see the files it's opening and writing. This is not mdworker which matched my manual activity, e.g. if I make a numbers worksheet background, then of course it saves the file automatically and I can see in mdworker that it quickly indexes that file and stops.
    The culprit is mds. It just continually indexes certain folders and files, which are just normal files and folders which I work on, e.g. my business documents, mail download mailboxes, iphoto library, etc. There doesn't seem to be a pattern to what it's doing. The files and folders run so fast over the terminal screen when I use fs_usage, that I know it's mds, because I can tell the activitiy matches the lines written to the terminal screen.
    The problem is that this mds and HDD activity is NOT accompanied by any message in the little blue spotlight window, that is is currently indexing the drive. although it sounds exactly like it IS indexing the drive. Surely it doesn't have to reindex portions of the drive again and again. Shouldn't there come a point when it completely stops?
    Normally, I have a silent computer after some indexing completes, but mostly it lasts only a day and then it starts chugging again.
    Apart from re-installing, which I really don't want to do. What else is there I can try.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below to select it:
    syslog -k Sender mdworker -o -k Sender mds | grep -v boxd | tail
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal 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 Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Post the contents of that window (not the Terminal window), if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.
    If any personal information appears in the output, anonymize before posting, but don’t remove the context.

  • Error message says redirecting to never ending loop may be due to refusal to accept cookies. How do I fix it?

    I was trying to sign into Netflex. I entered all info and then enter, but got a message something to the effect that Firefox was redirecting my attempt in ways that would never complete. Suggested that it might me due to refusal to accept cookies. I remember yesterday it had asked to allow a cookie from somewhere but said I already had many cookies from them, so I clicked on disallow.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.<br />
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.<br />
    * http://kb.mozillazine.org/Profile_folder_-_Firefox<br />

  • Sign in to redeem your code - Never Ending Loop

    I'm in the process of trying to redeem a digital download...  When I go into iTunes it asks me for my code, then after clicking redeem I'm given a login prompt saying 'Sign in to redeem your code'.
    When I enter my login and password (the same one I typed 2 seconds earlier to download my iTunes App updates and the same one I typed to log into my account to post here), it comes right back up and gives me the same prompt agan and again and again and again and again and again and again and again and again and again and again...
    It never gives me and error message of any kind (and again, I used the same login and password both before my attempt and after with no problems), it just repeatedly asks me for the informaiton...
    Anybody have any ideas on this???

    I ran into this recently as well. It is caused by a file in the user library preferences.
    First, make sure iTunes is closed.
    Open ~/Library/Preferences and delete everything iTunes related in the ByHost folder (much of it will look like com.apple.iTunes etc).
    Relaunch iTunes and try again and it should work. If the issue persists, deleting everything from your prefences folder will resolve the issue HOWEVER you will lose much of your application specific user settings, and in rare occasions Activation credentials for certain paid software. By doing this you will be deleting many files that have absolutely nothing to do with the issue in an effort to get rid of the corrupted ones. Things like Skype, Spotify, iMessage etc will require you to sign in as if you have never used the apps before. All this generally does is revert your application settings to default which isnt a big deal and doesn't result in data loss. I would possibly recommend just moving all of those items to a folder on your desktop and then manually reincorporating them until the issue comes back. Once the issue is present again, whatever you incorporated last was the file that was causing the issue. The rest may be fine.
    let me know how it works

  • CPU usage in never ending loop in thread

    hello,
    In my application I have a thread that establishes tcp/ip connection with
    a remote server and receives data. This connection is established and the server is infinitely checked for any data to be received
    something like
    do{
      //establish connection
      //get data
      //process it
    }while(true);problem is the CPU usage hits 100%. Whats the right way to perform such
    infinite operations?

    You might want to consider using my InfoFetcher. It will work on any kind of InputStream (like the one from URLConnection.openStream()) and will passively wait until there is data to be read. I will also post the TimeOut class which you need to get it to compile.
    You are welcome to use and modify this class, but please don't change the package or take credit for it as your own work
    InfoFetcher.java
    =============
    package tjacobs.io;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.Iterator;
    import tjacobs.io.TimeOut.TimeOutCmd;
    * InfoFetcher is a generic way to read data from an input stream (file, socket, etc)
    * InfoFetcher can be set up with a thread so that it reads from an input stream
    * and report to registered listeners as it gets
    * more information. This vastly simplifies the process of always re-writing
    * the same code for reading from an input stream.
    * <p>
    * I use this all over
         public class InfoFetcher implements Runnable, TimeOutCmd {
              public byte[] buf;
              public InputStream in;
              public int waitTime;
              private ArrayList<InputStreamListener> mListeners;
              private ArrayList<FetcherListener> mFetcherListeners;
              public int got = 0;
              protected boolean mClearBufferFlag = false;
              public InfoFetcher(InputStream in, byte[] buf, int waitTime) {
                   this.buf = buf;
                   this.in = in;
                   this.waitTime = waitTime;
               * @deprecated use fetcherlistener
               * @param fll
              public void addInputStreamListener(InputStreamListener listener) {
                   if (mListeners == null) {
                        mListeners = new ArrayList<InputStreamListener>(2);
                   if (!mListeners.contains(listener)) {
                        mListeners.add(listener);
              public void addFetcherListener(FetcherListener listener) {
                   if (mFetcherListeners == null) {
                        mFetcherListeners = new ArrayList<FetcherListener>(2);
                   if (!mFetcherListeners.contains(listener)) {
                        mFetcherListeners.add(listener);
               * @deprecated use fetcherlistener
               * @param fll
              public void removeInputStreamListener(InputStreamListener fll) {
                   if (mListeners == null) {
                        return;
                   mListeners.remove(fll);
              public void removeFetcherListener(FetcherListener fll) {
                   if (mFetcherListeners == null) {
                        return;
                   mFetcherListeners.remove(fll);
              public byte[] readCompletely() {
                   run();
                   return buf;
              public int got() {
                   return got;
              /** Override this to implement other implementations
              public void timeOut() {
                   try {
                        in.close();
                   catch (IOException iox) {
                        iox.printStackTrace();
              public void run() {
                   TimeOut to = null;
                   if (waitTime > 0) {
                        to = new TimeOut(this, waitTime);
                        Thread t = new Thread(to);
                        t.start();
                   int b;
                   try {
                        while ((b = in.read()) != -1) {
                             if (to != null) to.tick();
                             if (got + 1 > buf.length) {
                                  buf = IOUtils.expandBuf(buf);
                             int start = got;
                             buf[got++] = (byte) b;
                             int available = in.available();
                             //System.out.println("got = " + got + " available = " + available + " buf.length = " + buf.length);
                             if (got + available > buf.length) {
                                  buf = IOUtils.expandBuf(buf, Math.max(got + available, buf.length * 2));
                             got += in.read(buf, got, available);
                             signalListeners(false, start);
                             if (mClearBufferFlag) {
                                  mClearBufferFlag = false;
                                  got = 0;
                   } catch (IOException iox) {
                        throw new PartialReadException(got, buf.length);
                   } finally {
                        if (to != null) to.stop();
                        buf = IOUtils.trimBuf(buf, got);
                        signalListeners(true);
              private void setClearBufferFlag(boolean status) {
                   mClearBufferFlag = status;
              public void clearBuffer() {
                   setClearBufferFlag(true);
              private void signalListeners(boolean over) {
                   signalListeners (over, 0);
              private void signalListeners(boolean over, int start) {
                   if (mFetcherListeners != null) {
                        Iterator<FetcherListener> i = mFetcherListeners.iterator();
                        while (i.hasNext()) {
                             FetcherListener fll = i.next();
                             if (over) {
                                  fll.fetchedAll(buf);
                             } else {
                                  fll.fetchedMore(buf, start, got);
                   if (mListeners != null) {
                        Iterator i = mListeners.iterator();
                        InputStreamEvent ev = new InputStreamEvent(got, buf, start);
                        //System.out.println("got: " + got + " buf = " + new String(buf, 0, 20));
                        while (i.hasNext()) {
                             InputStreamListener fll = (InputStreamListener) i.next();
                             if (over) {
                                  fll.gotAll(ev);
                             } else {
                                  fll.gotMore(ev);
              public static interface FetcherListener {
                   public void fetchedMore(byte[] buf, int start, int end);
                   public void fetchedAll(byte[] buf);
    ==========
    Timeout.java
    ==========
    package tjacobs.io;
    import java.io.IOException;
    import java.io.InputStream;
    public class TimeOut implements Runnable {
         private long mWaitTime;
         private boolean mRunning = true;
         private Thread mMyThread;
         private TimeOutCmd mTimeOutCmd;
         public static final int DEFAULT_WAIT_TIME = 30 * 1000; // 30 Seconds
         public static final int NO_TIMEOUT = -1;
         public static interface TimeOutCmd {
              public void timeOut();
         public TimeOut(TimeOutCmd cmd) {
              this(cmd, DEFAULT_WAIT_TIME);
         public TimeOut(TimeOutCmd cmd, int timeToWait) {
              mWaitTime = timeToWait;
              mTimeOutCmd = cmd;
         public void stop() {
              mRunning = false;
              mTimeOutCmd.timeOut();
              mMyThread.interrupt();
          * reset the TimeOut
         public void tick() {
              if (mMyThread != null)
                   mMyThread.interrupt();
         public void run () {
              mMyThread = Thread.currentThread();
              while (true) {
                   try {
                        Thread.sleep(mWaitTime);
                        stop();
                   catch (InterruptedException ex) {
                        if (!mRunning) {
                             return;
    }

  • Never ending loop is driving me loopy!

    If I spend anymore time on this I'll end up in a straight jacket(and then I might be able to get a job with Sun !)
    O.K. - here's the plan - the first loop should execute, evaluate if the value 'max' mod each value in the array is equal to 0. If none of the values in the array fit the criteria the program should then reach the second loop and keep going until a value is found that divides into the mod value. The second loop should stop when it reaches the square root of mod.
    Simple eh? Well it should be if I hadn't produced the code. The first loop works fine on its own and either stops when it has found the required value or stops when it reaches 999. However when the code includes the second loop as seen below the first loop becomes an endless loop.
    It is too hot today for me to be wearing a straight jacket and so I offer duke dollars to those who take pity.
    public static boolean primetest(BigInteger mod){
    BigInteger max = mod;
    int sqr = (int) Math.ceil(Math.sqrt(max.doubleValue())); // See java.lang.Math class
    BigInteger s = new BigInteger(Integer.toString(sqr));
    BigInteger endofarray = new BigInteger ("999");
    BigInteger start;
    //First loop starts here
    for (start = BigInteger.ZERO; start.compareTo(endofarray) <= 0; start = start.add(BigInteger.ONE)){
    //evaluate if max mod the next value in the array = 0
    if(max.mod(allprime[start.intValue()]).equals(BigInteger.ZERO)){
    pvalue = allprime[start.intValue()];
    qvalue = max.divide(allprime[start.intValue()]);
    System.out.println("P found :"+ pvalue + "Q found" + qvalue);
    return false;
    //Start next loop if none of the numbers in the array did the trick
    for (BigInteger i = new BigInteger("7919"); i.compareTo(s) < 0; i = i.add(TWO)){
    if(primetest(i))
    if(i.mod(max).intValue()== 0){
    qvalue = i;
    pvalue = i.divide(max);
    System.out.println("P found :"+ pvalue + "Q found" + qvalue);
    return true;
    }

    i think the second loop should return something. and according to me
    it will be like,
                   //Start next loop if none of the numbers in the array did the trick
                   for (BigInteger i = new BigInteger("7919"); i.compareTo(s) < 0; i = i.add(TWO))
                        if(primetest(i))
                             if(i.mod(max).intValue()== 0)
                                  qvalue = i;
                                  pvalue = i.divide(max);
                                  System.out.println("P found :"+ pvalue + "Q found" + qvalue);
                                  return false;
    try this.

  • I have downloaded Firefox 5.0 at least three times and saved file, but I don't know how to install and run. It keeps asking me to download new version and Save file. I'm in a never ending loop, it keeps downloading same exe & does not install Please Help

    Please tell me how to install and run new Firefox 5.00 after I have downloaded the new version and chosen Save File. I just go into Loop and screen says new version available and download again !

    Did you ever resolve the iCloud problem.I am in the same position and its driving me mad!!! If you have a link to an solution I would appreciate it.

Maybe you are looking for