[seam-commits] Seam SVN: r7334 - trunk/src/main/org/jboss/seam.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Feb 1 19:31:20 EST 2008
Author: norman.richards at jboss.com
Date: 2008-02-01 19:31:20 -0500 (Fri, 01 Feb 2008)
New Revision: 7334
Modified:
trunk/src/main/org/jboss/seam/Component.java
Log:
improve error message
Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java 2008-02-01 19:54:19 UTC (rev 7333)
+++ trunk/src/main/org/jboss/seam/Component.java 2008-02-02 00:31:20 UTC (rev 7334)
@@ -1882,7 +1882,9 @@
if ( !component.isInstance(result) )
{
if ( component.hasUnwrapMethod() ) return result; ///best way???
- throw new IllegalArgumentException( "value of context variable is not an instance of the component bound to the context variable: " + name );
+ throw new IllegalArgumentException( "value of context variable is not an instance of the component bound to the context variable: " + name +
+ ". If you are using hot deploy, you may have attempted to hot deploy a session or " +
+ "application-scoped component definition while using an old instance in the session.");
}
result = component.unwrap(result);
}
More information about the seam-commits
mailing list