You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Mitesh Meswani (JIRA)" <ji...@apache.org> on 2008/06/10 21:27:45 UTC

[jira] Created: (FELIX-602) Symbolic name system.bundle is not recognized

Symbolic name system.bundle is not recognized
---------------------------------------------

                 Key: FELIX-602
                 URL: https://issues.apache.org/jira/browse/FELIX-602
             Project: Felix
          Issue Type: Bug
    Affects Versions: felix-1.0.4
            Reporter: Mitesh Meswani
            Priority: Minor


A test jar has following Manifest entries


Manifest-Version: 1.0
Built-By: mitesh
Export-Package: bar
Bundle-Version: 1.0.0.SNAPSHOT
Require-Bundle: system.bundle
Bundle-Name: test1
Build-Jdk: 1.5.0_15
Bundle-ManifestVersion: 2
Bundle-SymbolicName: mitesh.osgi.test

When I try to start the bundle. I get following
-> start 11
org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)

The spec says following ( Release 4, Version 4.1, section 4.5)
<snip>
The system bundle has a bundle symbolic name that is unique for a specific
version. However, the name system.bundle must be recognized as
an alias to this implementation-defined name
</snip>


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


[jira] Issue Comment Edited: (FELIX-602) Symbolic name system.bundle is not recognized

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604129#action_12604129 ] 

fmeschbe edited comment on FELIX-602 at 6/10/08 11:08 PM:
-------------------------------------------------------------------

It looks like the Felix class implementing the system bundle returns the predefined location string instead of the symbolic name. The fix is rather simple IMHO:

-------------------------------- patch ---------------------------------------------
Index: /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
===================================================================
--- /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java	(revision 666535)
+++ /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java	(working copy)
@@ -563,7 +563,7 @@
 
     public String getSymbolicName()
     {
-        return Constants.SYSTEM_BUNDLE_LOCATION;
+        return Constants.SYSTEM_BUNDLE_SYMBOLICNAME;
     }
 
     public boolean hasPermission(Object obj)
-------------------------------- patch ---------------------------------------------

I assume that this is the cause for the issue you are encountering.

      was (Author: fmeschbe):
    It looks like the Felix class implementing the system bundle returns the predefined location string instead of the symbolic name. The fix is rather simple IMHO:

Index: /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
===================================================================
--- /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java	(revision 666535)
+++ /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java	(working copy)
@@ -563,7 +563,7 @@
 
     public String getSymbolicName()
     {
-        return Constants.SYSTEM_BUNDLE_LOCATION;
+        return Constants.SYSTEM_BUNDLE_SYMBOLICNAME;
     }
 
     public boolean hasPermission(Object obj)

  
> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Closed: (FELIX-602) Symbolic name system.bundle is not recognized

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

Mitesh Meswani closed FELIX-602.
--------------------------------


Verified that issue is fixed with sources as of revision 675067

> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Assignee: Richard S. Hall
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Updated: (FELIX-602) Symbolic name system.bundle is not recognized

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

Mitesh Meswani updated FELIX-602:
---------------------------------

    Attachment: test.jar

A test bundle that can be used to reproduce the issue

> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Commented: (FELIX-602) Symbolic name system.bundle is not recognized

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604129#action_12604129 ] 

Felix Meschberger commented on FELIX-602:
-----------------------------------------

It looks like the Felix class implementing the system bundle returns the predefined location string instead of the symbolic name. The fix is rather simple IMHO:

Index: /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java
===================================================================
--- /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java	(revision 666535)
+++ /usr/src/felix/trunk/framework/src/main/java/org/apache/felix/framework/Felix.java	(working copy)
@@ -563,7 +563,7 @@
 
     public String getSymbolicName()
     {
-        return Constants.SYSTEM_BUNDLE_LOCATION;
+        return Constants.SYSTEM_BUNDLE_SYMBOLICNAME;
     }
 
     public boolean hasPermission(Object obj)


> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Resolved: (FELIX-602) Symbolic name system.bundle is not recognized

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

Richard S. Hall resolved FELIX-602.
-----------------------------------

    Resolution: Fixed

I believe I have resolved this issue. Mitesh, if possible, could you test the trunk to see if it resolves the issue for you? If so, could you please close this issue? Thanks for the feedback.

> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Assignee: Richard S. Hall
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Commented: (FELIX-602) Symbolic name system.bundle is not recognized

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608549#action_12608549 ] 

Richard S. Hall commented on FELIX-602:
---------------------------------------

As a status report, the above patch is not sufficient, I will look into it some more.

> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Assignee: Richard S. Hall
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Commented: (FELIX-602) Symbolic name system.bundle is not recognized

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608571#action_12608571 ] 

Richard S. Hall commented on FELIX-602:
---------------------------------------

The issue is that the system bundle is not creating a capability to declare itself as a "require-bundle" provider. I have added this in my workspace and it appears to work, but there are still some issues I would like to iron out. I will commit as soon as I can.

> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Assignee: Richard S. Hall
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Commented: (FELIX-602) Symbolic name system.bundle is not recognized

Posted by "Mitesh Meswani (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607769#action_12607769 ] 

Mitesh Meswani commented on FELIX-602:
--------------------------------------

If the patch is waiting for a verification from submitter, prior to checkin, I do not have the environment to build Felix and test the patch. Please go ahead and checkin if you are able to start the attached jar.

> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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


[jira] Assigned: (FELIX-602) Symbolic name system.bundle is not recognized

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

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

    Assignee: Richard S. Hall

> Symbolic name system.bundle is not recognized
> ---------------------------------------------
>
>                 Key: FELIX-602
>                 URL: https://issues.apache.org/jira/browse/FELIX-602
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.0.4
>            Reporter: Mitesh Meswani
>            Assignee: Richard S. Hall
>            Priority: Minor
>         Attachments: test.jar
>
>
> A test jar has following Manifest entries
> Manifest-Version: 1.0
> Built-By: mitesh
> Export-Package: bar
> Bundle-Version: 1.0.0.SNAPSHOT
> Require-Bundle: system.bundle
> Bundle-Name: test1
> Build-Jdk: 1.5.0_15
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: mitesh.osgi.test
> When I try to start the bundle. I get following
> -> start 11
> org.osgi.framework.BundleException: Unresolved package in bundle 11: module; (bundle-symbolic-name=system.bundle)
> The spec says following ( Release 4, Version 4.1, section 4.5)
> <snip>
> The system bundle has a bundle symbolic name that is unique for a specific
> version. However, the name system.bundle must be recognized as
> an alias to this implementation-defined name
> </snip>

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