Proposal: get details from validateManagedBeans

  4 posts   Feedicon  
Replies: 3 - Last Post: May 20, 2009 21:45
by: Jason Lee
showing 1 - 4 of 4
 
Posted: May 19, 2009 14:20 by IngoHofmann
Hey guys,

I am using a lot the validateManagedBeans method from FacesConfig.

This message is a bit confusing for a developer, I think:

throwAssertionError("The managed bean '" + mbmd.getBeanName() +
"' could not be loaded: " + mbmd.getBeanClass() +
" not found");


In our environment some managed beans could not be loaded because there are some missing resources, but not because they could not be found.

Something like that would be clearer:

throwAssertionError("The managed bean '" + mbmd.getBeanName() +
"' could not be loaded. Class: " + mbmd.getBeanClass() +
". Caused by: " + ex.getClass().getSimpleName() + " - " +
ex.getMessage());


A change like this would be great!

Best,
Ingo
 
Posted: May 20, 2009 04:08 by Jason Lee
That's an excellent suggestion. I'll make that change before we cut 0.2.

Thanks!
 
Posted: May 20, 2009 07:27 by IngoHofmann
Great, thanks a lot!
 
Posted: May 20, 2009 21:45 by Jason Lee
Committed! Smile

http://kenai.com/projects/facestester/lists/commits/archive/2009-05/message/3
Replies: 3 - Last Post: May 20, 2009 21:45
by: Jason Lee
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close