Error when inputting constraint data

Bug #310399 reported by Ken McLean
2
Affects Status Importance Assigned to Milestone
OpenScore
Fix Released
Undecided
Unassigned

Bug Description

OpenScore Windows XP release 0.1-20081222

When inputting a Constraint in Pre-Meet > Constraint, I entered the data, and then upon entering the text 'drthdhuj' in the column "Return Type", the cursor went to the next row but was attempting to enter data into a displaced cell overlying the next row (see screecap for more detail). Upon deactivating this new cell, I encountered an error popup window.

   An error has occurred. See error log for more details.
   Reason:
   For input string: "drthdhuj"

The debug window produced this error:

13:11:06:INFO :Changing Constraint on line 18 to ,ey,Gender,rg,,drthdhuj
13:11:06:INFO :CSVFile:CSVFile:ReplaceRow:Constraints.csv:[18],ey,Gender,rg,,
13:11:06:INFO :CSVFile:CSVFile:with :Constraints.csv:[18],ey,Gender,rg,,drt
hdhuj
13:11:06:INFO :CSVFile:writeMatrix():Matrix has 20 lines.
13:11:06:INFO :CSVFile:Constraints.csv:Wrote out 1010 bytes.
13:11:06:INFO :CSVFile:Closed file Constraints.csv
13:11:06:INFO :Changed object 18 ChangedObjects now 0
13:11:06:INFO :Queue flushed.
13:11:08:INFO :Poll files for changes.
13:11:08:INFO :Queue flushed.
13:11:10:INFO :Poll files for changes.
13:11:10:INFO :Queue flushed.
Exception occurred
java.lang.NumberFormatException: For input string: "drthdhuj"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at avscoreswt.gui.ConstraintsEditSupport.setValue(ConstraintsPanel.java:
387)
        at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingS
upport.java:109)
        at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnVi
ewerEditor.java:454)
        at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnV
iewerEditor.java:311)
        at org.eclipse.jface.viewers.ColumnViewerEditor$2.applyEditorValue(Colum
nViewerEditor.java:153)
        at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:333)
        at org.eclipse.jface.util.SafeRunnable$1.run(SafeRunnable.java:128)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
        at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.
java:331)
        at org.eclipse.jface.viewers.CellEditor.focusLost(CellEditor.java:716)
        at org.eclipse.jface.viewers.TextCellEditor$5.focusLost(TextCellEditor.j
ava:186)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
137)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
        at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2429)
        at org.eclipse.swt.widgets.Widget.wmKillFocus(Widget.java:1765)
        at org.eclipse.swt.widgets.Control.WM_KILLFOCUS(Control.java:4130)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3820)
        at org.eclipse.swt.widgets.Text.windowProc(Text.java:2078)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4541)
        at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:2879)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3417)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at avscoreswt.gui.BaseFrame.run(BaseFrame.java:155)
        at avscoreswt.gui.BaseFrame.start(BaseFrame.java:846)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at avscoreswt.OpenScore.main(OpenScore.java:41)

And subsequent clicking around produced this slightly different error (but with no further popups)

13:12:18:INFO :Poll files for changes.
13:12:18:INFO :Queue flushed.
java.lang.NumberFormatException: For input string: "drthdhuj"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at avscoreswt.gui.ConstraintsEditSupport.setValue(ConstraintsPanel.java:
387)
        at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingS
upport.java:109)
        at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnVi
ewerEditor.java:454)
        at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnV
iewerEditor.java:311)
        at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorActivationEv
ent(ColumnViewerEditor.java:438)
        at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivationEvent(C
olumnViewer.java:680)
        at org.eclipse.jface.viewers.ColumnViewer.handleMouseDown(ColumnViewer.j
ava:664)
        at org.eclipse.jface.viewers.ColumnViewer.access$0(ColumnViewer.java:660
)
        at org.eclipse.jface.viewers.ColumnViewer$1.mouseDown(ColumnViewer.java:
89)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
179)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at avscoreswt.gui.BaseFrame.run(BaseFrame.java:155)
        at avscoreswt.gui.BaseFrame.start(BaseFrame.java:846)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at avscoreswt.OpenScore.main(OpenScore.java:41)

Revision history for this message
Ken McLean (kenmclean) wrote :
Revision history for this message
Craig Mahony (cmahony) wrote :

The first column was larger than the minimum width of the texteditor. The width of the text editor is unable to be changed so I widened the column. Fixed an assertion error. Made the first column accept numerical data only.

Changed in openscore:
status: New → Fix Committed
Revision history for this message
Ken McLean (kenmclean) wrote :

Resolved in OpenScore Windows XP release 0.1-20081228

Changed in openscore:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.