You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2005/12/28 05:51:47 UTC

DO NOT REPLY [Bug 38060] New: - Windows File Locking Issues

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060

           Summary: Windows File Locking Issues
           Product: Lenya
           Version: 1.2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Workflow
        AssignedTo: dev@lenya.apache.org
        ReportedBy: michael@ralston.id.au


Alot of programmers neglect to close files when programming in Java. I guess 
they assume the garbage collector will eventually clean up these files and they 
don't have to worry about them. This causes problems with Java running on 
Windows operating systems, as they make certain demands about open files, eg 
not allowed to delete them etc. These bugs are quite hard to track down as it 
can be intermittent, the garbage collector MIGHT close the file and there won't 
be a problem... then again it might not. 
 
This problem manifests itself in lenya in various places. The bug isn't 
actually in lenya but in some of the xml processing infrastructure which it 
depends on. I propose rather than waiting for the developers of cocoon etc to 
fix these problems, we fix the lenya code to take care of opening the files and 
then we know somebody else isn't going to leave the file open and cause a 
problem. 
 
The patch attached fixes one particular instance of this problem, when 
deactivating a page on windows, a file needs to be deleted but it has been left 
open by a documentParser object. 
 
I'm sure these file open bugs are causing problems elsewhere in lenya, I have 
seen a few things on the mailing list which I am sure is caused by the same 
sort of thing. I haven't experienced them myself as yet. In particular I'm not 
running Lenya on windows anymore so I don't know if I will be useful in 
tracking down further bugs.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 38060] - [PATCH] Windows File Locking Issues

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060


nettings@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical
   Target Milestone|1.4                         |1.4.1




------- Additional Comments From nettings@apache.org  2007-04-25 15:19 -------
we need to look into this immediately after 1.4.0.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 38060] - [PATCH] Windows File Locking Issues

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060





------- Additional Comments From nettings@apache.org  2007-01-25 17:00 -------
hmm. is this still an issue?
i don't like the fix at first glance, since it seems to circumvent the original
design intent... plus there are a numbe of readDocument methods that will all
have the same problem, and the fix addresses only one. is DocumentHelper the one
class that handles file i/o? if so, it should be fixed there, if not, we should
restructure the stuff so that there is just one class to ever handle files
directly, but that's probably post 1.4 stuff. wdyt?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 38060] - [PATCH] Windows File Locking Issues

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060


gregor@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Windows File Locking Issues |[PATCH] Windows File Locking
                   |                            |Issues




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 38060] - [PATCH] Windows File Locking Issues

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060


nettings@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael@wohlfart.net




------- Additional Comments From nettings@apache.org  2007-04-07 02:58 -------
*** Bug 35586 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 38060] - Windows File Locking Issues

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060





------- Additional Comments From michael@ralston.id.au  2005-12-28 05:55 -------
Created an attachment (id=17289)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17289&action=view)
org.apache.lenya.xml.DocumentHelper fix for open files.

Fix for DocumentHelper to open files itself instead of allowing DocumentParser
to do it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 38060] - [PATCH] Windows File Locking Issues

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38060>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060


andreas@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.4.1                       |2.0.1




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org