You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacques Le Roux <ja...@les7arts.com> on 2008/12/19 21:25:42 UTC

UEL error on ".util."

In FormWidgetExampleForms.xml I got

2008-12-19 21:21:05,500 (http-0.0.0.0-28443-5) [            UtilXml.java:241:INFO ] XML Read 0.032s: 
file:/D:/workspace/ofbizDev/framework/example/widget/example/FormWidgetExampleForms.xml
2008-12-19 21:21:05,625 (http-0.0.0.0-28443-5) [            BshUtil.java:85 :ERROR]
---- exception report ----------------------------------------------------------
BSH Evaluation error.
Exception: bsh.ParseException
Message: In file: inline evaluation of: `` notation to call an util method to get the now timestamp;'' Encountered "call" at line 1, 
column 14.

---- stack trace ---------------------------------------------------------------
In file: inline evaluation of: `` notation to call an util method to get the now timestamp;'' Encountered "call" at line 1, column 
14.

<date-time default-value="${bsh: org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
on the 2 instances

I fixed the 1st in introducing date:nowTimestamp() in r728133

I let the other for now (it's easy to fix in all OFBiz by replacing the one by the other) for an live example to Adrian

Jacques 


Re: UEL error on ".util."

Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes I know, it's only as demonstration in Example. And what you say below is also expressed in FormWidgetExampleForms.xml

Do you mean we should remove these examples ?

Jacques

From: "Adrian Crum" <ad...@yahoo.com>
> Actually, none of that code is necessary - there is a nowTimestamp object already in the rendering context.
> 
> -Adrian
> 
> 
> --- On Fri, 12/19/08, Jacques Le Roux <ja...@les7arts.com> wrote:
> 
>> From: Jacques Le Roux <ja...@les7arts.com>
>> Subject: UEL error on ".util."
>> To: dev@ofbiz.apache.org
>> Date: Friday, December 19, 2008, 12:25 PM
>> In FormWidgetExampleForms.xml I got
>> 
>> 2008-12-19 21:21:05,500 (http-0.0.0.0-28443-5) [           
>> UtilXml.java:241:INFO ] XML Read 0.032s:
>> file:/D:/workspace/ofbizDev/framework/example/widget/example/FormWidgetExampleForms.xml
>> 2008-12-19 21:21:05,625 (http-0.0.0.0-28443-5) [           
>> BshUtil.java:85 :ERROR]
>> ---- exception report
>> ----------------------------------------------------------
>> BSH Evaluation error.
>> Exception: bsh.ParseException
>> Message: In file: inline evaluation of: `` notation to call
>> an util method to get the now timestamp;''
>> Encountered "call" at line 1, column 14.
>> 
>> ---- stack trace
>> ---------------------------------------------------------------
>> In file: inline evaluation of: `` notation to call an util
>> method to get the now timestamp;'' Encountered
>> "call" at line 1, column 14.
>> 
>> <date-time default-value="${bsh:
>> org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
>> on the 2 instances
>> 
>> I fixed the 1st in introducing date:nowTimestamp() in
>> r728133
>> 
>> I let the other for now (it's easy to fix in all OFBiz
>> by replacing the one by the other) for an live example to
>> Adrian
>> 
>> Jacques
> 
> 
>      
>

Re: UEL error on ".util."

Posted by Adrian Crum <ad...@yahoo.com>.
Actually, none of that code is necessary - there is a nowTimestamp object already in the rendering context.

-Adrian


--- On Fri, 12/19/08, Jacques Le Roux <ja...@les7arts.com> wrote:

> From: Jacques Le Roux <ja...@les7arts.com>
> Subject: UEL error on ".util."
> To: dev@ofbiz.apache.org
> Date: Friday, December 19, 2008, 12:25 PM
> In FormWidgetExampleForms.xml I got
> 
> 2008-12-19 21:21:05,500 (http-0.0.0.0-28443-5) [           
> UtilXml.java:241:INFO ] XML Read 0.032s:
> file:/D:/workspace/ofbizDev/framework/example/widget/example/FormWidgetExampleForms.xml
> 2008-12-19 21:21:05,625 (http-0.0.0.0-28443-5) [           
> BshUtil.java:85 :ERROR]
> ---- exception report
> ----------------------------------------------------------
> BSH Evaluation error.
> Exception: bsh.ParseException
> Message: In file: inline evaluation of: `` notation to call
> an util method to get the now timestamp;''
> Encountered "call" at line 1, column 14.
> 
> ---- stack trace
> ---------------------------------------------------------------
> In file: inline evaluation of: `` notation to call an util
> method to get the now timestamp;'' Encountered
> "call" at line 1, column 14.
> 
> <date-time default-value="${bsh:
> org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
> on the 2 instances
> 
> I fixed the 1st in introducing date:nowTimestamp() in
> r728133
> 
> I let the other for now (it's easy to fix in all OFBiz
> by replacing the one by the other) for an live example to
> Adrian
> 
> Jacques