OSGi Resolve gives error

  • Platform information:
    • Hardware: PC
    • OS: Windows 11 Pro
    • Java Runtime Environment:JDK-17
    • openHAB version: 4.2
Exception during resolution.
java.lang.NullPointerException: Cannot invoke "aQute.bnd.build.Project.get(String)" because "project" is null
	at biz.aQute.resolve.RunResolution.resolve(RunResolution.java:101)
	at org.bndtools.core.resolve.ResolveOperation.lambda$run$0(ResolveOperation.java:62)
	at org.bndtools.core.resolve.ResolveOperation.coordinate(ResolveOperation.java:102)
	at org.bndtools.core.resolve.ResolveOperation.run(ResolveOperation.java:52)
	at org.bndtools.core.resolve.ResolveJob.run(ResolveJob.java:89)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)`
Where can I find and / or edit the required project information

I’m trying to setup openhab-distro main
The mavenbuild is succesfull. OSGi resolve gave the above error

1 Like

Hi, same Problem here with Ubuntu on a PC. Do you find a fix already?

No still searching for a solution.
The problem only occurs when I start a resolve action

I as well get the same error when I press the resolve button. It worrked fine, till I did a brand new Installation of Eclypse and the Demo Project at the 4th of Dec on the same Hardware (PC).
Additional Information: When I try to RUN OSGI I get the following Errors:

Status ERROR: org.bndtools.launch code=0 de.focus_shift.jollyday-core;version=[0.32.0,0.32.1) Not found in [Maven Workspace, bndtools.m2e.MavenImplicitProjectRepository@3e196396, bnd-cache [/media/manfred/Openhab/openhab-main/git/openhab-distro/launch/app/target/tmp/LAUNCH/app/cnf/cache/7.1.0/bnd-cache r/w=false]]
Status ERROR: org.bndtools.launch code=0 de.focus_shift.jollyday-jackson;version=[0.32.0,0.32.1) Not found in [Maven Workspace, bndtools.m2e.MavenImplicitProjectRepository@3e196396, bnd-cache [/media/manfred/Openhab/openhab-main/git/openhab-distro/launch/app/target/tmp/LAUNCH/app/cnf/cache/7.1.0/bnd-cache r/w=false]]
Status ERROR: org.bndtools.launch code=0 xstream;version=[1.4.20,1.4.21) Not found in [Maven Workspace, bndtools.m2e.MavenImplicitProjectRepository@3e196396, bnd-cache [/media/manfred/Openhab/openhab-main/git/openhab-distro/launch/app/target/tmp/LAUNCH/app/cnf/cache/7.1.0/bnd-cache r/w=false]]

My maven version is 3.9.9, what is I thing the newest one

Wouter updated the app.bndrun on GitHub yesterday. That solved my problems to Run the project. Thx Wouter.

1 Like

Nice to know it fixed your problems! :slight_smile:

1 Like

There is still the original issue with doing a resolve action

Maybe you can workaround it by downgrading the Bndtools m2e plug-in in Eclipse to 7.0.0?

See:

1 Like

I tried downgrading Bndtools, but didn’t have any luck. I also tried the mvn bnd-resolver:resolve workaround with no luck. Anybody else find a way around this? Thanks!

I was able to resolve this by uninstalling bndtools in eclipse (Help → Install New Software → Manage). It will ask to restart Eclipse. Then adding the 7.0.0 bndtools repository (bndtools repo 7.0.0) and installing that version. Resolve now works.

2 Likes

It was a nightmare to fix this problem!

Thank you @jsjames for your instructions.
What is important is to first uninstall the previous version (7.1.x) of bndtools. If you don’t do it, the installation of the version 7.0 is failing.

For the benefit of others, the uninstall / install details are as follows


Uninstall Bnd Tools v7.1.x

Eclipse | Help | About Eclipse IDE | Installation Details | Installed Software | Filter on ‘bnd’ | One-by-one select each Bnd Tools entry | Uninstall (ignore the restart prompt until the last entry) | Restart Eclipse

Remove Bnd Tools v7.1.x from available update sites

Eclipse | Help | Install New Software | Manage
 | Select entry for Bnd Tools v7.0.0 | Remove

Install Bnd Tools v7.0.0

Eclipse | Help | Install New Software | Add
 | Name=OH Bnd Tools v7.0.0 Location=https://bndtools.org/bndtools.p2.repo/7.0.0/ | Accept certificates

2 Likes