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?

Similar Messages

  • Patchadd stuck in infinite loop -HELP!!

    Hi all,
    Iam trying to install some OS patches in SunOS 5.8 machine[sun4u sparc SUNW,Sun-Fire-280R]
    But after the process starts, it seems to get stuck in an endless loop. I get the following messages.
    Checking installed patches...
    Verifying sufficient filesystem capacity (dry run method)...
    After the second line, the process of installing patch does not seem to end.
    I did the install in single mode.
    Rebootted the machine and did an fsck. But didnt help. Tried downloading a patch to patch 'patchadd' , but could not install it as well.
    I tried debugging the patchadd. Here is a debugging trace.
    required utlsa are available
    Checking installed patches...
    Verifying sufficient filesystem capacity (dry run method)...
    + exit_code=0
    + pkgInst=
    + pkgDispList=
    + dryrunFailure=
    + ReqArrCount=0
    + firstTimeThru=yes
    + cd /var/spool/patch/112396-02
    + + pwd
    curdir=/var/spool/patch/112396-02
    + typeset -i pkgInsCtr=0
    + newpkglist= SUNWcsr
    + pkgInst= SUNWcsr
    + newpkglist= SUNWcsr SUNWcsu
    + pkgInst= SUNWcsr SUNWcsu
    + pkglist= SUNWcsr SUNWcsu
    + [[ -f SUNWcsr/pkginfo ]]
    + echo inside. . . .
    inside. . . .
    + /usr/bin/cp /tmp/patchadd-127541250/response.1250 /tmp/patchadd-127541250/response.1250.1
    + [[ yes == no ]]
    + [[ yes == yes ]]
    + echo first time thru
    first time thru
    + [[ no == yes ]]
    + pkgadd -D /tmp/patchadd-127541250/112396-02.1250 -S -n -a /tmp/patchadd-127541250/admin.tmp.1250 -r /tmp/patchadd-127541250/
    response.1250.1 -R / -d . SUNWcsr SUNWcsu
    + 1>> /tmp/patchadd-127541250/pkgaddlog.1250 0< /dev/null 2>& 1
    It seems like it is getting stuck in the pkgadd command .
    Any help on this would be highly appreciated.
    Thanks,
    Vimalnath. A

    HI,
    Make sure the patch doesn't exists in the system.
    Ski

  • SQL stored procedure Staging.GroomDwStagingData stuck in infinite loop, consuming excessive CPU

    Hello
    I'm hoping that someone here might be able to help or point me in the right direction. Apologies for the long post.
    Just to set the scene, I am a SQL Server DBA and have very limited experience with System Centre so please go easy on me.
    At the company I am currently working they are complaining about very poor performance when running reports (any).
    Quick look at the database server and CPU utilisation being a constant 90-95%, meant that you dont have to be Sherlock Holmes to realise there is a problem. The instance consuming the majority of the CPU is the instance hosting the datawarehouse and in particular
    a stored procedure in the DWStagingAndConfig database called Staging.GroomDwStagingData.
    This stored procedure executes continually for 2 hours performing 500,000,000 reads per execution before "timing out". It is then executed again for another 2 hours etc etc.
    After a bit of diagnosis it seems that the issue is either a bug or that there is something wrong with our data in that a stored procedure is stuck in an infinite loop
    System Center 2012 SP1 CU2 (5.0.7804.1300)
    Diagnosis details
    SQL connection details
    program name = SC DAL--GroomingWriteModule
    set quoted_identifier on
    set arithabort off
    set numeric_roundabort off
    set ansi_warnings on
    set ansi_padding on
    set ansi_nulls on
    set concat_null_yields_null on
    set cursor_close_on_commit off
    set implicit_transactions off
    set language us_english
    set dateformat mdy
    set datefirst 7
    set transaction isolation level read committed
    Store procedures executed
    1. dbo.p_GetDwStagingGroomingConfig (executes immediately)
    2. Staging.GroomDwStagingData (this is the procedure that executes in 2 hours before being cancelled)
    The 1st stored procedure seems to return a table with the "xml" / required parameters to execute Staging.GroomDwStagingData
    Sample xml below (cut right down)
    <Config>
    <Target>
    <ModuleName>TransformActivityDim</ModuleName>
    <WarehouseEntityName>ActivityDim</WarehouseEntityName>
    <RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName>
    <Watermark>2015-01-30T08:59:14.397</Watermark>
    </Target>
    <Target>
    <ModuleName>TransformActivityDim</ModuleName>
    <WarehouseEntityName>ActivityDim</WarehouseEntityName>
    <RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName>
    <ManagedTypeViewName>MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity</ManagedTypeViewName>
    <Watermark>2015-01-30T08:59:14.397</Watermark>
    </Target>
    </Config>
    If you look carefully you will see that the 1st <target> is missing the ManagedTypeViewName, which when "shredded" by the Staging.GroomDwStagingData returns the following result set
    Example
    DECLARE @Config xml
    DECLARE @GroomingCriteria NVARCHAR(MAX)
    SET @GroomingCriteria = '<Config><Target><ModuleName>TransformActivityDim</ModuleName><WarehouseEntityName>ActivityDim</WarehouseEntityName><RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName><Watermark>2015-01-30T08:59:14.397</Watermark></Target><Target><ModuleName>TransformActivityDim</ModuleName><WarehouseEntityName>ActivityDim</WarehouseEntityName><RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName><ManagedTypeViewName>MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity</ManagedTypeViewName><Watermark>2015-01-30T08:59:14.397</Watermark></Target></Config>'
    SET @Config = CONVERT(xml, @GroomingCriteria)
    SELECT
    ModuleName = p.value(N'child::ModuleName[1]', N'nvarchar(255)')
    ,WarehouseEntityName = p.value(N'child::WarehouseEntityName[1]', N'nvarchar(255)')
    ,RequiredWarehouseEntityName =p.value(N'child::RequiredWarehouseEntityName[1]', N'nvarchar(255)')
    ,ManagedTypeViewName = p.value(N'child::ManagedTypeViewName[1]', N'nvarchar(255)')
    ,Watermark = p.value(N'child::Watermark[1]', N'datetime')
    FROM @Config.nodes(N'/Config/*') Elem(p)
    /* RESULTS - NOTE THE NULL VALUE FOR ManagedTypeViewName
    ModuleName WarehouseEntityName RequiredWarehouseEntityName ManagedTypeViewName Watermark
    TransformActivityDim ActivityDim MTV_System$WorkItem$Activity NULL 2015-01-30 08:59:14.397
    TransformActivityDim ActivityDim MTV_System$WorkItem$Activity MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity 2015-01-30 08:59:14.397
    When the procedure enters the loop to build its dynamic SQL to delete relevant rows from the inbound schema tables it concatenates various options / variables into an executable string. However when adding a NULL value to a string the entire string becomes
    NULL which then gets executed.
    Whilst executing "EXEC(NULL)" would cause SQL to throw an error and be caught, executing the following doesnt
    DECLARE @null_string VARCHAR(100)
    SET @null_string = 'hello world ' + NULL
    EXEC(@null_string)
    SELECT @null_string
    So as it hasnt caused an error the next part of the procedure is to move to the next record and this is why its caught in an infinite loop
    DELETE @items WHERE ManagedTypeViewName = @View
    The value for the variable @View is the ManagedTypeViewName which is NULL, as ANSI_NULLS are set to ON in the connection and not overridded in the procedure then the above statement wont delete anything as it needs to handle NULL values differently (IS NULL),
    so we are now stuck in an infinite loop executing NULL for 2 hours until cancelled.
    I amended the stored procedure and added the following line before the loop statement which had the desired effect and "fixed" the performance issue for the time being
    DELETE @items WHERE ManagedTypeViewName IS NULL
    I also noticed that the following line in dbo.p_GetDwStagingGroomingConfig is commented out (no idea why as no notes in the procedure)
    --AND COALESCE(i.ManagedTypeViewName, j.RelationshipTypeViewName) IS NOT NULL
    There are obviously other ways to mitigate the dynamic SQL string being NULL, there's more than one way to skin a cat and thats not why I am asking this question, but what I am concerned about is that is there a reason that the xml / @GroomingCriteria is incomplete
    and / or that the procedures dont handle potential NULL values.
    I cant find any documentation, KBs, forum posts of anyone else having this issue which somewhat surprises me.
    Would be grateful of any help / advice that anyone can provide or if someone can look at their 2 stored procedures on a later version to see if it has already been fixed. Or is it simply that we have orphaned data, this is the bit that concerns most as I dont
    really want to be deleting / updating data when I have no idea what the knock on effect might be
    Many many thanks
    Andy

    First thing I would do is upgrade to 2012 R2 UR5. If you are running non-US dates you need the UR5 hotfix also.
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • Apple TV 1st gen stuck in infinite loop

    Hi
    This has probably been covered a few times but the only answers I could find was from an archived discussion.
    The other day I was given an Apple TV 1st gen, it had not been used for quite some time, and decided to upgrade the software, when I noticed it still had old pictures and music on from the previous user, not wanting to keep these pictures, I decided to reset the machine to factory settings, which it did, but on the restart it was stuck at a loop giving me a code to enter into iTunes, and then resetting and giving me a different code.
    i've tried several resets of the settings, holding menu and - together, but still having no joy.
    Its never been tampered with, but its really annoying me.
    Can anyone help? this is a very old product so figure something might have been done during this time
    Cheers
    Dave

    sounddave,
    I have been in the middle of the same problem for months.
    I think the problem is with the software version that the older 40GB Apple TV's revert to after the factory restore.  Mine reverted to version 1.0, and that is when the loop started happening.  Since when did a factory restore become a factory paper weight creator!
    I read somewhere that the Apple TV looks at an Apple server and the older software doesn't play well with the updated server causing it to keep rebooting.  I'll try to find a link about this if I can find it again.  I remember reading that it happened to a bunch of people with older Apple TV software on a particular day that Apple upgraded their server.
    If you don't let your Apple TV connect to the internet, it will stop the infinite loop, but it also means you can't upgrade your software.  I haven't tried it yet, but it also might be an issue with newer versions of iTunes.
    I tested this by unplugging my router, and the Apple TV stopped looping.
    I tried to fix this before without success, but I am really determined this time.

  • Device Driver stuck in infinite loop

    This propblem maybe only happed 2 times in the frist 6 months of my computer purchase, but the past few months it's been happening more and more untill it happens every day, or just about anytime I play a video game.
    The exact error message is "The device driver got stuck in and infinite loop, this usually indicates a problem with the device itself or the device driver programming the hardware incorrectly"
    The specs of my computer are
    Windows Vista(Home Premium)
    Gateway Fx6800-01e
    Intel(R) Core(TM) i7 CPU  920 @ 2.67GHz   2.67GHz
    3.00 GB Memory
    64-bit Operating System

    Kindly try to boot the system into Safe mode and then uninstall the display driver.
    After this you should able too boot the system into normal mode. Download the latest driver from lenovo website
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/7ld152ww.exe
    Best Regards,
    Tanuj
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to install firefox, when trying says previous version detected must reboot. Stuck in infinite loop

    Trying to install newly downloaded firefox (had previously removed about a month ago through programs uninstall), however when I try to run the install, it says a previous version is detected, and the system must reboot. System reboots, but install never happens, I go to run the download again, and it appears I'm stuck in an infinite loop. I can't get latest version firefox to install

    I succeeded in installing Firefox after getting this message.
    I went to add/remove programs to verify that Firefox wasn't on the list, then I went to the program files directory and deleted the Mozilla/Firefox directory that was left over from the uninstall.
    I attempted to reinstall Firefox and, voila, it installed with no issues.
    I know it can be dangerous to delete a program directory, but if you have properly uninstalled the program itself and it isn't in the add/remove list (but still exists in the program directory), deleting the parent directory for the program should affect system performance.
    I have done this dozens of times over the years and never had a problem (I have NEVER deleted a system directory though. That would be a BAD idea).
    I hope this helps.
    /CDNVIKING

  • UDP client stuck in infinite loop

    public static void main(String args[]) throws Exception
          BufferedReader inFromUser= new BufferedReader(new   InputStreamReader(System.in));
          DatagramSocket clientSocket= new DatagramSocket();
          InetAddress IPAddress = InetAddress.getLocalHost();
          byte[] sendData = new byte[1024];
          byte[] receiveData = new byte[1024];
          String sentence = "";
          boolean quit = true;
               while(quit == true);
               String initiateConntact = "hi there";
               sendData= initiateConntact.getBytes();
               DatagramPacket sendPacket= new DatagramPacket(sendData, sendData.length, IPAddress, 9876);
               clientSocket.send(sendPacket);
               DatagramPacket receivePacket= new DatagramPacket(receiveData, receiveData.length);
               clientSocket.receive(receivePacket);
               String modifiedSentence= new String(receivePacket.getData());
               InetAddress getIPFromServer = receivePacket.getAddress();
               System.out.println("The server is located at : " + getIPFromServer);
               sentence = inFromUser.readLine();
               System.out.println("From Server:" + modifiedSentence);
                  if(sentence.equals("bye"));
                     quit = false;
                             clientSocket.close();
          }I am just courious why this pice of code gets stuck in an infinite loop.
    (it seems anyway). It doesnt even make it into the while statement. If i replace the while with an if statement, everything works smoothly. Does anyone know what is actually happening here and why?
    Thanks for your time.

    Why didnt the java compiler report the ;? or the
    missing =?Because they're both syntactically valid.
    You might want to code a loop with no body:
    while ((ch = readChar()) != 0);
    (same as)
    while ((ch = readChar()) != 0)
    // do nothing
    And you might want to assign a boolean variable and compare it at the same time:
    while (flag = callSomeMethod())
    (as opposed to)
    while ((flag = callSomeMethod()) == true)
    Although in both cases I'd write them differently rather than making a statement which has 'side-effects' and makes for slightly less-readable code.

  • Empty trash stuck in infinite loop....

    I just upgraded to Mtn Lion and I have a hard drive with time machine back up from a leopard machine, I wanted to delete that, and use the drive with Mtn lion, I put the backups folder into trash and tried to empty it, it is stuck in an infinite loop, the items to delete is in -ve......anybody else seen this? how to recover, if I stop the process, the files are still there...any solutions?

    Stop the process. Remove the files from Trash and put them back on the disk they came from.
    Next, open Disk Utility (Applications/Utilities/Disk Utility.app), choose the hard disk that you were trying to delete the files from. Click the 'Erase' tab and then 'Erase...'.

  • Java Pattern Matcher (Pattern.class bug? Stuck in Infinite Loop)

    Hi,
    I'm using the java pattern matcher and it appears to be stuck in an infinite loop and will not return from Pattern.class.
    It stays stuck in the following two code sequences...
    I'm using the following regex...
    java.util.regex.Matcher[pattern=[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|biz|info) region=0,353648 lastmatch=
    MAIN BLOCK STUCK IN LOOP:
    boolean study(TreeInfo info) {
    if (type != INDEPENDENT) {
    int minL = info.minLength;
    atom.study(info);
    info.minLength = minL;
    info.deterministic = false;
    return next.study(info);
    } else {
    atom.study(info);
    return next.study(info);
    SECOND BLOCK STUCK IN LOOP:
    boolean match(Matcher matcher, int i, CharSequence seq) {
    // Check for zero length group
    if (i > matcher.locals[beginIndex]) {
    int count = matcher.locals[countIndex];
    if (count < cmin) {
    matcher.locals[countIndex] = count + 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    if (next.match(matcher, i, seq))
    return true;
    if (count < cmax) {
    matcher.locals[countIndex] = count + 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    return false;
    return next.match(matcher, i, seq);
    Is this a bug with the Java 1.6 Pattern Matcher?
    Thanks
    V$h3r

    The Java Pattern Matcher is getting stuck in the following code...
    boolean study(TreeInfo info) {
    if (type != INDEPENDENT) {
    int minL = info.minLength;
    atom.study(info);
    info.minLength = minL;
    info.deterministic = false;
    return next.study(info);
    } else {
    atom.study(info);
    return next.study(info);
    boolean match(Matcher matcher, int i, CharSequence seq) {
    // Check for zero length group
    if (i > matcher.locals[beginIndex]) {
    int count = matcher.locals[countIndex];
    if (count < cmin) {
    matcher.locals[countIndex] = count 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    if (next.match(matcher, i, seq))
    return true;
    if (count < cmax) {
    matcher.locals[countIndex] = count + 1;
    boolean result = body.match(matcher, i, seq);
    // If match failed we must backtrack, so
    // the loop count should NOT be incremented
    if (!result)
    matcher.locals[countIndex] = count;
    return result;
    return false;
    return next.match(matcher, i, seq);
    }Here is a copy of the REGEX that I'm using...
    It works on most of the other STRINGS but when I do a REGEX on the the html source for http://www.exponent.com it will get stuck...
    Pattern p = Pattern.compile("[a-zA-Z0-9+_~-]+(?:\\.[a-zA-Z0-9+_~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+(?:com|org|net|biz|info|[a-zA-Z]{2})");Thanks,
    V$h3r

  • PowerShell 3.0 stuck in infinite loop resolving members internally (is this a PS bug??)

    Sorry for long post... I have this scenario:
    - Issue is on PS3, PS2 works fine
    - I create a new object via "$myObj = New-Object PSObject"
    - I append a number of PSMembers to it via something similar to:
    "if (-not (Get-Member -InputObject $myObj -Name MyProperty))
     Add-Member -InputObject $myObj -MemberType ScriptProperty -Name MyProperty -Value { return MyFunction }
    I am seeing situations where what I believe is the call to "Get-Member" causes a huge number of invocations that appear to be calling the equivalent of the "MyFunction" in the above sample. I have debug statements in the MyFunction
    function and nested functions and can see they are called by what appears to be the PS framework itself. Even running a "Get-PSCallstack" call from one of these functions seems to also trigger the debug statements to be hit (midway through the callstack
    output??!) - bit confused by that but it's like PS is invoking the member in order to reflect it or something.
    I used Trace-Command and could see that the "MemberResolution" trace source is repeatedly/infinitely called with the output:
    MemberResolution Information: 0 :         Matching "*"
    MemberResolution Information: 0 :             Generating the total list of members
    MemberResolution Information: 0 :                 Type table members: 0.
    MemberResolution Information: 0 :                 Adapted members: 0.
    MemberResolution Information: 0 :             21 total matches.
    This appears to be in an infinite loop. Therefore I added "-ListenerOption Callstack" to the Trace-Command call and captured the following and more (notice the call to PSObject.ToStringEmptyBaseObject()):
    at System.Management.Automation.PSObject.AdapterGetMembersDelegate[T](PSObject msjObj)
       at System.Management.Automation.PSMemberInfoIntegratingCollection`1.GetIntegratedMembers(MshMemberMatchOptions matchOptions)
       at System.Management.Automation.PSMemberInfoIntegratingCollection`1.Match(String name, PSMemberTypes memberTypes, MshMemberMatchOptions matchOptions)
       at System.Management.Automation.PSObject.ToStringEmptyBaseObject(ExecutionContext context, PSObject mshObj, String separator, String format, IFormatProvider formatProvider)
       at System.Management.Automation.PSObject.ToString(ExecutionContext context, Object obj, String separator, String format, IFormatProvider formatProvider, Boolean recurse, Boolean unravelEnumeratorOnRecurse)
       at System.Management.Automation.PSObject.ToString()
       at System.String.Join(String separator, Object[] values)
       at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)
    I then disassembled the relevant code in Reflector and could see that the ToString() method of PSObject has a check for "if obj.immediateBaseObjectIsEmpty" then to call the ToStringEmptyBaseObject() function. I could also see that the immediateBaseObjectIsEmpty
    field is set in the CommonInitialization internal method if "obj is PSCustomObject" (which is the actual object type you get when you New-Object PSObject).
    I then updated my code to create "$myObj = New-Object Object" (i.e. System.Object instead) and the issue goes away.
    Can anyone explain what I may have done wrong here or is this looking like a bug in PowerShell?
    Cheers!

    Hi Matt,
    I'm not sure if we are on the same page? Getting the list of (i.e. metadata of) the members shouldn't invoke the member.  I have used this technique in many places and it's never been an issue whereby you "wrap" a utility function with
    a ScriptProperty or ScriptMethod to provide OO semantics on a PS object. The member isn't invoked by Get-Member, only when it's called explicitly.
    Here's a small example:
    function TestFunction
     Write-Host "TestFunction called"
     return "TestFunction return value"
    $myObj = New-Object PSObject
    Add-Member -InputObject $myObj -MemberType ScriptProperty -Name TestScriptProperty -Value `
     Write-Host "TestScriptProperty called"
     return TestFunction
    Write-Host "Getting members"
    Get-Member -InputObject $myObj -Name TestScriptProperty | Select *
    Write-Host "Invoking property"
    $myObj.TestScriptProperty
    Here's the output (Get-Member output a bit mangled due to the text wrapping):
    Getting members
    TypeName                                   Name                                                                      
    MemberType Definition                               
    System.Management.Automation.PSCustomOb... TestScriptProperty                                                    
    ScriptProperty System.Object TestScriptProperty {get=...
    Invoking property
    TestScriptProperty called
    TestFunction called
    TestFunction return value
    Yup I see your point, but when you run your original code with this example object you can see there is no loop. There must either be a loop in the function or in the body of the script itself. This is very tough to troubleshoot without seeing the code you
    are actually running.
    You said you are adding several members to the custom object. Is this done in a loop?

  • 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;

  • Iphone stuck in infinite setup loop

    My iphone is stuck in an infinite setup loop. Have reset phone a lot of times and it lets me set up all info. I get home screen for less than 2 seconds and the set up screen pops back up. Randomly the voice over will come on and the tripple tap to enter from kep pad/board comes on or goes off. HELP!

    Hello DebiSuzi,
    Not being able to use your device can certainly be frustrating. From what I can gather, it sounds like you're having issues restarting your device. After reviewing your post, I have located an article that can help in this situation. You may want to consider restoring your device to factory settings. After this is complete, I would recommend restoring your data from any potential backups you may have:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Use recovery mode
    You might need to use recovery mode to restore your device in these cases:
    iTunes doesn't recognize your device or says it's in recovery mode.
    You see the Apple logo onscreen for several minutes with no progress bar.
    You see the Connect to iTunes screen.
    Learn what to do if you see the progress bar onscreen for several minutes.
    To put your device into recovery mode, follow these steps:
    Turn off your device and leave it off.
    Plug in your device's USB cable to a computer with iTunes. 
    Hold down the Home button on your device as you connect the USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.
    When you see this screen, release the Home button. If you don't see this screen, try steps 1 through 3 again. 
    When your device is connected, iTunes will open. You'll see a message saying that iTunes has detected an iPhone, iPad, or iPod touch in recovery mode.
    Use iTunes to restore your device. Restoring in recovery mode will erase your device. If you previously synced with iTunes or iCloud, you might be able to restore from your backup.
    Get more help
    Learn what to do if you don't see your device in iTunes for OS X, or in iTunes for Windows.
    If you put your device into recovery mode by mistake, restart it. Or you can wait 15 minutes and your device will exit recovery mode by itself.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Iphone 4 factory unlocked stuck in infinite loop

    I have a factory unlocked Iphone 4 that is stuck in loop. I thought this only happened to jailbroken phones. Please help.

    Do you have receipt that you bought your previous phone in Canada? If so, go back to apple store in Michigan, and perhaps they will replace it. Otherwise, you pro ably should have returned it to the store in Canada. You best bet is to call apple and see if they can come up with a solution.

  • URGENT HELP - iphone stuck in restore loop

    I just picked up an iphone a friend purchased for me in NYC...
    i tried updating from 1.0.0 to 1.0.2 firmware..
    my first 3 attempts ended with error 1603... and
    i was getting the connect to itunes error while
    itunes was loaded in restore mode...
    in my 5th attempted it continued and moved on
    to "restoring iphone software" and its been
    going like that for 3.5 hrs... i tried again...
    and i got the same result... its stuck in
    a restore loop... a never ending restore and
    the device boots with "connect to itunes"...
    dunno what 2 do... did i brick it?
    i updated itunes, switched usbs. pull
    put the sim... tried different firmwares... everthing...
    plz help me.

    hi mate,
    your iphone is fine, this is a common problem with the iphone and the usb connection.
    if you are getting a 1603 error then, the is a way to resolve it and restore your iphone.
    basically put the usb leads into another usb port and restart your pc. it may take a few goes to get it to work but it will.
    also make sure you are not connected to the internet and press the control key (i think) and it will let you select the firmware you wan to install, only update to 1.02 firmware, anything higher you will not be able to unlock it with the software that is available.
    any problems just reply to this post and i will help you...
    thanks
    Cauffy:)

  • IPhone stuck in reboot loop - too many apps installed?

    Hi guys!
    Starting some months ago, I've had nothing but problems with my iPhone. However, I've been dealing with most of these or even solved them.
    But now I'm stuck on a reboot loop for a few days and don't know what to do.
    When did it start? I think it was in May when I first got panic.plist, ResetCounter and SpringBoard-CrashLogs under "Diagnostics and Usage". Following this, everytime I rebooted my phone or the battery was empty, it could take some more minutes than normal for my iPhone to boot. This loading time increased and increased, in October it once took more than two days for my iPhone to reboot. I now have really thousands of those ErrorLogs. The Apple support on the phone couldn't help me either. Additionally, the phone performed some cruel changes I can't explain: Once the language was changed, once the photo gallery had to be restored (the iPhone did that on its own).
    However, sometime in November the iPhone crashed, and I was already thinking that it would now last a few days until I could use it again. But somehow it was done within 15 minutes. Without any error or reboot loop. The last two months I haven't had any problems with this until the battery was empty three days ago.
    Since then, I have had the iPhone plugged in so the battery doesn't get empty and it's stuck on the bright Apple logo. After about 210 seconds the logo gets dark, then the screen is completely black and it's starting the same procedure again. Sometimes I get the vibration, sometimes the loading circle (white wheel of death!), but everytime it just starts over again.
    I am pretty sure this problem appears because I have more than 1300 apps installed (yes, this is a very huge number, but I remember Steve Jobs saying that, with the folders in iOS 4, it would be possible to have a few thousand apps installed), 4000+ photos, and so on. I am pretty sure it's not a hardware, but a software problem. In detail, it's about the SpringBoard. The iPhone 4S only has 512MB RAM, so it's hard for it to load 1300+ app icons into its memory (which it has to because the SpringBoard has to run without any lags). Only in some cases it's able to boot that up, but I have absolutely no idea which cases these are and why it has run well for the last two months, but beginning with the new year stopped to work.
    Furthermore, the panic.plist entries all say that the problem is a watchdog timeout. Apple's iOS seems to allow the devices only to take up to two minutes (always around 120 seconds in the CrashLogs) to boot up, then probably another 120 seconds to launch the SpringBoard process (which explains the watchdog timeouts in the SpringBoard-CrashLogs).
    I will not restore the iPhone because I unfortunately haven't backed up for a long time and there have been many data changes since the last backup.
    So altogether, I tried to collect all the information I know here, but that's really not enough. Apple unlikely wants to help me, the phone support was really nice, but even asked his superior, who couldn't help either.
    My questions to you folks now are: Do you have any more information regarding panic.plist's, watchdog timeouts or reboot loops?
    What would your advice be? Any chance to get onto my data and back it up? Or is waiting the best solution?
    Would it be better to try several hard resets, or let the battery run empty and start the whole process again, or just let the phone plugged in so it tries to reboot on and on until it's hopefully successful sometime?
    And: Would it maybe increase the loading time if I would take the SIM card out of the iPhone, so the chance to have an successful try would be higher?
    Note: I am still using iOS 5.1.1 because I am completely sure that I'd have to buy an iPhone 5 to run 1300+ apps on iOS 6.

    Okay, some more information about this.
    Apparently there is a 'watchdog' that listens whether the iPhone's software responds or not. If it doesn't, it forces a restart, and also creates a panic.plist entry (under Diagnostics). Unfortunately the responding time is only 120 seconds. The problem I have now is the so called 'Application Map'. To ensure a smooth browsing through the different screen filled with apps, this map is regenerated everytime the user installs a new app or deletes one. Because I have more than 1300 apps installed, generating this Application Map usually takes more than two minutes. I can only hope that sometime in the next days my iPhone will be able to do this in less than 120 seconds (like it has done that several times before).
    I still can't explain why everything had been working great during the last two months. I have probably installed some new apps, but also deleted other ones, so the number of total apps didn't really increase heavily.
    However, I've read about some possible solutions to this problem (without restoring - which would solve the problem only temporarily anyway):
    Hard-resetting the iPhone until the screen is completely black, then wait a few minutes, then turn the device on. It's possible that this has to be repeated several times, but for the user who posted this it resolved the issue.
    For all the (in this case lucky) guys with a jailbreak: SSH into the iPhone, then temporarily move the watchdog located under /System/Library/SystemConfiguration/mobilewatchdog.bundle to a different folder, the iPhone will boot up after a few minutes. Then just move the watchdog back. It's a shame that apparently jailbreak users can resolve this issue, while normal users can't.
    I also want to note that this problem has been appearing since iOS 2, which came out more than four years ago. It would be really no big deal for Apple developers to change the 120 seconds to e.g. 300 or even more. I've found hundreds of threads, not only here, where users complain about exactly the same issue. I don't have any hope that an Apple employee will ever read this, but if so, please keep that in mind. I don't understand why Apple has done nothing to solve this issue.
    However, if you have any more ideas, please reply here. If there's anyone around here who has managed to successfully install more than 1300 apps on his iPhone (or iPod touch), please post that.

Maybe you are looking for

  • Photoshop crash when opening larger files

    Hi there, A recently upgraded iMac now running Creative Cloud on Mountain Lion is having an issue where Photoshop crashes upon opening a large file, the log files show it as Photoshop is hanging when infact it has crashed. I have pasted one of the lo

  • Adobe is now Preview . . .

    I just upgraded to Tiger. Now the pdf's that are in the documents folder no longer show the Adobe icon, they show the Preview icon, and they will only open in Preview. Also if I try to "save as pdf" in the Print box, it opens Preview when it used to

  • "Notes cannot be enabled at this time" on iCloud

    Hi there Has anyone experienced this message on their MacBook Air when turning on iCloud? All the other apps that syncronise across iCloud are fine but when I click on the Notes tick-box, I get a message "Notes cannot be enabled at this time, please

  • Workflow for crm lead creation

    Hi,      while creating the lead in crmd_order transaction. i need partnerfunction value in Business object repository. so i have created one subtype for that, then i created the attribute as a data dictonary field then system has asked to generate t

  • Exam C_TBW45_04s

    Hi All, Is Exam C_TBW45_04s (SAP NetWeaver 2004s – Business Intelligence) released? If not, what is its release date? Where can I find the study materials for it? Thanks...