Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-683

Trying to build ModeShape in Mead (Brew) using OpenJDK produces an exception in testcase PowerPointMetadataReaderTest

XMLWordPrintable

    • Workaround Exists
    • Hide

      The fix was to include the "liberation-fonts" package in the set of packages installed into the chroot.

      Show
      The fix was to include the "liberation-fonts" package in the set of packages installed into the chroot.

      Per Randall: it's internal to Apache POI. Apparently we're on 3.2 (the latest in the JBoss Maven repository), but 3.6 is available. I'd have to try it locally and if it works, upload 3.6 into the Maven repository (luckily all of its dependencies are already there), and commit the code.

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.183 sec <<< FAILURE!
      shouldBeAbleToCreateMetadataForPowerPoint(org.modeshape.sequencer.msoffice.powerpoint.PowerPointMetadataReaderTest) Time elapsed: 0.175 sec <<< ERROR!
      java.lang.Error: Probable fatal error:No fonts found.
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1088)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:960)
      at sun.font.FontManager.findOtherDeferredFont(FontManager.java:899)
      at sun.font.FontManager.findDeferredFont(FontManager.java:916)
      at sun.font.FontManager.findFont2D(FontManager.java:1904)
      at sun.font.FontManager.findFont2D(FontManager.java:1865)
      at java.awt.Font.getFont2D(Font.java:473)
      at java.awt.Font.defaultLineMetrics(Font.java:2082)
      at java.awt.Font.getLineMetrics(Font.java:2189)
      at java.awt.font.TextMeasurer.initAll(TextMeasurer.java:235)
      at java.awt.font.TextMeasurer.<init>(TextMeasurer.java:167)
      at java.awt.font.LineBreakMeasurer.<init>(LineBreakMeasurer.java:310)
      at java.awt.font.LineBreakMeasurer.<init>(LineBreakMeasurer.java:277)
      at org.apache.poi.hslf.model.TextPainter.getTextElements(TextPainter.java:165)
      at org.apache.poi.hslf.model.TextPainter.paint(TextPainter.java:95)
      at org.apache.poi.hslf.model.TextShape.draw(TextShape.java:537)
      at org.apache.poi.hslf.model.Slide.draw(Slide.java:431)
      at org.modeshape.sequencer.msoffice.powerpoint.PowerPointMetadataReader.instance(PowerPointMetadataReader.java:83)
      at org.modeshape.sequencer.msoffice.powerpoint.PowerPointMetadataReaderTest.shouldBeAbleToCreateMetadataForPowerPoint(PowerPointMetadataReaderTest.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
      at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
      at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
      at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
      at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
      at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
      at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
      at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
      at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
      at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
      at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
      at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      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:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
      at org.apache.mave

              van.halbert Van Halbert (Inactive)
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: