[svn] 4870: TextView with textAlign="justify" causes infinite loop and eventual RTE.

Revision: 4870
Author: [email protected]
Date: 2009-02-05 15:33:52 -0800 (Thu, 05 Feb 2009)
Log Message:
TextView with textAlign="justify" causes infinite loop and eventual RTE. Vellum sometimes returns width and/or height larger than the request width/height due to rounding error. This triggers a contentWidth/Height change event which triggers the scroller which comes back in to TextView updateDisplayList, etc.
QE Notes:
Doc Notes:
Bugs: SDK-19144
Reviewers: Gordon
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-19144
Modified Paths:
flex/sdk/branches/i10/frameworks/projects/flex4/src/mx/components/TextView.as

Similar Messages

  • Did recent recommended update cause incompatibility with HP printer, causing error message and printer to print blank pages?

    did recent recommended update cause incompatibility with HP printer, causing error message and printer to print blank pages?

    Why not contact HP tech support for assistance since they make the printer. While on their site you can look for an updated printer driver. Otherwise, try deleting the current installed driver, reset the print system, then reinstall your printer's driver.
    Mac OS X- How to reset the printing system

  • REDO scanning goes in infinite loop and Too much ARCHIVE LOG

    After we restart DATABASE, capture process REDO scanning goes in infinite loop and Too much ARCHIVE LOG being generated.
    No idea whats going on.... otherwise basic streams functionality working fine.

    What's your DB version

  • Alert Component with OnKillFocus Causes Infinite Loop

    I have this script...
    txtPPM.onKillFocus = function(txtPPM)
    import mx.controls.Alert;
    Alert.show("blah blah");
    When my focus shifts away from the txtPPM textfield I get an
    infinite loop error. I haven't been able to find a successful
    method to fix this. Any suggetions?

    Probably related to the FocusManager (V2 components). There
    may be other
    ways to work around it, but here's something quick:
    import mx.controls.Alert;
    var alertClickHandler:Function = function (evt_obj:Object) {
    switch (evt_obj.detail) {
    case Alert.OK :
    trace("You clicked: " + Alert.okLabel);
    break;
    case Alert.CANCEL :
    trace("You clicked: " + Alert.cancelLabel);
    break;
    txtPPM.onKillFocus = txtFocusHandler;
    function showAlert(){
    Alert.show("blah blah blah", "", undefined, this,
    alertClickHandler);
    function txtFocusHandler(newFocus:Object){
    this.onKillFocus = undefined;
    showAlert();
    txtPPM.onKillFocus = txtFocusHandler;

  • Using the back button causes infinite loop between articles

    Hi i have a folio that has a series of projects, and i wanted to use the back option as various access points to each project
    goto://FolioNavigation/lastview
    but each project has an image article associated with it, and this has a button on it back specifically to the project main article. But when u click the back button now on that main artcile, it takes  u to the image article, not back to where the person wud have wanted to be.
    I cannot think of a work around other than going back to using specific page navto but that means determining the access point which is not possible. Or duplicated the articles entirely.
    Any help appreciated.
    Rob

    found solution. you have to use the goto://FolioNavigation/lastview
    in the back option on the image page as wel. then it knows not to cause infinite loop

  • FBL5N - BSEG-REBZG values cause infinite loop FDM_COLL_INVOICE_GET_BY_REF

    Hello,
    We have a problem where function FDM_COLL_INVOICE_GET_BY_REF looks at BSEG records in a loop. It finds the next BSEG record by using the contents of BSEG-REBZG.
    Unfortunately, some of our BSEG records point back to each other. We have the situation where BSEG "A" points to BSEG "B", and BSEG "B" points back to BSEG "A".
    For example:
    BSEG-BELNR   9100011111  ->  REBZG = 9111122222
    BSEG-BELNR   9111122222  ->  REBZG = 9100011111
    This data is causing the loop to execute infinitely as the exit conditions are never met.
    I cannot find a SAP Note that addresses this issue. It looks like the code involved is related to items in Dispute and Part Payments.
    Has anyone out there experienced this issue?
    Many thanks,
    Stuart.

    What release are you on?
    There is note 1105687 addressing the scenario when a credit memo is entered as an invoice reference in an invoice item which can cause such an infinite loop, but that note is only valid up to rel. 6.03
    There is also note 919415 but it is for even older systems.
    If you are on a current release, then creating an OSS message is your best bet.
    It would be theoretically possible to have a recent release with some already posted documents that were entered before the patch fixing such endless loops were applied... how likely is to have such old documents is another question. SAP support should help you to clean up the problematic records if this is the case.

  • Findforward() results in infinite loop and server exits

    I have a dataform which has struts html text field and 3 poplist bound
    to database fields. I do a submit on the event onChange in the first poplist and it
    will call a custom method in app module, which will setup the VO for populating the second poplist, based on
    the data from the first list. In the action class, I override the findforward() to go to
    DataAction to execute this custom method. On sucess from DataAction a forward is set to the first page
    which display the second poplist. When i run the action from struts-config.xml,
    the oc4j server goes on to loop and exits with message "Process exited with exit code 128".
    Any ideas why this is happing ?.

    One or several of the events handled by the page are still present because you keep forwarding between actions.
    The onChange event is still hanging around when it is forwarded to the next action and this action may act on it in an unpredictable way.
    There is currently code in the ADF framework to insure that an event is not executed by more than one action but in your case you may have your own events. Make sure to act on possible event being forwarded around.
    Charles.

  • CommandButton linked to same page causes infinite loop

    I'm working on an jsf application with a quite complex interface. I used to deploy it with the MyFaces implementation of jsf. Because of some irratic behavior I want to test Sun's reference implementation. Everything works just fine except when my commandButtons are linked back to the same jsp, configured as a navigation-rule in my faces-config.xml. When I click the button the configured handler-method gets called infinitely(the method works fine, no exception thrown). Any ideas why this is happening?
    /Dan
    From "bolagsstammoAktiebok.jspx"
    <h:commandButton action="#{bolagsstammoAktiebokHandler.berakna}" styleClass="styleinput" immediate="true"
                                                     value="Ber&#228;kna"/>From faces-config.xml
    <navigation-case>           <from-action>#{bolagsstammoAktiebokHandler.berakna}</from-action>
                <from-outcome>success</from-outcome>
                <to-view-id>bolagsstammoAktiebok.jspx</to-view-id>
            </navigation-case>

    Why make a navigation rule that navigates to the same
    page ?
    Just return "" from the
    bolagsstammoAktiebokHandler.berakna method.That helps in that particular case. The problem persists when I try to navigate to another jsp, though. In that case I must use a navigation-rule.

  • Deploying a program to a user with UAC enabled causes LaunchWith32BitLauncher error and system crash

    We are deploying a program to run as the logged on user on a Win 7 Sp1 client which runs as an EXE silently.  It fails to execute and we believe that it's due to it being blocked by UAC.
    When we examine the logs we see the following error in the Ccm32BitLauncher.log "the LaunchWith32BitLauncher failed with error code 0x800702e4" (The requested operation requires elevation) and in the execmgr.log we see "CreateProcess
    or CreateProcessAsUser failed to execute command line with non-recoverable error 0x800702e4" along with "EnterRsRuningState failed to run script scriptname.exe 0x87d01101" (A fatal error has been encountered while attempting to run the program.
    The program execution will not be retried.) Afterwards the system will either recycle hard or blue screen - sometimes its immediate and sometimes its 1-3 minutes later.
    This program runs against the machine with the user's rights, which may or may not have admin rights, because its modifying something user specific.  For the users that have admin rights it works fine, on other non admin users is when it crashes.
    Anyone else come across this out there?  We are running SCCM 2012 R2 (no CUs).
    Thanks
    - Dave

    Hi,
    If this problem is related to UAC, you could try to set GPO settings(User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode) to
    Elevate without prompting.
    For more information:
    ConfigMgr 2012: Application Deployment and User Account Control (UAC)
    http://mwesterink.wordpress.com/2013/10/04/configmgr-2012-application-deployment-and-user-account-control-uac/
    Note: Microsoft provides third-party contact information to help you find technical support. This contact
    information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • URGENT: executeQuery after setWhereClause causes infinite loop

    Hi,
    - I'm using jdev 9.0.3.2.
    - I have a JTable bound to a ViewObject.
    - I set the vo's whereClause, the where clause has some syntax error.
    - I call executeQuery
    - The JBO exception is shown.
    - I press ok.
    BUT:
    - The JBO exception is called again and again, the reason is getEstimatedRowCount called again and again by the repaint event.
    I noticed the following code in JUIteratorBinding :
    public void executeQuery()
    synchronized(getSyncLock())
    if (mIsAlive && mIsBound)
    try
    getRowSetIterator().getRowSet().executeQuery();
    catch(Exception ex)
    reportException(false /*markDead*/, ex);
    reportException(false -> means do not markDead
    is this OK?
    Please help.
    Thanks Ognian

    You're hitting a reported bug 3090348
    A known workaround is to reset the erring clause after execute and exception like:
    private void setWhereClause_actionPerformed(ActionEvent e)
    //here it starts
    JUIteratorBinding ib=panelBinding.findIterBinding("EmpView1Iter");
    try {
    ib.getApplication().setErrorHandlerActive(false);
    ib.getViewObject().setMaxFetchSize(100);
    ib.getViewObject().setWhereClause("empno = xxx"); //the where clause
    is intentional wrong!!
    ib.executeQuery(); //one JBO exception is OK, but not an endless loop
    until a stack overflow happens!
    catch (JboException je)
    ib.getViewObject().setWhereClause(null);
    ib.getApplication().setErrorHandlerActive(true);
    panelBinding.reportException(je);
    ib.executeQuery();
    //set a breakpoint here and go inside execute query
    - this reports the exception once...

  • Applet: repaint() causing infinite loop

    I'm developing an applet that draws a linegraph. The user can select which lines of points will be drawn in the applet using checkboxes. I have a separate function as an Itemlistener for the checkboxes, and I call repaint at the end of the itemStateChanged function. For some reason, once the itemlistener has seen one event, the applet gets stuck in a loop, and paint is continually run over and over again. This makes the applet useless as the user can't enter any input since the applet is continually being redrawn. I only want paint to be called once from a repaint() call. I'm not using any loops anywere in my program. Any suggestions?

    ItemListeners tend to throw lots of events when actually only one has happened.
    The solution i use:
    remember the old satus. when an event happens first check if the status has changed, if not do nothing.

  • ListCellRenderer causing extra looping and slow down, please help

    Guys
    Please could you kindly help me with my long-lasting problem
    concerning ListCellRenderer.
    I sent it originally to Programming Essentials but no replies at all:
    http://forums.sun.com/thread.jspa?threadID=5388059&tstart=15
    Here is more detailed description of my problem that did not fit to my original posting (chech link above):
    For your convenience I made a special simplified version of my problem.
    Here are two fully compilable java-files that indicate my problem with simple GUI and System.out.print output. Please try to run my program, please.
    I try use ListCellRenderer and ListSelectionListener with a simple interactive list that contains four names, either male or female names, like:
    Bill
    James
    Martin
    Peter
    With a simple button "Change gender" the names can be changes to female names, and then again male names, etc...
    If you select THE FIRST NAME in the list and press "Change gender" button, the System.print.out shows unnecessarily repeating loops.These accumulating extra loops slow seriously down performance with long lists.
    Example output (the first name selected, so accumulating extra loops!!):
    Entering method ChangeGender
    ChengeGender method (name, index): Bill, 0
    Cell renderer (name, index): Bill, 0
    ChengeGender method (name, index): James, 1
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    ChengeGender method (name, index): Martin, 2
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    Cell renderer (name, index): Martin, 2
    ChengeGender method (name, index): Peter, 3
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    Cell renderer (name, index): Martin, 2
    Cell renderer (name, index): Peter, 3
    Quitting method ChangeGender
    However, if you select OTHER NAMES THAN THE FIRST ONE (or no names at all) and press "Change gender", then no extra loops occur in System.out.print. Why?
    Example output (the second name selected, so no extra loops):
    Entering method ChangeGender
    ChengeGender method (name, index): Bill, 0
    ChengeGender method (name, index): James, 1
    ChengeGender method (name, index): Martin, 2
    ChengeGender method (name, index): Peter, 3
    Cell renderer (name, index): Bill, 0
    Cell renderer (name, index): James, 1
    Cell renderer (name, index): Martin, 2
    Cell renderer (name, index): Peter, 3
    Quitting method ChangeGender
    I will have list containing hundreds of names and therefore extra loops slow severely my application.
    Please explain how to avoid extra loops, also when the first name is selected.
    And please - if just possible - show me exactly which rows of my program must be rewritten and how.
    Thank you very much!

    Change
    for (int counter = 0 ; counter < names.length; counter++) {
        defaultListModel.addElement(names[counter]);
    }to
    ListDataListener[] listeners = defaultListModel.getListDataListeners();
    for(ListDataListener listener : listeners) {
        defaultListModel.removeListDataListener(listener);
    for (int counter = 0; counter < names.length; counter++) {
        defaultListModel.addElement(names[counter]);
    ListDataEvent evt = new ListDataEvent(defaultListModel,
            ListDataEvent.INTERVAL_ADDED,0,names.length-1);
    for(ListDataListener listener : listeners) {
        defaultListModel.addListDataListener(listener);
        listener.intervalAdded(evt);
    }

  • Need help with an infinite loop please

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

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

  • Neep help with infinite loop! Please Help

    I currently have a program that allows a user to enter a password protected site and it will return all the images on that page.
    I�m trying to allow the user to type in the root URL, i.e. http://stage.diabetescontrolforlife.com/ and have the program pull all the images in all of the child directories. i.e. http://stage.diabetescontrolforlife.com/tool.aspx
    I got an inner class similar to the one pulling the <IMG> tag, that pulls the <A> tag. The class adds all the links to a linkList Arraylist. In my main method I call image.getInfo(image.getLinkList()); hoping that I can just pass all the links back through the program and find all the <IMG> tags.
    The problem is that, I get the desired output but it displays in an infinite loop, and the program never ends as it searches linkList over and over for <IMG> tags.
    So, I tried to adding two different Do, While loops.
    Main Method:
    do
                image.getInfo(image.getLinkList());
                test=1;
    }while(test != 1);This one does not change the output. Infinite loop continues.
    Inner Class:
    HTMLEditorKit.ParserCallback callback;
    callback = new HTMLEditorKit.ParserCallback ()
               public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
                            do
                                        if (tag == HTML.Tag.A)
                                                    link = (String)attributes.getAttribute (HTML.Attribute.HREF);
                                                   if(link != null && !link.startsWith("javascript") && !link.startsWith("#") &&        link.startsWith("/"))
                                                                link = root + link;
                                                                linkList.add(link);
                                                               test=1; 
                    }while(test!=1);
    public void handleSimpleTag (HTML.Tag tag,MutableAttributeSet aset,int pos)
    {if (tag == HTML.Tag.IMG )This one never allows the first URL to be checked, and the program just sits there.
    Do you see anything I�m doing wrong, or anyway I can stop the infinite loop?
    I think the problem is that both of the searching tag classes are inner classes but I don�t know how to make them their own classes without messing up the whole password checking.
    Any advice would be helpful!

    HTMLEditorKit.ParserCallback callback;
              callback = new HTMLEditorKit.ParserCallback ()
                public void handleSimpleTag (HTML.Tag tag,MutableAttributeSet aset,int pos)
                        if (tag == HTML.Tag.IMG )
                            src = (String)
                                         aset.getAttribute (HTML.Attribute.SRC);
                            alt = (String)
                                         aset.getAttribute (HTML.Attribute.ALT);
                            height = (String)
                                         aset.getAttribute (HTML.Attribute.HEIGHT);
                            width = (String)
                                         aset.getAttribute (HTML.Attribute.WIDTH);
                            //System.out.println("SRC = " + src);
                            //System.out.println("ALT = " + alt);
                            System.out.println("ROOT2"+root);
                            System.out.println("SRC1"+src);
                            if(src.startsWith("http"))
                            else
                            if(src.startsWith("../"))
                                src = src.replace("../", "");
                                src = root +"/"+ src;
                            else
                            if(src.startsWith("/"))
                                src = root + src;
                            else
                                src = root +"/"+ src;
                            System.out.println("SRC2"+src);
                            altList.add(alt);
                            srcList.add(src);
                            heightList.add(height);
                            widthList.add(width);
                            currentUrl.add(passUrl);
                            if(alt == null)
                                altPresent.add("No");
                            else
                                altPresent.add("Yes");
                            URI uri = null;
                            try
                                if (!uriBase.toString ().endsWith ("/") &&
                                    !src.startsWith ("/"))
                                    src = "/" + src;
                              uri = new URI (src);
                                uri = uriBase.resolve (uri);
                                System.out.println("URL"+passUrl);
                                System.out.println ("uri being " +
                                                    "processed ... " + uri);
                                System.out.println("ROOT3"+root);
                            catch (URISyntaxException e)                           
                               System.err.println ("Bad URI");
                               return;
                            // Convert the URI to a URL so that its input
                            // stream can be obtained.
                            URL url = null;
                            try
                                url = uri.toURL ();
                            catch (MalformedURLException e)
                              System.err.println ("Bad URL");
                                return;
                            //InputStream is;
                            //String filename = url.getFile ();
                            //int i = filename.lastIndexOf ('/');
                            //if (i != -1)
                            //    filename = filename.substring (i+1);
                    @Override
               public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
                            //while(test!=1)
                                System.out.println("TEST"+test);
                            if (tag == HTML.Tag.A)
                                link = (String)
                                             attributes.getAttribute (HTML.Attribute.HREF);
                                if(link != null && !link.startsWith("javascript") && !link.startsWith("#") && link.startsWith("/"))
                                    /*if(link.startsWith("/"))
                                        link = root + link;
                                    else
                                    if(!link.startsWith("http"))
                                        link = root +"/"+ link;
                                    //if(link.contains(root))
                                        link = root + link;
                                       test=1;
                                          linkList.add(link);
              try
                         HttpURLConnection urlConn = null;
                        //URL url = new URL(server);
                        // Build the string to be used for Basic Authentication <username>:<password>
                        String userPassword =  "testmlr" + ":" + "stage1-7000";
                        // Base64 encode the authentication string
                        String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());
                        //URLConnection
                        urlConn = (HttpURLConnection) url.openConnection();
                        // Enable writing to server ( to write request )
                        urlConn.setDoOutput(true);
                        // Enable reading from server ( to read response )
                        urlConn.setDoInput(true);
                        // Disable cache
                        urlConn.setUseCaches(false);
                        urlConn.setDefaultUseCaches(false);
                        // Set Basic Authentication parameters
                        urlConn.setRequestProperty ("Authorization", "Basic " + encoding);
                       // test(server);
                        BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
                  new ParserDelegator().parse(in, callback, false);
                  System.out.println(in + "test123412341234");
              catch (ChangedCharSetException e)
                  String csspec = e.getCharSetSpec ();
                 Pattern p = Pattern.compile ("charset=\"?(.+)\"?\\s*;?",
                                             Pattern.CASE_INSENSITIVE);
                  Matcher m = p.matcher (csspec);
                  String charset = m.find () ? m.group (1) : "ISO-8859-1";
                  // Read and parse HTML document using appropriate character set.
    public ArrayList getLinkList()
           return linkList;
       }

  • htmlb:fileupload goes into infinite loop

    Hello all,
    We use the tag <htmlb:fileupload> in our bsp page. Now if the user enters a file name directly, ie:without using the browse button the user simply enters a filename, say 'Resume.doc' in the input field and hits the save button on the page, then the system is going into an infinite loop and the system hangs, the users cannot proceed further and they need to restart the browser all over again(it is not necessary that the file must exist in the system, the user just types in a file name and performs the save action). This is a cause of concern for some of our customers, they expect that we should provide a meaningful message to the user and the processing should end. Is this a known issue in BSPs ?? Can anyone suggest me how to get rid of this problem ?
    Thanks and Best Regards,
    Viqar Ali.

    Hello All,
    I use the following code in my bsp:
    <phtmlb:matrix width="100%" >
      <phtmlb:matrixCell row = "1"
                         col = "1" />
        <phtmlb:formLayout design           = "HEADING_ONLY_SOLID"
                           customizationKey = "<%= controller->context %>" >
        <%-- Upload --%>
        <phtmlb:formLayoutItem label    = "<%= controller->file_label %>"
                               idOfItem = "upload" >
          <htmlb:fileUpload id   = "upload"
                            size = "30" />
        </phtmlb:formLayoutItem>
    Everything works fine if the user selects a file using the browse button to select a file. Instead if the user enters a file name directly, then the system runs into an infinite loop. I have put a breakpoint in DO_HANDLE_DATA & DO_REQUEST of the controller class. However the control doesnt come till this point also and i cannot even debug anything. The breakpoints are hit if the user selects the file using the browse button. If anyone has a similar scenario working correctly in their application pls update me with the code.
    Thanks and Best Regards,
    Viqar Ali.

Maybe you are looking for

  • Boris Window Stuck on Non-Existant Monitor

    Hello everyone. I edit using my MBP at school, hooked up to a 23" Cinema display. I shuffle windows around to either screen depending on what I'm working on at the moment. Yesterday I was working with Boris on the external monitor. I closed Boris, sa

  • Autofill Applet Form

    I'm trying to fill out the form fields in an applet running in a browser from an independent external application. I have no control over the Applet as it is part of a separate application. I've tried screen hopping with the Robot API but this depend

  • Rebuild

    I want to rebuild my icons as the iPhoto Library on my MacBook Pro does not show files displayed on iPhone or the iPad. While the iPhoto does not reveal the intended, deleted pictures, they are visible on both iPad and iPhone. I cannot find these pic

  • Outline a stroke......?

    hello, thanks for advise in advance, my problem today is i needed to stroke some text to thicken up for vinyl work. so then i select all,create outlines, then object-path-outline stroke........ but when i looked closer i got two outlines the one from

  • How to disable Shift + RMB.

    i am working on a website that runs a java applet. when you click on it, it will bind the mouse and keyboard and it replaces the standard controls like mouse clicks and key + mouse combos with applet controls -it runs fine in all browsers but firefox