You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Sergio Fernández (JIRA)" <ji...@apache.org> on 2013/08/30 12:39:51 UTC

[jira] [Commented] (MARMOTTA-297) Error in the KiWi ValueFactory with long literals

    [ https://issues.apache.org/jira/browse/MARMOTTA-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754568#comment-13754568 ] 

Sergio Fernández commented on MARMOTTA-297:
-------------------------------------------

Definitely something is wrong in our RDFImportImpl... serializing again the file with another tool I got the following error:

12:26:20.370 ERROR o.a.m.p.c.s.i.rdf.RDFImporterImpl - parse error while importing Sesame data:
org.openrdf.rio.RDFParseException: null [line 1180090]
        at org.openrdf.rio.helpers.RDFParserHelper.reportFatalError(RDFParserHelper.java:486) ~[sesame-rio-api-2.7.5.jar:na]
        at org.openrdf.rio.helpers.RDFParserHelper.createLiteral(RDFParserHelper.java:254) ~[sesame-rio-api-2.7.5.jar:na]
        at org.openrdf.rio.helpers.RDFParserBase.createLiteral(RDFParserBase.java:468) ~[sesame-rio-api-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parseQuotedLiteral(TurtleParser.java:686) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parseValue(TurtleParser.java:603) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parseObject(TurtleParser.java:479) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parseObjectList(TurtleParser.java:405) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parsePredicateObjectList(TurtleParser.java:377) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:362) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:250) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:205) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:148) ~[sesame-rio-turtle-2.7.5.jar:na]
        at org.openrdf.repository.util.RDFLoader.loadInputStreamOrReader(RDFLoader.java:325) ~[sesame-repository-api-2.7.5.jar:na]
        at org.openrdf.repository.util.RDFLoader.load(RDFLoader.java:222) ~[sesame-repository-api-2.7.5.jar:na]
        at org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:289) ~[sesame-repository-api-2.7.5.jar:na]
        at org.openrdf.repository.base.RepositoryConnectionWrapper.add(RepositoryConnectionWrapper.java:179) ~[sesame-repository-api-2.7.5.jar:na]
        at org.apache.marmotta.platform.core.services.importer.rdf.RDFImporterImpl.importData(RDFImporterImpl.java:178) [marmotta-core-3.1.0-incubating-SNAPSHOT.jar:3.1.0-incubating-\
SNAPSHOT]
        at org.apache.marmotta.platform.core.services.importer.rdf.RDFImporterImpl.importData(RDFImporterImpl.java:143) [marmotta-core-3.1.0-incubating-SNAPSHOT.jar:3.1.0-incubating-\
SNAPSHOT]
        at org.apache.marmotta.platform.core.services.importer.rdf.RDFImporterImpl$Proxy$_$$_WeldClientProxy.importData(Unknown Source) [marmotta-core-3.1.0-incubating-SNAPSHOT.jar:3\
.1.0-incubating-SNAPSHOT]
        at org.apache.marmotta.platform.core.services.importer.ImportServiceImpl.importData(ImportServiceImpl.java:84) [marmotta-core-3.1.0-incubating-SNAPSHOT.jar:3.1.0-incubating-S\
NAPSHOT]
        at org.apache.marmotta.platform.core.services.importer.ImportServiceImpl$Proxy$_$$_WeldClientProxy.importData(Unknown Source) [marmotta-core-3.1.0-incubating-SNAPSHOT.jar:3.1\
.0-incubating-SNAPSHOT]
        at org.apache.marmotta.platform.core.services.importer.ImportWatchServiceImpl.execImport(ImportWatchServiceImpl.java:173) [marmotta-core-3.1.0-incubating-SNAPSHOT.jar:3.1.0-i\
ncubating-SNAPSHOT]
        at org.apache.marmotta.platform.core.services.importer.ImportWatchServiceImpl$1.run(ImportWatchServiceImpl.java:128) [marmotta-core-3.1.0-incubating-SNAPSHOT.jar:3.1.0-incuba\
ting-SNAPSHOT]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_21]
java.lang.ClassCastException: null

                
> Error in the KiWi ValueFactory with long literals
> -------------------------------------------------
>
>                 Key: MARMOTTA-297
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-297
>             Project: Marmotta
>          Issue Type: Bug
>          Components: Triple Store
>    Affects Versions: 3.0-incubating
>            Reporter: Sergio Fernández
>            Assignee: Sebastian Schaffert
>            Priority: Critical
>              Labels: rdf, sesame
>             Fix For: 3.1-incubating
>
>
> Trying to import a Turtle file with really long literals, I'm facing with the following error:
> 11:15:08.233 ERROR o.a.m.p.c.s.i.ImportWatchServiceImpl - Error importing file /path/to/marmotta/home/import/foo/bar.ttl from the local directory: org.openrdf.rio.RDFParseException: org.apache.marmotta.kiwi.model.rdf.KiWiUriResource cannot be cast to org.apache.marmotta.kiwi.model.rdf.KiWiLiteral [line 979155]
> The file was generated by another tool which uses the default Sesame's TurtleWriter, therefore we must be able to import into Marmotta.
> I guess this issue could be related with the literal length, but I'm not totally sure... I'd try to provide more details that could guide us to the actual problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira