Ticket #635 (new defect)

Opened 7 weeks ago

Last modified 7 weeks ago

NepomukConst.readNepomukLock throws java.io.IOException

Reported by: maxvoelkel Owned by: LeoSauermann
Priority: normal Milestone: m36-redmeteor
Component: comp-pimoservice Version:
Keywords: Cc:

Description

I get this

Exception in thread "main" java.io.IOException: Der Prozess kann nicht auf die Datei zugreifen, da ein anderer Prozess einen Teil der Datei gesperrt hat

at java.io.FileInputStream?.readBytes(Native Method) at java.io.FileInputStream?.read(FileInputStream?.java:177) at java.util.Properties$LineReader?.readLine(Properties.java:365) at java.util.Properties.load(Properties.java:293) at org.semanticdesktop.services.NepomukConst?.readNepomukLock(NepomukConst?.java:314) at org.semanticdesktop.nepomuk.clientservices.NepomukXmlRpcClient?.readAndVerifyNepomukIsRunning(NepomukXmlRpcClient?.java:81) at org.semanticdesktop.nepomuk.clientservices.NepomukXmlRpcClient?.<init>(NepomukXmlRpcClient?.java:76) at org.semanticdesktop.nepomuk.MaxHelloWorld?.main(MaxHelloWorld?.java:12)

when running the code from the summer school (it worked there!)

running against NIGHTLY BUILT 2008-10-02 of PSEW on Windows

public class MaxHelloWorld? {

public static void main(String[] args) throws Exception {

NepomukXmlRpcClient? client = new NepomukXmlRpcClient?(); PimoClient pimoClient = client.getPimoClient(); ClientSession session = pimoClient.createSession(); URI myTag = session.findOrCreateTag("myTag");

URI page = session.getOrCreateThingForOccurrence(new URIImpl(

"http://xam.de"));

session.addTag(page, myTag);

session.commit();

}

}

Currently we can not talk to the RDFRepository in PSEW and not integrate CDS and PIMO

Change History

Changed 7 weeks ago by maxvoelkel

  • priority changed from blocker to normal

Workaround: hardcode all config settings

NepomukLockProperties? nepomukLockProperties = new NepomukConst?.NepomukLockProperties?( // String httpAddressRDFRepository,

"http://localhost:8181/org.semanticdesktop.services.rdfrepository/", // String xmlRpcHost, "localhost", // int xmlRpcPort, 8181, // String soapBase "http://localhost:8181/soap/");

NepomukXmlRpcClient? client = new NepomukXmlRpcClient?(nepomukLockProperties);

Note: See TracTickets for help on using tickets.