jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Byrne <step...@lincware.com>
Subject Re: schemaCheckEnabled in DbFileSystem
Date Tue, 03 May 2011 11:48:16 GMT
On 05/03/2011 07:43 AM, Bruno Dusausoy wrote:
> Hi,
>
> I have a NullPointerException when I try to start Jackrabbit with a
> DbFileSystem using MySql as RDBMS :
>
> 03-mai-2011 13:36:04 org.apache.jackrabbit.core.fs.db.DatabaseFileSystem
> init
> SEVERE: failed to initialize file system
> java.lang.NullPointerException
> at java.io.Reader.<init>(Reader.java:61)
> at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
> at
> org.apache.jackrabbit.core.util.db.CheckSchemaOperation.run(CheckSchemaOperation.java:80)
>
> at
> org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSystem.java:197)
>
> at
> org.apache.jackrabbit.core.config.RepositoryConfigurationParser$6.getFileSystem(RepositoryConfigurationParser.java:1057)
>
> at
> org.apache.jackrabbit.core.config.RepositoryConfig.getFileSystem(RepositoryConfig.java:911)
>
> at
> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:285)
> at
> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:605)
>
> When searching a bit, indeed, the "ddl" field of the
> CheckSchemaOperation class is null.
> When searching further I've noticed that
>
> // check if schema objects exist and create them if necessary
> if (isSchemaCheckEnabled()) {
> createCheckSchemaOperation().run();
> }
>
> in the init() method of the DatabaseFileSystem class.
> schemaCheckEnabled is true by default.
>
> I've tried to turn it off but failed.

Did you make sure to turn it off in the workspace.xml for the workspace, 
not in the repository.xml?
>
> So, two questions in one here : should I let it turned on ? If yes, how
> can I get rid of this npe ? If no, how can I turn it off properly ?
>
> Thanks.
>
> Regards.


-- 
Stephen Byrne
LincWare, LLC
stephen@lincware.com

Mime
View raw message