NoSuchFieldError: FAIL_ON_INVALID_NCNAME

0 views
Skip to first unread message

Lucas Wagner

unread,
Nov 18, 2014, 8:51:11 AM11/18/14
to sta...@clarkparsia.com
Hello,

I'm trying to connect a Stardog server using SNARL protocol in java. 
Here is my code : 

ConnectionConfiguration conf = ConnectionConfiguration.to("test").server("snarl://localhost:5820");

Connection conn = null;

try {
 conn
= conf.connect();
} catch (StardogException e) {
 e
.printStackTrace();
}
try {
 
if (conn!=null)
 conn
.close();
} catch (StardogException e) {
 e
.printStackTrace();
}


However, when i try to run the program, i get this error at the ConnectionConfiguration.connect() method :
Exception in thread "main" java.lang.NoSuchFieldError: FAIL_ON_INVALID_NCNAME
 at com
.complexible.common.rdf.rio.parser.ParserConfigs$StardogParserConfig.<clinit>(ParserConfigs.java:76)
 at com
.complexible.common.rdf.rio.parser.ParserConfigs.getDefaultParserConfig(ParserConfigs.java:52)
 at com
.complexible.stardog.api.impl.AbstractConnection.getDefaultParserConfig(AbstractConnection.java:84)
 at com
.complexible.stardog.protocols.snarl.client.SNARLConnection.<init>(SNARLConnection.java:31)
 at com
.complexible.stardog.protocols.snarl.client.SNARLDriver.connect(SNARLDriver.java:128)
 at com
.complexible.stardog.api.DriverManager.getConnection(DriverManager.java:71)
 at com
.complexible.stardog.api.ConnectionConfiguration.connect(ConnectionConfiguration.java:137)

Do you have any idea of what the problem could be?

Thanks.

Lucas WAGNER

Mike Grove

unread,
Nov 18, 2014, 8:58:17 AM11/18/14
to stardog
You seem to have an issue with your classpath, the referenced field is part of sesame [1] as of version 2.7.0.  Double check your path to ensure you're using the correct version of Sesame (2.7.13).

Cheers,

Mike

 

Thanks.

Lucas WAGNER

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Lucas Wagner

unread,
Nov 18, 2014, 10:23:07 AM11/18/14
to sta...@clarkparsia.com
Thanks, you're wright. I imported the 2.7.0 version of sesame instead of the 2.7.13. The connection works now.

Regards,

Lucas WAGNER
Reply all
Reply to author
Forward
0 new messages