jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpares <bpa...@indra.es>
Subject Re: Cannot insert null ("SYSTEM"."REP_FSENTRY"."FSENTRY_NAME")
Date Mon, 19 Mar 2007 07:57:13 GMT

HI Stefan...this is very strange. First of all I run the example without any
xml and i see that it automatically create the repository folder, the
repository xml and derby.log. Then, i delete all these content and run the
example
with the xml that you gave to me. And i have the same error i reported to
you. And also the program didn't create the derby.log just only create the
folder repository.

this is the repository xml:

<?xml version="1.0"?>
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    </FileSystem>

    <Security appName="Jackrabbit">
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager" />
        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule" />
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default"/>

    <Workspace name="${wsp.name}">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>

        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.OraclePersistenceManager">
            <param name="url"
value="jdbc:oracle:thin://@192.168.12.112:1521:simge"/>
            <param name="user" value="repo"/>
            <param name="password" value="repo"/>
            <param name="schemaObjectPrefix" value="${wsp.name}_"/>
            <param name="externalBLOBs" value="false"/>
        </PersistenceManager>

        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
        </SearchIndex>
    </Workspace>

    <Versioning rootPath="${rep.home}/version">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${rep.home}/version"/>
        </FileSystem>

        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.OraclePersistenceManager">
            <param name="url"
value="jdbc:oracle:thin://@192.168.12.112:1521:simge"/>
            <param name="user" value="repo"/>
            <param name="password" value="repo"/>
            <param name="schemaObjectPrefix" value="version_"/>
            <param name="externalBLOBs" value="false"/>
        </PersistenceManager>
    </Versioning>
</Repository>



Stefan Guggisberg wrote:
> 
> On 3/16/07, bpares <bpares@indra.es> wrote:
>>
>> Hi Stefan, i did the new schema in the DB and tried:
>>
>> try{
>>  Repository repository = new TransientRepository();
>>  session = repository.login(new SimpleCredentials(username,
>> password.toCharArray()));
>> }catch(Exception e){
>>  e.printStackTrace();
>> }finally {
>>  System.out.println("Closing session.");
>>  session.logout();
>> }
>>
>> and i when i executes login, it goes directilly to finally, try to logout
>> and gives to me a NullPointerException
> 
> the login call must have thrown an exception; what's that exception?
> 
> there should be more information in the log file, did you check the log
> file?
> 
> cheers
> stefan
> 
>>
>> so when i execute again i received:
>>
>> WARN - Existing lock file at
>> D:\SIMGE_REPO\JackRabbitProject\repository\.lock deteteced. Repository
>> was
>> not shut down properly.
>> Closing session.
>> Exception in thread "main" java.lang.NullPointerException
>>         at adap.FirstHop.main(FirstHop.java:48)
>>
>> thanks!!
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Cannot-insert-null-%28%22SYSTEM%22.%22REP_FSENTRY%22.%22FSENTRY_NAME%22%29-tf3413326.html#a9513760
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Cannot-insert-null-%28%22SYSTEM%22.%22REP_FSENTRY%22.%22FSENTRY_NAME%22%29-tf3413326.html#a9547697
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message