Hi,
it's been a while. I tried building the release candidate, since I'm
interested in the timeout fixes included.
But I couldn't make the tests pass. There are tons of NoClassDefFound
exceptions in the ARQ tests, causing the build to break. See output
snippets at the end of the message. This is probably some simple mistake
on my end, though I can't figure it out. I'm reporting it because it
could be a problem with the release candidate, not just my environment.
I have cloned the repo and am using the release commit
1af1a75db645cf745ee418225b99651a60b2434a. git status shows "working tree
clean".
I have Ubuntu 24.04 with OpenJDK 21 JDK and Maven 3.8.7 installed from
Ubuntu packages.
$ java -version
openjdk version "21.0.6" 2025-01-21
OpenJDK Runtime Environment (build 21.0.6+7-Ubuntu-124.04.1)
OpenJDK 64-Bit Server VM (build 21.0.6+7-Ubuntu-124.04.1, mixed mode,
sharing)
$ mvn -version
Apache Maven 3.8.7
Maven home: /usr/share/maven
Java version: 21.0.6, vendor: Ubuntu, runtime:
/usr/lib/jvm/java-21-openjdk-amd64
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "6.11.0-21-generic", arch: "amd64", family:
"unix"
I'm building from the command line, no IDE involved. I tried both of
these build commands (one from BUILD.md, another from the GitHub Actions
workflow), with essentially the same result:
mvn clean install -Pdev
mvn -B --file pom.xml -Dmaven.javadoc.skip=true install
Overview:
[ERROR] Tests run: 7901, Failures: 117, Errors: 6452, Skipped: 0
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Jena 5.4.0:
[INFO]
[INFO] Apache Jena ........................................ SUCCESS [
22.565 s]
[INFO] Apache Jena - IRI .................................. SUCCESS [
2.805 s]
[INFO] Apache Jena - IRI3986 .............................. SUCCESS [
2.843 s]
[INFO] Apache Jena - Language tags ........................ SUCCESS [
1.565 s]
[INFO] Apache Jena - Base ................................. SUCCESS [
2.688 s]
[INFO] Apache Jena - Core ................................. SUCCESS [
50.171 s]
[INFO] Apache Jena - ARQ .................................. FAILURE [
19.121 s]
[INFO] Apache Jena - ONTAPI ............................... SKIPPED
[INFO] Apache Jena - SHACL ................................ SKIPPED
[INFO] Apache Jena - ShEx ................................. SKIPPED
Examples of failures in ARQ tests (there are many more):
[ERROR]
TestNormalization>AbstractTestNormalization.normalize_float_19:108->AbstractTestNormalization.normalize:142
» NoClassDefFound Could not initialize class
org.apache.jena.sparql.util.NodeFactoryExtra
[ERROR]
TestNormalization>AbstractTestNormalization.normalize_float_20:109->AbstractTestNormalization.normalize:142
» NoClassDefFound Could not initialize class
org.apache.jena.sparql.util.NodeFactoryExtra
[ERROR]
TestNormalization>AbstractTestNormalization.normalize_float_21:110->AbstractTestNormalization.normalize:142
» NoClassDefFound Could not initialize class
org.apache.jena.sparql.util.NodeFactoryExtra
...
[ERROR] TestSSE_Builder.testBuildInt_01:73 NoClassDefFound Could not
initialize class org.apache.jena.sparql.sse.SSE
[ERROR] TestSSE_Builder.testBuildInt_02:80 NoClassDefFound Could not
initialize class org.apache.jena.sparql.sse.SSE
[ERROR] TestSSE_Builder.testBuildInt_03:87 NoClassDefFound Could not
initialize class org.apache.jena.sparql.sse.SSE
...
[ERROR] TestRDFStarTranslation.rdfx_01 » NoClassDefFound Could not
initialize class org.apache.jena.system.TestRDFStarTranslation
[ERROR] TestRDFStarTranslation.rdfx_02 » NoClassDefFound Could not
initialize class org.apache.jena.system.TestRDFStarTranslation
[ERROR] TestRDFStarTranslation.rdfx_03 » NoClassDefFound Could not
initialize class org.apache.jena.system.TestRDFStarTranslation
[ERROR] TestRDFStarTranslation.rdfx_04 » NoClassDefFound Could not
initialize class org.apache.jena.system.TestRDFStarTranslation
[ERROR] TestRDFStarTranslation.rdfx_05 » NoClassDefFound Could not
initialize class org.apache.jena.system.TestRDFStarTranslation
Thanks, and sorry for the noise.
-Osma
On 14/04/2025 18:49, Andy Seaborne wrote:
Hi,
Here is a vote on the first release candidate for
Apache Jena version 5.4.0.
==== Release Vote
This vote will be open until at least
Thursday 18th April 2025 at 23:59 UTC
Please vote to approve this release:
[ ] +1 Approve the release
[ ] 0 Don't care
[ ] -1 Don't release, because ...
Everyone, not just committers, is invited to test and vote.
Please download and test the proposed release. See the checklist below.
Staging repository:
https://repository.apache.org/content/repositories/orgapachejena-1068
Proposed dist/ area:
https://dist.apache.org/repos/dist/dev/jena/
Keys:
https://svn.apache.org/repos/asf/jena/dist/KEYS
Git commit (browser URL):
https://github.com/apache/jena/commit/1af1a75db6
Git Commit Hash:
1af1a75db645cf745ee418225b99651a60b2434a
Git Commit Tag:
jena-5.4.0
If you expect to check the release but the time limit does not work
for you, please email to let us know within the schedule above.
==== In this release
Issues in this release:
https://s.apache.org/jena-5.4.0-issues
== RDF 1.2
Jena 5.4.0 introduces a preview of RDF 1.2 support. This work is
*experimental* and subject to change. It will track the work of the
RDF-Star Working Group.
Users of the work of the RDF-star Community Group will be impacted.
This is an opportunity to provide feedback on the work of the W3C
working group.
For more information, see
https://lists.apache.org/thread/5k8cr91h1okhh75g0gx71dyhwt0fobfc
== New artifact
Jena 5.4.0 introduces a new module jena-langtag for language tag parsing
in compliance with RFC 5646. Language tag validation is strengthened.
When parsing, language tag violations are still treated as warnings.
==== Contributions
@Ostrzyciel has contributed several test cases for initialization
and also cleaning up of Jena's use of Apache Xerces-derived code for RDF
datatypes:
@OyvindLGjesdal has contributed improvement to the jena-text build for
java21 and also in fixing the unstable build on github actions.
@Aklakan has contributed support for timeouts in SPARQL Updates,
provided fixes for closing execution iterators, OpAsQuery, and for
NodeFmtLib.
Committers with PRs: rvesse, sszuev, kinow, arne-bdt, afs
and not forgetting @dependabot
-------------------
Checking:
+ are the GPG signatures fine?
+ are the checksums correct?
+ is there a source archive?
+ can the source archive be built?
(NB This requires a "mvn install" first time)
+ is there a correct LICENSE and NOTICE file in each artifact
(both source and binary artifacts)?
+ does the NOTICE file contain all necessary attributions?
+ have any licenses of dependencies changed due to upgrades?
if so have LICENSE and NOTICE been upgraded appropriately?
+ does the tag/commit in the SCM contain reproducible sources?
--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 15 (Unioninkatu 36)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suomi...@helsinki.fi
http://www.nationallibrary.fi