Author: jleroux
Date: Wed Sep 18 07:29:18 2019
New Revision: 1867099

URL: http://svn.apache.org/viewvc?rev=1867099&view=rev
Log:
Fixed: Error in log when looking for parties at partymgr/control/main
(OFBIZ-11201)

There is this a (long stack trace) error in log (only), mostly

java.lang.ClassCastException: java.util.ArrayList cannot be cast to 
java.util.Map
at org.apache.ofbiz.base.util.string.UelFunctions.getSize(UelFunctions.java:318)

I did not notice any other effect, so the fix only cleans the log.

It's actually an issue in ListParty grid with this line:
<set field="userLoginSize" value="${util:size(logins)}" type="Integer"/>

This fixes it by replacing by 
<set field="userLoginSize" value="${groovy:logins.size()}"/>


Modified:
    
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyForms.xml

Modified: 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyForms.xml?rev=1867099&r1=1867098&r2=1867099&view=diff
==============================================================================
--- 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyForms.xml 
(original)
+++ 
ofbiz/ofbiz-framework/trunk/applications/party/widget/partymgr/PartyForms.xml 
Wed Sep 18 07:29:18 2019
@@ -137,7 +137,7 @@ under the License.
             <entity-and entity-name="UserLogin" list="logins" use-cache="true">
                 <field-map field-name="partyId" from-field="partyId"/>
             </entity-and>
-            <set field="userLoginSize" value="${util:size(logins)}" 
type="Integer"/>
+            <set field="userLoginSize" value="${groovy:logins.size()}" 
type="Integer"/>
             <service service-name="getPartyMainRole" result-map="mainRole">
                 <field-map field-name="partyId" from-field="partyId"/>
                 <field-map field-name="userLogin" from-field="userLogin"/>


Reply via email to