[jira] [Created] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

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

[jira] [Created] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
Error in ListFindAcctgTransEntriesByAccount
-------------------------------------------

                 Key: OFBIZ-4731
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
             Project: OFBiz
          Issue Type: Bug
          Components: accounting
    Affects Versions: Release Branch 10.04, SVN trunk
            Reporter: Tom Burns
            Priority: Minor


Problem In Trunk and 10.04 OK in 9.04

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Burns updated OFBIZ-4731:
-----------------------------

    Attachment: GlForms.xml.patch
   

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232347#comment-13232347 ]

Jacques Le Roux commented on OFBIZ-4731:
----------------------------------------

I'd have appreciated steps to quickly reproduce
               

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232352#comment-13232352 ]

Tom Burns commented on OFBIZ-4731:
----------------------------------

In demo app > Accounting > Organization Gl Settings > Click Accounting > Click Accounting Transaction Enteries > Click Find
               

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232403#comment-13232403 ]

Jacques Le Roux commented on OFBIZ-4731:
----------------------------------------

Thanks Tom,

When I look in log I'm not sure it's the right/enough way to fix this issue. After your patch I see in log:
{code}
experiment: creating class manager
2012-03-19 00:26:39,000 (http-bio-0.0.0.0-8443-exec-198) [         ScriptUtil.java:275:WARN ]
---- exception report ----------------------------------------------------------
Error running bsh script [String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=null&&prev.equals(glAccountId)));]: javax.script.ScriptException: Sourced file: inline evaluation of: `
`String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' : Attempt to resolve method: equals() on undefined variable or class name: prev : at Line: 1 : in file: inline evalua
tion of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' : prev .equals ( glAccountId )
 in inline evaluation of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' at line number 1
Exception: javax.script.ScriptException
Message: Sourced file: inline evaluation of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' : Attempt to resolve method: equals() on undefined variable or class na
me: prev : at Line: 1 : in file: inline evaluation of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' : prev .equals ( glAccountId )
 in inline evaluation of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' at line number 1
---- stack trace ---------------------------------------------------------------
javax.script.ScriptException: Sourced file: inline evaluation of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' : Attempt to resolve method: equals() on undefined
 variable or class name: prev : at Line: 1 : in file: inline evaluation of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' : prev .equals ( glAccountId )
 in inline evaluation of: ``String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=n . . . '' at line number 1
bsh.engine.BshScriptEngine.evalSource(BshScriptEngine.java:92)
bsh.engine.BshScriptEngine.eval(BshScriptEngine.java:46)
org.ofbiz.base.util.ScriptUtil.evaluate(ScriptUtil.java:272)
org.ofbiz.base.util.string.FlexibleStringExpander$ScriptElem.get(FlexibleStringExpander.java:598)
org.ofbiz.base.util.string.FlexibleStringExpander.expand(FlexibleStringExpander.java:433)
org.ofbiz.base.util.string.FlexibleStringExpander.expand(FlexibleStringExpander.java:405)
org.ofbiz.widget.form.ModelFormAction$SetField.runAction(ModelFormAction.java:144)
org.ofbiz.widget.form.ModelFormAction.runSubActions(ModelFormAction.java:108)
org.ofbiz.widget.form.ModelForm.renderItemRows(ModelForm.java:1501)
org.ofbiz.widget.form.ModelForm.renderListFormString(ModelForm.java:1120)
org.ofbiz.widget.form.ModelForm.renderFormString(ModelForm.java:854)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:753)
org.ofbiz.widget.screen.MacroScreenRenderer.renderScreenletSubWidget(MacroScreenRenderer.java:661)
org.ofbiz.widget.screen.ModelScreenWidget$Screenlet.renderWidgetString(ModelScreenWidget.java:373)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:613)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:129)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:646)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:613)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:129)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:646)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:613)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:129)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:646)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:260)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:260)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:260)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
{code}

So it's clearly related to recent changes: ScriptUtil.java. Maybe a better/generic fix is possible...
               

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Burns updated OFBIZ-4731:
-----------------------------

    Attachment: BeforePatch.bmp
   

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: BeforePatch.bmp, GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Burns updated OFBIZ-4731:
-----------------------------

    Attachment: AfterPatch.bmp
   

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: AfterPatch.bmp, BeforePatch.bmp, GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232411#comment-13232411 ]

Tom Burns commented on OFBIZ-4731:
----------------------------------

The patch only wraps showPosition1 in the String Expander syntax.
showPosition1 > ${ showPosition1}.

When I tested the patch the app returned the expectes list without error.
I did a round trip test,
1. Fixed code
2. Tested
3. Created patch
4. Reverted changed code to repository code
5. Applied patch
6. Tested
7. Success

Just grabbed new checkout from trunk.
Ran before and after patch
See attachments

               

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: AfterPatch.bmp, BeforePatch.bmp, GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232460#comment-13232460 ]

Jacopo Cappellato commented on OFBIZ-4731:
------------------------------------------

Jacques is right about the root cause of the error: it is caused by recent refactoring to ScriptUtil class.
I have fixed it in rev. 1302274 with the following comment:
{quote}
the ${bsh: syntaxt when used in value fields doesn't seem to work properly after the recent refactoring to the ScriptUtil and related mechanisms. Fixed by switching to ${groovy: syntax.
Even if there are plans to migrate all the scripts to the ${groovy: syntax, we will have to fix the root cause of this, also because there are several other occurrencies of the older sytax in the system.
{quote}

               

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Priority: Minor
>         Attachments: AfterPatch.bmp, BeforePatch.bmp, GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Assigned] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato reassigned OFBIZ-4731:
----------------------------------------

    Assignee: Jacopo Cappellato
   

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>         Attachments: AfterPatch.bmp, BeforePatch.bmp, GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233716#comment-13233716 ]

Tom Burns commented on OFBIZ-4731:
----------------------------------

The note in the discussion section "Problem In Trunk and 10.04 OK in 9.0" is not correct,  this issue is not a problem in 10.04.
               

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>         Attachments: AfterPatch.bmp, BeforePatch.bmp, GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (OFBIZ-4731) Error in ListFindAcctgTransEntriesByAccount

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato closed OFBIZ-4731.
------------------------------------

   

> Error in ListFindAcctgTransEntriesByAccount
> -------------------------------------------
>
>                 Key: OFBIZ-4731
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4731
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Tom Burns
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>         Attachments: AfterPatch.bmp, BeforePatch.bmp, GlForms.xml.patch
>
>
> Problem In Trunk and 10.04 OK in 9.04
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount (Return value from use-when condition eval was not a Boolean: null [null] on the field glAccountId of form ListFindAcctgTransEntriesByAccount)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira