You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Manuel Santillán (JIRA)" <ji...@apache.org> on 2006/09/17 19:38:22 UTC

[jira] Created: (FELIX-143) Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE

Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE
-----------------------------------------------------------------------------------------------------

                 Key: FELIX-143
                 URL: http://issues.apache.org/jira/browse/FELIX-143
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: 0.8.0
            Reporter: Manuel Santillán
             Fix For: 0.8.0


When calling findEntries on the system bundle: 
		Bundle system=context.getBundle(0);
		system.findEntries("path", "*", false);
A NPE exception is raised: 
java.lang.NullPointerException
	at org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
	at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1033)
	at org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:122)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (FELIX-143) Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE

Posted by "Manuel Santillán (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FELIX-143?page=all ]

Manuel Santillán updated FELIX-143:
-----------------------------------

    Attachment: bug-test.zip

Bundle project that shows the bug

> Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-143
>                 URL: http://issues.apache.org/jira/browse/FELIX-143
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 0.8.0
>            Reporter: Manuel Santillán
>             Fix For: 0.8.0
>
>         Attachments: bug-test.zip
>
>
> When calling findEntries on the system bundle: 
> 		Bundle system=context.getBundle(0);
> 		system.findEntries("path", "*", false);
> A NPE exception is raised: 
> java.lang.NullPointerException
> 	at org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
> 	at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1033)
> 	at org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:122)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Resolved: (FELIX-143) Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FELIX-143?page=all ]

Richard S. Hall resolved FELIX-143.
-----------------------------------

    Resolution: Fixed

The findEntries() code was assuming that all bundles have content, but the system bundle does not, which was the cause of the exception. I added a check for null content.

> Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-143
>                 URL: http://issues.apache.org/jira/browse/FELIX-143
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 0.8.0
>            Reporter: Manuel Santillán
>         Assigned To: Richard S. Hall
>             Fix For: 0.8.0
>
>         Attachments: bug-test.zip
>
>
> When calling findEntries on the system bundle: 
> 		Bundle system=context.getBundle(0);
> 		system.findEntries("path", "*", false);
> A NPE exception is raised: 
> java.lang.NullPointerException
> 	at org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
> 	at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1033)
> 	at org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:122)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Assigned: (FELIX-143) Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FELIX-143?page=all ]

Richard S. Hall reassigned FELIX-143:
-------------------------------------

    Assignee: Richard S. Hall

> Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-143
>                 URL: http://issues.apache.org/jira/browse/FELIX-143
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 0.8.0
>            Reporter: Manuel Santillán
>         Assigned To: Richard S. Hall
>             Fix For: 0.8.0
>
>         Attachments: bug-test.zip
>
>
> When calling findEntries on the system bundle: 
> 		Bundle system=context.getBundle(0);
> 		system.findEntries("path", "*", false);
> A NPE exception is raised: 
> java.lang.NullPointerException
> 	at org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
> 	at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1033)
> 	at org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:122)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Closed: (FELIX-143) Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-143.
---------------------------------


> Calling org.osgi.framework.Bundle.findEntries(path, pattern, recurse) on the system bundle throws NPE
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-143
>                 URL: https://issues.apache.org/jira/browse/FELIX-143
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 0.8.0
>            Reporter: Manuel Santillán
>         Assigned To: Richard S. Hall
>             Fix For: 0.8.0
>
>         Attachments: bug-test.zip
>
>
> When calling findEntries on the system bundle: 
> 		Bundle system=context.getBundle(0);
> 		system.findEntries("path", "*", false);
> A NPE exception is raised: 
> java.lang.NullPointerException
> 	at org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
> 	at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1033)
> 	at org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:122)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.