[opennms-devel] Validation of xml files

Jimisola Laursen <[email protected]>
Newsgroups gmane.network.opennms.bugs
Message-ID <1216901043998-580171.post__45993.5567494997$1216901225$gmane$org@n2.nabble.com>
Hi!

It would be a huge improvement if xml files where validated against the XSD
during startup.
I commented out the <hideMessage> section in syslogd-configuration.xml since
I didn't use it.

Appearently, the <hideMessage> is not nillable (see
http://www.opennms.org/documentation/java-xsddocs-stable/syslogd-configuration.html).
But instead of a nice message informing me about that during startup I had
to realize that no syslogd events came in to OpenNMS due to the following
NPE as seen in output.log:

Exception in thread "Thread-894" java.lang.NullPointerException
        at
org.opennms.netmgt.syslogd.ConvertToEvent.make(ConvertToEvent.java:410)
        at
org.opennms.netmgt.syslogd.SyslogConnection.run(SyslogConnection.java:93)
        at java.lang.Thread.run(Thread.java:595)

Is there an enhancement request for validation? If not, I'm filing one.

Regards,
Jimisola
-- 
View this message in context: http://n2.nabble.com/Validation-of-xml-files-tp580171p580171.html
Sent from the OpenNMS - devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
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.