perfsonar-dev - Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)
Subject: perfsonar development work
List archive
- From: Roman Lapacz <>
- To: Stijn Melis <>
- Cc: Loukik Kudarimoti <>, Szymon Trocha <>,
- Subject: Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)
- Date: Wed, 19 Dec 2007 16:25:08 +0100
Are you sure you use correct db URI ?
Roman
Stijn Melis wrote:
Hi,
I created a class which will be handling all communication between the
MP and the metadata, which is contained in a eXist database. I based my
code loosely on the RRD MA. I use the same method to connect to the
xmldb, yet because I only need one class which creates the queries, this
is also handled in the same class.
I tried to test my implementation yesterday, and I am having problems
connecting to the db. At the moment I use the same principle as in the RRD MA, meaning that I create a getStoragemanager to get the XmlDbStorageManager, and then I use this to fetch the data. I attached the DbMetadataConfiguration class which is used to do this. All classes using it first call the constructor, and then immediately call the initStorage method.
When I run this and try to query the db, I get an error. I also attached the logs.
I also tried to run the ExistDbXmlrpcXmlStorageManager.java class as a standalone application to see if that one can connect to the xmldb, and that one doesn't work either. I also attached that one. I get a NullPointerException at line 317, being:
ExistDbXmlrpcXmlDataRepository dataRepository = new ExistDbXmlrpcXmlDataRepository();
The credentials I use to connect to the xmldb using the client GUI are the following:
username: sshtelnet
password: sshtelnet
url: xmldb:exist://localhost:8680/exist/xmlrpc
This works perfectly.
Does anyone has any clues as to what I am doing wrong?
Best regards and thanks in advance,
Stijn
- Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Szymon Trocha, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Michael Michalis, 12/20/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/20/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
Archive powered by MHonArc 2.6.16.