Page 1 of 1

Extending Customer For Heat Clinic Tutorial--Failing

Posted: Tue May 12, 2015 11:35 pm
by Swamy K
Hi all,

I am following the demo on http://www.broadleafcommerce.com/docs/c ... c-tutorial . Followed all the steps. But,when I try to register, I am getting the exception
Property or field 'averageHeatRatingBought' cannot be found on object of type 'org.broadleafcommerce.profile.core.domain.CustomerImpl' - maybe not public?



For some reason, it is not identifying the new HCCusomerImpl. It is going to the basic implementation. Can any of you please help me with this?

Re: Extending Customer For Heat Clinic Tutorial--Failing

Posted: Sun May 17, 2015 2:48 am
by prabhat.kataria
Core.jar is referred by both site and admin module. One thing that is missing from tutorial is that after you have configured your new implementation of Customer in Core module, you need to re-build core module to form a new jar file. You can simply do maven clean + install for this.

Re: Extending Customer For Heat Clinic Tutorial--Failing

Posted: Sun May 17, 2015 10:34 am
by Swamy K
Thanks,Now it working fine for only newly created customers.For existing customers the property averageHeatRatingBought is not available and throwing exception.

Re: Extending Customer For Heat Clinic Tutorial--Failing

Posted: Mon May 18, 2015 1:27 pm
by prabhat.kataria
for existing customers you will get OOB CustomerImpl object and hence no averageHeatRatingBought field as part of that object.

Re: Extending Customer For Heat Clinic Tutorial--Failing

Posted: Tue May 19, 2015 5:41 am
by rvujji
I tried this maven clean and install. Still it is giving me the same error. I can see that the new implementation is loaded into JVM. But, it is not picking up the modified customerImpl.

Thanks
Raj

Re: Extending Customer For Heat Clinic Tutorial--Failing

Posted: Tue May 19, 2015 6:06 am
by Swamy K
Core.jar is referred by both site and admin module. One thing that is missing from tutorial is that after you have configured your new implementation of Customer in Core module, you need to re-build core module to form a new jar file. You can simply do maven clean + install for this.