Closed pdiveris closed 6 years ago
I added a development section in README (https://github.com/dbmdz/iiif-server-hymir#development)
Thank you!
Hi, sorry to bother you but the build fails in the tests. I am trying to figure out exactly where but you may have an idea already.
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.72 sec - in de.digitalcollections.iiif.hymir.ApplicationTest
Running de.digitalcollections.iiif.hymir.cli.CliTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.263 sec - in de.digitalcollections.iiif.hymir.cli.CliTest
Running de.digitalcollections.iiif.hymir.image.frontend.IIIFImageApiControllerTest
HYMIR
[2018-07-25 12:00:51,702 ERROR] ions.iiif.hymir.frontend.ExceptionAdvice: 51 [http-nio-auto-3-exec-2] - exception stack trace
java.lang.NullPointerException: null
at java.util.Objects.requireNonNull(Objects.java:203)
at java.util.Optional.<init>(Optional.java:96)
at java.util.Optional.of(Optional.java:108)
at java.util.stream.FindOps$FindSink$OfRef.get(FindOps.java:193)
at java.util.stream.FindOps$FindSink$OfRef.get(FindOps.java:190)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at de.digitalcollections.iiif.hymir.image.business.ImageServiceImpl.processImage(ImageServiceImpl.java:325)
at de.digitalcollections.iiif.hymir.image.frontend.IIIFImageApiController.getImageRepresentation(IIIFImageApiController.java:141)
@pdiveris I got the same issue. But after installing libturbojpeg
the tests are now ok! So you just have to install one missing dependency, on GNU Debian/Ubuntu just use:
sudo apt install libturbojpeg
I am working on a mac at this moment and installing libturbojpeg from the binaries doesn't seem to resolve the issue. I do get a binary if I comment most tests out, which is obviously not desirable. I don't mind compiling on Debian but it'll have to wait until I get back home. Will confirm asap.
To build without tests, execute:
$ mvn clean install -DskipTests=true
That worked, thank you. Forgive my java/maven ignorance..
Hi there, this isn't really an issue as such. Could you please help me by pointing at the command I need to run to build from source? I've installed maven etc.. please tolerate my ignorance and feel free to close this bit I would appreciate your help!