[Building Sakai] SiteService GetSites -throws NullPointerEx ception
Steve Swinsburg
s.swinsburg at lancaster.ac.uk
Thu Jun 4 06:21:09 PDT 2009
Hi Mak,
How have you injected siteService into AdaptiveSystemService? And
then, how have you set AdaptiveSystemService into AdaptiveSiteBean?
NPE's like these are commonly caused by the dependencies not being
configured correctly. Post your pack's components.xml, and your tool's
web.xml, applicationContext.xml, and faces-config.xml (if using JSF)
cheers,
Steve
On 4 Jun 2009, at 13:38, m_yaghmaie at modares.ac.ir wrote:
> Hi,
>
> I am trying to load all sites in order to show them in my Tool. I am
> using SiteService and I call the following service:
>
> siteService.getSites(SiteService.SelectionType.PUBVIEW, null, "",
> null, SiteService.SortType.ID_DESC, null);
> This invocation throws NullPointerException:
>
> caused by: java.lang.NullPointerException
> at
> org
> .sakaiproject
> .adaptivelearningsystem
> .impl.AdaptiveSystemService.getAllSites(AdaptiveSystemService.java:
> 108)
> at
> org
> .sakaiproject
> .adaptivelearningsystem
> .tool.jsf.AdaptiveSiteBean.getSites(AdaptiveSiteBean.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> I passed the arguments according to the JavaDoc I found in the
> SiteServiceAPI. Is there anything wrong with my code?
>
> Tnx, Mak
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2437 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090604/8982ed16/attachment.bin
More information about the sakai-dev
mailing list