You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "...:::Netwalker:::..." <do...@gmx.de> on 2012/09/21 09:37:15 UTC

Embedded Felix on Android

Hi, 
 i trying to work with apache felix on android. My Bundles starting without any problems but i found one problem. If i trying to load a ressource property:

ResourceBundle bundle = ResourceBundle.getBundle("bundle0.services.propertyfile"); 


i getting following nullpointer exception:


09-21 09:10:55.620: I/System.out(2798): Caused by: java.lang.NullPointerException
09-21 09:10:55.620: I/System.out(2798): 	at org.apache.felix.framework.BundleWiringImpl.doImplicitBootDelegation(BundleWiringImpl.java:1626)
09-21 09:10:55.620: I/System.out(2798): 	at org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1603)
09-21 09:10:55.620: I/System.out(2798): 	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1439)
09-21 09:10:55.620: I/System.out(2798): 	at org.apache.felix.framework.BundleWiringImpl.getResourceByDelegation(BundleWiringImpl.java:1360)
09-21 09:10:55.620: I/System.out(2798): 	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.getResource(BundleWiringImpl.java:2256)
09-21 09:10:55.620: I/System.out(2798): 	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:434)
09-21 09:10:55.630: I/System.out(2798): 	at java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:514)
09-21 09:10:55.630: I/System.out(2798): 	at java.util.ResourceBundle.getBundle(ResourceBundle.java:227)
09-21 09:10:55.630: I/System.out(2798): 	at java.util.ResourceBundle.getBundle(ResourceBundle.java:140)


This problem occurs also if i trying to load jTDS driver to conntect to a database. Have someone one idea what can i do agains this problem?? 


Regards, 
 netwalker
-- 
Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Embedded Felix on Android

Posted by "...:::Netwalker:::..." <do...@gmx.de>.
Hi Karl,
 big thank you for your response. Actually i doesnt tried it with the trunk version,  only with the release version. I will try with the latest version and open a Jira Issue and will comment my results. 

regards, 
 netwalker

-------- Original-Nachricht --------
> Datum: Fri, 21 Sep 2012 11:43:47 +0200
> Von: Karl Pauls <ka...@gmail.com>
> An: users@felix.apache.org
> Betreff: Re: Embedded Felix on Android

> I can have a look at what is going on however, I'm traveling today so
> it might become next week.
> 
> Please open a JIRA issue to track this (feel free to assign it to me)
> assuming that you tried with the latest felix trunk. Otherwise, please
> try with the latest trunk first.
> 
> regards,
> 
> Karl
> 
> On Fri, Sep 21, 2012 at 9:37 AM, ...:::Netwalker:::... <do...@gmx.de>
> wrote:
> > Hi,
> >  i trying to work with apache felix on android. My Bundles starting
> without any problems but i found one problem. If i trying to load a ressource
> property:
> >
> > ResourceBundle bundle =
> ResourceBundle.getBundle("bundle0.services.propertyfile");
> >
> >
> > i getting following nullpointer exception:
> >
> >
> > 09-21 09:10:55.620: I/System.out(2798): Caused by:
> java.lang.NullPointerException
> > 09-21 09:10:55.620: I/System.out(2798):         at
> org.apache.felix.framework.BundleWiringImpl.doImplicitBootDelegation(BundleWiringImpl.java:1626)
> > 09-21 09:10:55.620: I/System.out(2798):         at
> org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1603)
> > 09-21 09:10:55.620: I/System.out(2798):         at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1439)
> > 09-21 09:10:55.620: I/System.out(2798):         at
> org.apache.felix.framework.BundleWiringImpl.getResourceByDelegation(BundleWiringImpl.java:1360)
> > 09-21 09:10:55.620: I/System.out(2798):         at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.getResource(BundleWiringImpl.java:2256)
> > 09-21 09:10:55.620: I/System.out(2798):         at
> java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:434)
> > 09-21 09:10:55.630: I/System.out(2798):         at
> java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:514)
> > 09-21 09:10:55.630: I/System.out(2798):         at
> java.util.ResourceBundle.getBundle(ResourceBundle.java:227)
> > 09-21 09:10:55.630: I/System.out(2798):         at
> java.util.ResourceBundle.getBundle(ResourceBundle.java:140)
> >
> >
> > This problem occurs also if i trying to load jTDS driver to conntect to
> a database. Have someone one idea what can i do agains this problem??
> >
> >
> > Regards,
> >  netwalker
> > --
> > Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> 
> 
> 
> -- 
> Karl Pauls
> karlpauls@gmail.com
> http://twitter.com/karlpauls
> http://www.linkedin.com/in/karlpauls
> https://profiles.google.com/karlpauls
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 

-- 
Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Embedded Felix on Android

Posted by Karl Pauls <ka...@gmail.com>.
I can have a look at what is going on however, I'm traveling today so
it might become next week.

Please open a JIRA issue to track this (feel free to assign it to me)
assuming that you tried with the latest felix trunk. Otherwise, please
try with the latest trunk first.

regards,

Karl

On Fri, Sep 21, 2012 at 9:37 AM, ...:::Netwalker:::... <do...@gmx.de> wrote:
> Hi,
>  i trying to work with apache felix on android. My Bundles starting without any problems but i found one problem. If i trying to load a ressource property:
>
> ResourceBundle bundle = ResourceBundle.getBundle("bundle0.services.propertyfile");
>
>
> i getting following nullpointer exception:
>
>
> 09-21 09:10:55.620: I/System.out(2798): Caused by: java.lang.NullPointerException
> 09-21 09:10:55.620: I/System.out(2798):         at org.apache.felix.framework.BundleWiringImpl.doImplicitBootDelegation(BundleWiringImpl.java:1626)
> 09-21 09:10:55.620: I/System.out(2798):         at org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1603)
> 09-21 09:10:55.620: I/System.out(2798):         at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1439)
> 09-21 09:10:55.620: I/System.out(2798):         at org.apache.felix.framework.BundleWiringImpl.getResourceByDelegation(BundleWiringImpl.java:1360)
> 09-21 09:10:55.620: I/System.out(2798):         at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.getResource(BundleWiringImpl.java:2256)
> 09-21 09:10:55.620: I/System.out(2798):         at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:434)
> 09-21 09:10:55.630: I/System.out(2798):         at java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:514)
> 09-21 09:10:55.630: I/System.out(2798):         at java.util.ResourceBundle.getBundle(ResourceBundle.java:227)
> 09-21 09:10:55.630: I/System.out(2798):         at java.util.ResourceBundle.getBundle(ResourceBundle.java:140)
>
>
> This problem occurs also if i trying to load jTDS driver to conntect to a database. Have someone one idea what can i do agains this problem??
>
>
> Regards,
>  netwalker
> --
> Wenn die Hoffnung in dir Stirb, dann stirbst du mit ihr.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>



-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org