[ mx4j-Bugs-852560 ] NullPointerException with MLets with no name attribute

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #852560, was opened at 2003-12-02 11:52
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=852560&group_id=47745

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kevin Curley (kcurley)
Assigned to: Nobody/Anonymous (nobody)
Summary: NullPointerException with MLets with no name attribute

Initial Comment:
If I have an MLet with no name attribute (names are
optional in mlet), I get a NullPointerException.

The StackTrace is as follows

java.lang.NullPointerException
        at
javax.management.loading.MLet.handleCheck(MLet.java:371)
        at
javax.management.loading.MLet.parseMLetFile(MLet.java:341)
        at
javax.management.loading.MLet.getMBeansFromURL(MLet.java:319)
        at
javax.management.loading.MLet.getMBeansFromURL(MLet.java:281)


An example of this is (taken from the Jetty Servlet Engine)

<MLET
 CODE="org.mortbay.util.jmx.CodeMBean"
 ARCHIVE="org.mortbay.jetty.jmx.jar"
 CODEBASE="file:__JETTY_JMX_HOME__/lib">
</MLET>



Thanks,
Kevin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=852560&group_id=47745


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
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.