Hi Saad, Could you try changing the following line in CallSimpleMapProcessor.java (101-106): // run inlined map processor last so it can override the external map processor if (inlineMapProcessor != null) { inlineMapProcessor.exec(inMap, outMap, messages, (methodContext.getRequest() != null ? methodContext.getRequest().getLocale() : null), methodContext.getLoader()); }
Change this: (methodContext.getRequest() != null ? methodContext.getRequest().getLocale() : null), to this: methodContext.getLocale(), and let me know if it helps any. Note you'll need to recompile first if that wasn't obvious. Thanks Scott HotWax Media http://www.hotwaxmedia.com On 29/04/2010, at 2:34 AM, S.Hage wrote: > > HI Shubham, > > Thanks for your response. > > The problem is when I use (fail-property resource="PartyUiLabels" > property="PartyFirstNameMissing") ofbiz log this error message in ofbiz.log > file (you see all java stack above): > > Error in simple-method operation [<call-simple-map-processor/>]: > java.lang.IllegalArgumentException: locale cannot be null > Exception: java.lang.IllegalArgumentException > Message: locale cannot be null > > Even if in my java code I sent the locale object in the context like this: > > locale = UtilHttp.getLocale(request); > Map context = FastMap.newInstance(); > context.put("locale",locale); > context.put("userLogin",userLogin); > ... > Map summaryResult = dispatcher.runSync("ccmsCreateGuarantor", > context); > > > And the PartyUiLabels is set in the commonScreen.xml like this: > <property-map resource="PartyUiLabels" map-name="uiLabelMap" > global="true"/> > > I'm stuck here because I can't figure out why the java exception and why > locale is null. I logged the value of locale just before > 'call-map-processor' and the value is correct (fr_CA). > > Thanks > > Saad. > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/fail-property-inside-call-map-processor-problem-tp2067904p2069307.html > Sent from the OFBiz - User mailing list archive at Nabble.com.
smime.p7s
Description: S/MIME cryptographic signature