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 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
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.
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
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)?
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)
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.