ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25163] New: - Unzip: java.io.IOException: Negative seek offset
Date Wed, 03 Dec 2003 13:43:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25163>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25163

Unzip: java.io.IOException: Negative seek offset

           Summary: Unzip: java.io.IOException: Negative seek offset
           Product: Ant
           Version: 1.6Beta
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jonny_dehertogh@yahoo.com


I have a textfile x.txt on a server:
SunOS aserver 5.9 Generic_112233-08 sun4us sparc FJSV,GPUS

I use gzip 1.3 (1999-12-21) to zip it. The file becomes x.txt.gz

Through FTP I download the file binary to my PC (Win 2000 Professional).

I run in a task only the following:
<unzip src="c:\jtemp\zipped\x.txt.gz" dest="c:\jtemp\unzipped"/>

When running only this task, I get:

C:\dvl.home\prj\ksz\build.xml:223: Error while expanding 
C:\jtemp\zipped\x.txt.gz
        at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:169)
        at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:133)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
--- Nested Exception ---
java.io.IOException: Negative seek offset
        at java.io.RandomAccessFile.seek(Native Method)
        at org.apache.tools.zip.ZipFile.positionAtCentralDirectory
(ZipFile.java:396)
        at org.apache.tools.zip.ZipFile.populateFromCentralDirectory
(ZipFile.java:274)
        at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:180)
        at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:158)
        at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:133)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

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


Mime
View raw message