You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/06/03 17:09:43 UTC

DO NOT REPLY [Bug 29365] New: - Zip file remains open

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

Zip file remains open

           Summary: Zip file remains open
           Product: Cocoon 2
           Version: 2.1.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: dperezcar@fcc.es


I have the following pipeline:

<map:match pattern="a">
	<map:generate src="jar:file:///myfile.sxw!/content.xml"/>
	<map:transform label="t1" src="transf/open-office-a-docbook.xsl"/>
	<map:serialize/>
</map:match>
<map:match pattern="b">
	<map:generate src="cocoon:/a"/>
	<map:serialize/>
</map:match>

If I call from the browser the "b" pipeline, it works ok, but the zip file
"myfile.sxw" remains opened and cannot be replaced unless the Web server is
restarted. 

The inputstream isn't closed.

The problem doesn't happen if I call the "a" pipeline directly.

I've tried to solve it myself, but I see the code quite complicated.  :-(

Confirmed it happens also in Cocoon 2.1.3

Java version: 1.4.2.04
Operating system: Windows 2003 Server.