-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with: ! Failed to start bundle org.apache.aries.jax.rs.whiteboard-2.0.1, exception activator error Bad type on operand stack #1327
Comments
I cannot reproduce this issue - it starts nicely for me. Are you sure that you have the latest code of |
Haven't seen this issue either. Maybe it helps if you update your JDK to get fixes or wipe your Maven cache so the artifacts are redownloaded which may help incase the files on your disk got corrupt. |
I'm getting the same thing in my development environment (exactly as far as I can tell). I'm running MacOS Monterey 12.0.1, java zulu-16, eclipse 20210910-1417. The run continues and I can do some debug, but my UI is a blank screen. I get the stack traces in the console and a popup with the OSGI error. |
We only support running openHAB with Java 11 currently. |
My eclipse->Preferences->Java->Installed JREs specifies JRE for JavaSE-11 from the Zulu-16 library. That should be sufficient, shouldn't it? I'll see if I can force the Zulu 11 runtime. |
It could still be that plugins like bnd don't work correctly with newer Java versions. I haven't tested that myself and would be surprised if it all worked flawlessly with these newer Java versions. 😉 |
I've put the Java 11 home/bin in the eclipse.ini in the eclipse.ini in the openHAB folder. I've also placed the Java 11 home in /etc/profile and /etc/zprofile and rebooted. java --version shows: % java --version I open the openHAB eclipse by clicking the eclipse.app in the openHAB folder. The problem persists. Do I need to recompile everything. I did the original install of openHAB while running java 16. |
Recompilation might help if there are issues with newer Java versions. Is your Mac using Intel or Apple (M1) silicon? |
Intel |
The Intel Macs should be pretty well tested and supported. AFAIK @kaikreuzer has a similar setup. |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
Same error on my env with Win10 and |
Exact same issue (same log, same empty screen (but a white one !?)), with a totally new development environnement. Two attempts :
The workaround works for me. |
I've rebuilt everything with Zulu-11 (11.0.12). I get the same problem. |
Same issue for me. I just realized that I created the same issue here as I am not aware that it is most likely the same thing. I just encounter a white screen. |
This comment has been minimized.
This comment has been minimized.
In the original |
chingon007, what workaround? Did you mean not clicking Resolve? |
Hello,
However I just works for me by getting the environment running again, but including bundles is not working though with this workaround |
Removing that line fixed it for me. Thanks! |
@AixNPanes are you able to add some binding / bundles to the run configuration? is it activated ? |
I was not able to get it running with a binding. Is there nobody who can tell how to fix the whole thing? Seems to be a valid bug. |
I am able to get it running. |
@AixNPanes Can you describe a bit more in detail your environment. As mentioned by @mvalla and me, both of us get the environment running, however due to the failure (at least I guess so) we cannot hock up some bindings, which is at least my goal in order to continue with my binding development. |
Binding development works for me. For instance, I'm adding the Modbus binding and applying the described workaround in comment #1. From there, everything works as expected. |
Do you have the a lot of errors in the console after you removed the dependency? I have a lot of errors in the console as mentioned above. |
I don't get any errors in the console. Maybe your resolve even adds more bad dependencies. You could follow the same approach as I did to identify:
|
Ok, thx I will try that and give feedback. |
Ok, just did a fresh eclipse install to continue my zwave S2 work, I'm having the same error and black screen. Win10 and java 11 - I've tried a couple of java builds - amazon corrento, openjdk, etc. I can't tell if the workaround is causing problems for my binding development. Dumb quetsion.. the binding UI looks different in this build: there's no search or + button Screenshot Does that mean no bindings are currently installed/being seen? I added the modbus binding since someone said that one is showing up with the workaround in place |
So far I think I have it working on MacOS Monterey/Zulu-11, Windows 11/Zulu-11 on an Intel NUC. I'm trying now on Fedora 34/java-11-openjdk on a RaspberryPi 4B+. So far, I have avoided clicking the Resolve button and everyting works fine at least on the first 2. I'll update with a detailed procedure after I finish the RPI. I have Buster installed on a RPI 3B+ but obviously I won't try an install there as that's not a 64-bit install and I only have 1GB memory on that system. |
After I once reinstalled it from scratch, it works for me with the workaround. I did the exact same steps as you did. Then deleted the entry manually out of the app.bndrun. I am not not receiving errors in the console and now I am able also deploy my binding. Just a small hint for the others. On the first startup my binding did not appear. |
Sorry, I forgot. Can't do RPi with the normal install as it takes a downloaded version of Eclipse. With RPi you have to compile Eclipse. |
Here's a detailed procedure I developed while running on Windows 11. I've used the same procedure on MacOS with the differences noted that I can remember. Similar results should be obtainable on Intel-based Linux. If you have trouble with the install, try switching Java to Zulu-11 and see if that helps.
|
I did a fresh install of the IDE on a brand new Win10 computer:
This (repeatable) test shows that the current OH Eclipse IDE dev env for Win10 is broken, starting from a fresh install without any changes/customizations from the developer. It should be noted that the console shows a problem starting bundle @wborn, @kai can you test a fresh install and reproduce the problem? |
I thought I'd try a test as @mvalla is requesting of others. I took the build I detailed above with no other changes other than restarting Eclipse. I clicked Resolve and got the following errors in the Resolve popup: Resolution failed. Capabilities satisfying the following requirements could not be found: |
As said, I did the exact same thing and can also reproduce the problem on Windows 11 with Java 11 |
I can confirm that on a fresh install (Win10, Java 11), using latest |
I've rolled the Whiteboard upgrade of #1325 back with #1342. |
@wborn I upgraded my Eclipse install to the latest version and updated my add-on development environment. I did not do a reinstall. But I still run into this same issue. I could not run my binding from Eclipse (had the same error as shown above) without the workaround from @mvalla. |
Hello, I did a complete reinstall today. Seems not to work. Getting still a white screen afterwards. Some other errors are thrown in the console: |
this seems to be another problem, as the bundle that does not start is now @chingon007 : can you get around it by removing the following line from app.bndrun ? |
I played with it and yes that's another issue. However I receive the same error as mentioned above and I am also able to start again by applying the workaround removing the mentioned line. Therefore I think @wborn that your last commit did not lead to the expected success or am I wrong? |
@chingon007 this is another issue, see openhab/openhab-core#2673. |
I have the same issue over here after a fresh install Darwin Karels-M1-MacBook-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64 openjdk 11.0.13 2021-10-19 LTS [This is x86 via Rosetta, but problem prevails with an arm64 JVM] |
Same issue for me on MacOS Monterey with Java 11. The offending jakarta.ws.rs jar comes as a transitive dependency of CXF A nicer workaround is to define an exclusion in the maven dependencies:
|
The issue is still present and my workaround still works. |
* Upgrade bnd to 6.2.0 as well as the other Maven plugins to the latest version * Blacklist jakarta.ws.rs-api to prevent openhab#1327 See also: openhab/openhab-core#2836 Signed-off-by: Wouter Born <github@maindrain.net>
) * Upgrade bnd to 6.2.0 as well as the other Maven plugins to the latest version * Blacklist jakarta.ws.rs-api to prevent #1327 See also: openhab/openhab-core#2836 Signed-off-by: Wouter Born <github@maindrain.net>
The |
correct, with the latest update the package |
Hi,
since today, my development setup stopped working. When running, just a black page is presented instead of openhab. I'm using openhab-distro from the latest main.
Steps to reproduce:
launch/app/app.bndrun
Workaround
Open the source of
app.bndrun
and remove the line:jakarta.ws.rs-api;version='[2.1.6,2.1.7)',\
or more persistent, define an exclusion
Console output
The text was updated successfully, but these errors were encountered: