jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: Why does Jackrabbit 2.0.0 uses the /temp dir on Linux?
Date Mon, 29 Nov 2010 16:55:29 GMT
On Mon, Nov 29, 2010 at 4:58 PM, Niu, Xuetao <Xuetao.Niu@fiserv.com> wrote:
> Hello,
>
>
>
> I am experiencing a trouble where someone cleaned the /temp folder on
> Linux and Jackrabbit complains about this (see exception below).
>
>
>
> I wonder if Jackrabbit 2.0.0 has to use the /temp dir so that we will
> document it in our software manual not clean it.

jackrabbit does create temp files in the system-dependent default
temporary-file
directory ("/tmp" on unix systems). you can specify an alternate temp dir by
setting the "java.io.tmpdir" system property on jvm invokation. see
[1] for more
information.

cheers
stefan

[1] http://download.oracle.com/javase/1.4.2/docs/api/java/io/File.html#createTempFile(java.lang.String,
java.lang.String, java.io.File)

>
>
>
> Is there any other places in the file system that will be used by
> Jackrabbit (and its dependant libs) if I only use the DBFileSystem and
> DBPersistenceManager (on both Linux and Windows)?
>
>
>
> Thanks,
>
> Xuetao
>
>
>
> ...
>
> Caused by: javax.jcr.RepositoryException: file backing binary value not
> found
>
>        at
> org.apache.jackrabbit.core.value.BLOBInTempFile.getStream(BLOBInTempFile
> .java:140)
>
>        at
> com.fiserv.repository.jcr.JCRUtils.loadMeta(JCRUtils.java:1528)
>
>        ... 44 more
>
> Caused by: java.io.FileNotFoundException:
> /tmp/bin6905811194972706308.tmp
>
>        at
> org.apache.jackrabbit.core.data.LazyFileInputStream.<init>(LazyFileInput
> Stream.java:63)
>
>        at
> org.apache.jackrabbit.core.value.BLOBInTempFile.getStream(BLOBInTempFile
> .java:138)
>
>        ... 45 more
>
>
>
>

Mime
View raw message