Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-3307

Investigate org.apache.felix.dm error

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Situation: The only remaining errors (errors are all in org.lorainelab.igb.remote.services) all have the same thing in common, a missing requirement for org.apache.felix.dm. The pom does include a dependency for org.apache.felix.dependencymanager, which seems similar. The dependencymanager dependency was updated to the most recent version.

      14:49:00.320 [main] ERROR com.affymetrix.main.OSGiHandler - Unable to resolve org.apache.felix.dependencymanager [59](R 59.0): missing requirement [org.apache.felix.dependencymanager [59](R 59.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.metatype)(version>=1.3.0)(!(version>=2.0.0))) [caused by: Unable to resolve osgi.cmpn [74](R 74.0): missing requirement [osgi.cmpn [74](R 74.0)] osgi.compile.time.only; (&(must.not.resolve=*)(!(must.not.resolve=*)))] Unresolved requirements: [[org.apache.felix.dependencymanager [59](R 59.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.metatype)(version>=1.3.0)(!(version>=2.0.0)))]
      
      

      Task: Determine why this error is appearing, if it can be fixed then update this ticket as needed.

        Attachments

          Issue Links

            Activity

            Hide
            nfreese Nowlan Freese added a comment - - edited

            org.apache.felix.dependencymanager has a dependency on org.osgi.service.metatype.
            Commit: https://bitbucket.org/nfreese/nowlanfork-igb/commits/6ed714c7d90b7e081796b5287242f72376ed262b

            Show
            nfreese Nowlan Freese added a comment - - edited org.apache.felix.dependencymanager has a dependency on org.osgi.service.metatype. Commit: https://bitbucket.org/nfreese/nowlanfork-igb/commits/6ed714c7d90b7e081796b5287242f72376ed262b
            Hide
            nfreese Nowlan Freese added a comment -

            org.apache.felix.http.bundle was missing a requirement for org.osgi.service.log
            Commit: https://bitbucket.org/nfreese/nowlanfork-igb/commits/1dbbda192d535893e3fe0e4340b8f9333c0d0725

            14:49:00.342 [main] ERROR com.affymetrix.main.OSGiHandler - Unable to resolve org.apache.felix.http.bundle [61](R 61.0): missing requirement [org.apache.felix.http.bundle [61](R 61.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0))) [caused by: Unable to resolve osgi.cmpn [74](R 74.0): missing requirement [osgi.cmpn [74](R 74.0)] osgi.compile.time.only; (&(must.not.resolve=*)(!(must.not.resolve=*)))] Unresolved requirements: [[org.apache.felix.http.bundle [61](R 61.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0)))]
            
            Show
            nfreese Nowlan Freese added a comment - org.apache.felix.http.bundle was missing a requirement for org.osgi.service.log Commit: https://bitbucket.org/nfreese/nowlanfork-igb/commits/1dbbda192d535893e3fe0e4340b8f9333c0d0725 14:49:00.342 [main] ERROR com.affymetrix.main.OSGiHandler - Unable to resolve org.apache.felix.http.bundle [61](R 61.0): missing requirement [org.apache.felix.http.bundle [61](R 61.0)] osgi.wiring. package ; (&(osgi.wiring. package =org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0))) [caused by: Unable to resolve osgi.cmpn [74](R 74.0): missing requirement [osgi.cmpn [74](R 74.0)] osgi.compile.time.only; (&(must.not.resolve=*)(!(must.not.resolve=*)))] Unresolved requirements: [[org.apache.felix.http.bundle [61](R 61.0)] osgi.wiring. package ; (&(osgi.wiring. package =org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0)))]
            Hide
            nfreese Nowlan Freese added a comment - - edited

            After the two commits above, everything was resolved (ignoring laf) except for three bundles. The error for one of the bundles is included below. It looks like we created these bundles and they live in repo2. The issue is that they specify import versions for org.apache.felix.dm (note that this is the same as org.apache.felix.dependencymanager) between 3 and 4. The most recent version of dependencymanager is 4.6.1 from 2021. The most recent version of version 3 (3.2.0) is from 2014 and is what we currently have in master. It is unclear if we can modify org.lorainelab.igb.remote.services.discovery.provider.configured to use versions greater than 3. For the time being I have downgraded the version back to 3.2.0. This seems to resolve the problems, though may not be optimal in the long term.

            Commit: https://bitbucket.org/nfreese/nowlanfork-igb/commits/0ca456798e8b6cb6e70ea74e04c0c2c43b4bfe43

            14:49:00.356 [main] ERROR com.affymetrix.main.OSGiHandler - Unable to resolve org.lorainelab.igb.remote.services.discovery.provider.configured [70](R 70.0): missing requirement [org.lorainelab.igb.remote.services.discovery.provider.configured [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.dm)(version>=3.0.0)(!(version>=4.0.0))) Unresolved requirements: [[org.lorainelab.igb.remote.services.discovery.provider.configured [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.dm)(version>=3.0.0)(!(version>=4.0.0)))]
            
            Show
            nfreese Nowlan Freese added a comment - - edited After the two commits above, everything was resolved (ignoring laf) except for three bundles. The error for one of the bundles is included below. It looks like we created these bundles and they live in repo2 . The issue is that they specify import versions for org.apache.felix.dm (note that this is the same as org.apache.felix.dependencymanager) between 3 and 4. The most recent version of dependencymanager is 4.6.1 from 2021. The most recent version of version 3 (3.2.0) is from 2014 and is what we currently have in master. It is unclear if we can modify org.lorainelab.igb.remote.services.discovery.provider.configured to use versions greater than 3. For the time being I have downgraded the version back to 3.2.0. This seems to resolve the problems, though may not be optimal in the long term. Commit: https://bitbucket.org/nfreese/nowlanfork-igb/commits/0ca456798e8b6cb6e70ea74e04c0c2c43b4bfe43 14:49:00.356 [main] ERROR com.affymetrix.main.OSGiHandler - Unable to resolve org.lorainelab.igb.remote.services.discovery.provider.configured [70](R 70.0): missing requirement [org.lorainelab.igb.remote.services.discovery.provider.configured [70](R 70.0)] osgi.wiring. package ; (&(osgi.wiring. package =org.apache.felix.dm)(version>=3.0.0)(!(version>=4.0.0))) Unresolved requirements: [[org.lorainelab.igb.remote.services.discovery.provider.configured [70](R 70.0)] osgi.wiring. package ; (&(osgi.wiring. package =org.apache.felix.dm)(version>=3.0.0)(!(version>=4.0.0)))]
            Hide
            nfreese Nowlan Freese added a comment - - edited

            To test:

            1. Pull the most recent version of the IGBF-3275 branch
            2. Build IGB (mvn clean install)
            3. Start the IGB jar and examine the errors produced (for example java -jar igb_exe.jar > ~/Desktop/3307output.txt.
              1. There should be no errors related to org.apache.felix.dm.
            Show
            nfreese Nowlan Freese added a comment - - edited To test: Pull the most recent version of the IGBF-3275 branch Build IGB (mvn clean install) Start the IGB jar and examine the errors produced (for example java -jar igb_exe.jar > ~/Desktop/3307output.txt . There should be no errors related to org.apache.felix.dm.

              People

              • Assignee:
                nfreese Nowlan Freese
                Reporter:
                nfreese Nowlan Freese
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: