Uploaded image for project: 'Bug Repository'
  1. Bug Repository
  2. BUG-268

Entry of Alphabetical characters into Sliced buffer text field which is in the sub-panel "Sliced view tab"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:

      MacOS

      Description

      When I tried to enter the alphabetical characters instead of numerical characters in the Sliced buffer textfield provided in the sliced view tab it just simply throws the following exception in the console but never alerts the user that he is entering wrong data.

      Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "asfsdgd"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:449)
      at java.lang.Integer.parseInt(Integer.java:499)
      at com.affymetrix.igb.view.AltSpliceView.actionPerformed(AltSpliceView.java:219)
      at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
      at javax.swing.JTextField.postActionEvent(JTextField.java:705)
      at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:820)
      at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1645)
      at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
      at javax.swing.JComponent.processKeyBindings(JComponent.java:2886)
      at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
      at java.awt.Component.processEvent(Component.java:6150)
      at java.awt.Container.processEvent(Container.java:2085)
      at java.awt.Component.dispatchEventImpl(Component.java:4735)
      at java.awt.Container.dispatchEventImpl(Container.java:2143)
      at java.awt.Component.dispatchEvent(Component.java:4565)
      at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
      at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
      at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
      at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
      at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
      at java.awt.Component.dispatchEventImpl(Component.java:4607)
      at java.awt.Container.dispatchEventImpl(Container.java:2143)
      at java.awt.Window.dispatchEventImpl(Window.java:2478)
      at java.awt.Component.dispatchEvent(Component.java:4565)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
      at java.awt.EventQueue.access$000(EventQueue.java:85)
      at java.awt.EventQueue$1.run(EventQueue.java:638)
      at java.awt.EventQueue$1.run(EventQueue.java:636)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      at java.awt.EventQueue$2.run(EventQueue.java:652)
      at java.awt.EventQueue$2.run(EventQueue.java:650)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

        Attachments

          Issue Links

            Activity

            Hide
            kkubiak Katharine Kubiak (Inactive) added a comment - - edited

            Similar error thrown on Windows:

            • When entering alpha characters OR when entering a number greater than 10 digits long

            Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "abdflakfj"
            at java.lang.NumberFormatException.forInputString(Unknown Source)
            at java.lang.Integer.parseInt(Unknown Source)
            at java.lang.Integer.parseInt(Unknown Source)
            at com.affymetrix.igb.view.AltSpliceView.actionPerformed(AltSpliceView.java:219)
            at javax.swing.JTextField.fireActionPerformed(Unknown Source)
            at javax.swing.JTextField.postActionEvent(Unknown Source)
            at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
            at javax.swing.SwingUtilities.notifyAction(Unknown Source)
            at javax.swing.JComponent.processKeyBinding(Unknown Source)
            at javax.swing.JComponent.processKeyBindings(Unknown Source)
            at javax.swing.JComponent.processKeyEvent(Unknown Source)
            at java.awt.Component.processEvent(Unknown Source)
            at java.awt.Container.processEvent(Unknown Source)
            at java.awt.Component.dispatchEventImpl(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
            at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
            at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
            at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
            at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
            at java.awt.Component.dispatchEventImpl(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Window.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
            at java.awt.EventQueue.access$000(Unknown Source)
            at java.awt.EventQueue$1.run(Unknown Source)
            at java.awt.EventQueue$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
            at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
            at java.awt.EventQueue$2.run(Unknown Source)
            at java.awt.EventQueue$2.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)

            Show
            kkubiak Katharine Kubiak (Inactive) added a comment - - edited Similar error thrown on Windows: When entering alpha characters OR when entering a number greater than 10 digits long Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "abdflakfj" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.affymetrix.igb.view.AltSpliceView.actionPerformed(AltSpliceView.java:219) at javax.swing.JTextField.fireActionPerformed(Unknown Source) at javax.swing.JTextField.postActionEvent(Unknown Source) at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at javax.swing.JComponent.processKeyBinding(Unknown Source) at javax.swing.JComponent.processKeyBindings(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
            Hide
            david David Norris (Inactive) added a comment -

            I think its obvious this is the wrong sort of data to be entering in this box, but I have caught the exception to handle this situation. I have no plans to alert the user. r9997

            Show
            david David Norris (Inactive) added a comment - I think its obvious this is the wrong sort of data to be entering in this box, but I have caught the exception to handle this situation. I have no plans to alert the user. r9997
            Hide
            alyssa Alyssa Gulledge (Inactive) added a comment -

            Can you:

            1. if the number is too large, change it to show the max in the box (ie put in 1000000 and hit enter - it doesn't get larger than the natural limit. The largest intron showing should be the maximum number shown in the box)

            2. if any incorrect characters/symbols are entered, can you just clear the box after user hits return? This shows that the user put in invalid information and that the image was not changed.

            Something to think about for the future might be a slider bar, like the ORF slider on the bottom right of the panel. Then there is a 'max' size limit and no entry box for stupid stuff.

            Show
            alyssa Alyssa Gulledge (Inactive) added a comment - Can you: 1. if the number is too large, change it to show the max in the box (ie put in 1000000 and hit enter - it doesn't get larger than the natural limit. The largest intron showing should be the maximum number shown in the box) 2. if any incorrect characters/symbols are entered, can you just clear the box after user hits return? This shows that the user put in invalid information and that the image was not changed. Something to think about for the future might be a slider bar, like the ORF slider on the bottom right of the panel. Then there is a 'max' size limit and no entry box for stupid stuff.
            Hide
            david David Norris (Inactive) added a comment -

            I discussed this with Hiral and he has said not to implement #1. No incorrect characters/symbols can be entered now. There is a filter on what is allowed to be typed which was not in place before.

            Show
            david David Norris (Inactive) added a comment - I discussed this with Hiral and he has said not to implement #1. No incorrect characters/symbols can be entered now. There is a filter on what is allowed to be typed which was not in place before.
            Hide
            darius darius added a comment -

            Passed 7.0 (11862)Mac

            Show
            darius darius added a comment - Passed 7.0 (11862)Mac
            Hide
            richard Richard Linchangco (Inactive) added a comment -

            Passed V.13780, Mac, Java 1.7.0_10

            ONLY valid characters are numbers from 0-9. There is no limit to the length of the number input in this text field but when hitting 'Enter' nothing beyond 1,000,000,000 will work.

            Show
            richard Richard Linchangco (Inactive) added a comment - Passed V.13780, Mac, Java 1.7.0_10 ONLY valid characters are numbers from 0-9. There is no limit to the length of the number input in this text field but when hitting 'Enter' nothing beyond 1,000,000,000 will work.

              People

              • Assignee:
                Unassigned
                Reporter:
                anuj Anuj Puram (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: