[ 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 (Settings changed) made by btscully
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=900814&group_id=47745

Category: HTTP Adaptor
>Group: Release 2.0.0
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Bhaskar Swaminathan (bhaskars)
>Assigned to: Brian Scully (btscully)
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.