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:27:27 UTC

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

     [ 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.