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

2 Likes

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:

https://github.com/bndtools/bnd/issues/6380

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.

3 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

7 Likes

I finished these steps, added the binding I want to debug and resolved dependencies. I see that the binding is in the list of resolved modules - so far so good, but when I start the debug session the binding doesn’t get loaded. Main UI shows “No bindings installed”, openhab.log shows nothing.

Anything else I need to update? (I’m on macOS)

Which Eclipse version should I use (currently 2024-06 and JDK 21)?

Hello I got this error too
How can I solve the issue?

@AndrewFG’s answer helped me


As a side node: I also came across the GitHub issue, that wborn linked above and tried upgrading the BND plugin to 7.2.0-DEV (as suggested in the GitHub issue). That resolves the original error (
 “project” is null), but resolving still didn’t work.

It led from one “unresolved dependency” error to the next and finally, the same “unresolved dependency” error occurred over and over again.

The only solution that worked for me was to downgrade to 7.0.0 like it was suggested here. Then, everything worked like a charm.

I just rebuilt my IDE and have a similar error. I downgraded Bndtools to version 7.0 using AndrewFG instructions (thanks!) but still no luck. Any ideas would be greatly appreciated.

Windows 11
Eclipse 2025-06
Java 21.0.7
Maven 3.9.11

Exception during resolution.
java.lang.NullPointerException: Cannot invoke “aQute.bnd.build.Project.exception(java.lang.Throwable, String, Object)” because “this.project” is null
at biz.aQute.resolve.RunResolution.reportException(RunResolution.java:392)
at org.bndtools.core.resolve.ResolveOperation.lambda$run$0(ResolveOperation.java:67)
at org.bndtools.core.resolve.ResolveOperation.coordinate(ResolveOperation.java:96)
at org.bndtools.core.resolve.ResolveOperation.run(ResolveOperation.java:51)
at org.bndtools.core.resolve.ResolveJob.run(ResolveJob.java:89)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

image

I don’t know exactly what the resolution error posted above comes from, the stacktrace seems a bit strange/different from what’s usually seen. I’d try to refresh and “Maven → Update Project” all projects and try to resolve again.

But, it’s sad that the BndTools problems are still causing trouble for people. I made this


a while ago, but since there was no response, I never submitted it. It would probably be better for everybody if BndTools 7.0 were installed automatically until they have straightened this out and there’s a new, working, version of BndTools available.

I have same setup but on MAC and gets same problem after downgrading bnd to 7.0, did you manage to solve the Resolve issue?