portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r762600 - /portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java
Date Tue, 07 Apr 2009 02:37:39 GMT
Author: ate
Date: Tue Apr  7 02:37:39 2009
New Revision: 762600

URL: http://svn.apache.org/viewvc?rev=762600&view=rev
Log:
PLUTO-519: Better error msg on invalid event payload class
Patch provided by Antony Stubbs

Modified:
    portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java

Modified: portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java?rev=762600&r1=762599&r2=762600&view=diff
==============================================================================
--- portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java
(original)
+++ portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/EventProviderImpl.java
Tue Apr  7 02:37:39 2009
@@ -63,7 +63,9 @@
         {
             if (value != null && !isValueInstanceOfDefinedClass(qname, value))
             {
-                throw new IllegalArgumentException("Payload has not the right class");
+                throw new IllegalArgumentException("Payload class (" +
+                                                   value.getClass().getCanonicalName() +
+                                                   ") does not have the right class, check
your defined event types in portlet.xml.");
             }
             try
             {



Mime
View raw message