| IIOException: can't create cache file! [message #462] |
Mon, 28 February 2005 08:40  |
tbolsh Messages: 13 Registered: August 2004 Location: Fermilab, Batavia, IL |
Member |
|
|
Good morning!
Recently I wrote a little program to compute Integrated Luminosities over some period of time. It is a server side daemon, it reads datalogger data, creates AIDA file and generates a plot.
On my local machine it worked fine for a while, when I move to the server it stop producing plots. In the server logs I see an exception
javax.imageio.IIOException with line 'Can't create cache file!'
So, it is obvious that daemon miss some permissions somewehere.
Does somebody know WHERE it tries to create this cache file?
It seems that /tmp and target directory are available for that daemon ... How can I control where it creates that cache file?
Thanks,
Timofei Bolshakov
[Updated on: Mon, 28 February 2005 08:41]
|
|
|
|
| Re: IIOException: can't create cache file! [message #465 is a reply to message #464 ] |
Mon, 28 February 2005 10:11   |
tbolsh Messages: 13 Registered: August 2004 Location: Fermilab, Batavia, IL |
Member |
|
|
GIF.
I can show code, but it is pretty straitforward -
I create IPlotter and call writeToFile.
Timofei.
P.S. I tried PNG - same results ...
[Updated on: Mon, 28 February 2005 13:10]
|
|
|
|
| Re: IIOException: can't create cache file! [message #467 is a reply to message #466 ] |
Mon, 28 February 2005 14:06   |
tbolsh Messages: 13 Registered: August 2004 Location: Fermilab, Batavia, IL |
Member |
|
|
I tried PNG - same results.
Timofei.
[Updated on: Mon, 28 February 2005 14:06]
|
|
|
|
|
| Re: IIOException: can't create cache file! [message #478 is a reply to message #467 ] |
Tue, 01 March 2005 06:33  |
tbolsh Messages: 13 Registered: August 2004 Location: Fermilab, Batavia, IL |
Member |
|
|
Thank you very much for help!
Everything works now. Besides the temp directory I set the
home directory for the user 'nobody' - I do not know is it necessary or not.
So, this little snippet of code fixes the problem:
if( System.getProperty( "user.name" ).startsWith( "nobody" ) ) {
System.setProperty( "user.home", "/some_directory_or_tmp" );
System.setProperty( "java.io.tmpdir", "/tmp" );
}
Timofei Bolshakov.
[Updated on: Tue, 01 March 2005 06:48]
|
|
|