First some background.
I am debugging an app and did kill the app in the middle of an execution.
<code>
dataset = TDBFactory.createDataset( "./jena" );
model = dataset.getDefaultModel();
</code>
the getDefaultModel() method throws a null pointer.
in DatasetPrefixesTDB.readPrefixMap()
<code>
public synchronized Map<String, String> readPrefixMap(String graphName)
{
Node g = Node.createURI(graphName) ;
Iterator<Tuple<Node>> iter = nodeTupleTable.find(g, null, null) ;
Map<String, String> map = new HashMap<String, String>() ;
for ( ; iter.hasNext() ; )
{
Tuple<Node> t = iter.next();
String prefix = t.get(1).getLiteralLexicalForm() ;
String uri = t.get(2).getURI() ;
map.put(prefix, uri) ;
}
Iter.close(iter) ;
return map ;
}
</code>
graphName = "";
t = [<null>, <null>, <null> ]
String prefix = t.get(1).getLiteralLexicalForm() ;
throws a null pointer exception.
My question is: What can I do to restore the data? I tried reloading using
tdbloader2 to reload the data but that did not work.
My other question is where should I look to find the problem?
--
I like: Like Like - The likeliest place on the web<http://like-like.xenei.com>
Identity: https://www.identify.nu/[email protected]
LinkedIn: http://www.linkedin.com/in/claudewarren