[ mx4j-Bugs-900814 ] Null pointer exception accessing attribute in model bean
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #900814, was opened at 2004-02-19 20:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=900814&group_id=47745
Category: HTTP Adaptor
Group: Release 1.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Bhaskar Swaminathan (bhaskars)
Assigned to: Nobody/Anonymous (nobody)
Summary: Null pointer exception accessing attribute in model bean
Initial Comment:
A model mbean that is registered with the Http Adaptor.
On trying to access an attribute get a null pointer
exception
java.lang.NullPointerException
at
mx4j.adaptor.http.GetAttributeCommandProcessor.executeRequest(GetAttr
ibuteCommandProcessor.java:173)
at
mx4j.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:990)
Looking at the source GetAttributeCommandProcessor.java it
is clear that the attrivute value is not being checked
for null
Object attributeValue = server.getAttribute(objectName,
attributeVariable);
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=900814&group_id=47745
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click