tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: on 8.5.40, random tmpFile.renameTo with jsp files
Date Mon, 10 Jun 2019 18:44:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 6/10/19 14:21, Alex O'Ree wrote:

> in tomcat/work/Catalina/localhost/(mywebapp)/org/apache/jsp/dir/ I
> have something like help_jsp.java help_jsp.classtmp
> 
> all other jsp pages have the pattern page_jsp.java page_jsp.class

Hmm. There are a lot of reports of File.rename() not being entirely
reliable on Windows, with very little explanation for exactly what is
going on deep down.

Just Google for "java windows file.renameto fails local drive" and
you'll get a lot of reports of complaints and some suggestions.

Alex, are you able to edit the code and replace the File.renameTo call
with an equivalent Files.move and see if it's either (a) more reliable
or (b) gives you better error information?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlz+pRsACgkQHPApP6U8
pFiFTRAAnXct+uoehAKppdh58u9YTYV4UOCauM5nijGRGB4d77mO4bJ/xYOb00lO
9RcPyIkvOX+Njb8etoZBYlMGf3CC+aZTu8jeSFM5yonfcvU3v3WyWO2tPb0cr3S2
x2G7IXHrew0XPNInpBZJkhEYJR97/TPA0lUYyjAgpNIURicGjYYNxDoZ7SIocj/z
hbKrnTssBd7he9DDpWGVK9i1j+ACgsOY0Yi5FJeihnHhrkIynxDghx9VcdFj+8wo
LRFQWrPtOl2boO24McXLK3Ei1GzTQCYraA/hc1zB5QXeIZHeZip+8xSxGk766ndA
9VGluNbpRrk6eqCCsFnXD+DZ5EElE1rQG+wCzyIunI5VVBR6ynxa84SEkBu9jIaq
CNq+8vF+44+RBHrGi3cLijUXv0vL273Ld6pore2QG2ObRtL9+UTkmAV7q/zzcNsB
4iHWslgjGYc8AJczOoIlUue1tVvzuP9ZYEv38Z8tDuhkuG60F6u//dGTcIA53eWT
ChONsIWjxUmNT6WilLVZQXgtOW6TvB5r4UzZOjDsA1UXqZwZc1zT0VmRWzn5pScV
XdK9d+OM9RbmUCLpOY0oyNB1gqP5cnS9SgZrfQi7j7El+gXw8bzp6EPC88gwB8cK
9EQOiZzcKqLqUJfuGfMWXeiJRRSo9nEpX7GMc/OSOK8dARv9gbI=
=uzPP
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message