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

Problems building(installing) iiif-producer #2

Open
stefanCCS opened this issue Nov 9, 2020 · 0 comments
Open

Problems building(installing) iiif-producer #2

stefanCCS opened this issue Nov 9, 2020 · 0 comments

Comments

@stefanCCS
Copy link

Hi,
I have participated at last week's "IIIF Outreach MUTEC", which was very interesting!
One information I have taken with me, that you have developed this nice METS to IIIF-manifest tool.
I have started to build/install this tool following the README with just cloning the repository and calling "./gradlew clean build".
I use an Windows environment (if somehow a Linux environment would be better, please tell me, how I can install it there - I can support Linux also).
A few smaller topics I have found out by my own (maybe you could add a hint in the documentation, please):

  • Java SE 11 is needed - I have taken this one http://jdk.java.net/java-se-ri/11put this "bin" folder into my path
  • The cloned respository should be in a path with no "spaces" included
    But now I encounter some errors, which I need some support for, please:
    All this errors are during the automatically performed Unit-Tests.

1. "Unrecognized option: -q"

ask :producer:junitPlatformTest
... <some tests have run successfully>
13:16:29.524 [main] DEBUG de.ubleipzig.iiifproducer.doc.ManuscriptMetadata - Manuscript metadata Added
-----------------------
Error parsing args: Unrecognized option: -q

<... more successful Unit Tests ...>

2. Exception case A

13:16:51.978 [main] DEBUG de.ubleipzig.iiifproducer.doc.ResourceLoader - Loading MetsData from File C:\Daten\iiif-producer/invalid-path
java.io.FileNotFoundException: C:\Daten\iiif-producer\invalid-path (The system cannot find the file specified)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
        at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
        at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:654)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:860)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
        at org.xmlbeam.io.XBFileIO.read(XBFileIO.java:80)
        at de.ubleipzig.iiifproducer.doc.MetsManifestBuilder.getMetsFromFile(MetsManifestBuilder.java:54)
        at de.ubleipzig.iiifproducer.doc.ResourceLoader.getMets(ResourceLoader.java:48)
        <... more stack trace ...>

<... more successful Unit Tests ...>

3. Exception case B

13:16:52.020 [main] DEBUG de.ubleipzig.iiifproducer.doc.ResourceLoader - Loading MetsData from File C:\Daten\iiif-producer/invalid-path
java.io.FileNotFoundException: C:\Daten\iiif-producer\invalid-path (The system cannot find the file specified)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
        at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
        at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:654)
        at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:860)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
        at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:206)
        at org.xmlbeam.io.XBFileIO.read(XBFileIO.java:80)
        at de.ubleipzig.iiifproducer.doc.MetsManifestBuilder.getMetsFromFile(MetsManifestBuilder.java:54)
        at de.ubleipzig.iiifproducer.doc.ResourceLoader.getMets(ResourceLoader.java:48)
        <... more stack trace ...>

<... more successful Unit Tests ...>

3. Exception case C

13:17:38.850 [main] DEBUG de.ubleipzig.iiifproducer.doc.ResourceLoader - Loading MetsData from File C:\Daten\iiif-producer/producer/src/test/resources/ArumDomi_034678301.xml

Failures (11):
JUnit Jupiter:ArgParserTest:testOptionalArgs2()
MethodSource [className = 'de.ubleipzig.iiifproducer.producer.ArgParserTest', methodName = 'testOptionalArgs2', methodParameterTypes = '']ormTest
=> java.lang.IllegalArgumentException: Illegal character in path at index 44: https://iiif.ub.uni-leipzig.de/iiif/j2k/0000\0045\0000004595\00000001.jpx
java.base/java.net.URI.create(URI.java:883)
org.apache.commons.rdf.simple.IRIImpl.(IRIImpl.java:33)
org.apache.commons.rdf.simple.SimpleRDF.createIRI(SimpleRDF.java:82)
de.ubleipzig.iiifproducer.producer.IRIBuilder.buildServiceIRI(IRIBuilder.java:72)
de.ubleipzig.iiifproducer.producer.IIIFProducer.buildManifest(IIIFProducer.java:159)
de.ubleipzig.iiifproducer.producer.IIIFProducer.run(IIIFProducer.java:75)
de.ubleipzig.iiifproducer.producer.ArgParserTest.testOptionalArgs2(ArgParserTest.java:112)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[...]
JUnit Jupiter:ArgParserTest:testOptionalArgs()
MethodSource [className = 'de.ubleipzig.iiifproducer.producer.ArgParserTest', methodName = 'testOptionalArgs', methodParameterTypes = '']
=> java.lang.IllegalArgumentException: Illegal character in path at index 44: https://iiif.ub.uni-leipzig.de/iiif/j2k/0000\0045\0000004595\00000001.jpx
java.base/java.net.URI.create(URI.java:883)
org.apache.commons.rdf.simple.IRIImpl.(IRIImpl.java:33)
org.apache.commons.rdf.simple.SimpleRDF.createIRI(SimpleRDF.java:82)
de.ubleipzig.iiifproducer.producer.IRIBuilder.buildServiceIRI(IRIBuilder.java:72)
de.ubleipzig.iiifproducer.producer.IIIFProducer.buildManifest(IIIFProducer.java:159)
<... more stack trace ...>


**Finally:**

Test run finished after 85547 ms
[ 10 containers found ]
[ 0 containers skipped ]
[ 10 containers started ]
[ 0 containers aborted ]
[ 10 containers successful ]
[ 0 containers failed ]
[ 29 tests found ]
[ 0 tests skipped ]
[ 29 tests started ]
[ 0 tests aborted ]
[ 18 tests successful ]
[ 11 tests failed ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant