Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.0.0
-
None
Description
pretty self explanatory, see the patch
--- a/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java +++ b/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java @@ -155,7 +155,9 @@ public class EventProviderImpl implements org.apache.pluto.spi.EventProvider, if (value != null && !isValueInstanceOfDefinedClass(qname, value)) throw new IllegalArgumentException( - "Payload has not the right class"); + "Payload class (" + + value.getClass().getCanonicalName() + + ") does not have right class, check your defined event types in portlet.xml."); try {
It would be better to list out the allowed types, but that's a little more code than this, and it'll point the user in the right direction.