You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Bruno Busco (JIRA)" <ji...@apache.org> on 2008/03/31 00:08:24 UTC

[jira] Created: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Searching entities with non numeric chars in numeric field generates an error
-----------------------------------------------------------------------------

                 Key: OFBIZ-1729
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
         Environment: Win XP - OFBIZ SVN Trunk 642807
            Reporter: Bruno Busco
            Priority: Minor


Use WebTools->Entity Data Maintenance to find an entity.
If a non numeric char is used in a numeric entity filed the following error is generated:

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )

Target exception: java.lang.NumberFormatException: For input string: "w"
(Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )

Target exception: java.lang.NumberFormatException: For input string: "w"
(Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "David E. Jones (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583677#action_12583677 ] 

David E. Jones commented on OFBIZ-1729:
---------------------------------------

Isn't it _worse_ to hide the error in the log?

The error definitely should be shown to the user. It sounds like that's happening, even if the user doesn't like the error message in its current form. The error message should either be improved or left as is and this issue closed as a non-issue.

> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Assignee: Anil K Patel
>            Priority: Minor
>         Attachments: findGeneric.patch
>
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "Ashish Vijaywargiya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Vijaywargiya reassigned OFBIZ-1729:
------------------------------------------

    Assignee: Anil K Patel  (was: Ashish Vijaywargiya)

Oops I don't have commit access to framework component.
Transfering the assignment to Anil Patel.

--
Ashish

> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Assignee: Anil K Patel
>            Priority: Minor
>         Attachments: findGeneric.patch
>
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "Pranay Pandey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pranay Pandey updated OFBIZ-1729:
---------------------------------

    Attachment: findGeneric.patch

Attaching the updated patch. Now proper error message is being shown to the user if he enters a non-numeric value in a numeric field for searching a record.

--
Thanks and Regards
Pranay Pandey

> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Assignee: Anil K Patel
>            Priority: Minor
>         Attachments: findGeneric.patch, findGeneric.patch
>
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "Pranay Pandey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pranay Pandey updated OFBIZ-1729:
---------------------------------

    Attachment: findGeneric.patch

Here is the patch attached for this issue.

--
Thanks and Regards
Pranay Pandey

> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Assignee: Ashish Vijaywargiya
>            Priority: Minor
>         Attachments: findGeneric.patch
>
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "Ashish Vijaywargiya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashish Vijaywargiya reassigned OFBIZ-1729:
------------------------------------------

    Assignee: Ashish Vijaywargiya

> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Assignee: Ashish Vijaywargiya
>            Priority: Minor
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "Pranay Pandey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583565#action_12583565 ] 

pranaypa edited comment on OFBIZ-1729 at 3/30/08 11:30 PM:
----------------------------------------------------------------

I have resolved this issue and patch attached.

--
Thanks and Regards
Pranay Pandey

      was (Author: pranaypa):
    Here is the patch attached for this issue.

--
Thanks and Regards
Pranay Pandey
  
> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Assignee: Ashish Vijaywargiya
>            Priority: Minor
>         Attachments: findGeneric.patch
>
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "Pranay Pandey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583551#action_12583551 ] 

Pranay Pandey commented on OFBIZ-1729:
--------------------------------------

I am working on this issue.

--
Thanks and Regars
Pranay Pandey


> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Priority: Minor
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (OFBIZ-1729) Searching entities with non numeric chars in numeric field generates an error

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1729.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Release Branch 4.0
                   SVN trunk
         Assignee: Jacques Le Roux  (was: Anil K Patel)

Thanks Bruno, David and Pranay,

Pranay, your patch is in trunk revision: 643134, release4.0  643136


> Searching entities with non numeric chars in numeric field generates an error
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-1729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Win XP - OFBIZ SVN Trunk 642807
>            Reporter: Bruno Busco
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: findGeneric.patch, findGeneric.patch
>
>
> Use WebTools->Entity Data Maintenance to find an entity.
> If a non numeric char is used in a numeric entity filed the following error is generated:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://webtools/widget/EntityScreens.xml#FindGeneric]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)) (Error running BSH script at location [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh] (Error running BSH script at [component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh], line [76]: Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString : at Line: 76 : in file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : findByEntity .setString ( field .getName ( ) , fval )
> Target exception: java.lang.NumberFormatException: For input string: "w"
> (Sourced file: component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.bsh : Method Invocation findByEntity.setString)))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.