You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Andy Gumbrecht (JIRA)" <ji...@apache.org> on 2010/05/21 16:24:30 UTC

[jira] Created: (OPENEJB-1285) UrlCache fails to recreate temp directory

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


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.


[jira] Closed: (OPENEJB-1285) UrlCache fails to recreate temp directory

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins closed OPENEJB-1285.
----------------------------------

         Assignee: Andy Gumbrecht
    Fix Version/s: 3.2-beta-1
       Resolution: Fixed

All committed as well!

> 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.1.2
>         Environment: Windows 7 32bit
>            Reporter: Andy Gumbrecht
>            Assignee: Andy Gumbrecht
>            Priority: Blocker
>             Fix For: 3.2-beta-1
>
>         Attachments: UrlCache.patch, 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.


[jira] Commented: (OPENEJB-1285) UrlCache fails to recreate temp directory

Posted by "Andy Gumbrecht (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870005#action_12870005 ] 

Andy Gumbrecht commented on OPENEJB-1285:
-----------------------------------------

Forgot to mention...

Also changed the local variable name as it was clashing with a class field.

> 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.


[jira] Updated: (OPENEJB-1285) UrlCache fails to recreate temp directory

Posted by "Andy Gumbrecht (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (OPENEJB-1285) UrlCache fails to recreate temp directory

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins updated OPENEJB-1285:
-----------------------------------

    Affects Version/s: 3.1.2
                           (was: 3.2)

> 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.1.2
>         Environment: Windows 7 32bit
>            Reporter: Andy Gumbrecht
>            Priority: Blocker
>         Attachments: UrlCache.patch, 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.


[jira] Updated: (OPENEJB-1285) UrlCache fails to recreate temp directory

Posted by "Andy Gumbrecht (JIRA)" <ji...@apache.org>.
     [ 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

The call dir.listFiles() may return null - so modified patch to fix.

> 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.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.