Felix
  1. Felix
  2. FELIX-2780

Extension bundle implementation relies on urlhandlers service to start extension bundles

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: framework-3.0.7
    • Fix Version/s: framework-4.2.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:

      Description

      I am trying to start the felix security framework extension bundle with the urlhandler service disabled in the Felix framework.

      COMMAND:
      ======
      /usr/local/jamvm/bin/jamvm -Xmx256M -Dfelix.service.urlhandlers=false -Dorg.osgi.framework.security="osgi" -Dpolicy.provider=gnu.java.security.PolicyFile -Djava.security.policy=file:///home/samba/wurk/downloads/osgi/felix-framework-3.0.7/conf/java.policy -jar bin/felix.jar

      Policy file:
      ========
      grant

      { permission java.security.AllPermission; }

      grant codeBase "http://felix.extensions:9/" { permission java.security.AllPermission; }

      ;

      I get the following error and the security framework does not start
      WARNING: Unable to start Felix Extension Activator (java.nio.channels.UnresolvedAddressException)

      Stack trace where the exception occurs

      at java.lang.Thread.dumpStack(Thread.java:522)
      at java.nio.channels.UnresolvedAddressException.<init>(UnresolvedAddressException.java:55)
      at gnu.java.nio.SocketChannelImpl.connect(SocketChannelImpl.java:160)
      at gnu.java.net.PlainSocketImpl.connect(PlainSocketImpl.java:281)
      at java.net.Socket.connect(Socket.java:454)
      at java.net.Socket.connect(Socket.java:414)
      at gnu.java.net.protocol.http.HTTPConnection.getSocket(HTTPConnection.java:721)
      at gnu.java.net.protocol.http.HTTPConnection.getOutputStream(HTTPConnection.java:802)
      at gnu.java.net.protocol.http.Request.dispatch(Request.java:292)
      at gnu.java.net.protocol.http.HTTPURLConnection.connect(HTTPURLConnection.java:219)
      at gnu.java.net.protocol.http.HTTPURLConnection.getHeaderField(HTTPURLConnection.java:582)
      at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:426)
      at java.net.URLConnection.getContentLength(URLConnection.java:302)
      at gnu.java.net.loader.RemoteURLLoader.getResource(RemoteURLLoader.java:79)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:528)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
      at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
      at org.apache.felix.framework.ExtensionManager.startExtensionBundle(ExtensionManager.java:381)
      at org.apache.felix.framework.Felix.installBundle(Felix.java:2610)
      at org.apache.felix.framework.Felix.installBundle(Felix.java:2429)
      at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:121)
      at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:107)
      at org.apache.felix.main.AutoProcessor.processAutoDeploy(AutoProcessor.java:173)
      at org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:78)
      at org.apache.felix.main.Main.main(Main.java:291)

      at java.lang.reflect.VMMethod.invoke(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:327)
      at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)

      1. patch.diff
        0.6 kB
        Sylvain RIBEYRON

        Activity

          People

          • Assignee:
            Karl Pauls
            Reporter:
            Samba
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development