This post was updated on .
Hi All,
I am facing problem in migrating some Custom code extended from ofbiz9.04 base code and overridden in new custom classes into newer version of OFBiz 11.04. The error I get during build is as follows Error sample: [javac16] C:\release11.04\hot-deploy\customorder\src\events\order\CustomShoppingCartEvents.java:203: cannot find symbol [javac16] symbol : method getProductvirtualVariantMethod(org.ofbiz.entity.GenericDelegator,java.lang.String) [javac16] location: class org.ofbiz.product.product.ProductWorker [javac16] if ("VV_FEATURETREE".equals(ProductWorker.getProductvirtualVariantMethod(delegator, productId))) { [javac16] ^ [javac16] C:\release11.04\hot-deploy\customorder\src\com\services\order\CustomOrderReturnServices.java:55: incompatible types [javac16] found : org.ofbiz.entity.Delegator [javac16] required: org.ofbiz.entity.GenericDelegator [javac16] GenericDelegator delegator = dctx.getDelegator(); The classes reffered here are custom classes created in overridden order component "customorder". These classes compile well under 9.04 release but gets into error on migrating to 11.04. 1.It seems the method "getProductvirtualVariantMethod(delegator, productId)" is not existing in "ProductWorker" class. Is that method removed or replaced with a newer one? where is the documentation for such cases. 2. GenericDelegator object incompatibility. How to resolve it. Please share your views on this. Regards RRH
RRH
|
Hi RRH,
The capitalisation has been fixed. See https://fisheye6.atlassian.com/browse/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java?hb=true#to400 So the method is now named getProductVirtualVariantMethod with a capital V on the Virtual. Cheers Paul Foxworthy
--
Coherent Software Australia Pty Ltd http://www.coherentsoftware.com.au/ Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/ |
In reply to this post by rrhati2010
Missing Services in OFBiz 11.04
In the process of migration I found some of the services were missing in release 11.04 version. Such as "createUpdateTelecomNumber" in services.xml of party component. This service is being used in my custom component which is currently firing error as "createUpdateTelecomNumber service definition not found". So, Is there any new service written against this old service or is there any kind of documentation present where such case of service deletion/updation in the OFBiz core services maintained. Such cases are making the future releases of OFBiz, lacking backward compatibility with custom components built using older releases. Any suggestions... Regards, RRH
RRH
|
Free forum by Nabble | Edit this page |