Re: Error messages from fop

2011-09-20 Thread Lars Bjørndal
On sø., sep. 18, 2011 at 08:00:56 +0200, Simon Pepping wrote:
 Probably. You should also upgrade xmlgraphics-commons. Simon

Thank you! Helped a lot.

Lars

 On Sat, Sep 17, 2011 at 09:03:26PM +0200, Lars Bjørndal wrote:
  
  I upgraded fop from the update-testing repository, and now, I have
  fop-1.0-13.fc14 installed. Unfortunately and surprisingly, I get the
  following errors when giving the command 'fop -h' or other fop commands:
  
  Exception in thread main java.lang.NoClassDefFoundError: 
  org/apache/xmlgraphics/util/uri/CommonURIResolver
  at org.apache.fop.apps.FOURIResolver.init(FOURIResolver.java:56)
  at org.apache.fop.apps.FopFactory.init(FopFactory.java:155)
  at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:177)
  at 
  org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:121)
  at org.apache.fop.cli.Main.startFOP(Main.java:157)
  at org.apache.fop.cli.Main.main(Main.java:204)
  Caused by: java.lang.ClassNotFoundException: 
  org.apache.xmlgraphics.util.uri.CommonURIResolver
  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
  ... 6 more
  
  Is there some missing dependency packages on my system?

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error messages from fop

2011-09-18 Thread Simon Pepping
Probably. You should also upgrade xmlgraphics-commons. Simon

On Sat, Sep 17, 2011 at 09:03:26PM +0200, Lars Bjørndal wrote:
 
 I upgraded fop from the update-testing repository, and now, I have
 fop-1.0-13.fc14 installed. Unfortunately and surprisingly, I get the
 following errors when giving the command 'fop -h' or other fop commands:
 
 Exception in thread main java.lang.NoClassDefFoundError: 
 org/apache/xmlgraphics/util/uri/CommonURIResolver
   at org.apache.fop.apps.FOURIResolver.init(FOURIResolver.java:56)
   at org.apache.fop.apps.FopFactory.init(FopFactory.java:155)
   at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:177)
   at 
 org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:121)
   at org.apache.fop.cli.Main.startFOP(Main.java:157)
   at org.apache.fop.cli.Main.main(Main.java:204)
 Caused by: java.lang.ClassNotFoundException: 
 org.apache.xmlgraphics.util.uri.CommonURIResolver
   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
   ... 6 more
 
 Is there some missing dependency packages on my system?

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error messages from fop

2011-09-17 Thread Lars Bjørndal
Hi, Simon!

You wrote:

 The problem does not occur in fop-1.0, nor in the current development
 version of fop. It may be bug 46386 (see 
 https://issues.apache.org/bugzilla/show_bug.cgi?id=46386). That bug
 report suggests that the problem is due to an empty inline with an id.
 You may either remove such elements, or upgrade to fop-1.0.

 We recently discussed with fedora how to solve the problem that they
 had with building fop-1.0, so I hope it is now available in fedora.

I upgraded fop from the update-testing repository, and now, I have
fop-1.0-13.fc14 installed. Unfortunately and surprisingly, I get the
following errors when giving the command 'fop -h' or other fop commands:

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/xmlgraphics/util/uri/CommonURIResolver
at org.apache.fop.apps.FOURIResolver.init(FOURIResolver.java:56)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:155)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:177)
at 
org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:121)
at org.apache.fop.cli.Main.startFOP(Main.java:157)
at org.apache.fop.cli.Main.main(Main.java:204)
Caused by: java.lang.ClassNotFoundException: 
org.apache.xmlgraphics.util.uri.CommonURIResolver
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 6 more

Is there some missing dependency packages on my system?

Thanks

Lars

 On Wed, Sep 14, 2011 at 11:13:42AM +0200, Lars Bjørndal wrote:
 Hello
 
 I'd like to convert the following file into PDF, using fop version 0.95.
 
   http://lamasti.net/filer/test.fo
 
 The fo file is generated from an Docbook XML file with xsltproc. The
 rest of this mail shows the output from fop, and I hope someon could
 help me find a way out...
 
 The CLASSPATH variable is set to:
 /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/usr/share/java/xml-commons-apis-ext.jar:/home/lrs/fop/fop-hyph.jar
 
 Here's the output:

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Error messages from fop

2011-09-14 Thread Lars Bjørndal
Hello

I'd like to convert the following file into PDF, using fop version 0.95.

  http://lamasti.net/filer/test.fo

The fo file is generated from an Docbook XML file with xsltproc. The
rest of this mail shows the output from fop, and I hope someon could
help me find a way out...

The CLASSPATH variable is set to:
/usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/usr/share/java/xml-commons-apis-ext.jar:/home/lrs/fop/fop-hyph.jar

Here's the output:

14.sep.2011 11:11:14 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with 
'Symbol,normal,400'.
14.sep.2011 11:11:14 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 
'ZapfDingbats,normal,400'.
14.sep.2011 11:11:15 
org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm 
updateData2
WARNING: Line 1 of a paragraph overflows the available area by 2500mpt. 
(fo:block, location: 143/242)
14.sep.2011 11:11:15 org.apache.fop.cli.InputHandler error
SEVERE: javax.xml.transform.TransformerException
14.sep.2011 11:11:15 org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:196)
Caused by: javax.xml.transform.TransformerException: 
java.lang.NullPointerException
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
... 3 more
Caused by: java.lang.NullPointerException
at 
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917)
at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294)
at 
org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145)
at 
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552)
at 
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
at 
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:265)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)
at 
com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endElement(XIncludeHandler.java:1017)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1759)
at 

Re: Error messages from fop

2011-09-14 Thread Simon Pepping
The problem does not occur in fop-1.0, nor in the current development
version of fop. It may be bug 46386 (see 
https://issues.apache.org/bugzilla/show_bug.cgi?id=46386). That bug
report suggests that the problem is due to an empty inline with an id.
You may either remove such elements, or upgrade to fop-1.0.

We recently discussed with fedora how to solve the problem that they
had with building fop-1.0, so I hope it is now available in fedora.

Best, Simon

On Wed, Sep 14, 2011 at 11:13:42AM +0200, Lars Bjørndal wrote:
 Hello
 
 I'd like to convert the following file into PDF, using fop version 0.95.
 
   http://lamasti.net/filer/test.fo
 
 The fo file is generated from an Docbook XML file with xsltproc. The
 rest of this mail shows the output from fop, and I hope someon could
 help me find a way out...
 
 The CLASSPATH variable is set to:
 /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/usr/share/java/xml-commons-apis-ext.jar:/home/lrs/fop/fop-hyph.jar
 
 Here's the output:
 

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org