Menu

#4 Poor selection behavior causes IAE

v0.4b_(initial)
open
Interface (6)
9
2002-06-12
2002-06-12
No

Poor selection behavior (internal) causes
IllegalArgumentException upon generation

Hard to explain, but here's the deal...
* click on the "Action Mappings" folder node
* double-click on an existing mapping
* click on the "generate" toolbar button.

You will probably get a stack trace saying "Exception
occurred during event dispatching:
java.lang.IllegalArgumentException: Supplied object is
of
type 'com.greendiamond.rivernorth.model.ActionMapping'
.
Source object must be one of: MultiApplicationModel,
StrutsApplicationModel, JavaClass, PageClass, or
Properties."

This is because the selection event is thrown by the
editing panel, not the tree, and the generator doesn't
know how to deal with it. The solution is either A) allow
the generator to generate "ActionMapping" classes (a
poor choice in my mind since there really is no such file
as an "ActionMapping" file; or B) ensure that the
generator "hears" the tree selection version of the
selection event or that the event thrown by the editor is
valid for generation.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB