Foren
BeanLocator has not been set
Rui Abreu, geändert vor 14 Jahren.
BeanLocator has not been set
New Member Beiträge: 2 Beitrittsdatum: 03.04.09 Neueste Beiträge
Hi
I'm developing a portlet using Netbeans and Service Builder Plug-in (I'm outside the ext environment). The portlet itself is very simple and I'm able to successfully interact with the MySQL database. The problem is when I use the CounterService. I get the following error:
java.lang.NullPointerException
at com.portlet.partners.service.impl.partnersLocalServiceImpl.addPartner(partnersLocalServiceImpl.java:17)
This line corresponds to : partnerId = counterLocalService.increment();
It seems it cannot locate the counterLocalService bean.
Any ideas why this is happening?
Thanks in advance.
I'm developing a portlet using Netbeans and Service Builder Plug-in (I'm outside the ext environment). The portlet itself is very simple and I'm able to successfully interact with the MySQL database. The problem is when I use the CounterService. I get the following error:
java.lang.NullPointerException
at com.portlet.partners.service.impl.partnersLocalServiceImpl.addPartner(partnersLocalServiceImpl.java:17)
This line corresponds to : partnerId = counterLocalService.increment();
It seems it cannot locate the counterLocalService bean.
Any ideas why this is happening?
Thanks in advance.
sethuraghavan Prabakaran, geändert vor 14 Jahren.
RE: BeanLocator has not been set
New Member Beiträge: 8 Beitrittsdatum: 09.07.09 Neueste Beiträge
I am also having the same problem but when using JUnit. Basically it is outside and I did not run the application and hence it couldnt access the bean but then I want to know how to set up the bean before even starting the testing...waiting for some kind of input...thank you
Regards,
Sethu
Regards,
Sethu