Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-813

improve PEAR error message for the installation of a non-existing PEAR package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2
    • Core Java Framework
    • None

    Description

      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.

      Attachments

        Activity

          People

            mbaessler Michael Baessler
            mbaessler Michael Baessler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: