[Mulgara-dev] unable to recover non-existing database

Brian Sletten brian at bosatsu.net
Mon Jun 16 17:44:02 UTC 2008


I did an update and started to poke around last night at some of the  
recent activity and ran into a bunch of problems too.  
NullPointerExceptions on simple queries, the unit test suite didn't  
complete... I haven't spent much time looking at it yet (will try to  
in the next day or two), but something fairly fundamental seems  
gerhosen.

On Jun 16, 2008, at 1:38 PM, James Leigh wrote:

> Hi,
>
> I am getting this error using the Mulgara trunk. It fails to recover a
> non-existing database when passing an empty directory. How can I  
> create
> a new database at the given getDataDir() empty directory location?
>
> Thanks,
> James
> ---
> ClassLoader cl = getClass().getClassLoader();
> InputStream file = cl.getResourceAsStream(CONFIG_PATH);
> config = MulgaraConfig.unmarshal(new InputStreamReader(file));
> systemModel = new java.net.URI("http://mulgara.org/local/" +  
> config.getServerName());
> database = DatabaseFactory.newDatabase(systemModel, getDataDir(),  
> config);
> ---
> org.mulgara.resolver.spi.InitializerException: Failed to recover  
> existing database
> 	at org.mulgara.resolver.Database.<init>(Database.java:661)
> 	at  
> org 
> .mulgara.resolver.DatabaseFactory.newDatabase(DatabaseFactory.java:97)
> Caused by: org.mulgara.store.xa.SimpleXAResourceException: Unable to  
> find common phase in pre-existing database
> 	at  
> org.mulgara.resolver.Database.recoverRecoveryHandlers(Database.java: 
> 1054)
> 	at org.mulgara.resolver.Database.recoverDatabase(Database.java:1032)
> 	at org.mulgara.resolver.Database.<init>(Database.java:658)
> 	... 17 more
>
>
>
> _______________________________________________
> Mulgara-dev mailing list
> Mulgara-dev at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-dev




More information about the Mulgara-dev mailing list