HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Java ZIP failure
Operating System - HP-UX
1833541
Members
2913
Online
110061
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 02:59 AM
01-25-2005 02:59 AM
Java ZIP failure
I've written several apps in Java 1.4x that run on both Win2k and HP-UX 11i without any code change (as expected with Java).
But now I've got a problem that I can't fix. I have a ZIP file that was created by one of my Java apps, but it can't read it.
The same exact file is readable on Windows by the same Java app, WinZIP, etc. and PKUnzip for HP-UX can read the file just fine as well.
But when I try to open it on HP with the Java app I get:
Unhandled exception: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:124)
at java.util.zip.ZipFile.(ZipFile.java:72)
at Unzip.unzip(Unzip.java:38)
The line itself that generates the failure is:
ZipFile zipFile = new ZipFile(file_in);
I can find nothing that describes how to resolve this problem, or even that others have had it happen. I've tried Java 1.1, 1.2, 1.3, 1.4.1, and 1.4.2 and all fail on HP-UX 11 and 11i.
I also created a new ZIP file using PKZip for Unix, but the Java app couldn't open it either.
What could be the problem?
Thanks,
Jim
But now I've got a problem that I can't fix. I have a ZIP file that was created by one of my Java apps, but it can't read it.
The same exact file is readable on Windows by the same Java app, WinZIP, etc. and PKUnzip for HP-UX can read the file just fine as well.
But when I try to open it on HP with the Java app I get:
Unhandled exception: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.
at java.util.zip.ZipFile.
at Unzip.unzip(Unzip.java:38)
The line itself that generates the failure is:
ZipFile zipFile = new ZipFile(file_in);
I can find nothing that describes how to resolve this problem, or even that others have had it happen. I've tried Java 1.1, 1.2, 1.3, 1.4.1, and 1.4.2 and all fail on HP-UX 11 and 11i.
I also created a new ZIP file using PKZip for Unix, but the Java app couldn't open it either.
What could be the problem?
Thanks,
Jim
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 03:45 AM
01-25-2005 03:45 AM
Re: Java ZIP failure
Can you not trap the exception and print out the exception detail (if it is available - ZipException can be created with a null argument). That might give you a clue as to the problem.
Can java.util.jar.JarFile open it?
Can java.util.jar.JarFile open it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2005 04:30 AM
01-25-2005 04:30 AM
Re: Java ZIP failure
Stephen,
That is the trapped error, believe it or not! This "error in opening zip file" references something with the file format, but that doesn't explain why the file on Unix works with other ZIP apps, and the app in Java works on other platforms.
I did see something about HP-UX patches with ZIP files, but that was from 2002 or so and I know the admins keep this system patched up.
I'll try the other method to see what happens.
Thanks,
Jim
That is the trapped error, believe it or not! This "error in opening zip file" references something with the file format, but that doesn't explain why the file on Unix works with other ZIP apps, and the app in Java works on other platforms.
I did see something about HP-UX patches with ZIP files, but that was from 2002 or so and I know the admins keep this system patched up.
I'll try the other method to see what happens.
Thanks,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2005 11:49 PM
02-06-2005 11:49 PM
Re: Java ZIP failure
Hi,
There is an excellent article on using pkzip and gzip in java.
Check this link:
http://java.sun.com/developer/technicalArticles/Programming/compression/
Regards,
Bob
There is an excellent article on using pkzip and gzip in java.
Check this link:
http://java.sun.com/developer/technicalArticles/Programming/compression/
Regards,
Bob
- Tags:
- pkzip
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP