Hi Juan Pablo,

To confirm, I just did a successful build with OpenJDK 1.8, so the problem
building seems related to building under Oracle's JDK. As a previous Sun
employee I'm hardly a fan of Larry Ellison (who has screwed with the Java
community many times), so:

  +1 on my vote.

 ► java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)

...
[INFO] jspwiki-it-test-cma-jdbc ........................... SUCCESS [  1.715 s]
[INFO] Apache JSPWiki bill of materials ................... SUCCESS [  0.016 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:46 min
[INFO] Finished at: 2022-08-01T21:51:28+09:00
[INFO] ------------------------------------------------------------------------


On 2022/08/01 21:44, Murray Altheim wrote:
Hi Juan Pablo,

Is it possible this is related to Oracle vs. OpenJDK? I'm not sure. Looks to
be a missing library.

The stack trace follows. If I build that module without tests and then proceed
"mvn -rf", the rest of the build completes successfully.

-------------------------------------------------------------------------------
Test set: org.apache.wiki.search.tika.TikaSearchProviderTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.97 s <<< FAILURE! - in org.apache.wiki.search.tika.TikaSearchProviderTest
org.apache.wiki.search.tika.TikaSearchProviderTest.testGetAttachmentContent  Time 
elapsed: 0.263 s  <<< ERROR!
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jdk1.8.0_202/jre/lib/i386/libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
     at java.lang.Runtime.load0(Runtime.java:809)
     at java.lang.System.load(System.java:1086)
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
     at java.lang.Runtime.loadLibrary0(Runtime.java:870)
     at java.lang.System.loadLibrary(System.java:1122)
     at java.awt.image.ColorModel$1.run(ColorModel.java:209)
     at java.awt.image.ColorModel$1.run(ColorModel.java:207)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.awt.image.ColorModel.loadLibraries(ColorModel.java:206)
     at java.awt.image.ColorModel.<clinit>(ColorModel.java:219)
     at java.awt.image.Raster.<clinit>(Raster.java:172)
     at org.apache.pdfbox.pdmodel.PDDocument.<clinit>(PDDocument.java:107)
     at org.apache.tika.parser.pdf.PDFParser.getPDDocument(PDFParser.java:284)
     at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:171)
     at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
     at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:298)
     at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:167)
     at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:235)
     at 
org.apache.wiki.search.tika.TikaSearchProvider.getAttachmentContent(TikaSearchProvider.java:105)
     at 
org.apache.wiki.search.LuceneSearchProvider.reindexPage(LuceneSearchProvider.java:437)
     at org.apache.wiki.search.SearchManager.reindexPage(SearchManager.java:86)
     at 
org.apache.wiki.attachment.DefaultAttachmentManager.storeAttachment(DefaultAttachmentManager.java:265)
     at org.apache.wiki.TestEngine.addAttachment(TestEngine.java:397)
     at 
org.apache.wiki.search.tika.TikaSearchProviderTest.testGetAttachmentContent(TikaSearchProviderTest.java:39)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at 
org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
     at 
org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
     at 
org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
     at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
     at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
    at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)     at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)     at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
     at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
     at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
     at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
     at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
     at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
    at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
     at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
     at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
     at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
     at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
     at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
     at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
     at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
     at java.util.ArrayList.forEach(ArrayList.java:1257)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
     at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
     at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
     at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
     at java.util.ArrayList.forEach(ArrayList.java:1257)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
     at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
     at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
     at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
     at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
     at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
     at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
     at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
     at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
     at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
     at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
     at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
     at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
     at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
     at 
org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
     at 
org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:55)
     at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:223)
     at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:175)
     at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:139)
     at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
     at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
     at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
     at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)


On 2022/08/01 19:25, Juan Pablo Santos Rodríguez wrote:
Hi Murray,

Would you mind sharing the stacktrace with the error? JSPWiki is
successfully building with jdk-8, jdk-11 and jdk-17 at
https://ci-builds.apache.org/job/JSPWiki/job/ci/job/master (mvn clean
package for jdks 11 & 17, the same + sonarqube analysis for jdk-8).


Thx in advance,
juan pablo


El lun, 1 ago 2022 12:14, Murray Altheim <murra...@altheim.com> escribió:

-1 or -1 or -1. Explanation follows...

I didn't have Java 8 installed on the laptop I have with me (I'm in Japan,
not
at home in New Zealand), so I tried building it with Java 11 first:

   ► java -version
java version "11.0.14" 2022-01-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.14+8-LTS-263)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.14+8-LTS-263, mixed
mode)

1st try:

...
[INFO] Apache JSPWiki AWS Kendra Search provider .......... SUCCESS [
11.955 s]
[INFO] Apache JSPWiki test extensions not using public api  SUCCESS [
0.517 s]
[INFO] Apache JSPWiki adapters for pre-public api ......... SUCCESS [
2.446 s]
[INFO] Apache JSPWiki Main War ............................ FAILURE [
43.885 s]
[INFO] Apache JSPWiki portable ............................ SKIPPED
[INFO] jspwiki-it-builder ................................. SKIPPED

2nd try:

...
[INFO] Apache JSPWiki AWS Kendra Search provider .......... SUCCESS [
4.328 s]
[INFO] Apache JSPWiki test extensions not using public api  SUCCESS [
0.813 s]
[INFO] Apache JSPWiki adapters for pre-public api ......... SUCCESS [
3.025 s]
[INFO] Apache JSPWiki Main War ............................ FAILURE [
44.743 s]
[INFO] Apache JSPWiki portable ............................ SKIPPED
[INFO] jspwiki-it-builder ................................. SKIPPED


Then I built jspwiki-main on its own successfully and "mvn install test
-rf"'d
from there, with this failure:

...
[INFO] Apache JSPWiki Main War ............................ SUCCESS [
40.523 s]
[INFO] Apache JSPWiki portable ............................ FAILURE [
10.504 s]
[INFO] jspwiki-it-builder ................................. SKIPPED
[INFO] jspwiki-selenide-tests ............................. SKIPPED

...so: I'm not finding this very stable in Java 11. There were a ton of
warnings
but ultimately I wasn't able to build it in one go.

Summary #1: Now, I realise before that JSPWiki is a Java 8 application. If
it's
meant to be buildable using Java 11, then I must vote -1. But maybe that's
not
fair.

So, I went ahead and installed Java 8:

   ► java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) Server VM (build 25.202-b08, mixed mode)

But failed again on the build (with a new terminal):

...
[INFO] Apache JSPWiki markdown support .................... SUCCESS [
8.529 s]
[INFO] Apache JSPWiki Tika Search provider ................ FAILURE [
6.852 s]
[INFO] Apache JSPWiki AWS Kendra Search provider .......... SKIPPED
[INFO] Apache JSPWiki test extensions not using public api  SKIPPED

Summary #2: so, even with Java 8 installed I wasn't able to build JSPWiki,
with
just "mvn install test" from the download.

I tried yet a third time with Java 8 but am still failing when trying to
build
jspwiki-tika-searchprovider. :-(

Cheers,

Murray

On 2022/08/01 17:29, Harry Metske wrote:
+1

On Sat, 30 Jul 2022 at 14:58, Juan Pablo Santos Rodríguez <
juanpa...@apache.org> wrote:

This is a release vote for Apache JSPWiki, version 2.11.3. The vote
will be
open for at least 72 hours from now.

It fixes the following issues:


https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310732&version=12351386

You can see a curated changelog at
https://jspwiki-wiki.apache.org/Wiki.jsp?page=NewIn2.11

Note that we are voting upon the source (tag), binaries are provided for
convenience.

Everybody is encouraged to vote.

Source and binary files:
https://dist.apache.org/repos/dist/dev/jspwiki/2.11.3-RC1

Nexus staging repo:

https://repository.apache.org/content/repositories/orgapachejspwiki-1028

The tag to be voted upon:
https://github.com/apache/jspwiki/tree/2.11.3-RC1

JSPWiki's KEYS file containing PGP keys we use to sign the release:
https://www.apache.org/dist/jspwiki/KEYS

*** Please download, test and vote:

[ ] +1 Approve the release
[ ]  0 Don't mind
[ ] -1 Disapprove the release (please provide specific comments)



--

...........................................................................
Murray Altheim <murray18 at altheim dot com>                       = =  ===
http://www.altheim.com/murray/                                     ===
===
                                                                     = =
===
      In the evening
      The rice leaves in the garden
      Rustle in the autumn wind
      That blows through my reed hut.
             -- Minamoto no Tsunenobu





--

...........................................................................
Murray Altheim <murray18 at altheim dot com>                       = =  ===
http://www.altheim.com/murray/                                     ===  ===
                                                                   = =  ===
    In the evening
    The rice leaves in the garden
    Rustle in the autumn wind
    That blows through my reed hut.
           -- Minamoto no Tsunenobu

Reply via email to