[jboss-dev-forums] [Design of JBossXB] - Sundry JBossXB changes
adrian@jboss.org
do-not-reply at jboss.com
Thu Oct 5 07:59:30 EDT 2006
I've made a couple of fixes/changes to JBossXB.
1) The SchemaBinding now exposes the namespaces in the document
2) I've improved some error messages. This needs a review.
JBossXB is eating lots errors making the real meaning of the
problem unknown. e.g.
| try
| {
| return getter.get(owner);
| }
| catch(Exception e)
| {
| throw new JBossXBRuntimeException(
| "Failed to get value of the property '" + name + "' defined in " + owner + " from instance " + owner
| );
| }
|
That's not very interesting, I want to know why it failed.
| throw new JBossXBRuntimeException(
| "Failed to get value of the property '" + name + "' defined in " + owner + " from instance " + owner, e)
| );
|
3) I made the content handler throw an Exception if it can't find
the schema binding. Previously it pushing null onto stack
which caused an NPE during endElement.
I also added checks to the Stack to trap early when null is pushed
onto the stack.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976288#3976288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976288
More information about the jboss-dev-forums
mailing list