You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Abdullah Shaikh (JIRA)" <ji...@apache.org> on 2010/02/05 12:21:28 UTC

[jira] Created: (OFBIZ-3443) Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander

Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander
-------------------------------------------------------------------------------------

                 Key: OFBIZ-3443
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3443
             Project: OFBiz
          Issue Type: Bug
            Reporter: Abdullah Shaikh


In EditCategory.groovy & EditProductConfigItemContent.groovy, the line filenameExpander = new FlexibleStringExpander(imageFilenameFormat), is throwing below error.

Error :

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/catalog/CategoryScreens.xml#EditCategory]: org.ofbiz.base.util.GeneralException: Error running Groovy script at location [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy] (Error loading Groovy script at [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy]: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy: 45: You cannot create an instance from the abstract class 'org.ofbiz.base.util.string.FlexibleStringExpander'.
@ line 45, column 20.
filenameExpander = new FlexibleStringExpander(imageFilenameFormat);

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


[jira] Closed: (OFBIZ-3443) Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander

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

Jacopo Cappellato closed OFBIZ-3443.
------------------------------------

    Resolution: Fixed

Thank you Abdullah, your patch is in rev. 906910

> Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander
> -------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3443
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3443
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Abdullah Shaikh
>            Assignee: Jacopo Cappellato
>         Attachments: OFBIZ-3443_Creating instance of abstract class.patch
>
>
> In EditCategory.groovy & EditProductConfigItemContent.groovy, the line filenameExpander = new FlexibleStringExpander(imageFilenameFormat), is throwing below error.
> Error :
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/catalog/CategoryScreens.xml#EditCategory]: org.ofbiz.base.util.GeneralException: Error running Groovy script at location [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy] (Error loading Groovy script at [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy]: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy: 45: You cannot create an instance from the abstract class 'org.ofbiz.base.util.string.FlexibleStringExpander'.
> @ line 45, column 20.
> filenameExpander = new FlexibleStringExpander(imageFilenameFormat);

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


[jira] Assigned: (OFBIZ-3443) Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander

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

Jacopo Cappellato reassigned OFBIZ-3443:
----------------------------------------

    Assignee: Jacopo Cappellato

> Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander
> -------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3443
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3443
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Abdullah Shaikh
>            Assignee: Jacopo Cappellato
>         Attachments: OFBIZ-3443_Creating instance of abstract class.patch
>
>
> In EditCategory.groovy & EditProductConfigItemContent.groovy, the line filenameExpander = new FlexibleStringExpander(imageFilenameFormat), is throwing below error.
> Error :
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/catalog/CategoryScreens.xml#EditCategory]: org.ofbiz.base.util.GeneralException: Error running Groovy script at location [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy] (Error loading Groovy script at [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy]: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy: 45: You cannot create an instance from the abstract class 'org.ofbiz.base.util.string.FlexibleStringExpander'.
> @ line 45, column 20.
> filenameExpander = new FlexibleStringExpander(imageFilenameFormat);

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


[jira] Updated: (OFBIZ-3443) Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander

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

Abdullah Shaikh updated OFBIZ-3443:
-----------------------------------

    Attachment: OFBIZ-3443_Creating instance of abstract class.patch

I have changed the line

filenameExpander = new FlexibleStringExpander(imageFilenameFormat);

to

filenameExpander = FlexibleStringExpander.getInstance(imageFilenameFormat);

in both EditCategory.groovy & EditProductConfigItemContent.groovy, I searched for "new FlexibleStringExpander", but these were the only files.

> Creating instance of abstract class org.ofbiz.base.util.string.FlexibleStringExpander
> -------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3443
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3443
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Abdullah Shaikh
>         Attachments: OFBIZ-3443_Creating instance of abstract class.patch
>
>
> In EditCategory.groovy & EditProductConfigItemContent.groovy, the line filenameExpander = new FlexibleStringExpander(imageFilenameFormat), is throwing below error.
> Error :
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://product/widget/catalog/CategoryScreens.xml#EditCategory]: org.ofbiz.base.util.GeneralException: Error running Groovy script at location [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy] (Error loading Groovy script at [component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy]: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy: 45: You cannot create an instance from the abstract class 'org.ofbiz.base.util.string.FlexibleStringExpander'.
> @ line 45, column 20.
> filenameExpander = new FlexibleStringExpander(imageFilenameFormat);

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