[ https://issues.apache.org/jira/browse/MARMOTTA-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13755146#comment-13755146 ]
Peter Ansell commented on MARMOTTA-297: --------------------------------------- The error seems to originate in this section of RDFParserHelper.createLiteral. That implies that the ClassCastException is derived from the ValueFactory, although the stacktrace for that isnt being printed to the log through for some reason. try { // Backup for unnormalised language literal creation if (workingLang != null && (workingDatatype == null || RDF.LANGSTRING.equals(workingDatatype))) { result = valueFactory.createLiteral(workingLabel, workingLang); } // Backup for unnormalised datatype literal creation else if (workingDatatype != null) { result = valueFactory.createLiteral(workingLabel, workingDatatype); } else { result = valueFactory.createLiteral(workingLabel); } } catch (Exception e) { reportFatalError(e, lineNo, columnNo, errListener); } > 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