[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nepomuk
Subject:    [Nepomuk] Can't mainModel()->executeQuery
From:       Christian Mollekopf <chrigi_1 () fastmail ! fm>
Date:       2012-05-05 9:52:55
Message-ID: 2251847.tKazaBnMHr () myhost2
[Download RAW message or body]

Hey,
I'm trying to write a little helper application to check the status of the 
akonadi indexing, but ran into a problem:

If I'm running this query:

Soprano::QueryResultIterator result = Nepomuk::ResourceManager::instance()-
>mainModel()->executeQuery(QString::fromLatin1("select ?compatLevel where { ?r 
nie:url <akonadi:?item=191> . ?r aneo:akonadiIndexCompatLevel ?compatLevel . 
}"), Soprano::Query::QueryLanguageSparql);

I get back a binding for compatLevel, but the node is always empty 
(result.binding(0).isEmpty() == true).

On the server-side I can see this:
chrigi ~ $[/usr/bin/nepomukservicestub] virtual void 
Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void 
Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) 
New connection. New count: 12
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() 
Soprano::Server::ServerConnection(0x863190)
[/usr/bin/nepomukservicestub] "/usr/bin/nepomukservicestub(25707)" Soprano: 
"SQLGetData for data length failed (iODBC Error: [iODBC][Driver 
Manager]Invalid cursor state)"
"/usr/bin/nepomukservicestub(25707)" Soprano: "SQLGetData for data length 
failed (iODBC Error: [iODBC][Driver Manager]Invalid cursor state)"
[/usr/bin/nepomukservicestub] "/usr/bin/nepomukservicestub(25707)" Soprano: 
"SQLGetData for data length failed (iODBC Error: [iODBC][Driver 
Manager]Invalid cursor state)"
[/usr/bin/nepomukservicestub] "/usr/bin/nepomukservicestub(25707)" Soprano: 
"SQLGetData for data length failed (iODBC Error: [iODBC][Driver 
Manager]Invalid cursor state)"

I have no clue how to debug that as there are no error messages at all on the 
client-side. Note that the exact same query works in nepomukshell and returns 
the correct result of "3".
Any ideas?

Cheers,
Christian
_______________________________________________
Nepomuk mailing list
Nepomuk@kde.org
https://mail.kde.org/mailman/listinfo/nepomuk
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic