Exceptions in a loop

I have a quartz job which calls my status service to update the status multiple items in a loop.
Like I have 5 items whose status I want to update with the job.
the job iterates collection of items and calls update item , now for some reason a item update fails capture the exception caused by update failure and continue with next item and and finally throw all the exceptions related in update failure ,all the way it is how to handle exceptions ina loop ?

Hi Miro,
You can only throw one exception, and the caller should know what kind of exception to expect.
You could create your own exception class, perhaps something like this:
public class PsuedoDemandException extends Exception{
  public PseudoDemandException(String message, Exception cause){
    super(message, cause);
    causes.add(cause);
  public void addCause(Exception cause){
    causes.add(cause);
  public ArrayList<Exception> getCauses(){
    return causes;
  private ArrayList<Exception> causes = new ArrayList<Exception>();
}Now, put a try... catch in each iteration of your loop. If and when the first exception is thrown, you will instantiate your PseudoDemandException with a message and that exception; if further exceptions are thrown, you will add them to your PseudoDemandException.
Once you have finished with the loop, check to see if your PseudoDemandException is null and, if not, then throw it. The caller only has to look out for one kind of exception, which will contain details of any exceptions thrown during processing:
public void updatePseudoDemandStatus() throws PseudoDemandException{
  List storageRequests=getStorageRequestService().findOPPseDmReq();
  //Set your exception to null to begin with...
  PseudoDemandException demandException = null;
  for(Iterator i=storageRequests.iterator();i.hasNext();){
    StorageRequest storageRequest=(StorageRequest)i.next();
    //For each iteration, try the updatePseudoDemandStatus(storageRequest)...
    try{
      updatePseudoDemandStatus(storageRequest);
    //... and, if an exception is thrown...
    catch(Exception e){
      //... then either create a PseudoDemandException (if it is null)...
      if(demandException == null)
        demandException = new PseudoDemandException("Oops, didn't work!", e);
      //...or add this exception to it (if it isn't null, which infers that this is not the first exception to be thrown)
      else
        demandException .addCause(e);
  if(demandException != null)
    throw demandException;  // No need to thrown a new exception; you already have one to throw!
}The caller can then call the method and check for the PseudoDemandException:
try{
  updatePseudoDemandStatus();
catch(PseudoDemandException pde){
  for(Exception cause : pde.getCauses())
    System.out.println(cause);
}This will achieve what you want, but check that you really do need such a high level of information before you go ahead and use it -- if there's a SQLException, for example, does it not perhaps indicate a problem that could render the whole method's operation invalid? If so, then perhaps the exception should be thrown there and then and the rest of the loop foregone. I'm not saying this is what you should do, just suggesting that you double-check what you need to achieve.
All the best,
Chris.

Similar Messages

  • ** To put Exceptional Branch in loop in BPM

    Hi friends,
    We have a scenario like SO, Delivery, Billing creation based on Purchase Order data. We designed this using BPM. Its working fine. We throw an alert whenever the error is happend in creating document.
    We put control step to throw alert in exceptional branch. So, when the BPM has error in particular step like SO / Delivery/ Invoice, we throw alert. Then the user correct the error and restart the BPM, it will work fine.
    But, after restart again the error is coming in same step, we want to throw alert. So, how do we set exceptional branch in loop ? ie. whenever restart the message, it should check whether any error is there again in the message, if it is there, it should throw alert again.
    Kindly tell me, friend. How do we set this in loop ?
    Kind Regards,
    Jeg P.

    can you be a bit clear
    " We put control step to throw alert in exceptional branch. So, when the BPM has error in particular step like SO / Delivery/ Invoice, we throw alert. Then the user correct the error and *restart the BPM, it will work fine.*
    But, after restart again the error is coming in same step, we want to throw alert. So, how do we set exceptional branch in loop ? ie. whenever restart the message, it should check whether any error is there again in the message, if it is there, it should throw alert again "
    your question has two contradicting statments.  can you be a clear in when you are receiving the error ? try using transactional behaviour .
    Edited by: Pramod Yadav on Jun 10, 2008 2:03 AM

  • Raise Exception In For Loop

    Currently my loop code is
    FOR i IN 2..vt_records.count
            LOOP
              EXIT WHEN INSTR(vt_records(i), v_delimiter,2) = 0;
                csv_to_array(vt_records(i), vt_record, v_delimiter);
              --| Workaround for the case when the last column is null
              IF vt_record.count < v_expected_csv_cols
                THEN
                  FOR i IN 1..(v_expected_csv_cols - vt_record.COUNT)
                    LOOP
                      --RAISE_APPLICATION_ERROR(-20000, 'vt_Record.COUNT=' || vt_record.count || ' - loopcount=' || (v_expected_csv_cols-vt_record.COUNT));
                      vt_record(vt_record.COUNT+1) := NULL;
                    END LOOP;
              END IF;
             begin
               INSERT INTO cit_interface_correlation (
               massupdateid,
               primarymatkey_hr,
               geokey_hr,
               depmatkey_hr,
               promokey_hr,
               statcalcday,
               usercorfactor,
               inst_user,
               inst_session,
               inst_date
               VALUES
               seq_cit_interface_correlation.nextval,
               vt_record(1),
               TRIM(vt_record(2)),
               TRIM(vt_record(3)),
               vt_record(4),
               TO_DATE(TRIM(vt_record(5)),'DD.MM.YYYY'),
               TRIM(vt_record(6)),
               v('APP_USER'),
               v('APP_SESSION'),
               sysdate
             end;
          END LOOP;
    {code]
    What I need to do is raise an exception if vt_record(5) is greater than sysdate.
    If any line has a date greater than sysdate then the loop should fail and not carry on.
    Cheers
    Gus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Like this?
    for i in 2..vt_records.count
    loop
         exit when instr(vt_records(i), v_delimiter,2) = 0;
         csv_to_array(vt_records(i), vt_record, v_delimiter);
         if vt_record.count < v_expected_csv_cols
         then
              for i in 1..(v_expected_csv_cols - vt_record.count)
              loop
                   vt_record(vt_record.count+1) := null;
              end loop;
         end if;
         if vt_record(5) > sysdate then
              raise_application_error(-20001, 'vt_record(5) is greater than sysdate');
         else
              insert into cit_interface_correlation
                   massupdateid,
                   primarymatkey_hr,
                   geokey_hr,
                   depmatkey_hr,
                   promokey_hr,
                   statcalcday,
                   usercorfactor,
                   inst_user,
                   inst_session,
                   inst_date
              values
                   seq_cit_interface_correlation.nextval,
                   vt_record(1),
                   trim(vt_record(2)),
                   trim(vt_record(3)),
                   vt_record(4),
                   to_date(trim(vt_record(5)),'dd.mm.yyyy'),
                   trim(vt_record(6)),
                   v('APP_USER'),
                   v('APP_SESSION'),
                   sysdate
         end if;
    end loop;

  • Exception statement for looping query

    Hi this is my query to date:
    declare   
        cursor curs is
         select name_id_no, incident_date
         from MICHAELC.Food_Nov_01_final t
         --where rownum < 6
         for update of cat_latest;
        w_cat_latest        number(4,0);
        w_cat_latest_date   date;
        w_cat_max           number(4,0);
        w_cat_max_date      date;
        w_cat_min           number(4,0);
        w_cat_min_date      date;
    begin
        for i in curs loop
            -- get latest cat date
            select max(cat_score_date) into w_cat_latest_date
            from rbn_cat
            where customer_no = i.name_id_no
            and   cat_score_date <= i.incident_date;
            -- get latest cat score
            select cat_score into w_cat_latest
            from rbn_cat
            where customer_no = i.name_id_no
            and cat_score_date = w_cat_latest_date
            and rownum = 1;
            --get maximum cat score
            select max(cat_score) into w_cat_max
            from rbn_cat
            where customer_no = i.name_id_no
            and   months_between(i.incident_date,cat_score_date) between 0 and 12;
            --get maximum cat date
            select cat_score_date into w_cat_max_date
            from rbn_cat
            where customer_no = i.name_id_no
            and   cat_score = w_cat_max
            and   months_between(i.incident_date,cat_score_date) between 0 and 12
            and   rownum = 1;
            --get minimum cat score
            select min(cat_score) into w_cat_min
            from rbn_cat
            where customer_no = i.name_id_no
            and   months_between(i.incident_date,cat_score_date) between 0 and 12;
            --get minimum cat date
            select cat_score_date into w_cat_min_date
            from rbn_cat
            where customer_no = i.name_id_no
            and   cat_score = w_cat_min
            and   months_between(i.incident_date,cat_score_date) between 0 and 12
            and   rownum = 1;
            update MICHAELC.Food_Nov_01_final
                set cat_latest = w_cat_latest
                   , cat_latest_date = w_cat_latest_date
                   , cat_max  = w_cat_max
                   , cat_max_date = w_cat_max_date
                   , cat_min    = w_cat_min
                   , cat_min_date = w_cat_min_date
            where current of curs;
        end loop;
    end;
    I receive the following error:
    Error report:
    ORA-01403: no data found
    ORA-06512: at line 37
    01403. 00000 - "no data found"
    *Cause:   
    *Action:
    I want to use an exception statement, something along the lines of
    exception when no_data_found then
                w_cat_latest_date     := NULL;
                w_cat_latest          := NULL;
                w_cat_max             := NULL;
                w_cat_max_date        := NULL;
                w_cat_min             := NULL;
                w_cat_min_date        := NULL;I'm just not really sure how to use the exception statement correctly and if it is the best way to handle this error. Thank-you for your time and help.
    Banner:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Like this;-
    declare   
        cursor curs is
         select name_id_no, incident_date
         from MICHAELC.Food_Nov_01_final t
         --where rownum < 6
         for update of cat_latest;
        w_cat_latest        number(4,0);
        w_cat_latest_date   date;
        w_cat_max           number(4,0);
        w_cat_max_date      date;
        w_cat_min           number(4,0);
        w_cat_min_date      date;
    begin
        for i in curs loop
            -- get latest cat date
    BEGIN
            select max(cat_score_date) into w_cat_latest_date
            from rbn_cat
            where customer_no = i.name_id_no
            and   cat_score_date <= i.incident_date;
    EXCEPTION
    when no_data_found then
                w_cat_latest_date     := NULL;
    END;       
    BEGIN
            -- get latest cat score
            select cat_score into w_cat_latest
            from rbn_cat
            where customer_no = i.name_id_no
            and cat_score_date = w_cat_latest_date
            and rownum = 1;
    EXCEPTION
    when no_data_found then
                w_cat_latest
         w_cat_latest:= NULL;
    END;       
    /*   you get the idea
            --get maximum cat score
            select max(cat_score) into w_cat_max
            from rbn_cat
            where customer_no = i.name_id_no
            and   months_between(i.incident_date,cat_score_date) between 0 and 12;
            --get maximum cat date
            select cat_score_date into w_cat_max_date
            from rbn_cat
            where customer_no = i.name_id_no
            and   cat_score = w_cat_max
            and   months_between(i.incident_date,cat_score_date) between 0 and 12
            and   rownum = 1;
            --get minimum cat score
            select min(cat_score) into w_cat_min
            from rbn_cat
            where customer_no = i.name_id_no
            and   months_between(i.incident_date,cat_score_date) between 0 and 12;
            --get minimum cat date
            select cat_score_date into w_cat_min_date
            from rbn_cat
            where customer_no = i.name_id_no
            and   cat_score = w_cat_min
            and   months_between(i.incident_date,cat_score_date) between 0 and 12
            and   rownum = 1;
            update MICHAELC.Food_Nov_01_final
                set cat_latest = w_cat_latest
                   , cat_latest_date = w_cat_latest_date
                   , cat_max  = w_cat_max
                   , cat_max_date = w_cat_max_date
                   , cat_min    = w_cat_min
                   , cat_min_date = w_cat_min_date
            where current of curs;
        end loop;
    end;
    /

  • Index out of Bounds Exception in for loop.

    Occasionaly with the code below, i get an index out of bounds error, index 1, size 1, however the for loop should ensure that it never calls the getActorLocation method if the index is the same size as the arrayList size.
    Im having one of those days, and i just cant see what error i have made.
    Perhaps i need coffee? lol
    Cheers
    James
    private void checkMemoryIntegrity(){
            Actor actor = actorList.get(actorIndex);
            ArrayList<Integer> inRangeList = getActorsInMemoryRange(actor, actor.getRange());
            inRangeList.trimToSize();
            for (int i = 0; i < inRangeList.size();i++){
                if (inRangeList.size() != 0){
                    actor = brainState.getActorLocation(i); //<<<<<<<<< problem line
                    if (!actorList.contains(actor)){
                        brainState.actorLocations.remove(i);
    public ArrayList <Integer> getActorsInMemoryRange(Actor actor, int range){
            int i = 0;
            int x = actor.getX();
            int y = actor.getY();
            ArrayList <Integer> inRangeList = new ArrayList <Integer> ();
            Actor compActor;
            while (i< brainState.actorLocations.size())
                compActor = brainState.getActorLocation(i);
                int xDist = x - compActor.getX();
                if ( (xDist >= (-1) * range) && (xDist <= range) ){
                    int yDist = y - compActor.getY();
                    if ( (yDist >= (-1) * range) && (yDist <= range) ){
                        inRangeList.add(i);
                i++;
            return inRangeList;
        }

    I was thinking it might be easier to do it this way:
    Iterator<Actor> i = actorLocations.iterator();
    while(i.hasNext())
        if (!actorList.contains(i.next())) {
            i.remove();
    }It sounds like you have an equals() method which compares the x and y locations of the actor. If not then you will have to enclose the remove in an if block which compares the actor location. Does that make sense?
    Edit: contains uses the equals method.
    Returns true if this list contains the specified element. More formally, returns true if and only if this list contains at least one element e such that
    (o==null ? e==null : o.equals(e)).Edited by: Edward_Kimber on May 23, 2008 11:43 AM

  • Garageband start-up failure after installing or reindexing Loops Library

    Bought Logic Pro 9 2 weeks ago and installed it the same day except for the Loops Pack, works like a charm, also the compatibility with Garageband seemed flawless. Last Monday I had installed the Apple Loops Pack and still everything was OK, I had used GB that same evening and no problems.
    But... last thursday I accidentally reindexed the Loop Library in Logic, yeah it's dumb but I'm not a native speaker of english and new to Logic. Anyway, all my Loops were missing from the library. Using Time Machine, I managed to pull back Logic from just before reindexing and... it worked! Having recently switched from Windows to Mac has made me very sceptical about these features but to my suprise everything worked just fine, until yesterday i wanted to open up Garageband and couldn't get past the Template menu. So it initializes and shows the template menu, but no matter what I choose, an existing or a new project, it keeps "hanging in there" and just shows the blue and white striped thingy in the grey little window (don't know the english word for this).
    So, here's what I've done since then, all without result:
    * I've used Time Machine, dragging it back from different Time-Locations
    * I've searched the support, FAQs and discussion pages and tried:
    - repairing disk permissions
    - deleting the playlists
    - placing the playlists on the desktop
    - opening GB in another User Account, this works fine, so the problem is with an autorisation?
    - opening Logic works fine but if I open a GB in Logic, Logic gets stuck on loading the flanger, so could the problem be here?
    - i've been to the bullets&bones site and read lots of the FAQs
    Here's the latest crash report:
    Process: GarageBand [1856]
    Path: /Applications/GarageBand.app/Contents/MacOS/GarageBand
    Identifier: com.apple.garageband
    Version: 5.1 (398)
    Build Info: GarageBand_App-3980000~2
    Code Type: X86 (Native)
    Parent Process: launchd [710]
    Interval Since Last Report: 68 sec
    Crashes Since Last Report: 1
    Per-App Interval Since Last Report: 22 sec
    Per-App Crashes Since Last Report: 1
    Date/Time: 2009-08-23 12:28:56.443 +0200
    OS Version: Mac OS X 10.5.8 (9L30)
    Report Version: 6
    Anonymous UUID: 66F06F38-6BD1-49CB-966E-D3786F8C9C50
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000004
    Crashed Thread: 10
    Thread 0:
    0 com.apple.Foundation 0x948fa3ad clearPointerAt + 13
    1 com.apple.Foundation 0x94ab9829 empty + 105
    2 com.apple.Foundation 0x949316d5 dealloc + 21
    3 com.apple.Foundation 0x94931691 -[NSConcreteMapTable dealloc] + 49
    4 com.apple.AppKit 0x94f57822 -[_NSDisplayOperation dealloc] + 80
    5 com.apple.CoreFoundation 0x93e0a38a CFRelease + 90
    6 com.apple.CoreFoundation 0x93d993cd __CFArrayReleaseValues + 221
    7 com.apple.CoreFoundation 0x93d9974d _CFArrayReplaceValues + 269
    8 com.apple.Foundation 0x948eb7db -[NSCFArray removeObjectAtIndex:] + 123
    9 com.apple.Foundation 0x9490a4e7 -[NSCFArray removeLastObject] + 71
    10 com.apple.AppKit 0x94f5891e -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4229
    11 com.apple.AppKit 0x94e98e7b -[NSView displayIfNeeded] + 933
    12 com.apple.AppKit 0x94e98a29 -[NSWindow displayIfNeeded] + 189
    13 com.apple.AppKit 0x94e9884c _handleWindowNeedsDisplay + 436
    14 com.apple.CoreFoundation 0x93e06772 __CFRunLoopDoObservers + 466
    15 com.apple.CoreFoundation 0x93e07acc CFRunLoopRunSpecific + 844
    16 com.apple.CoreFoundation 0x93e08aa8 CFRunLoopRunInMode + 88
    17 com.apple.Foundation 0x9491e3d5 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    18 com.apple.garageband 0x00284003 0x1000 + 2633731
    19 com.apple.garageband 0x00267026 0x1000 + 2514982
    20 com.apple.garageband 0x002c298a 0x1000 + 2890122
    21 com.apple.AppKit 0x94f67e8f -[NSApplication sendAction:to:from:] + 112
    22 com.apple.garageband 0x00064ac6 0x1000 + 408262
    23 com.apple.AppKit 0x94f67dcc -[NSControl sendAction:to:] + 108
    24 com.apple.AppKit 0x94f67c52 -[NSCell _sendActionFrom:] + 169
    25 com.apple.AppKit 0x94f672ab -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1827
    26 com.apple.AppKit 0x94f66afe -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 541
    27 com.apple.AppKit 0x94f663b8 -[NSControl mouseDown:] + 888
    28 com.apple.AppKit 0x94f64af7 -[NSWindow sendEvent:] + 5381
    29 com.apple.AppKit 0x94f316a5 -[NSApplication sendEvent:] + 2939
    30 com.apple.garageband 0x000640db 0x1000 + 405723
    31 com.apple.AppKit 0x94e8efe7 -[NSApplication run] + 867
    32 com.apple.AppKit 0x94e5c1d8 NSApplicationMain + 574
    33 com.apple.garageband 0x0019afd0 0x1000 + 1679312
    34 com.apple.garageband 0x00003406 0x1000 + 9222
    Thread 1:
    0 libSystem.B.dylib 0x90091286 machmsgtrap + 10
    1 libSystem.B.dylib 0x90098a7c mach_msg + 72
    2 com.apple.CoreFoundation 0x93e07e7e CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x93e08aa8 CFRunLoopRunInMode + 88
    4 com.apple.Foundation 0x9494d520 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 320
    5 com.apple.Foundation 0x948e9dfd -[NSThread main] + 45
    6 com.apple.Foundation 0x948e99a4 _NSThread__main_ + 308
    7 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    8 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 2:
    0 libSystem.B.dylib 0x900912e6 semaphoretimedwait_signaltrap + 10
    1 libSystem.B.dylib 0x900c32af pthread_condwait + 1244
    2 libSystem.B.dylib 0x900c4b33 pthreadcond_timedwait_relativenp + 47
    3 com.apple.Foundation 0x9492fdbc -[NSCondition waitUntilDate:] + 236
    4 com.apple.Foundation 0x9492fbd0 -[NSConditionLock lockWhenCondition:beforeDate:] + 144
    5 com.apple.Foundation 0x9492fb35 -[NSConditionLock lockWhenCondition:] + 69
    6 com.apple.AppKit 0x94efc6e8 -[NSUIHeartBeat _heartBeatThread:] + 753
    7 com.apple.Foundation 0x948e9dfd -[NSThread main] + 45
    8 com.apple.Foundation 0x948e99a4 _NSThread__main_ + 308
    9 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    10 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 3:
    0 libSystem.B.dylib 0x900e06fa select$DARWIN_EXTSN + 10
    1 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    2 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 4:
    0 libSystem.B.dylib 0x90091286 machmsgtrap + 10
    1 libSystem.B.dylib 0x90098a7c mach_msg + 72
    2 com.apple.CoreFoundation 0x93e07e7e CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x93e08aa8 CFRunLoopRunInMode + 88
    4 com.apple.CFNetwork 0x94318264 CFURLCacheWorkerThread(void*) + 388
    5 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    6 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 5:
    0 libSystem.B.dylib 0x9009846e _semwaitsignal + 10
    1 libSystem.B.dylib 0x900c2dcd pthreadcondwait$UNIX2003 + 73
    2 libGLProgrammability.dylib 0x932aeb32 glvmDoWork + 162
    3 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    4 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 6:
    0 libSystem.B.dylib 0x900fa292 _workqops + 10
    1 libSystem.B.dylib 0x900fa2c2 start_wqthread + 30
    Thread 7:
    0 libSystem.B.dylib 0x900fa292 _workqops + 10
    1 libSystem.B.dylib 0x900fa2c2 start_wqthread + 30
    Thread 8:
    0 libSystem.B.dylib 0x9009846e _semwaitsignal + 10
    1 libSystem.B.dylib 0x900c2dcd pthreadcondwait$UNIX2003 + 73
    2 com.apple.ColorSync 0x92246450 pthreadSemaphoreWait(t_pthreadSemaphore*) + 42
    3 com.apple.ColorSync 0x92258d8e CMMConvTask(void*) + 54
    4 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    5 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 9:
    0 libSystem.B.dylib 0x90091286 machmsgtrap + 10
    1 libSystem.B.dylib 0x90098a7c mach_msg + 72
    2 com.apple.CoreFoundation 0x93e07e7e CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x93e08aa8 CFRunLoopRunInMode + 88
    4 com.apple.Foundation 0x9491e3d5 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    5 com.apple.AppKit 0x951e52d8 -[NSAnimation(NSInternal) _runBlocking] + 255
    6 com.apple.AppKit 0x951e51be -[NSAnimation(NSInternal) _animationThread] + 86
    7 com.apple.Foundation 0x948e9dfd -[NSThread main] + 45
    8 com.apple.Foundation 0x948e99a4 _NSThread__main_ + 308
    9 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    10 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 10 Crashed:
    0 com.apple.music.apps.MAFiles 0x02348bb9 CheckNavServices + 59465
    1 com.apple.music.apps.MAFiles 0x0234b6de CheckNavServices + 70510
    2 com.apple.music.apps.MAFiles 0x0233c8b2 CheckNavServices + 9538
    3 com.apple.music.apps.MAFiles 0x0239cd3a XStreamReadFrames + 1338
    4 com.apple.music.apps.MAFiles 0x0239e9c7 XStreamOpen + 135
    5 com.apple.music.apps.MAFiles 0x0239ed7b XStreamOpenWithFileRef + 187
    6 com.apple.music.apps.MAFiles 0x023a3a8e BuildAudioFileHeader(void*, unsigned long, long, long, int, int, TAudioBusFormat) + 10590
    7 com.apple.music.apps.MAFiles 0x023a68a5 GetAudioFileInfo(CFileRef const&, AudioFileInfo*, void*, long, eGetDataType) + 357
    8 com.apple.music.apps.Logic 0x00941843 CSetVSong::~CSetVSong() + 204435
    9 com.apple.music.apps.Logic 0x009c4808 CSetVSong::~CSetVSong() + 740952
    10 com.apple.music.apps.Logic 0x00ceff51 LgGenCtrl_ValueRange + 681121
    11 com.apple.music.apps.Logic 0x00cf010a LgGenCtrl_ValueRange + 681562
    12 com.apple.music.apps.Logic 0x00cf0b6e LgGenCtrl_ValueRange + 684222
    13 com.apple.music.apps.Logic 0x00a1de80 CSetVSong::~CSetVSong() + 1107152
    14 com.apple.music.apps.Logic 0x00a0a2b6 CSetVSong::~CSetVSong() + 1026310
    15 com.apple.music.apps.Logic 0x008dd62d LgDocumentSetKeyAndMajor + 1101
    16 com.apple.music.apps.Logic 0x008dd937 LgDocumentOpen + 487
    17 com.apple.garageband 0x000ba0d2 0x1000 + 757970
    18 com.apple.Foundation 0x949cc093 _decodeObjectXML + 1283
    19 com.apple.Foundation 0x948f4469 _decodeObject + 57
    20 com.apple.garageband 0x002254aa 0x1000 + 2245802
    21 com.apple.garageband 0x00224908 0x1000 + 2242824
    22 com.apple.garageband 0x00268f8a 0x1000 + 2523018
    23 com.apple.garageband 0x00272a74 0x1000 + 2562676
    24 com.apple.garageband 0x00266bb6 0x1000 + 2513846
    25 com.apple.garageband 0x00283ea4 0x1000 + 2633380
    26 com.apple.Foundation 0x948e9dfd -[NSThread main] + 45
    27 com.apple.Foundation 0x948e99a4 _NSThread__main_ + 308
    28 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    29 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 11:
    0 libSystem.B.dylib 0x900912e6 semaphoretimedwait_signaltrap + 10
    1 libSystem.B.dylib 0x900c32af pthread_condwait + 1244
    2 libSystem.B.dylib 0x900c4b33 pthreadcond_timedwait_relativenp + 47
    3 ...ple.CoreServices.CarbonCore 0x96cafd96 TSWaitOnConditionTimedRelative + 246
    4 ...ple.CoreServices.CarbonCore 0x96cafb76 TSWaitOnSemaphoreCommon + 422
    5 ...ple.CoreServices.CarbonCore 0x96ce09ac TimerThread + 74
    6 libSystem.B.dylib 0x900c2155 pthreadstart + 321
    7 libSystem.B.dylib 0x900c2012 thread_start + 34
    Thread 10 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x02348b9e ecx: 0x0239b945 edx: 0x00000066
    edi: 0xb04600d8 esi: 0xb04600d8 ebp: 0xb045ff78 esp: 0xb045ff70
    ss: 0x0000001f efl: 0x00010282 eip: 0x02348bb9 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
    cr2: 0x00000004
    Binary Images:
    0x1000 - 0x38dfe4 com.apple.garageband 5.1 (398) <a2bd7fb8cb650a6bce153be8dd84a88b> /Applications/GarageBand.app/Contents/MacOS/GarageBand
    0x41e000 - 0x436fe7 com.apple.music.apps.MAAudioUnitSupport 9.0.0 (138.3) <1e3006ef3d15aefe912825156b015e0c> /Applications/GarageBand.app/Contents/Frameworks/MAAudioUnitSupport.framework/V ersions/A/MAAudioUnitSupport
    0x444000 - 0x446fff com.apple.ExceptionHandling 1.5 (10) /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHand ling
    0x44d000 - 0x4a7fff com.apple.music.apps.MALoopManagement 9.0.0 (144.3) <d1a5d78877d76771d4c57c29854cff2f> /Applications/GarageBand.app/Contents/Frameworks/MALoopManagement.framework/Ver sions/A/MALoopManagement
    0x4c6000 - 0x54dff7 com.apple.music.apps.MACore 9.0.0 (339.5) <647c0ffdffdea99204073f809e6c81d8> /Applications/GarageBand.app/Contents/Frameworks/MACore.framework/Versions/A/MA Core
    0x587000 - 0x5b7fe7 com.apple.music.apps.MAHarmony 9.0.0 (104.3) <fe2c0b9a948f2870741ed44eda85f3c4> /Applications/GarageBand.app/Contents/Frameworks/MAHarmony.framework/Versions/A /MAHarmony
    0x5c9000 - 0x8b5ffb com.apple.music.apps.MAChrome 9.0.0 (106) <5f82164f73dc7cd172678a445e2ff2cf> /Applications/GarageBand.app/Contents/Frameworks/MAChrome.framework/Versions/A/ MAChrome
    0x8cc000 - 0xe41ff7 com.apple.music.apps.Logic 9.0.0 (1548.8) <df2a53d13a57960177e2ccb668cc8598> /Applications/GarageBand.app/Contents/Frameworks/Logic.framework/Versions/A/Log ic
    0x1006000 - 0x10cffe5 com.apple.DiscRecording 4.0.7 (4070.4.1) <7c105f35c674aad3a476f8959d3f3ebb> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
    0x113a000 - 0x14effee com.apple.music.apps.MAPlugInGUI 9.0.0 (295.4) <3cc1ff7c2678d54cd7452e9dec7d16c4> /Applications/GarageBand.app/Contents/Frameworks/MAPlugInGUI.framework/Versions /A/MAPlugInGUI
    0x175d000 - 0x177eff3 com.apple.music.apps.MAApogeeSupport 9.0.0 (289) <3aaaf49da428a5de9065997cef36d279> /Applications/GarageBand.app/Contents/Frameworks/MAApogeeSupport.framework/Vers ions/A/MAApogeeSupport
    0x178b000 - 0x17aafed com.apple.audio.CoreAudioKit 1.5 (1.5) <585f5ec95dc8f1efe51d820be84d53a6> /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit
    0x17bc000 - 0x1860ff7 com.apple.GarageBandUIKit 9.0.0 (314.7) <d3a8dfd50812c5c0728a891dd4285870> /Applications/GarageBand.app/Contents/Frameworks/GarageBandUIKit.framework/Vers ions/A/GarageBandUIKit
    0x18ce000 - 0x1de6fff com.apple.music.apps.MADSP 9.0.0 (439.5) <d92e89a5d1ef84d90f1ac027073bef0d> /Applications/GarageBand.app/Contents/Frameworks/MADSP.framework/Versions/A/MAD SP
    0x22d7000 - 0x22e2fff libxar.1.dylib ??? (???) /usr/lib/libxar.1.dylib
    0x22ea000 - 0x2307ff7 com.apple.audio.midi.CoreMIDI 1.6.1 (42) /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI
    0x231f000 - 0x23c1fe3 com.apple.music.apps.MAFiles 9.0.0 (41.3) <4b4943d3af5a0ca15d4aebbdbdeaf395> /Applications/GarageBand.app/Contents/Frameworks/MAFiles.framework/Versions/A/M AFiles
    0x23db000 - 0x2442fe7 com.apple.music.apps.MAAudioEngine 9.0.0 (33.4) <adff13756a3a9d02285babccdce90d65> /Applications/GarageBand.app/Contents/Frameworks/MAAudioEngine.framework/Versio ns/A/MAAudioEngine
    0x2486000 - 0x24a4fe3 libexpat.1.dylib ??? (???) <caa6d7f83f7e0a3fe26aa5904c6f98a9> /usr/lib/libexpat.1.dylib
    0x24ca000 - 0x24cbff3 ATSHI.dylib ??? (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/ATSHI.dylib
    0x17f8e000 - 0x18195fef com.apple.RawCamera.bundle 2.1.0 (474) <48a574d3b3269c8dbdc38d6f67879317> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
    0x19e64000 - 0x19e69ff3 libCGXCoreImage.A.dylib ??? (???) <3a78abc535c80f9819931b670da804a2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
    0x1a5bd000 - 0x1a742fe3 GLEngine ??? (???) <3bd4729832411ff31de5bb9d97e3718d> /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
    0x1a770000 - 0x1aad9fe8 com.apple.GeForce8xxxGLDriver 1.5.48 (5.4.8) <880ed3155078052260ade6e705c9ca64> /System/Library/Extensions/GeForce8xxxGLDriver.bundle/Contents/MacOS/GeForce8xx xGLDriver
    0x1ae14000 - 0x1ae30ff7 GLRendererFloat ??? (???) <927b7d5ce6a7c21fdc761f6f29cdf4ee> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloa t.bundle/GLRendererFloat
    0x3e000000 - 0x3e045fef com.apple.glut 3.4.2 (GLUT-3.4.2) <12efde43ff02849c20b1c70e1064c856> /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
    0x8fe00000 - 0x8fe2db43 dyld 97.1 (???) <458eed38a009e5658a79579e7bc26603> /usr/lib/dyld
    0x90003000 - 0x9003afff com.apple.SystemConfiguration 1.9.2 (1.9.2) <eab546255ac099b9616df999c9359d0e> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x9003b000 - 0x9006cffb com.apple.quartzfilters 1.5.0 (1.5.0) <92b4f39479fdcabae0d8f53febd22fad> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters .framework/Versions/A/QuartzFilters
    0x9006d000 - 0x90078fe7 libCSync.A.dylib ??? (???) <9e3544fe087bb4dc760b7afe0850dd6c> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x90079000 - 0x9008ffff com.apple.DictionaryServices 1.0.0 (1.0.0) <7d20b8d1fb238c3e71d0fa6fda18c4f7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x90090000 - 0x901f7ff3 libSystem.B.dylib ??? (???) <ae47ca9b1686b065f8ac4d2de09cc432> /usr/lib/libSystem.B.dylib
    0x901f8000 - 0x90210fff com.apple.openscripting 1.2.8 (???) <0129d2f750f5ddcb92f4acf8a3541952> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x90211000 - 0x902b8feb com.apple.QD 3.11.56 (???) <a94d0f5438b730e88e5efdb233295c52> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x902b9000 - 0x90308fff com.apple.QuickLookUIFramework 1.3.1 (170.9) /System/Library/PrivateFrameworks/QuickLookUI.framework/Versions/A/QuickLookUI
    0x90489000 - 0x904b6feb libvDSP.dylib ??? (???) <4daafed78a471133ec30b3ae634b6d3e> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x904b7000 - 0x904dbfeb libssl.0.9.7.dylib ??? (???) <8084593b773bec8f2b9614fd23c5ed73> /usr/lib/libssl.0.9.7.dylib
    0x904e1000 - 0x906b2ffb com.apple.security 5.0.5 (36371) <1f7f48b36bc90d114220cc81e4e4694f> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x906b3000 - 0x90746ff3 com.apple.ApplicationServices.ATS 3.7 (???) <a535fc4982d3acff6530ec25c402e679> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90747000 - 0x90747ffd com.apple.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x90748000 - 0x90754fff libbz2.1.0.dylib ??? (???) <887bb6f73d23088fe42946cd9f134876> /usr/lib/libbz2.1.0.dylib
    0x90755000 - 0x90a7bfe2 com.apple.QuickTime 7.6.2 (1327) <3754e41d846b7948f96c9ec4c690b520> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x90a7c000 - 0x90a7cffd com.apple.Accelerate.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x90a7d000 - 0x90bfdfff com.apple.AddressBook.framework 4.1.2 (702) <f9360f9926ccd411fdf7550b73034d17> /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x90bfe000 - 0x90c00fff com.apple.securityhi 3.0 (30817) <b3517782ad664a21e4fd60242e92723e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x90c58000 - 0x90c81fff com.apple.CoreMediaPrivate 15.0 (15.0) /System/Library/PrivateFrameworks/CoreMediaPrivate.framework/Versions/A/CoreMed iaPrivate
    0x90cb9000 - 0x90cbcfff com.apple.help 1.1 (36) <1a25a8fbb49a830efb31d5c0a52939cd> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x90cbd000 - 0x90d2fff7 com.apple.iLifeMediaBrowser 2.0.4 (346.0.2) <058e71511bc69371e11ea40cf7a3fc19> /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeM ediaBrowser
    0x90d30000 - 0x90d3cffe libGL.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x90d3d000 - 0x9114dfef libBLAS.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x9114e000 - 0x91156fff com.apple.DiskArbitration 2.2.1 (2.2.1) <2664eeb3a4d0c95a21c089892a0ae8d0> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x91157000 - 0x91157ffd com.apple.Accelerate 1.4.2 (Accelerate 1.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91158000 - 0x911b2ff7 com.apple.CoreText 2.0.4 (???) <f0b6c1d4f40bd21505097f0255abfead> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x911b3000 - 0x911b3ffc com.apple.audio.units.AudioUnit 1.5 (1.5) /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x911b4000 - 0x911b8fff libGIF.dylib ??? (???) <abf65b853acce7bc8419c74716be5be0> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x92195000 - 0x92212fef libvMisc.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x92213000 - 0x922defff com.apple.ColorSync 4.5.2 (4.5.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x92487000 - 0x9253eff3 com.apple.QTKit 7.6.2 (1327) /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
    0x9253f000 - 0x92548fff com.apple.speech.recognition.framework 3.7.24 (3.7.24) <da2d8411921a3fd8bc898dc753b7f3ee> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92549000 - 0x92705ff3 com.apple.QuartzComposer 2.1 (106.13) <40f034e8c8fd31c9081f5283dcf22b78> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzCompose r.framework/Versions/A/QuartzComposer
    0x92706000 - 0x92714ffd libz.1.dylib ??? (???) <a98b3b221a72b54faf73ded3dd7000e5> /usr/lib/libz.1.dylib
    0x92715000 - 0x92715ffb com.apple.installserver.framework 1.0 (8) /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallSer ver
    0x92716000 - 0x92772ff7 com.apple.htmlrendering 68 (1.1.3) <1c5c0c417891b920dfe139385fc6c155> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x92773000 - 0x92806fff com.apple.ink.framework 101.3 (86) <d4c85b5cafa8027fff042b84a8be71dc> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x92807000 - 0x92ea7fe3 com.apple.CoreGraphics 1.409.3 (???) <25dceb14af3455b768f56e8765ecf3ca> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x92ea8000 - 0x92ee8fff com.apple.CoreMediaIOServicesPrivate 20.0 (20.0) /System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions /A/CoreMediaIOServicesPrivate
    0x92ee9000 - 0x93286fef com.apple.QuartzCore 1.5.8 (1.5.8) <a28fa54346a9f9d5b3bef076a1ee0fcf> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x93287000 - 0x93758fbe libGLProgrammability.dylib ??? (???) <7f18294a7bd0b6afe4319f29187fc70d> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
    0x93759000 - 0x93759fff com.apple.Carbon 136 (136) <eb3c292d5544512f86e1e4e743c23f8e> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x9375a000 - 0x937abff7 com.apple.HIServices 1.7.1 (???) <ba7fd0ede540a0da08db027f87efbd60> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x937ac000 - 0x937b1fff com.apple.DisplayServicesFW 2.0.2 (2.0.2) <cb9b98b43ae385a0f374baabe2b71764> /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
    0x937b2000 - 0x937f4fef com.apple.NavigationServices 3.5.2 (163) <72cdc9d21f6690837870923e7b8ca358> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x937f5000 - 0x938d0fe7 com.apple.WebKit 5531 (5531.9) <36112647223b999a033bc2f740277948> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x938d1000 - 0x939b9ff3 com.apple.CoreData 100.2 (186.2) <44df326fea0236718f5ed64084e82270> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x939ba000 - 0x93a9bff7 libxml2.2.dylib ??? (???) <9a5d410de57c87f71e2d530a1859b897> /usr/lib/libxml2.2.dylib
    0x93aeb000 - 0x93b34fef com.apple.Metadata 10.5.8 (398.26) <e4d268ea45379200f03cdc7c8bedae6f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x93b35000 - 0x93b4affb com.apple.ImageCapture 5.0.2 (5.0.2) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x93b4b000 - 0x93b85fe7 com.apple.coreui 1.2 (62) /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x93b86000 - 0x93bc7fe7 libRIP.A.dylib ??? (???) <69bd09fcd8d8b235cee7a405290d6818> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x93bf8000 - 0x93c2afff com.apple.LDAPFramework 1.4.5 (110) <0625b4f70c28b2f239ca088edaf9cf0f> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x93c2b000 - 0x93c35feb com.apple.audio.SoundManager 3.9.2 (3.9.2) <df077a8048afc3075c6f2d9e7780e78e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x93c36000 - 0x93cf0fe3 com.apple.CoreServices.OSServices 228 (228) <bc83e97f6888673c33f86652677c09cb> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x93d95000 - 0x93ec8fe7 com.apple.CoreFoundation 6.5.7 (476.19) <a332c8f45529ee26d2e9c36d0c723bad> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x93ec9000 - 0x93ee7fff libresolv.9.dylib ??? (???) <9ed809256ce8913cddc3269c2e364654> /usr/lib/libresolv.9.dylib
    0x93ee8000 - 0x942a6fea libLAPACK.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x94315000 - 0x943bcfec com.apple.CFNetwork 438.14 (438.14) <5f9ee0430b5f6319f18d9b23e777e0d2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x943bd000 - 0x943e5ff7 com.apple.shortcut 1.0.1 (1.0) <131202e7766e327d02d55c0f5fc44ad7> /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
    0x943e6000 - 0x943f2ff9 com.apple.helpdata 1.0.1 (14.2) /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
    0x943f3000 - 0x94412ffa libJPEG.dylib ??? (???) <dad0ee08a8b850d679f024e090984480> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x94413000 - 0x94452fef libTIFF.dylib ??? (???) <5bf6b42bc5e007fcea32f6620b14cba3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x946bc000 - 0x946d8ff3 libPng.dylib ??? (???) <9f50967afbd4384e61e68439f81db76c> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x946d9000 - 0x946e0ff7 libCGATS.A.dylib ??? (???) <211348279493364e9920adc86484cedd> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x947e8000 - 0x94875ff7 com.apple.framework.IOKit 1.5.2 (???) <7a3cc24f78f93931731203854ae0d891> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x9487c000 - 0x94889fe7 com.apple.opengl 1.5.10 (1.5.10) <5a2813f80c9441170cc1ab8a3dac5038> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x948c7000 - 0x948cdfff com.apple.print.framework.Print 218.0.3 (220.2) <5b7f4ef7c2df36aff9605377775781e4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x948ce000 - 0x948deffc com.apple.LangAnalysis 1.6.5 (1.6.5) <d057feb38163121ffd871c564c692804> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x948df000 - 0x94b5bfe7 com.apple.Foundation 6.5.9 (677.26) <c68b3cff7864959becfc7fd1a384f925> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x94b5c000 - 0x94cecfff com.apple.JavaScriptCore 5531 (5531.5) <3679fe16241dae6f730a39c16c04e30f> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
    0x94ced000 - 0x94d0aff7 com.apple.QuickLookFramework 1.3.1 (170.9) /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
    0x94d0b000 - 0x94e43fe7 com.apple.imageKit 1.0.2 (1.0) <00d03cf7f26e1b6023efdc4bd15dd52e> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.fram ework/Versions/A/ImageKit
    0x94e56000 - 0x95654fef com.apple.AppKit 6.5.9 (949.54) <4df5d2e2271175452103f789b4f4d8a8> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x9568a000 - 0x9573afff edu.mit.Kerberos 6.0.13 (6.0.13) <804bd1b3f08fb57396781f012006367c> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x9573b000 - 0x9573bffe com.apple.MonitorPanelFramework 1.2.0 (1.2.0) <1f4c10fcc17187a6f106e0a0be8236b0> /System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPane l
    0x9573c000 - 0x9573cffe com.apple.quartzframework 1.5 (1.5) <6865aa0aeaa584b5a54d43f2f21d6c08> /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz
    0x9573d000 - 0x9588fff3 com.apple.audio.toolbox.AudioToolbox 1.5.2 (1.5.2) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x95890000 - 0x95957ff2 com.apple.vImage 3.0 (3.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x95a4d000 - 0x95a76fff libcups.2.dylib ??? (???) <1b0435164b9dc6c773d0b1f24701e554> /usr/lib/libcups.2.dylib
    0x95a77000 - 0x95a77ff8 com.apple.Cocoa 6.5 (???) <a1bc9247cf65c20f1a44d0973cbe649c> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x95a78000 - 0x95b04ff7 com.apple.LaunchServices 291 (291) <099eba2fe584376b476f9a262f41ecf2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x95b05000 - 0x95b14fff libsasl2.2.dylib ??? (???) <2091a1973f23f66ea9b377d43daf50ea> /usr/lib/libsasl2.2.dylib
    0x95b15000 - 0x963a1fff com.apple.WebCore 5531 (5531.9) <fdb731afe66ea9ae2f4580dead0b5b53> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x963a2000 - 0x963d1fe3 com.apple.AE 402.3 (402.3) <b13bfda0ad9314922ee37c0d018d7de9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x963d2000 - 0x96410fff libGLImage.dylib ??? (???) <a6425aeb77f4da13212ac75df57b056d> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x96411000 - 0x96498ff7 libsqlite3.0.dylib ??? (???) <3334ea5af7a911637413334154bb4100> /usr/lib/libsqlite3.0.dylib
    0x96499000 - 0x964c4fe7 libauto.dylib ??? (???) <2e44c523b851e8e25f05d13a48070a58> /usr/lib/libauto.dylib
    0x964c5000 - 0x964ccfe9 libgcc_s.1.dylib ??? (???) <e280ddf3f5fb3049e674edcb109f389a> /usr/lib/libgcc_s.1.dylib
    0x964cd000 - 0x96547ff8 com.apple.print.framework.PrintCore 5.5.4 (245.6) <03d0585059c20cb0bde5e000438c49e1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x96548000 - 0x96548ff8 com.apple.ApplicationServices 34 (34) <ee7bdf593da050bb30c7a1fc446eb8a6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x9654e000 - 0x96553fff com.apple.backup.framework 1.0 (1.0) /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x96557000 - 0x9655cfff com.apple.CommonPanels 1.2.4 (85) <c135f02edd6b2e2864311e0b9d08a98d> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x9655d000 - 0x9656cffe com.apple.DSObjCWrappers.Framework 1.3 (1.3) <182986b74247b459b2a67a47071bdc6b> /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x9656d000 - 0x96574ffe libbsm.dylib ??? (???) <fa7ae5f1a621d9b69e7e18747c9405fb> /usr/lib/libbsm.dylib
    0x965df000 - 0x9665cfeb com.apple.audio.CoreAudio 3.1.2 (3.1.2) <782a08c44be4698597f4bbd79cac21c6> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x9665d000 - 0x96675ff7 com.apple.CoreVideo 1.6.0 (20.0) <dd60118bac9aefaf88d9ab44558f05c4> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x96676000 - 0x96700fe3 com.apple.DesktopServices 1.4.8 (1.4.8) <a6edef2d49ffdee3b01010b7e6edac1f> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x96879000 - 0x9687affc libffi.dylib ??? (???) <eaf10b99a3fbc4920b175809407466c0> /usr/lib/libffi.dylib
    0x9687b000 - 0x9687bffa com.apple.CoreServices 32 (32) <373d6a888f9204641f313bc6070ae065> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x968d8000 - 0x96be0fe7 com.apple.HIToolbox 1.5.6 (???) <eece3cb8aa0a4e6843fcc1500aca61c5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x96be1000 - 0x96c05fff libxslt.1.dylib ??? (???) <6a58a8724941e8a0cfeb0cae28ea3f37> /usr/lib/libxslt.1.dylib
    0x96c06000 - 0x96c85ff5 com.apple.SearchKit 1.2.2 (1.2.2) <3b5f3ab6a363a4d8a2bbbf74213ab0e5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x96c86000 - 0x96f60ff3 com.apple.CoreServices.CarbonCore 786.11 (786.13) <9e2d85d52e5e2951aa4dd53c48ccc52f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x96f61000 - 0x96fbaff7 libGLU.dylib ??? (???) <a3b9be30100a25a6cd3ad109892f52b7> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x96fbb000 - 0x96fbdff5 libRadiance.dylib ??? (???) <7f14661d29de8cbf01334909542c0fc5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x97088000 - 0x970e5ffb libstdc++.6.dylib ??? (???) <f75e5133d72769de5ce6c06153fc65f6> /usr/lib/libstdc++.6.dylib
    0x97121000 - 0x9725aff7 libicucore.A.dylib ??? (???) <dd8aa51c356e79ef8cdfa341a0d69f5b> /usr/lib/libicucore.A.dylib
    0x9725b000 - 0x972cdfff com.apple.PDFKit 2.1.2 (2.1.2) /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framew ork/Versions/A/PDFKit
    0x972ce000 - 0x972defff com.apple.speech.synthesis.framework 3.7.1 (3.7.1) <273d96ff861dc68be659c07ef56f599a> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x972df000 - 0x973bffff libobjc.A.dylib ??? (???) <400e943f9e8a678eea22a1d1205490ee> /usr/lib/libobjc.A.dylib
    0x973c5000 - 0x973c9fff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x973ca000 - 0x9747cffb libcrypto.0.9.7.dylib ??? (???) <9d714c92872a93dd127ea8556b2c8945> /usr/lib/libcrypto.0.9.7.dylib
    0x9747d000 - 0x975c5ff7 com.apple.ImageIO.framework 2.0.6 (2.0.6) <4febd1ccf49ae410e82d12c02ba33b68> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x975c6000 - 0x975e4ff3 com.apple.DirectoryService.Framework 3.5.6 (3.5.6) <daa1307737197c7757f44f16370249dc> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0xba900000 - 0xba916fff libJapaneseConverter.dylib ??? (???) <b9aea83b1cd97f3230999ebfcbf63e7c> /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
    0xfffe8000 - 0xfffebfff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
    0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
    all of this is interesting and a step closer to the solution of my problems, but still I can't open up GB, please give me some feedback here, I wanna know if there's something to be done apart from reinstalling iLife, and then I don't even know if that soves my issue.
    Much obliged
    K

    So, here's a small update on my problem:
    I've tried once more to open up a GB file in Logic Pro 9, this worked like it should, and after having read something about playlists, i decided to check on the Loops Index, because I suppose that's where the trouble began. I retrieved some playlist files with Time-Machine, without result however. GB keeps refusing to open files, it is however possible to open up the Preferences pane and to change settings. SO here are my questions again:
    1. Have a screwed up GB using time Machine?
    2. Is there a way to fix my problem or should I reinstall iLife? I've read numerous posts about people with similar problems but reinstalling often didn't fix it so I start to get worried, yet I know there's probably a really simple solution for it...
    K-Man

  • Getting a mapping error to propogate from loop block within I.P.

    OK I kinda asked the question as a sub topic under a different heading SXMB_MONI_BPE -> Message Payload not visible in container but didnt really get an answer I'm happy with, so here goes as a main topic!
    The short description:
    I have a mapping step that must reside in a loop block, any mapping errors I want propogated back up to the main container so that they error and appear in the trace within SXMB_MONI in the same visibly obvious way as a mapping step that is not inside a block does.
    The long description:
    I have an Integration Process which splits a source message, then maps the individual messages produced within a forEach block. Unfortunately when there is a mapping error within the block, it does not propogate any meaningful information back to the message trace. Instead it just fails in smq2 with permanent error in inbound bpe processing.
    When I search in SXMB_MONI_BPE there are no process steps returned, as though the  IP was never called by the BPE.
    When I put the whole thing inside a block with an exception path that has an alert step, I do get process steps returned in sxmb_moni_bpe. When I examine the list with technical details I cannot see any "payload" under the table of messages that has been split out, therefor I cannot debug the mappings of individual messages I am looping on.  I have LOGGING, LOGGING_PROPOGATION and LOGGING_SYNC set to 1, and TRACE_LEVEL set to 3 for my IE.
    I have 2 scenarios/requirements:
    1) I put the uncaught mapping exception in the loop blook, and the error is propogated back up and the smq2 error is subsequently not produced (like it would behave if the mapping step was not inside any blocks).
    2) I catch exceptions and raise an alert and then the logging is enhanced sufficiently to enable the individual messages the loop block is looping on to be viewed within the container in sxmb_moni_bpe->list with technical details. 
    The only place I can see the error is in the defaultTrace log file, which is obviously not a suitable method for productive use.  Any solution needs to be usable in day-to-day administration of a production system, even though this is a dev issue at present!
    Thanks,
    James.

    James
    I have used this for throwing smart exceptions in SXMB_MONI
    http://agportal.goldeye.info/index.php?option=com_content&task=view&id=30&Itemid=40
    Not sure if it would work in this instance...
    Barry @ Axon!

  • Stop/ abort execution in case when the task inside while loop can not be completed

    I am using Count digital events example from LabVew. This VI is using DAQmx Read vi. If I press Stop button before this DAQ gets required amount of samples VI does not stop. I tried to change amount of samples on a fly with stop button but it did not work either.
    Please help.

    This is directly related to the way LV handle the data. Your question is similar to "How can I stop a For-Next loop before completion ?". The answer is : No way, except changing the loop for a while loop (ie: change the algorithm) or stop the whole vi.
    Attached is an example of stopping an infinite running loop. It uses a parallel loop, with a Stop node (see how to handle the stop button in order to reset it to false at the next vi run).
    If you only want to stop the DAQ, whithout halting everything else, the solution is trickier : you will have to run your DAQ loop in a dynamically loaded vi, then use the vi server functions to halt the vi if the run period is excessive. But that is worth another discussion...
    Give some feedback !..
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Stop_infinite_loop.vi.zip ‏9 KB

  • Handle Error in for Loop and finish the iteration

    I am using a for Loop now i encounter an error.
    i want to handle this error but after that carry on with iteration of the loop.
    Any Parallel to "Continue" in JAVA or any other solution for this...
    Please Suggest.

    You can use pl/sql block with exception inside the loop
    Re: Continue beyond expcetion in proc...
    Message was edited by:
    jeneesh

  • Exception Handling for Array Binding

    Hi
    1)
    I am using a Stored Procedure.
    I am using array binding and if i am sending an array of count 10 to be inserted in a table and only 9 got inserted,i deliberatly inserted one errorneous record in array, the count returned by ExecuteNonQuery() is 10.Why ?
    How can i come to know exact number of rows inserted in table, how can i use Output variables, because the array bind count is 10 so if i add an output parameter it gives error ArrayBind count is wrong....
    2)
    Is it possible to roll back all the inserts if error occurs in any of the insert by Oracle engine.What it does is it inserts all correct records and leaves the errorneous record and doesn't even throw any exception or any message.
    Answer - This can be achieved by using OracleTransaction and don't use Exception handling in procedure otherwise there wont be any exception thrown by procedure which is necessary to detect if an error occured during insert.If you use exception handling OracleEngine will insert correct rows and leave errorneous record and return count of inserted + non inserted records which is wrong.
    Please help.
    Message was edited by:
    user556446
    Message was edited by:
    user556446

    You'll need to encapsulate your validation within it's own block as described below:
    -- this will die on the first exception
    declare
      TYPE T_BADDATA_TEST IS TABLE OF VARCHAR2(1000) INDEX BY binary_integer ;
      tbt T_BADDATA_TEST ;
      aBadTypeFound exception ;
    begin
       tbt(0) := 'a';
       tbt(1) := 'b';
       tbt(2) := 'c';
        for idx in tbt.first..tbt.last loop
          if tbt(idx) =  'b' then
              raise aBadTypeFound ;     
          else
              dbms_output.put_line(tbt(idx));     
          end if  ;
        end loop ;
    end ;--encapsulate the exception area in a begin/end block to handle the exception but continue on
    declare
      TYPE T_BADDATA_TEST IS TABLE OF VARCHAR2(1000) INDEX BY binary_integer ;
      tbt T_BADDATA_TEST ;
      aBadTypeFound exception ;
    begin
       tbt(0) := 'a';
       tbt(1) := 'b';
       tbt(2) := 'c';
        for idx in tbt.first..tbt.last loop
          BEGIN
          if tbt(idx) =  'b' then
              raise aBadTypeFound ;     
          else
              dbms_output.put_line(tbt(idx));     
          end if  ;
          EXCEPTION
            WHEN aBadTypeFound THEN
                dbms_output.put_line(tbt(idx) || ' is bad data');       
            WHEN OTHERS THEN
                dbms_output.put_line('exception');       
          END ;
        end loop ;
    end ;
    output:
    a
    b is bad data
    c
    ***/

  • BUG?? Exeption handling brakes a Loop?! (PL/SQL executed by C) Anybody know this ????

    (OS - SCO, Oracle 817, Pro*C/C++: Release 2.2.4.0.0)
    In C program I have a PL/SQL block with WHILE LOOP. Inside the loop I have SELECT statement with a begin..end arroung it and with EXCEPTION WHEN NO_DATA_FOUND for internal block. In this exception I have no RAISE statement. So, I expect the loop will be not broken by NO_DATA_FOUND error.
    After control comes to the EXCEPTION NO_DATA_FOUND the loop is not continue anymore (but error is not populated out of this begin..end.) If EXCEPTION NO_DATA_FOUND is commented by -- the loop runs completely.
    Is it known bug? Does anybody get something like this?
    To be more specific, my EXEC SQL EXECUTE .. END EXECUTE block looks like this:
    DECLARE
    BEGIN
    WHILE .. LOOP
    begin SELECT ...
    exception when NO_DATA_FOUND then NULL;
    when others then ... RAISE;
    end;
    END LOOP;
    END;
    Would appreciate any response on this matter.
    Thanks!
    Alex.

    Call the procedure from another "wrapper" procedure. In the wrapper, place the call within to your existing procedure in a
    for i in 1..3 loop
      call procedure;
      if <successful condition> then
        exit loop;
      end if;
    end loop;I think that'd be easier than trying to work on controlling everything from within a single procedure. You could even set up a PACKAGE where the wrapper was the only public procedure, where your current procedure is private, and thus, can't be called outside of the wrapper, by accident. --=cf

  • Problems with NO_DATA_FOUND Exception

    Hi, I have experienced some problems with the NO_DATA_FOUND Exception. I have defined a cursor c. Then I have started a loop and a NO_DATA_FOUND Exception has rised. I handle this exception with un update clause but when the exception rises the loop does not continue anymore. What can I do in order to continue looping after the Exception rises???... I handle the NO-DATA_FOUND Exception in the Exception part of my code...
    Thanks in advance.-
    Alberto.-

    Thanks a lot Robert... I solved my problem by handling the exception within the loop as you told me. I attach the code if somebody has or had the same problem...
    Best regards.-
    Albert.-
    procedure GenerarSolicitudCompra (id_proveedor IN c_rfqresponse.c_bpartner_id%TYPE) is
    es_winner char(1);
    id_rfq number(10);
    cursor rfqs is select sqd.c_rfq_id from sqd_cotizaciones sqd;
    begin
    for r in rfqs loop
    id_rfq := r.c_rfq_id;
    begin
    select cr.isselectedwinner into es_winner from c_rfqresponse cr
    where cr.c_rfq_id = r.c_rfq_id
    and cr.c_bpartner_id = id_proveedor;
    exception
    when NO_DATA_FOUND then
    update sqd_cotizaciones sqd set sqd.win_rfqresponse = 'N'
    where sqd.c_rfq_id = id_rfq and sqd.c_bpartner_id = id_proveedor;
    commit;
    end;
    if es_winner = 'Y' then
    -- actualizar sqd_cotizaciones.win_rfqresponse con 'Y'
    update sqd_cotizaciones cot
    set cot.win_rfqresponse = 'Y'
    where cot.c_rfq_id = r.c_rfq_id
    and cot.c_bpartner_id = id_proveedor;
    commit;
    else
    -- actualizar sqd_cotizaciones.win_rfqresponse con 'N'
    update sqd_cotizaciones cot
    set cot.win_rfqresponse = 'N'
    where cot.c_rfq_id = r.c_rfq_id
    and cot.c_bpartner_id = id_proveedor;
    commit;
    end if;
    end loop;
    end GenerarSolicitudCompra;

  • Handling errors on looping through a package

    Here is my issue:
    I am tyring to call a package in a loop to index rows into oracle text index 10g. When called by the app, sometimes its valid that data will be gone by the time its indexed and the package errors out and writes to a table my ora error of no data found.
    This works fine until:
    The application is calling my package and seems to have timing issues on creation of the index item compared to the call so for the interim (not permanent) I wanted to call my package and pass it every number that was in one table and missing from another.
    This logic is easy and I got it to work splendidly in minutes as an print out in a cursor in a procedure I was going to call every so often with a job... but (there's always a but) it errors out with my no data found error and kills the entire loop and I don't get to finish processing the rogue numbers.
    I know this is a hack... please forgive this. I just need an idea of how one might loop and call this procedure and pass it the numbers individually... not in a list like my cursor. The syntax itself I can probably slice and dice my way through its the concept I am missing...
    Thanks in advance for your time and knowledge,
    Va

    Assuming that you are calling the stored procedure and passing it values from the cursor, and that it a select statement in the stored procedure that raises no_data_found, then Justin's code should allow you to keep going with the other records from the cursor.
    By "handling" the no_data_found exception within the loop (even if that handling is do nothing), it goes away and your code will continue with the next statement. As a quick demo:
    SQL> SELECT * FROM t;
            ID S
             1 A
             2 B
             1 C
    SQL> DECLARE
      2     l_dummy VARCHAR2(1);
      3  BEGIN
      4     FOR r IN (SELECT id, sorter FROM t
      5               ORDER BY sorter) LOOP
      6        BEGIN
      7           SELECT dummy INTO l_dummy
      8           FROM dual
      9           WHERE 1 = r.id;
    10           DBMS_OUTPUT.Put_Line('Success with '||r.sorter);
    11        EXCEPTION WHEN NO_DATA_FOUND THEN
    12           DBMS_OUTPUT.Put_Line('No data with '||r.sorter);
    13        END;
    14     END LOOP;
    15  END;
    16  /
    Success with A
    No data with B
    Success with C
    PL/SQL procedure successfully completed.Here, my select from dual is equivalent to your procedure call.
    HTH
    John

  • Exception thrown while enumerating UserProfileManager for user profile

    Hello All,
    We have a SharePoint 2010 Timer Job in which access User Profile Service Application and update user profile properties of some the users. This user profiles is synched with AD. 
    We have following lines of code here:
    SPServiceContext context =
    SPServiceContext.GetContext(site);
    UserProfileManager profileManager =
    new UserProfileManager(context);
    int
    count = profileManager.Count
    //This line works OK
    foreach (UserProfile userProfile
    in profileManager) //This throws exception at first loop
    When we start looping through the
    UserProfileManager instance in above lines of code it throws following exception:
    System.TimeoutException at Microsoft.Office.Server.UserProfiles.ProfileDBCacheServiceClient.GetUserData(UserSearchCriteria searchCriteria)
       at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetBulkUserProfiles(UserProfileManager objManager, String searchColumn, IList searchList, Boolean includeNullsForUnresolvableUsers, Int64& lFailedCount)
       at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetBulkUserProfiles(UserProfileManager objManager, List`1 userIdList, Boolean includeNullsForUnresolvableUsers, Int64& lFailedCount)
       at Microsoft.Office.Server.UserProfiles.ProfileEnumerator`1.PopulateUserProfileQueue(IList userSearchList)
       at Microsoft.Office.Server.UserProfiles.ProfileEnumerator`1.PopulateQueue()
       at Microsoft.Office.Server.UserProfiles.ProfileEnumerator`1.MoveNext()
    One point to note here is that we have almost 50,000 user profiles in total. This exception is thrown intermittently, I mean in the last 10 days it has happened thrice.
    It will be great if someone can help me out on this. Please let me know if any additional  information is required.
    Thanks

    Hi,
    As I understand, you encountered User Profile time out issue.
    First of all, please confirm that related service and service application are at started status on all servers.
    User Profile time out issue might be caused by several reasons, as you said the issue is generated intermittently, there might be networking issue as well. So please check ULS log for related error message.
    Similar issue:
    http://wingleungchan.blogspot.com/2012/11/userprofileapplicationnotavailableexcep.html
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Concurrent Modification in a loop

    This loop iterates through a list of urls that parses a document for urls, if it finds some, then it adds them to a PriorityQueue. I'm getting the modification exception when the loop runs the second time at the it.next() line. Can someone help me with why?
        public synchronized void TidyProcess()
            Iterator it = urlQueue.iterator();
            String userURL;
            while (it.hasNext())
                javax.swing.JEditorPane jEditorPane1 = TC1.getEditorPane();
                userURL = it.next().toString();
                int position = jEditorPane1.getText().length();
                try
                    jEditorPane1.getDocument().insertString(position, "Processing: " + userURL, null);
                catch(javax.swing.text.BadLocationException e)
                    logger.debug(e.getMessage());
                Document tidydoc = TP1.tagParser(userURL); //retrieves document in XML format
                String xmldoc = tidydoc.toXML();
                urlQueue.addAll(TP1.getUrls(tidydoc)); //Processes the document for urls, returns them in a PriorityQueue collection
        }Message was edited by:
    subnetrx
    Message was edited by:
    subnetrx

    You need to add via the Iterator (cast it to a ListIterator) not to the collection itself, otherwise the iterator will complain.

Maybe you are looking for

  • ITunes query

    I tried to open my iTunes, but I keep getting a message saying something like: "iTunes cannot run because it has detected a problem with your audio configuration". I checked all my audio config, and everything seems to be running fine. I reinstalled

  • Bought a used macbook pro and trying to do a new reset

    I keep getting this response : this item is temporarily unavailable try again later

  • Business Process Modelling Methodologies

    Hi, I am looking for graphical images of the following Business Process Modelling Methodologies: FI CO Project System. I am also looking for a graphical presentation of the interaction of the modules in the All In One System.

  • I need to reinstall Java 1.6.0.35. Help!

    I am a teacher who uses PowerSchool. I have OS 10.6.8 and Java updated to the new 11 version which Powerschool does not support. I cannot acces my powerschool gradebook anymore. Is there anyway to reinstall Java update 11 (1.6.0.35)?

  • Sync Group stuck in 'Processing'

    Can you please reset the following sync group: Status Processing Sync Group ID 3f3f4612-b850-4b5a-bcd0-e0db7c0d9ce7_East US Location East US Subscription ID ca240b2a-97d7-4de8-a7e2-510fe4458740