DO NOT REPLY [Bug 12657] - using name-from-attribute in tld causes NullPointerException

2002-09-24 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657

using name-from-attribute in tld causes NullPointerException





--- Additional Comments From [EMAIL PROTECTED]  2002-09-24 19:14 ---
it appears that this may have been 'user error'.  upon closer investigation,
knowing what i now know, i think i was mistaken about the getXXX() referenced by
the name-from-attribute element, it was probably returning null, causing the
NullPointerException.

as it stands (with 4.1.11 at least) i am able to repro the error using an
invalid config (getXX returns null) but unable to repro using a valid config.

probably needs to be marked 'not-a-bug'.

although, it might makes sense to have the engine capture NullPointerExceptions
in that case, and display an error message a bit more helpful.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 12657] - using name-from-attribute in tld causes NullPointerException

2002-09-24 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657

using name-from-attribute in tld causes NullPointerException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-09-24 21:31 ---
Fixed. NPE is now prevented, and meaningful error message (at translation time)
displayed instead.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 12657] - using name-from-attribute in tld causes NullPointerException

2002-09-23 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657

using name-from-attribute in tld causes NullPointerException





--- Additional Comments From [EMAIL PROTECTED]  2002-09-23 21:33 ---
I fail to reproduce this problem. I am attaching a sample webapp which defines a
single custom tag whose TLD entry specifies a scripting variable whose name is
determined by the value of the 'id' attribute. Can you run this and see if it
works for you? You may also want to attach your own webapp which uncovered this
problem.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 12657] - using name-from-attribute in tld causes NullPointerException

2002-09-23 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12657

using name-from-attribute in tld causes NullPointerException





--- Additional Comments From [EMAIL PROTECTED]  2002-09-23 21:34 ---
Created an attachment (id=3186)
sample webapp

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]