[
https://issues.apache.org/jira/browse/OPENEJB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Gumbrecht updated OPENEJB-1285:
------------------------------------
Attachment: UrlCache.patch
This changes UrlCache so that it only deletes the temp directory contents, and
not the directory itself (if it exists). Creation is moved to a static method.
Failure to create the directory now throws a RuntimeException, as this was
previously being ignored.
This issue is intermittent - For me, one in 3 server starts on Win7 32bit, one
in 10 on 7 64bit and so far 'never' on Vista 32/64bit
This problem seems to be an identical issue to:
http://forums.sun.com/thread.jspa?forumID=535&threadID=5434603
A Google search also delivers several links to similar or identical issues that
have cropped up in various sdk and os versions. There is no real fix other than
to not delete and recreate the same directory in a single method call due to a
known race condition in File.mkdirs().
This patch seems to have completely resolved this issue for me on Windows 7
32/64bit.
I have marked the issue as 'Blocker' due to the fact that a missing temp
directory causes the server start to fail - Without the runtime exception, on
first deployment.
Andy.
> UrlCache fails to recreate temp directory
> -----------------------------------------
>
> Key: OPENEJB-1285
> URL: https://issues.apache.org/jira/browse/OPENEJB-1285
> Project: OpenEJB
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.2
> Environment: Windows 7 32bit
> Reporter: Andy Gumbrecht
> Priority: Blocker
> Attachments: UrlCache.patch
>
>
> UrlCache fails to recreate temp directory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.