[Mulgara-general] "Couldn't construct node pool"

Paul Gearon gearon at ieee.org
Tue Aug 5 20:09:39 UTC 2008


Hi Don,

No, I haven't seen this before, sorry.

The underlying exception that throws this is an IOException. I just
checked some of the operations involved, looking for what can throw an
IOException. The operations I saw are mostly opening/writing files,
and also being unable to acquire a lock file.

So the first thing to check is if you have read/write permission for
the directories you're in (I'm guessing you already did that?)

The other thing is to do with the lock files. I've seen files (not
Mulgara's) erroneously reporting that they were locked in Java on
Windows when they weren't. So I guess there are several things that
can be going wrong.

Did you get this error when you started up the first time, or on a
subsequent run? (even if the first runs fell over due to some other
problem). Can you try wiping the data directories and start again?

Also, which Mulgara-jar do you have SAIL using? Did you build it
yourself? If so, then I put in a little more logging for that error
into SVN. You could pull it down and see what it says.

Regards,
Paul Gearon

On Tue, Aug 5, 2008 at 2:22 PM, Don Undeen <donundeen at gmail.com> wrote:
> Hi, I'm trying to connect to a mulgara db using sesame 2.2beta1 API, and I'm
> getting a "Couldn't construct node pool" error.
>
> using:
> openrdf-mulgara-1.3-beta
> openrdf-mulgara-sail-2.2-beta2
> sesame2.2beta2
>
> Here's my code:
>
> import org.openrdf.*;
> import org.openrdf.repository.Repository;
> import org.openrdf.repository.sail.SailRepository;
> import org.openrdf.sail.memory.MemoryStore;
> import org.openrdf.sail.mulgara.*;
> import org.openrdf.OpenRDFException;
> import org.openrdf.repository.RepositoryConnection;
> import org.openrdf.rio.RDFFormat;
> import javax.transaction.TransactionManager;
> import java.io.File;
>
> public class TestSesame {
>
>     /**
>      * @param args
>      */
>     public static void main(String[] args) {
>         try{
>             File dataDir = new File("C:\\Documents and
> Settings\\LocalService\\Application
> Data\\Aduna\\OpenRDF\\Sesame\\repositories\\mulgaraTms\\");
>             Repository myRepository = new SailRepository(new
> MulgaraStore(dataDir));
>             myRepository.initialize();
>             RepositoryConnection conn = myRepository.getConnection();
>
>         }catch(Exception e){
>             System.out.println("had error " +e.getMessage() );
>         }
>     }
> }
>
>
>
> The message I'm getting is:
> had error org.mulgara.store.nodepool.NodePoolException: Couldn't construct
> node pool
>
> Does anyone know what this means?
>
>
> thanks!!
>
> don
>
> full output below:
> 15:12:57.932 [main] INFO  org.objectweb.jotm - JOTM started with a local
> transaction factory which is not bound.
> 15:12:57.932 [main] INFO  org.objectweb.jotm - CAROL initialization
> 15:12:57.948 [main] DEBUG o.o.c.u.c.ConfigurationRepository - Return empty
> properties, URL is null
> 15:12:57.964 [main] DEBUG o.o.c.u.c.ConfigurationRepository - Build protocol
> object for protocol name found 'cmi'.
> 15:12:57.979 [main] DEBUG o.o.c.u.c.ConfigurationRepository - Cmi is not
> available, don't configure it.
> 15:12:57.979 [main] DEBUG o.o.c.u.c.ConfigurationRepository - Build protocol
> object for protocol name found 'jeremie'.
> 15:12:57.979 [main] DEBUG o.o.c.u.c.ConfigurationRepository - Build protocol
> object for protocol name found 'iiop'.
> 15:12:57.979 [main] DEBUG o.o.c.u.c.ConfigurationRepository - Build protocol
> object for protocol name found 'irmi'.
> 15:12:57.979 [main] DEBUG o.o.c.u.c.ConfigurationRepository - Build protocol
> object for protocol name found 'jrmp'.
> 15:12:57.979 [main] INFO  o.o.c.u.c.ConfigurationRepository - No protocols
> were defined for property 'carol.protocols', trying with default protocol =
> 'jrmp'.
> 15:12:58.182 [main] DEBUG org.objectweb.jotm - default constructor
> 15:12:58.198 [main] INFO  org.objectweb.jotm.jta - JOTM 2.0.10
> 15:12:58.198 [main] DEBUG org.objectweb.jotm.jta -
> TransactionFactory=org.objectweb.jotm.TransactionFactoryImpl at 1bd7848
> 15:12:58.198 [main] DEBUG org.objectweb.jotm.jta - Batch constructor
> 15:12:58.198 [main] DEBUG org.objectweb.jotm.jta - Clock constructor
> 15:12:58.214 [main] DEBUG org.objectweb.jotm.recovery -
> TransactionRecoveryImpl constructor
> 15:12:58.214 [main] DEBUG org.objectweb.jotm.recovery - JOTM Recovery is
> disabled
> 15:12:58.245 [main] DEBUG org.objectweb.jotm -
> TransactionManager=org.objectweb.jotm.Current at 15093f1
> 15:12:58.245 [main] DEBUG org.objectweb.jotm.jta - timeout= 604800
> 15:12:58.245 [main] DEBUG org.objectweb.jotm.jta - Resetting transaction
> timeout= 604800
> had error org.mulgara.store.nodepool.NodePoolException: Couldn't construct
> node pool
>
>
>
> _______________________________________________
> Mulgara-general mailing list
> Mulgara-general at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-general
>
>



More information about the Mulgara-general mailing list