Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8108936

textBox throws IllegalArgumentException when assigning text value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx1.3
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Environment:

      SoMa b224 on Linux. Does not occur with b221.

      Description

      The following exception is thrown when assigning a String to TextBox.text in multiline mode.

      java.lang.IllegalArgumentException: offsetLimit must be after current position
      at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:337)
      at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:422)
      at com.sun.scenario.scenegraph.SGText.updateParagraphs(SGText.java:1751)
      at com.sun.scenario.scenegraph.SGText.updateTextLayouts(SGText.java:1675)
      at com.sun.scenario.scenegraph.SGText.computeBoundsLogical(SGText.java:980)
      at com.sun.scenario.scenegraph.SGText.computeLayoutBounds(SGText.java:820)
      at com.sun.scenario.scenegraph.SGText.computeBounds(SGText.java:858)
      at com.sun.scenario.scenegraph.SGNode.updateBounds(SGNode.java:475)
      at com.sun.scenario.scenegraph.SGText.getCaretShape(SGText.java:1491)
      at com.sun.scenario.scenegraph.SGText.getCaretShape(SGText.java:614)
      at com.sun.javafx.tk.swing.SwingTextHelper.getCaretShape(SwingTextHelper.fx:36)
      at javafx.scene.text.Text.getDecorationShapes(Text.fx:443)
      at javafx.scene.text.Text.impl_geomChanged(Text.fx:312)
      at javafx.scene.text.Text$_SBECL.onChange(Text.fx:208)
      at com.sun.javafx.runtime.location.AbstractLocation$1.onAction(AbstractLocation.java:249)
      at com.sun.javafx.runtime.location.AbstractLocation$1.onAction(AbstractLocation.java:246)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:283)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.FloatVariable.notifyListeners(FloatVariable.java:141)
      at com.sun.javafx.runtime.location.FloatVariable.replaceValue(FloatVariable.java:95)
      at com.sun.javafx.runtime.location.FloatVariable.setAsFloat(FloatVariable.java:114)
      at javafx.scene.control.Control.set$width(Control.fx:68)
      at com.sun.javafx.scene.control.caspian.TextBoxSkin$_SBECL.onChange(TextBoxSkin.fx:119)
      at com.sun.javafx.runtime.location.ChangeListener.onChangeB(ChangeListener.java:126)
      at com.sun.javafx.runtime.location.BooleanVariable.notifyListeners(BooleanVariable.java:159)
      at com.sun.javafx.runtime.location.BooleanVariable.replaceValue(BooleanVariable.java:95)
      at com.sun.javafx.runtime.location.AbstractBindingExpression.pushValue(AbstractBindingExpression.java:83)
      at com.sun.javafx.runtime.location.AbstractBindingExpression.pushFrom(AbstractBindingExpression.java:103)
      at com.sun.javafx.runtime.location.Locations$7.compute(Locations.java:283)
      at com.sun.javafx.runtime.location.AbstractVariable.update(AbstractVariable.java:128)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:141)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.IntVariable.notifyListeners(IntVariable.java:141)
      at com.sun.javafx.runtime.location.IntVariable.replaceValue(IntVariable.java:95)
      at com.sun.javafx.runtime.location.IntVariable.setAsInt(IntVariable.java:114)
      at javafx.scene.Node.set$javafx$scene$Node$triggerLocalBoundsChanged(Node.fx:1587)
      at javafx.scene.Node.localBoundsChanged(Node.fx:1951)
      at javafx.scene.Node.impl_geomChanged(Node.fx:1942)
      at javafx.scene.text.Text.impl_geomChanged(Text.fx:313)
      at javafx.scene.text.Text$_SBECL.onChange(Text.fx:133)
      at com.sun.javafx.runtime.location.AbstractLocation$1.onAction(AbstractLocation.java:249)
      at com.sun.javafx.runtime.location.AbstractLocation$1.onAction(AbstractLocation.java:246)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:283)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidate(AbstractLocation.java:112)
      at com.sun.javafx.runtime.location.AbstractVariable.invalidate(AbstractVariable.java:139)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:264)
      at com.sun.javafx.runtime.location.AbstractLocation$2.onAction(AbstractLocation.java:258)
      at com.sun.javafx.runtime.location.AbstractLocation.iterateChildren(AbstractLocation.java:211)
      at com.sun.javafx.runtime.location.AbstractLocation.invalidateDependencies(AbstractLocation.java:284)
      at com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(ObjectVariable.java:143)
      at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:111)
      at com.sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:122)
      at javafx.scene.control.TextInputControl.set$rawText(TextInputControl.fx:63)
      at javafx.scene.control.TextInputControl$_SBECL.onChange(TextInputControl.fx:95)
      at com.sun.javafx.runtime.location.ChangeListener.onChangeB(ChangeListener.java:35)
      at com.sun.javafx.runtime.location.ObjectVariable.notifyListeners(ObjectVariable.java:161)
      at com.sun.javafx.runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:111)
      at com.sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:122)
      at javafx.scene.control.TextInputControl.set$text(TextInputControl.fx:93)
      at com.sun.javafx.designer.fx.inspector.FxScriptEditor.displayScript(FxScriptEditor.fx:171)
      at com.sun.javafx.designer.fx.presenters.valueeditors.SlotValueFunctionEditor$2.lambda(SlotValueFunctionEditor.fx:40)
      at com.sun.javafx.designer.fx.presenters.valueeditors.SlotValueFunctionEditor$2.invoke(SlotValueFunctionEditor.fx:31)
      at com.sun.javafx.designer.fx.presenters.valueeditors.SlotValueFunctionEditor$2.invoke(SlotValueFunctionEditor.fx:31)
      at javafx.scene.control.Button.fire(Button.fx:71)
      at com.sun.javafx.scene.control.behavior.ButtonBaseBehavior.mouseRelease(ButtonBaseBehavior.fx:78)
      at com.sun.javafx.scene.control.caspian.AbstractButtonSkin$4.lambda(AbstractButtonSkin.fx:69)
      at com.sun.javafx.scene.control.caspian.AbstractButtonSkin$4.invoke(AbstractButtonSkin.fx:69)
      at com.sun.javafx.scene.control.caspian.AbstractButtonSkin$4.invoke(AbstractButtonSkin.fx:69)
      at javafx.scene.Node.impl_processMouseEvent(Node.fx:2752)
      at javafx.scene.Node.preprocessMouseEvent(Node.fx:2783)
      at javafx.scene.Scene$MouseHandler.process(Scene.fx:1285)
      at javafx.scene.Scene$MouseHandler.process(Scene.fx:1147)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.fx:503)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.fx:725)
      at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.doMouseEvent(SwingScene.java:434)
      at com.sun.javafx.tk.swing.SwingScene$SwingScenePanel.mouseReleased(SwingScene.java:454)
      at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
      at java.awt.Component.processMouseEvent(Component.java:6263)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
      at java.awt.Component.processEvent(Component.java:6028)
      at java.awt.Container.processEvent(Container.java:2041)
      at java.awt.Component.dispatchEventImpl(Component.java:4630)
      at java.awt.Container.dispatchEventImpl(Container.java:2099)
      at java.awt.Component.dispatchEvent(Component.java:4460)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
      at java.awt.Container.dispatchEventImpl(Container.java:2085)
      at java.awt.Window.dispatchEventImpl(Window.java:2475)
      at java.awt.Component.dispatchEvent(Component.java:4460)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

        Attachments

          Activity

            People

            • Assignee:
              naoto Naoto Sato
              Reporter:
              leifs Leif Samuelsson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: