}catch( Exception e){
Throwable t = e.getCause();
Class tclass = t.getClass();
if( tclass.isAssignableFrom(IllegalArgumentException.class)){
System.err.println("illegal exception ");
}
}
View the original post :
http://www.jboss.com/
This error log is indeed very annoying. But to me, the fact that a generic
CreateException is thrown is even more problematic. How do I distinguish this
from some other failure in the database? I would hope I do not need to
interpret the exeception's message to distinguish.
Shouldn't this code
The code that generates this log is from class
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand and more specifically
in method protected void performInsert(EntityEnterpriseContext ctx) throws
CreateException. Here is the snippet that is logging.
?..
| catch(SQLException e)
| {