Bug#808839: fop: Exception java.lang.IllegalArgumentException: URI is not hierarchical

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#808839: fop: Exception java.lang.IllegalArgumentException: URI is not hierarchical

Sylvain Joubert
Package: fop
Version: 1:2.0+dfsg-4
Severity: grave
Justification: renders package unusable

Dear Maintainer,

Since I've updated my fop version (to 1:1.1.dfsg2-1) I can't use it anymore as
I get the following error:

[ERROR] FOP - Exception <java.lang.IllegalArgumentException: URI is not
hierarchical>java.lang.IllegalArgumentException: URI is not hierarchical
        at java.io.File.<init>(File.java:418)
        at org.apache.fop.fonts.FontCache.addFont(FontCache.java:335)
        at
org.apache.fop.fonts.autodetect.FontInfoFinder.getFontInfoFromCustomFont(FontInfoFinder.java:157)
        at
org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:269)
        at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63)
        at
org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:110)
        at
org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
        at
org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
        at
org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
        at
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
        at
org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
        at
org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
        at
org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75)
        at
org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
        at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
        at
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)
        at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107)
        at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
        at org.apache.fop.apps.Fop.<init>(Fop.java:78)
        at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:107)
        at org.apache.fop.cli.Main.startFOP(Main.java:186)
        at org.apache.fop.cli.Main.main(Main.java:217)

I also get these warnings just before, maybe it's related:

[INFO] Type1FontLoader - No Unicode mapping for glyph: AFM Char: 153 (anglearc)
[INFO] Type1FontLoader - No Unicode mapping for glyph: AFM Char: 166 (diameter)
[WARN] FOUserAgent - Unable to load font file:
file:/usr/share/fonts/X11/Type1/c059036l.pfb. Reason:
java.io.FileNotFoundException: Neither an AFM nor a PFM file was found for
file:/usr/share/fonts/X11/Type1/c059036l.pfb
[WARN] FOUserAgent - Unable to load font file:
file:/usr/share/fonts/truetype/noto/NotoSerifKhmer-Bold.ttf. Reason:
java.lang.ArrayIndexOutOfBoundsException: 342
[WARN] FOUserAgent - Unable to load font file:
file:/usr/share/fonts/truetype/noto/NotoSerifKhmer-Regular.ttf. Reason:
java.lang.ArrayIndexOutOfBoundsException: 342
[WARN] FOUserAgent - Unable to load font file:
file:/usr/share/fonts/truetype/noto/NotoSansKhmer-Regular.ttf. Reason:
java.lang.ArrayIndexOutOfBoundsException: 223
[WARN] FOUserAgent - Unable to load font file:
file:/usr/share/fonts/truetype/noto/NotoSansKhmer-Bold.ttf. Reason:
java.lang.ArrayIndexOutOfBoundsException: 223

For now, the only workaround I've found is to downgrade fop to its 'stable'
version (1:2.0+dfsg-4)



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'stable-updates'), (800, 'stable'), (700, 'unstable'), (90, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fop depends on:
ii  default-jre-headless [java2-runtime-headless]    2:1.7-52.1
ii  libfop-java                                      1:2.0+dfsg-4
ii  openjdk-7-jre-headless [java2-runtime-headless]  7u91-2.6.3-1

Versions of packages fop recommends:
ii  libsaxon-java  1:6.5.5-10

Versions of packages fop suggests:
pn  fop-doc  <none>

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#808839: fop: Exception java.lang.IllegalArgumentException: URI is not hierarchical

Mathieu Malaterre-4
Control: severity -1 important
Control: tags -1 upstream

Hi,

While I understand the frustration here, this cannot possibly be
called 'grave', fop is working for tons of other users. Please report
the issue upstream. Thx

On Wed, Dec 23, 2015 at 5:08 PM, Sylvain Joubert <[hidden email]> wrote:

> Package: fop
> Version: 1:2.0+dfsg-4
> Severity: grave
> Justification: renders package unusable
>
> Dear Maintainer,
>
> Since I've updated my fop version (to 1:1.1.dfsg2-1) I can't use it anymore as
> I get the following error:
>
> [ERROR] FOP - Exception <java.lang.IllegalArgumentException: URI is not
> hierarchical>java.lang.IllegalArgumentException: URI is not hierarchical
>         at java.io.File.<init>(File.java:418)
>         at org.apache.fop.fonts.FontCache.addFont(FontCache.java:335)
>         at
> org.apache.fop.fonts.autodetect.FontInfoFinder.getFontInfoFromCustomFont(FontInfoFinder.java:157)
>         at
> org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:269)
>         at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63)
>         at
> org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:110)
>         at
> org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229)
>         at
> org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82)
>         at
> org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
>         at
> org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
>         at
> org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
>         at
> org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
>         at
> org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75)
>         at
> org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
>         at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
>         at
> org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)
>         at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107)
>         at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
>         at org.apache.fop.apps.Fop.<init>(Fop.java:78)
>         at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:107)
>         at org.apache.fop.cli.Main.startFOP(Main.java:186)
>         at org.apache.fop.cli.Main.main(Main.java:217)
>
> I also get these warnings just before, maybe it's related:
>
> [INFO] Type1FontLoader - No Unicode mapping for glyph: AFM Char: 153 (anglearc)
> [INFO] Type1FontLoader - No Unicode mapping for glyph: AFM Char: 166 (diameter)
> [WARN] FOUserAgent - Unable to load font file:
> file:/usr/share/fonts/X11/Type1/c059036l.pfb. Reason:
> java.io.FileNotFoundException: Neither an AFM nor a PFM file was found for
> file:/usr/share/fonts/X11/Type1/c059036l.pfb
> [WARN] FOUserAgent - Unable to load font file:
> file:/usr/share/fonts/truetype/noto/NotoSerifKhmer-Bold.ttf. Reason:
> java.lang.ArrayIndexOutOfBoundsException: 342
> [WARN] FOUserAgent - Unable to load font file:
> file:/usr/share/fonts/truetype/noto/NotoSerifKhmer-Regular.ttf. Reason:
> java.lang.ArrayIndexOutOfBoundsException: 342
> [WARN] FOUserAgent - Unable to load font file:
> file:/usr/share/fonts/truetype/noto/NotoSansKhmer-Regular.ttf. Reason:
> java.lang.ArrayIndexOutOfBoundsException: 223
> [WARN] FOUserAgent - Unable to load font file:
> file:/usr/share/fonts/truetype/noto/NotoSansKhmer-Bold.ttf. Reason:
> java.lang.ArrayIndexOutOfBoundsException: 223
>
> For now, the only workaround I've found is to downgrade fop to its 'stable'
> version (1:2.0+dfsg-4)
>
>
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (800, 'stable-updates'), (800, 'stable'), (700, 'unstable'), (90, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages fop depends on:
> ii  default-jre-headless [java2-runtime-headless]    2:1.7-52.1
> ii  libfop-java                                      1:2.0+dfsg-4
> ii  openjdk-7-jre-headless [java2-runtime-headless]  7u91-2.6.3-1
>
> Versions of packages fop recommends:
> ii  libsaxon-java  1:6.5.5-10
>
> Versions of packages fop suggests:
> pn  fop-doc  <none>
>
> -- no debconf information
>

Reply | Threaded
Open this post in threaded view
|

Bug#808839: Affects 2.3 as well

Mathieu Malaterre-4
In reply to this post by Sylvain Joubert
$ fop -xsl ./jlatexmath-fop/examples/latex.xsl -c
./jlatexmath-fop/examples/conf.xml -xml
./jlatexmath-fop/examples/latex_docbook.xml -pdf /tmp/bla.pdf
[INFO] FopConfParser - Default page-height set to: 11in
[INFO] FopConfParser - Default page-width set to: 8.26in
file:/tmp/libjlatexmath-java-1.0.7/./jlatexmath-fop/examples/latex.xsl;
Line #7; Column #78; Had IO Exception with stylesheet file:
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
file:/tmp/libjlatexmath-java-1.0.7/./jlatexmath-fop/examples/latex.xsl;
Line #26; Column #119; org.apache.xml.utils.WrappedRuntimeException:
Could not find variable with the name of page.width
[ERROR] FOP - Exception <org.apache.fop.apps.FOPException:
java.lang.NullPointerException
java.lang.NullPointerException>org.apache.fop.apps.FOPException:
java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:217)
Caused by: java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:279)
... 3 more

---------

java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:279)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:217)

with:

$ fop -version
FOP Version 2.3

Reply | Threaded
Open this post in threaded view
|

Bug#808839:

Mathieu Malaterre-4
In reply to this post by Sylvain Joubert
Correct backtrace:

change nwalsh into docbook-xsl to find:
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl

Then:

$ fop -xsl ./jlatexmath-fop/examples/latex.xsl -c
./jlatexmath-fop/examples/conf.xml -xml
./jlatexmath-fop/examples/latex_docbook.xml -pdf /tmp/bla.pdf
[INFO] FopConfParser - Default page-height set to: 11in
[INFO] FopConfParser - Default page-width set to: 8.26in
[WARN] InputHandler - Note: namesp. cut : stripped namespace before
processing           Very simple book with mathematical formulas
[WARN] InputHandler - Making portrait pages on USletter paper (8.5inx11in)
[WARN] FOUserAgent - Font "Symbol,normal,700" not found. Substituting
with "Symbol,normal,400".
[WARN] FOUserAgent - Font "ZapfDingbats,normal,700" not found.
Substituting with "ZapfDingbats,normal,400".
[INFO] FOUserAgent - Rendered page #1.
[WARN] FOUserAgent - Hyphenation pattern not found. URI: en.
[INFO] FOUserAgent - Rendered page #2.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/scilab/forge/jlatexmath/TeXFormula
at org.scilab.forge.jlatexmath.fop.JLaTeXMathElement.calculate(JLaTeXMathElement.java:162)
at org.scilab.forge.jlatexmath.fop.JLaTeXMathElement.getDimension(JLaTeXMathElement.java:100)
at org.apache.fop.fo.flow.InstreamForeignObject.prepareIntrinsicSize(InstreamForeignObject.java:112)
at org.apache.fop.fo.flow.InstreamForeignObject.getIntrinsicWidth(InstreamForeignObject.java:125)
at org.apache.fop.layoutmgr.inline.AbstractGraphicsLayoutManager.getInlineArea(AbstractGraphicsLayoutManager.java:61)
at org.apache.fop.layoutmgr.inline.AbstractGraphicsLayoutManager.getNextKnuthElements(AbstractGraphicsLayoutManager.java:116)
at org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
at org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:329)
at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:698)
at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:627)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(BlockLayoutManager.java:141)
at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:113)
at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105)
at org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:223)
at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:148)
at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:116)
at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:69)
at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:251)
at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:770)
at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:178)
at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:158)
at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:389)
at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)
at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:143)
at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:130)
at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:128)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:128)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:217)
Caused by: java.lang.ClassNotFoundException:
org.scilab.forge.jlatexmath.TeXFormula
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

Reply | Threaded
Open this post in threaded view
|

Bug#808839: Badly build jlatexmath-fop

Mathieu Malaterre-4
In reply to this post by Sylvain Joubert
Looks like something went terribly wrong when building the jar file in
recent uploads:

$ jar tvf /usr/share/java/jlatexmath-fop.jar
     0 Tue Sep 25 06:28:10 UTC 2018 META-INF/
    76 Tue Sep 25 06:28:10 UTC 2018 META-INF/MANIFEST.MF
 15122 Tue Sep 25 06:28:10 UTC 2018 META-INF/COPYING
  1740 Tue Sep 25 06:28:10 UTC 2018 META-INF/LICENSE
     0 Tue Sep 25 06:28:10 UTC 2018 META-INF/maven/
     0 Tue Sep 25 06:28:10 UTC 2018 META-INF/maven/org.scilab.forge/
     0 Tue Sep 25 06:28:10 UTC 2018
META-INF/maven/org.scilab.forge/jlatexmath-fop/
    96 Tue Sep 25 06:28:10 UTC 2018
META-INF/maven/org.scilab.forge/jlatexmath-fop/pom.properties
  1861 Tue Sep 25 06:28:10 UTC 2018
META-INF/maven/org.scilab.forge/jlatexmath-fop/pom.xml
     0 Tue Sep 25 06:28:10 UTC 2018 META-INF/services/
    56 Tue Sep 25 06:28:10 UTC 2018
META-INF/services/org.apache.fop.fo.ElementMapping
    53 Tue Sep 25 06:28:10 UTC 2018
META-INF/services/org.apache.fop.render.XMLHandler
    74 Tue Sep 25 06:28:10 UTC 2018
META-INF/services/org.apache.xmlgraphics.image.loader.spi.ImageConverter
    73 Tue Sep 25 06:28:10 UTC 2018
META-INF/services/org.apache.xmlgraphics.image.loader.spi.ImageLoaderFactory
    65 Tue Sep 25 06:28:10 UTC 2018
META-INF/services/org.apache.xmlgraphics.image.loader.spi.ImagePreloader
     0 Tue Sep 25 06:28:10 UTC 2018 org/
     0 Tue Sep 25 06:28:10 UTC 2018 org/scilab/
     0 Tue Sep 25 06:28:10 UTC 2018 org/scilab/forge/
     0 Tue Sep 25 06:28:10 UTC 2018 org/scilab/forge/jlatexmath/
     0 Tue Sep 25 06:28:10 UTC 2018 org/scilab/forge/jlatexmath/fop/
  7125 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/JLaTeXMathElement.class
   284 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/JLaTeXMathElementMapping$1.class
  1364 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/JLaTeXMathElementMapping$JLMEMaker.class
  1357 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/JLaTeXMathElementMapping$JLMMaker.class
  1442 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/JLaTeXMathElementMapping.class
   768 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/JLaTeXMathObj.class
  2143 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/JLaTeXMathXMLHandler.class
     0 Tue Sep 25 06:28:10 UTC 2018 org/scilab/forge/jlatexmath/fop/image/
  1296 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/image/ImageJLaTeXMath.class
     0 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/image/loader/
  2489 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/image/loader/Graphics2DImagePainterJLaTeXMath.class
  1738 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/image/loader/ImageConverterJLaTeXMathToG2D.class
  1909 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/image/loader/ImageLoaderFactoryJLaTeXMath.class
  2455 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/image/loader/ImageLoaderJLaTeXMath.class
  3312 Tue Sep 25 06:28:10 UTC 2018
org/scilab/forge/jlatexmath/fop/image/loader/PreloaderJLaTeXMath.class

Some class have disapear (eg. org/scilab/forge/jlatexmath/TeXFormula)

Reply | Threaded
Open this post in threaded view
|

Bug#808839: Badly build jlatexmath-fop

Gilles Filippini-2
Hi,

On Fri, 30 Nov 2018 17:03:28 +0100 Mathieu Malaterre <[hidden email]>
wrote:
> Looks like something went terribly wrong when building the jar file in
> recent uploads:
>
> $ jar tvf /usr/share/java/jlatexmath-fop.jar
[...]
> Some class have disapear (eg. org/scilab/forge/jlatexmath/TeXFormula)

No, org/scilab/forge/jlatexmath/TeXFormula and its siblings have always
been in /usr/share/java/jlatexmath.jar, from libjlatexmath-java. And
it's the case for release 1.07-2 as well.

_g.


signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#808839:

Gilles Filippini-2
In reply to this post by Mathieu Malaterre-4
Hi,

On Wed, 28 Nov 2018 10:32:51 +0100 Mathieu Malaterre <[hidden email]> wrote:

> Correct backtrace:
>
> change nwalsh into docbook-xsl to find:
> /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
>
> Then:
>
> $ fop -xsl ./jlatexmath-fop/examples/latex.xsl -c
> ./jlatexmath-fop/examples/conf.xml -xml
> ./jlatexmath-fop/examples/latex_docbook.xml -pdf /tmp/bla.pdf
> [INFO] FopConfParser - Default page-height set to: 11in
> [INFO] FopConfParser - Default page-width set to: 8.26in
> [WARN] InputHandler - Note: namesp. cut : stripped namespace before
> processing           Very simple book with mathematical formulas
> [WARN] InputHandler - Making portrait pages on USletter paper (8.5inx11in)
> [WARN] FOUserAgent - Font "Symbol,normal,700" not found. Substituting
> with "Symbol,normal,400".
> [WARN] FOUserAgent - Font "ZapfDingbats,normal,700" not found.
> Substituting with "ZapfDingbats,normal,400".
> [INFO] FOUserAgent - Rendered page #1.
> [WARN] FOUserAgent - Hyphenation pattern not found. URI: en.
> [INFO] FOUserAgent - Rendered page #2.
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/scilab/forge/jlatexmath/TeXFormula
[...]

Given that TexFormula is in /usr/share/java/jlatexmath.jar, how about that?

$ export FOP_HYPHENATION_PATH=/usr/share/java/jlatexmath-fop.jar:/usr/share/java/jlatexmath.jar
$ fop -xsl ./libjlatexmath-java-1.0.7/jlatexmath-fop/examples/latex.xsl \
-c ./libjlatexmath-java-1.0.7/jlatexmath-fop/examples/conf.xml \
-xml ./libjlatexmath-java-1.0.7/jlatexmath-fop/examples/latex_docbook.xml \
-pdf blah.pdf

It seems it works here:
[warning] /usr/bin/fop: JVM flavor 'sun' not understood
[warning] /usr/bin/fop: Unable to locate /usr/share/java/jlatexmath-fop.jar:/usr/share/java/jlatexmath.jar in /usr/share/java
[INFO] FopConfParser - Default page-height set to: 11in
[INFO] FopConfParser - Default page-width set to: 8.26in
[WARN] InputHandler - Note: namesp. cut : stripped namespace before processing           Very simple book with mathematical formulas
[WARN] InputHandler - Making portrait pages on USletter paper (8.5inx11in)
[WARN] FOUserAgent - Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
[WARN] FOUserAgent - Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400".
[INFO] FOUserAgent - Rendered page #1.
[WARN] FOUserAgent - Hyphenation pattern not found. URI: en.
[INFO] FOUserAgent - Rendered page #2.
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[WARN] FOUserAgent - Glyph "M" (0x4d, M) not available in font "Symbol".
[WARN] FOUserAgent - Glyph "i" (0x69, i) not available in font "Symbol".
[WARN] FOUserAgent - Glyph "v" (0x76, v) not available in font "Symbol".
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[WARN] FOUserAgent - Unknown formatting object "{http://forge.scilab.org/p/jlatexmath}latex" encountered (a child of fo:instream-foreign-object}. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[WARN] FOUserAgent - Glyph "T" (0x54, T) not available in font "Symbol".
[WARN] FOUserAgent - Glyph "h" (0x68, h) not available in font "Symbol".
[WARN] FOUserAgent - Glyph "e" (0x65, e) not available in font "Symbol".
[WARN] FOUserAgent - Glyph "J" (0x4a, J) not available in font "Symbol".
[WARN] FOUserAgent - Glyph "a" (0x61, a) not available in font "Symbol".
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[ERROR] FOUserAgent - The intrinsic dimensions of an instream-foreign-object could not be determined. (No context info available)
[INFO] FOUserAgent - Rendered page #3.
[INFO] FOUserAgent - Rendered page #4.
[INFO] FOUserAgent - Rendered page #5.

Thanks,

_g.


signature.asc (499 bytes) Download Attachment