[jboss-as7-dev] Cryptic Error Messages

David M. Lloyd david.lloyd at redhat.com
Thu Feb 3 06:59:26 EST 2011


On 02/03/2011 05:08 AM, Darran Lofthouse wrote:
> Do we have any plans to capture cryptic error messages experienced while
> working with AS7 so we can review if there are better ways the problem
> can be reported?

Capture, no - but when they're encountered we should fix them.

> Over the past week I have experienced the two errors at the end of this
> e-mail.
>
> The first of these errors was reported because a subsystem had not read
> all of it's configuration but the reported error gives the impression
> there may be a problem with the actual XML.

Well, a bug in the XML parser will almost always look like an XML 
parsing error.  The only fix for that is to just not have any XML 
parsing bugs.

> The second error although claiming an extension could not be found was
> actually because the extension could not be loaded as the module
> containing a class used by the extension was not referenced from the
> module.xml.

This one is due to java.util.ServiceLoader - it eats exceptions instead 
of chaining them so you can't see the underlying cause.  I'm thinking 
about ways to fix that.
-- 
- DML



More information about the jboss-as7-dev mailing list