[ https://issues.apache.org/jira/browse/MARMOTTA-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756019#comment-13756019 ]
Peter Ansell commented on MARMOTTA-297: --------------------------------------- Is this issue related to one of the recent failures: https://builds.apache.org/job/Marmotta/org.apache.marmotta$kiwi-triplestore/180/testReport/junit/org.apache.marmotta.kiwi.test.sesame/KiWiStoreTest/testReallyLongLiteralRoundTrip_H2_/ 01:48:34.489 [1;31mERROR[0;39m [36mo.a.m.k.s.KiWiValueFactory[0;39m - database error, could not load literal org.h2.jdbc.JdbcSQLException: Value too long for column "SVALUE VARCHAR(65536) NOT NULL": "'guernicaABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNO... (1024008)"; SQL statement: INSERT INTO nodes (id,ntype,svalue,lang,ltype,createdAt) VALUES (?,'string',?,?,?,?) [22001-173] at org.h2.message.DbException.getJdbcSQLException(DbException.java:331) ~[h2-1.3.173.jar:1.3.173] at org.h2.message.DbException.get(DbException.java:171) ~[h2-1.3.173.jar:1.3.173] at org.h2.table.Column.validateConvertUpdateSequence(Column.java:317) ~[h2-1.3.173.jar:1.3.173] at org.h2.table.Table.validateConvertUpdateSequence(Table.java:699) ~[h2-1.3.173.jar:1.3.173] at org.h2.command.dml.Insert.insertRows(Insert.java:123) ~[h2-1.3.173.jar:1.3.173] at org.h2.command.dml.Insert.update(Insert.java:86) ~[h2-1.3.173.jar:1.3.173] at org.h2.command.CommandContainer.update(CommandContainer.java:79) ~[h2-1.3.173.jar:1.3.173] at org.h2.command.Command.executeUpdate(Command.java:235) ~[h2-1.3.173.jar:1.3.173] at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:154) ~[h2-1.3.173.jar:1.3.173] at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:140) ~[h2-1.3.173.jar:1.3.173] at org.apache.marmotta.kiwi.persistence.KiWiConnection.storeNode(KiWiConnection.java:1022) ~[classes/:na] at org.apache.marmotta.kiwi.sail.KiWiValueFactory.createLiteral(KiWiValueFactory.java:512) [classes/:na] at org.apache.marmotta.kiwi.sail.KiWiValueFactory.convert(KiWiValueFactory.java:732) [classes/:na] at org.apache.marmotta.kiwi.sail.KiWiSailConnection.addStatementInternal(KiWiSailConnection.java:156) ~[classes/:na] at org.apache.marmotta.kiwi.sail.KiWiSailConnection.addStatementInternal(KiWiSailConnection.java:110) ~[classes/:na] at org.openrdf.sail.helpers.SailConnectionBase.addStatement(SailConnectionBase.java:471) ~[sesame-sail-api-2.7.5.jar:na] at org.openrdf.sail.RDFStoreTest.testValueRoundTrip(RDFStoreTest.java:352) ~[sesame-store-testsuite-2.7.5.jar:na] at org.openrdf.sail.RDFStoreTest.testReallyLongLiteralRoundTrip(RDFStoreTest.java:330) ~[sesame-store-testsuite-2.7.5.jar:na] > 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