jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand Bhagwat" <abbhagwa...@gmail.com>
Subject Re: Strange problem in repository creation
Date Thu, 15 Jan 2009 09:30:28 GMT
Thanks a lot. Actually the problem was due to incorrect system property
java.io.tmpDir. It was pointing to incorrect location. It got resolved as
soon as I changed to correct location.
Regards,
Anand.

2009/1/7 Thomas Müller <thomas.mueller@day.com>

> Hi,
>
> What is the exception in Linux? What is the temp directory in Linux?
>
> I can't reproduce the problem. I still think the problem is the temporary
> directory system property.
>
> I checked the tmp directory and its showing me following path on windows
> > which is correct.C:\DOCUME~1\ANAND~1.RAT\LOCALS~1\Temp\
>
>
> How did you check the temp directory? Did you call
> System.out.println(System.getProperty("java.io.tmpdir")) just before
> connecting to the repository? You need to because the system property may
> be
> different than the environment setting.
>
> I can reproduce the problem with the following test:
>
> import java.io.File;
> public class Test {
>    public static void main(String[] a) throws Exception {
>        System.setProperty("java.io.tmpdir", "/abc");
>        System.out.println("java.io.tmpdir=" +
> System.getProperty("java.io.tmpdir"));
>         File.createTempFile("bin", null, null);
>    }
> }
>
> The same occurs if you set the system property in the command line using
> -Djava.io.tmpdir=...
>
> Regards,
> Thomas
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message