Might be a bug. Let's debug and see.

On Tue, Sep 18, 2012 at 9:43 PM, Hasini Gunasinghe <[email protected]> wrote:

> Hi,
>
> Error at [1] is thrown when executing following:
>                     PrivilegedCarbonContext.getCurrentContext().
> getOSGiService(RealmService.class);
>
> Earlier it was done as follows and worked fine:
>                     SuperTenantCarbonContext.getCurrentContext().
> getOSGiService(RealmService.class);
>
> [1]
> Caused by: java.lang.NullPointerException
> at org.osgi.util.tracker.ServiceTracker.<init>(ServiceTracker.java:197)
>  at org.osgi.util.tracker.ServiceTracker.<init>(ServiceTracker.java:268)
> at
> org.wso2.carbon.context.PrivilegedCarbonContext.getOSGiService(PrivilegedCarbonContext.java:420)
>
> Have we missed anything?
>
> Thanks,
> Hasini.
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to