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

Exception during typing in TextField

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8u40
    • Fix Version/s: 9
    • Component/s: javafx
    • Environment:

      os.name: Mac OS X
      os.version: 10.10.3
      user.language: zh

      Description

      I have received two very strange exceptions through BugSnag. Seems like user from China (ZH country code) tried to type anything to TextField.

      Exception 1:

      {noformat}
      java.lang.StringIndexOutOfBoundsException: String index out of range: 1
              at java.lang.String.substring(String.java:1950)
              at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.defaultKeyTyped(TextInputControlBehavior.java:249)
              at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callAction(TextInputControlBehavior.java:147)
              at com.sun.javafx.scene.control.behavior.BehaviorBase.callActionForEvent(BehaviorBase.java:218)
              at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callActionForEvent(TextInputControlBehavior.java:135)
              at com.sun.javafx.scene.control.behavior.BehaviorBase.lambda$new$74(BehaviorBase.java:135)
              at com.sun.javafx.scene.control.behavior.BehaviorBase$$Lambda$163/1144250940.handle(Unknown:-1)
              at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
              at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
              at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
              at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
              at javafx.event.Event.fireEvent(Event.java:198)
              at javafx.scene.Scene$KeyHandler.process(Scene.java:3931)
              at javafx.scene.Scene$KeyHandler.access$1800(Scene.java:3877)
              at javafx.scene.Scene.impl_processKeyEvent(Scene.java:2006)
              at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2468)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:197)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:147)
              at java.security.AccessController.doPrivileged(AccessController.java:-2)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:227)
              at com.sun.glass.ui.View.handleKeyEvent(View.java:544)
              at com.sun.glass.ui.View.notifyKey(View.java:954)
              at com.sun.glass.ui.mac.MacApplication._enterNestedEventLoopImpl(MacApplication.java:-2)
              at com.sun.glass.ui.mac.MacApplication._enterNestedEventLoop(MacApplication.java:114)
              at com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:513)
              at com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
              at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:519)
              at javafx.stage.Stage.showAndWait(Stage.java:462)
              at javafx.scene.control.HeavyweightDialog.showAndWait(HeavyweightDialog.java:200)
              at javafx.scene.control.Dialog.showAndWait(Dialog.java:295)
              at keylord.application.controllers.connections_manager.ConnectionsManagerViewController.lambda$openNewLevelDBConnectionDialog$4(ConnectionsManagerViewController.java:60)
              at keylord.application.b.b.c$$Lambda$310/1853212044.run(Unknown:-1)
              at com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292)
              at com.sun.javafx.application.PlatformImpl$$Lambda$49/895280292.run(Unknown:-1)
              at java.security.AccessController.doPrivileged(AccessController.java:-2)
              at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
              at com.sun.javafx.application.PlatformImpl$$Lambda$48/1854136771.run(Unknown:-1)
              at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      {noformat}

      Exception 2:

      {noformat}
      java.lang.IndexOutOfBoundsException
              at java.lang.Character.offsetByCodePoints(Character.java:5286)
              at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.deletePreviousChar(TextInputControlBehavior.java:338)
              at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callAction(TextInputControlBehavior.java:151)
              at com.sun.javafx.scene.control.behavior.BehaviorBase.callActionForEvent(BehaviorBase.java:218)
              at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callActionForEvent(TextInputControlBehavior.java:135)
              at com.sun.javafx.scene.control.behavior.BehaviorBase.lambda$new$74(BehaviorBase.java:135)
              at com.sun.javafx.scene.control.behavior.BehaviorBase$$Lambda$163/1144250940.handle(Unknown:-1)
              at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
              at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
              at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
              at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
              at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
              at javafx.event.Event.fireEvent(Event.java:198)
              at javafx.scene.Scene$KeyHandler.process(Scene.java:3931)
              at javafx.scene.Scene$KeyHandler.access$1800(Scene.java:3877)
              at javafx.scene.Scene.impl_processKeyEvent(Scene.java:2006)
              at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2468)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:197)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:147)
              at java.security.AccessController.doPrivileged(AccessController.java:-2)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:227)
              at com.sun.glass.ui.View.handleKeyEvent(View.java:544)
              at com.sun.glass.ui.View.notifyKey(View.java:954)
              at com.sun.glass.ui.mac.MacApplication._enterNestedEventLoopImpl(MacApplication.java:-2)
              at com.sun.glass.ui.mac.MacApplication._enterNestedEventLoop(MacApplication.java:114)
              at com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:513)
              at com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
              at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:519)
              at javafx.stage.Stage.showAndWait(Stage.java:462)
              at javafx.scene.control.HeavyweightDialog.showAndWait(HeavyweightDialog.java:200)
              at javafx.scene.control.Dialog.showAndWait(Dialog.java:295)
              at keylord.application.controllers.connections_manager.ConnectionsManagerViewController.lambda$openNewLevelDBConnectionDialog$4(ConnectionsManagerViewController.java:60)
              at keylord.application.b.b.c$$Lambda$310/1853212044.run(Unknown:-1)
              at com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292)
              at com.sun.javafx.application.PlatformImpl$$Lambda$49/895280292.run(Unknown:-1)
              at java.security.AccessController.doPrivileged(AccessController.java:-2)
              at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
              at com.sun.javafx.application.PlatformImpl$$Lambda$48/1854136771.run(Unknown:-1)
              at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      {noformat}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: