Skip to content
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

JDK11 / compile failures #6334

Closed
J-N-K opened this issue Nov 3, 2019 · 14 comments
Closed

JDK11 / compile failures #6334

J-N-K opened this issue Nov 3, 2019 · 14 comments
Labels
bug An unexpected problem or unintended behavior of an add-on infrastructure Build system and Karaf related issues and PRs

Comments

@J-N-K
Copy link
Member

J-N-K commented Nov 3, 2019

A lot of the Travuis JDK11 builds fail recently in avmfritz. The reason is that bnd adds jaxb 2.3 as import, while we provide 2.2 in our feature. This can be fixed by adding the 2.2 bundles as dependencies to the binding pom, however I do not understand where 2.3 comes from and why the 2.2 in our core-compile-bom is ignored. mvn dependency:tree does not show the 2.3 dependency, only the 2.2. Did we upgrade something that might have introduced 2.3 recently? Any ideas?

@J-N-K J-N-K added bug An unexpected problem or unintended behavior of an add-on infrastructure Build system and Karaf related issues and PRs labels Nov 3, 2019
@wborn
Copy link
Member

wborn commented Nov 4, 2019

I think it's caused by the Jollyday upgrade (openhab/openhab-core#1170).
If I downgrade it my local Java 11 build succeeds again. 😸

@cweitkamp
Copy link
Contributor

How ugly. What can we do?

@wborn
Copy link
Member

wborn commented Nov 4, 2019

I think it's only a compile time issue because the Jollyday bundle starts without issues on Java 11 and Karaf has a newer version in lib/jdk9plus:

$ ls lib/jdk9plus/
istack-commons-runtime-3.0.8.jar  javax.activation-1.2.0.jar    jaxb-runtime-2.3.2.jar
jakarta.xml.bind-api-2.3.2.jar    javax.annotation-api-1.3.jar  txw2-2.3.2.jar

@wborn
Copy link
Member

wborn commented Nov 7, 2019

Do you have time/plans to look into this issue @J-N-K or @cweitkamp? We could also downgrade Jollyday again for the time being until someone has time to look into this.

@kaikreuzer
Copy link
Member

Maybe removing the Java11 compilation on Travis could also be a temporary workaround?

@wborn
Copy link
Member

wborn commented Nov 8, 2019

I actually recently switched to building everything Java 11 on my desktop so it's easier to push openhab/openhab-distro#768 forwards. So this issues forces me back to Java 8. 😢

@J-N-K
Copy link
Member Author

J-N-K commented Nov 8, 2019

We made a lot of efforts to get it running on JDK11, I would strongly vote against removing that. I‘ll probably be able to have a look on Sunday.

@J-N-K
Copy link
Member Author

J-N-K commented Nov 8, 2019

There problem is that 2.3 is not running on JDK8 (at least the last time I checked).

@kaikreuzer
Copy link
Member

It is just currently painful for all contributors that the Travis check fails, although nothing is wrong with their PRs. If we disable it only for 2 days until the JDK11 issue is solved, it would imho still be helpful for the community (see https://github.com/openhab/openhab2-addons/pull/2531#issuecomment-551438602).

@wborn
Copy link
Member

wborn commented Nov 8, 2019

From my point of view it's better to revert the PR causing this issue again for a couple of days.

@cweitkamp
Copy link
Contributor

I tried to look into it yesterday evening. But my new development environment was not prepared for Java 11. After setting it up my first steps were to investigate on the failing OHC tests for the Ephemeris bundle (see https://travis-ci.org/openhab/openhab-core/jobs/609155620?utm_medium=notification&utm_source=github_status) - which is probably related to the bump of the Jollyday library too. I did not find a working solution yet other than downgrading Jollyday again. I am sorry. I completely missed their integration of the different JAXB dependencies.

@kaikreuzer
Copy link
Member

So anybody wants to create a revert PR for it then?

@wborn
Copy link
Member

wborn commented Nov 8, 2019

I was already working on it.

wborn referenced this issue in wborn/openhab-core Nov 8, 2019
Jollyday requires JAXB 2.3 on Java 11 whereas only 2.2 is available during compilation for Java 8 compatibility.

See also:
* https://github.com/openhab/openhab2-addons/issues/6334
* openhab#1170
* openhab#1169

Signed-off-by: Wouter Born <[email protected]>
kaikreuzer referenced this issue in openhab/openhab-core Nov 8, 2019
Jollyday requires JAXB 2.3 on Java 11 whereas only 2.2 is available during compilation for Java 8 compatibility.

See also:
* https://github.com/openhab/openhab2-addons/issues/6334
* #1170
* #1169

Signed-off-by: Wouter Born <[email protected]>
@cweitkamp
Copy link
Contributor

Build is working again after openhab/openhab-core#1195 and #6359.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on infrastructure Build system and Karaf related issues and PRs
Projects
None yet
Development

No branches or pull requests

4 participants