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

Pear installer fails on EBCDIC system

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Abandoned
    • 2.2.2, 2.3
    • None
    • Tools
    • z/OS

    Description

      -------------------------------------------------------------------------------
      Test set: org.apache.uima.tools.pear.merger.PearMergerTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.973 sec <<< FAILURE!
      testPearMerger(org.apache.uima.tools.pear.merger.PearMergerTest) Time elapsed: 2.957 sec <<< FAILURE!
      junit.framework.AssertionFailedError
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.assertTrue(Assert.java:20)
      at junit.framework.Assert.assertTrue(Assert.java:27)
      at org.apache.uima.tools.pear.merger.PearMergerTest.testPearMerger(PearMergerTest.java:117)

      And the following stack trace from stdout:

      Running org.apache.uima.tools.pear.merger.PearMergerTest
      [PEAR Merger]: task parameters =>
      > Input PEARs =>
      >> /u/haubenr/uimaj-2.3.0-incubating-SNAPSHOT/uimaj-tools/target/test-classes/pearTests/pearMergerTests/uima.example.DateTime.pear
      >> /u/haubenr/uimaj-2.3.0-incubating-SNAPSHOT/uimaj-tools/target/test-classes/pearTests/pearMergerTests/uima.example.RoomNumber.pear
      > Output PEAR =>
      >> Name = uima.example.RoomDateTimeAggregate
      >> File = /tmp/pear_merger_test_23293tmp/uima.example.RoomDateTimeAggregate.pear
      > Output root dir: /u/haubenr/uima.example.RoomDateTimeAggregate
      [PEAR Merger]: extracting delegate PEARs ...
      [PEAR Merger]: 141298 bytes extracted successfully
      [PEAR Merger]: created merged package directory structure
      [PEAR Merger]: generated aggregate component descriptor
      [PEAR Merger]: generated aggregate package installation descriptor
      [PEAR Merger]: created output aggregate PEAR file - /tmp/pear_merger_test_23293tmp/uima.example.RoomDateTimeAggregate.pear
      [InstallationController]: extracting /tmp/pear_merger_test_23293tmp/uima.example.RoomDateTimeAggregate.pear
      [InstallationController]: 145657 bytes extracted
      [InstallationProcessor]: start processing InsD file - /tmp/pear_merger_test_23293tmp/uima.example.RoomDateTimeAggregate/metadata/install.xml
      Error in InstallationController: java.io.UnsupportedEncodingException: can't detect encoding in /tmp/pear_merger_test_23293tmp/uima.example.RoomDateTimeAggregate/desc/uima.example.RoomDateTimeAggregate.xml
      java.io.UnsupportedEncodingException: can't detect encoding in /tmp/pear_merger_test_23293tmp/uima.example.RoomDateTimeAggregate/desc/uima.example.RoomDateTimeAggregate.xml
      at org.apache.uima.pear.util.FileUtil.replaceStringInFile(FileUtil.java:1337)
      at org.apache.uima.pear.tools.InstallationProcessor.substituteStringVariablesInFiles(InstallationProcessor.java:429)
      at org.apache.uima.pear.tools.InstallationProcessor.process(InstallationProcessor.java:368)
      at org.apache.uima.pear.tools.InstallationController.installComponent(InstallationController.java:1569)
      at org.apache.uima.tools.pear.merger.PearMergerTest.testPearMerger(PearMergerTest.java:116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.816 sec <<< FAILURE!

      Attachments

        Activity

          People

            Unassigned Unassigned
            twgoetz Thilo Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: