After I setup the data components according Appendix B, imported the Chapter 6 CustomerMaintenance.war into RAD7, published the project to Websphere Portal 6 server, I got an error message on RAD7 console:
Error getting property 'customers' from bean of type com.ibmpress.customermaintenance.CustomerMaintenanceBean: java.lang.NumberFormatException: null
I had issue creating the ClassicModelsService class. 'new' operator did not worked. Even though the doc does not tell the class having getInstance() member, I could fix the compiler error as below:
In class CustomerMaintenanceBean
uner function getClassicModelsService()
I have to replace
classicModelService = new ClassicModelsService();
with
classicModelService = ClassicModelsService.getInstance();
Do I need to download something else? Perhaps the answer is in the book- I don't have my copy yet, I've ordered it from Amazon and delivery is pending. Just thought it would be nice to look at the sample code whilst I wait for it to arrive.
Comments
Portlet Unavailable
After I setup the data components according Appendix B, imported the Chapter 6 CustomerMaintenance.war into RAD7, published the project to Websphere Portal 6 server, I got an error message on RAD7 console:
Error getting property 'customers' from bean of type com.ibmpress.customermaintenance.CustomerMaintenanceBean: java.lang.NumberFormatException: null
Any ideas?
Thanks,
Intantiating ClassicModelsService
I had issue creating the ClassicModelsService class. 'new' operator did not worked. Even though the doc does not tell the class having getInstance() member, I could fix the compiler error as below:
In class CustomerMaintenanceBean
uner function getClassicModelsService()
I have to replace
classicModelService = new ClassicModelsService();
with
classicModelService = ClassicModelsService.getInstance();
Running some of the examples
Download and import the data components in Appendix B.
Can't get the code to compile
Hi,
I imported the WAR into RAD 7, and get a number of compiler errors. It can't seem to import:
import com.ibmpress.cm.model.Customers;
import com.ibmpress.cm.service.ClassicModelsService;
Do I need to download something else? Perhaps the answer is in the book- I don't have my copy yet, I've ordered it from Amazon and delivery is pending. Just thought it would be nice to look at the sample code whilst I wait for it to arrive.
Missing libraries
Hi,
I arrived at the same problem. Is there any solution yet?
Best,
Martin