improve PEAR error message for the installation of a non-existing PEAR package
------------------------------------------------------------------------------
Key: UIMA-813
URL: https://issues.apache.org/jira/browse/UIMA-813
Project: UIMA
Issue Type: Bug
Components: Core Java Framework
Affects Versions: 2.2.1
Reporter: Michael Baessler
Assignee: Michael Baessler
Fix For: 2.2.2
Currently the exception says:
org.apache.uima.pear.tools.PackageInstallerException: Error while parsing pear
package descriptor for pear file D:\test\Test.pear.
at
org.apache.uima.pear.tools.PackageInstaller.installPackage(PackageInstaller.java:113)
at
org.apache.uima.pear.tools.PackageInstaller.installPackage(PackageInstaller.java:66)
at samples.PearInstallerTest.main(PearInstallerTest.java:52)
Caused by: java.util.zip.ZipException: Bad file descriptor D:\test\Test.pear
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:238)
at java.util.jar.JarFile.<init>(JarFile.java:165)
at java.util.jar.JarFile.<init>(JarFile.java:130)
at
org.apache.uima.pear.tools.PackageInstaller.installPackage(PackageInstaller.java:102)
... 2 more
But better would be to say that the file does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.