UEL error on ".util."

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UEL error on ".util."

Jacques Le Roux
Administrator
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

Reply | Threaded
Open this post in threaded view
|

Re: UEL error on ".util."

Adrian Crum-2
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 <[hidden email]> wrote:

> From: Jacques Le Roux <[hidden email]>
> Subject: UEL error on ".util."
> To: [hidden email]
> 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


     
Reply | Threaded
Open this post in threaded view
|

Re: UEL error on ".util."

Jacques Le Roux
Administrator
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" <[hidden email]>

> 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 <[hidden email]> wrote:
>
>> From: Jacques Le Roux <[hidden email]>
>> Subject: UEL error on ".util."
>> To: [hidden email]
>> 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
>
>
>      
>