JENA error TurtleParseException when executing JAR

Amojow :

I made a program that parses turtle files with Jena library. These are the dependencies i use:

        <dependency>
            <groupId>org.apache.jena</groupId>
            <artifactId>jena-iri</artifactId>
            <version>3.10.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.jena</groupId>
            <artifactId>jena-core</artifactId>
            <version>3.10.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.jena</groupId>
            <artifactId>jena-arq</artifactId>
            <version>3.10.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.jena</groupId>
            <artifactId>jena-tdb</artifactId>
            <version>3.10.0</version>
        </dependency>

So the parsing is working well on my java program but when i create my jar and try to run it, i have these kind of errors :

ERROR JenaService:146 - org.apache.jena.n3.turtle.TurtleParseException: Line 28015, column 79: org.apache.jena.iri.impl.IRIImplException:
<http://www.reussir.fr,> Code: 28/NOT_DNS_NAME in HOST: The host component did not meet the restrictions on DNS names.

Any ideas ?


EDIT

ScreenShot from my IDE

I have a warning for the invalid IRI problem by running my program with the IDE, but still giving me errors with the generated jar.

Amojow :

I found the problem, the only dependency i really needed was jena-arq, so i removed others dependencies (especially jena-iri which was throwing the TurtleParseException) and the bad-iri errors became warnings like in the IDE execution logs.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=166405&siteId=1
Recommended