|java.io.tmpdir points to an unexsiting folder [message #1692523]
||Thu, 16 April 2015 10:47
| GianMaria Romanato
Registered: July 2009
I had a runtime error in a third-party library because Virgo sets the variable java.io.tmpdir to a subfolder named tmp within its working directory, but such folder is not created.
In other words, user code that assumes that the java.io.tmpdir folder exists may fail. Of course this is not a big issue, one can always write a line of code like the following:
but it's not clear to me what is the correct behaviour: I checked the javadoc for the File class but it's not mentioning whether the user code should (or should not) assume that the temporary folder exists. However, common experience is that in Java SE applications and in other application servers that folder always exists.
As such I would suggest to have Virgo automatically create the folder upon startup, especially since it's Virgo that sets the variable in dmk.sh
Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw
Powered by FUDForum
. Page generated in 0.01754 seconds