Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sail has already been intialized #320

Closed
apseyed opened this issue Mar 6, 2013 · 1 comment
Closed

sail has already been intialized #320

apseyed opened this issue Mar 6, 2013 · 1 comment
Assignees

Comments

@apseyed
Copy link

apseyed commented Mar 6, 2013

calling demo
in demo
after break - in demo

subjectNS: DDD: http://localhost/source/SSS/dataset/DDD/version/VVV/
predicateNS: raw: http://localhost/source/SSS/dataset/DDD/vocab/raw/
objectNS: DDD_global_value: http://localhost/source/SSS/dataset/DDD/

Exception in thread "main" java.lang.IllegalStateException: sail has already been intialized
at org.openrdf.sail.helpers.SailBase.initialize(SailBase.java:141)
at org.openrdf.repository.sail.SailRepository.initialize(SailRepository.java:84)
at edu.rpi.tw.data.csv.CSV2RDFDemo.toRDF(CSV2RDFDemo.java:1707)
at edu.rpi.tw.data.csv.CSV2RDFTester.main(CSV2RDFTester.java:75)

@ghost ghost assigned timrdf Mar 8, 2013
@timrdf
Copy link
Owner

timrdf commented Mar 8, 2013

java.lang.IllegalStateException "sail has already been intialized" occurs b/c [initialize()](http://www.openrdf.org/doc/sesame2/api/org/openrdf/repository/Repository.html#initialize%28%29 is called twice but can only be called once. You're using bad identifiers "SSS/DDD/VVV" and so fall into a "report error metadata and quit" condition which had a bug b/c it called initialize%28) the second time. I've removed that second call from my original converter code.

I suggest you remove metaRepos.initialize() in your copy of the example code that I gave you.

@timrdf timrdf closed this as completed in b9f85ac Mar 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants