Share

ThinWire Ajax RIA Framework

Tracker: Bugs

5 java.lang.IllegalArgumentException: sourceComponentX{-2} < 0 - ID: 1731146
Last Update: Comment added ( pra9ma )

I get the following error message occasionally when attempting to open a
tree (clicking on the (+) expansion. The problem only happens once in a
while, and I can not reproduce it consistently. The tree nodes are
configured to recieve drag/drop events, but other than that, there is
nothing special about the tree being used.

java.lang.IllegalArgumentException: sourceComponentX{-2} < 0
at thinwire.ui.event.DropEvent.<init>(DropEvent.java:73)
at thinwire.ui.event.DropEvent.<init>(DropEvent.java:65)
at
thinwire.render.web.ComponentRenderer.componentChange(ComponentRenderer.jav
a:353)
at
thinwire.render.web.TreeRenderer.componentChange(TreeRenderer.java:153)
at
thinwire.render.web.WebApplication.captureThread(WebApplication.java:958)
at
thinwire.ui.AbstractWindow.setWaitForWindow(AbstractWindow.java:110)
at
thinwire.render.web.WebApplication$3.run(WebApplication.java:337)


Kevin Self ( kself ) - 2007-06-05 03:48

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-08-22 20:40
Sender: pra9maProject Admin


Ok, there were actually two issues here:
1) The browser was in fact registering a drag in the case of a click/

2) The browser was sending negative coordinates for Tree.Item if you
performed a drag to the right of the text.

Both have been fixed in the trunk (r429).


Date: 2007-08-20 22:42
Sender: pra9maProject Admin


Well, with drag-n-drop enabled, the browser doesn't register a drag until
you actually drag some thing a few pixels. You may be accidentally
dragging the + on the tree when you try to click it. In any event, it
probably shouldn't throw an exception.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2007-08-22 20:40 pra9ma
resolution_id None 2007-08-22 20:40 pra9ma
close_date - 2007-08-22 20:40 pra9ma