fop error

2005-03-24 Thread thmarx
Hello everybody.
We use fop.0.20.5 to produce pdf files at our linux server. It works 
most times. But after some times we got the following error message:

[WARNING] table-layout=auto is not supported, using fixed!
Xlib: connection to localhost:0.0 refused by server
Xlib: No protocol specified
java.lang.InternalError: Can't connect to X11 window server using 
'localhost:0' as the value of the DISPLAY variable.
   at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
   at 
sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:126)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
   at sun.awt.motif.MToolkit.clinit(MToolkit.java:70)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at java.awt.Toolkit$2.run(Toolkit.java:712)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
   at java.awt.SystemColor.updateSystemColors(SystemColor.java:417)
   at java.awt.SystemColor.clinit(SystemColor.java:409)
   at 
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27)
   at org.apache.batik.css.value.ColorFactory.init(ColorFactory.java:75)
   at 
org.apache.batik.css.value.CommonValueFactoryMap.init(CommonValueFactoryMap.java:39)
   at 
org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:39)
   at 
org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:32)
   at 
org.apache.batik.dom.svg.SVGDOMImplementation.init(SVGDOMImplementation.java:88)
   at 
org.apache.batik.dom.svg.SVGDOMImplementation.clinit(SVGDOMImplementation.java:76)
   at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFactory.java:66)
   at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown Source)
   at org.apache.fop.image.analyser.SVGReader.verifySignature(Unknown 
Source)
   at org.apache.fop.image.analyser.ImageReaderFactory.Make(Unknown Source)
   at org.apache.fop.image.FopImageFactory.Make(Unknown Source)
   at org.apache.fop.fo.flow.ExternalGraphic.layout(Unknown Source)
   at org.apache.fop.fo.flow.TableCell.layout(Unknown Source)
   at org.apache.fop.fo.flow.TableRow.layout(Unknown Source)
   at org.apache.fop.fo.flow.TableBody.layout(Unknown Source)
   at org.apache.fop.fo.flow.Table.layout(Unknown Source)
   at org.apache.fop.fo.flow.Block.layout(Block.java:256)
   at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
   at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
   at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
   at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.fop.apps.Driver.render(Unknown Source)
   at org.apache.fop.apps.Driver.run(Unknown Source)

we don't use any svg graphics and a x-server is installed on the system.
Does anyone know why the error occurs only sometimes and what we can do?
greets thmarx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop error

2005-03-24 Thread thmarx
we have solved the problem by setting the systemproperty java.awt.headless
System.setProperty (java.awt.headless, true);
thmarx wrote:
Hello everybody.
We use fop.0.20.5 to produce pdf files at our linux server. It works 
most times. But after some times we got the following error message:

[WARNING] table-layout=auto is not supported, using fixed!
Xlib: connection to localhost:0.0 refused by server
Xlib: No protocol specified
java.lang.InternalError: Can't connect to X11 window server using 
'localhost:0' as the value of the DISPLAY variable.
   at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
   at 
sun.awt.X11GraphicsEnvironment.clinit(X11GraphicsEnvironment.java:126)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) 

   at sun.awt.motif.MToolkit.clinit(MToolkit.java:70)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at java.awt.Toolkit$2.run(Toolkit.java:712)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
   at java.awt.SystemColor.updateSystemColors(SystemColor.java:417)
   at java.awt.SystemColor.clinit(SystemColor.java:409)
   at 
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27) 

   at 
org.apache.batik.css.value.ColorFactory.init(ColorFactory.java:75)
   at 
org.apache.batik.css.value.CommonValueFactoryMap.init(CommonValueFactoryMap.java:39) 

   at 
org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:39) 

   at 
org.apache.batik.css.svg.SVGValueFactoryMap.init(SVGValueFactoryMap.java:32) 

   at 
org.apache.batik.dom.svg.SVGDOMImplementation.init(SVGDOMImplementation.java:88) 

   at 
org.apache.batik.dom.svg.SVGDOMImplementation.clinit(SVGDOMImplementation.java:76) 

   at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.init(SAXSVGDocumentFactory.java:66) 

   at org.apache.fop.image.analyser.SVGReader.loadImage(Unknown Source)
   at org.apache.fop.image.analyser.SVGReader.verifySignature(Unknown 
Source)
   at org.apache.fop.image.analyser.ImageReaderFactory.Make(Unknown 
Source)
   at org.apache.fop.image.FopImageFactory.Make(Unknown Source)
   at org.apache.fop.fo.flow.ExternalGraphic.layout(Unknown Source)
   at org.apache.fop.fo.flow.TableCell.layout(Unknown Source)
   at org.apache.fop.fo.flow.TableRow.layout(Unknown Source)
   at org.apache.fop.fo.flow.TableBody.layout(Unknown Source)
   at org.apache.fop.fo.flow.Table.layout(Unknown Source)
   at org.apache.fop.fo.flow.Block.layout(Block.java:256)
   at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
   at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
   at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
   at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
   at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.fop.apps.Driver.render(Unknown Source)
   at org.apache.fop.apps.Driver.run(Unknown Source)

we don't use any svg graphics and a x-server is installed on the system.
Does anyone know why the error occurs only sometimes and what we can do?
greets thmarx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error:

2005-03-07 Thread Ben Gill
Hi,

I downloaded the latest 0.20.5 bin and copied the ExampleObj2PDF example and
am getting:

{ERROR} dao.BaseDAOTestCase  Error generating PDF document
[org.apache.fop.apps.
FOPException: root must be root element]
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException:
root
 must be root element
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResul
t.java:725)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(
ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
tes.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2339)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
sformerImpl.java:2160)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1213)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:668)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1129)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1107)


from XLST stylesheet:

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.1 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/XSL/Format; 
exclude-result-prefixes=fo
  xsl:output method=xml version=1.0 omit-xml-declaration=no
indent=yes/
  !-- = --
  !-- root element: projectteam --
  !-- = --
  xsl:template match=incident
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=simpleA4 page-height=29.7cm 
page-width=21cm margin-top=2cm
margin-bottom=2cm margin-left=2cm margin-right=2cm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=simpleA4
fo:flow flow-name=xsl-region-body
  fo:block font-size=16pt font-weight=bold
space-after=5mmIncident Type: 
xsl:value-of select=incident/
  /fo:block
  fo:block font-size=10pt
fo:table table-layout=fixed
  fo:table-column column-width=4cm/
  fo:table-column column-width=4cm/
  fo:table-column column-width=5cm/
  fo:table-body
xsl:apply-templates/
  /fo:table-body
/fo:table
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root
  /xsl:template
  !-- = --
  !-- child element: member --
  !-- = --
!--
  xsl:template match=member
fo:table-row
  xsl:if test=function = 'lead'
xsl:attribute name=font-weightbold/xsl:attribute
  /xsl:if
  fo:table-cell
fo:block
  xsl:value-of select=name/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=function/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=email/
/fo:block
  /fo:table-cell
/fo:table-row
  /xsl:template
--
/xsl:stylesheet


Can anyone help or tell me how to get more info out of FOP?   (ie. some
DEBUG trace?) or even how to get hold of the generated FO file?

Thanks



This message has been checked for all known viruses by the MessageLabs Virus 
Control Centre.


*

Notice:  This email is confidential and may contain copyright material of Ocado 
Limited (the Company). Opinions and views expressed in this message may not 
necessarily reflect the opinions and views of the Company.
If you are not the intended recipient, please notify us immediately and delete 
all copies of this message. Please note that it is your responsibility to scan 
this message for viruses.

Company reg. no. 3875000.
Ocado Limited
Titan Court
3 Bishops Square
Hatfield Business Park
Hatfield
Herts
AL10 9NE


*

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error:

2005-03-07 Thread Jeremias Maerki
Do the following: Instead of piping the result of the XSL transformation
through to FOP with the following line:

Result res = new SAXResult(driver.getContentHandler());

...simply serialize the resulting XSL-FO document to a file:

Result res = new StreamResult(new File(C:/Temp/debug.fo));

Check if the FO file looks right and runs smoothly through FOP.

To debug the whole thing outside of your application you might want to
consider writing the early XML to a file. In this case your code would
look like in [1]. Note the identity transformer instead of an XSL
transformation. In this case you'd have a Result like this:

Result res = new StreamResult(new File(C:/Temp/debug.xml));

Once you have the XML from your application, you can use xalan.bat, fop.bat
and your stylesheet to debug everything. Once your stylesheet is fixed
you can run the integrated code again that does the full functionality.
The key is to break down the whole process into it parts (creating XML
from your application, transforming using XSLT and formatting using FOP).

[1] 
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ExampleObj2XML.java?rev=1.4


On 07.03.2005 15:27:21 Ben Gill wrote:
 Thanks Chris,
 
 This helped me sort out the problem straight away  The xalan.bat will
 help me a lot in debugging...
 
 But this is not going to show me anything too useful as I am populating
 Object straight to PDF...
 
 As the Object to PDF generation process, includes generating the XML and the
 FO syntax (at some point during the processing - I assume at least)... is
 there any way to get this information by switching on some sort of FOP
 debugging?  
 
 That would be really useful (and will probably save me a lot of time!!)
 
 Cheers
 
 -Original Message-
 From: Chris Bowditch [mailto:[EMAIL PROTECTED]
 Sent: 07 March 2005 14:04
 To: [EMAIL PROTECTED]
 Subject: Re: Error:
 
 
 Ben Gill wrote:
 
  Hi,
  
  I downloaded the latest 0.20.5 bin and copied the ExampleObj2PDF example
 and
  am getting:
  
  {ERROR} dao.BaseDAOTestCase  Error generating PDF document
  [org.apache.fop.apps.
  FOPException: root must be root element]
  javax.xml.transform.TransformerException:
 org.apache.fop.apps.FOPException:
  root
   must be root element
 
 This is a problem with your XML/XSLT
 
 snip/
 
  
  from XLST stylesheet:
  
  ?xml version=1.0 encoding=UTF-8?
  xsl:stylesheet version=1.1 
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
  xmlns:fo=http://www.w3.org/1999/XSL/Format; 
  exclude-result-prefixes=fo
xsl:output method=xml version=1.0 omit-xml-declaration=no
  indent=yes/
!-- = --
!-- root element: projectteam --
!-- = --
xsl:template match=incident
 
 Note, that the element being matched differs from the comment. However, this
 
 may not be the cause of the problem. Most likely cause is several
 occurrences 
 of element incident in your source XML, resulting in several root elements.
 
 To determine where mistake is you should generate XSL-FO file by running 
 xalan.bat (in FOP distribution) from command line.
 
 snip/
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Control Centre.
 
 This message has been checked for all known viruses by the MessageLabs Virus 
 Control Centre.
 
   
 *
 
 Notice:  This email is confidential and may contain copyright material of 
 Ocado Limited (the Company). Opinions and views expressed in this message 
 may not necessarily reflect the opinions and views of the Company.
 If you are not the intended recipient, please notify us immediately and 
 delete all copies of this message. Please note that it is your responsibility 
 to scan this message for viruses.
 
 Company reg. no. 3875000.
 Ocado Limited
 Titan Court
 3 Bishops Square
 Hatfield Business Park
 Hatfield
 Herts
 AL10 9NE
 
 
 *
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error:

2005-03-07 Thread Ben Gill
Thats great... thanks for your help

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: 07 March 2005 14:41
To: [EMAIL PROTECTED]
Subject: Re: Error:


Do the following: Instead of piping the result of the XSL transformation
through to FOP with the following line:

Result res = new SAXResult(driver.getContentHandler());

...simply serialize the resulting XSL-FO document to a file:

Result res = new StreamResult(new File(C:/Temp/debug.fo));

Check if the FO file looks right and runs smoothly through FOP.

To debug the whole thing outside of your application you might want to
consider writing the early XML to a file. In this case your code would
look like in [1]. Note the identity transformer instead of an XSL
transformation. In this case you'd have a Result like this:

Result res = new StreamResult(new File(C:/Temp/debug.xml));

Once you have the XML from your application, you can use xalan.bat, fop.bat
and your stylesheet to debug everything. Once your stylesheet is fixed
you can run the integrated code again that does the full functionality.
The key is to break down the whole process into it parts (creating XML
from your application, transforming using XSLT and formatting using FOP).

[1]
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/
ExampleObj2XML.java?rev=1.4


On 07.03.2005 15:27:21 Ben Gill wrote:
 Thanks Chris,
 
 This helped me sort out the problem straight away  The xalan.bat will
 help me a lot in debugging...
 
 But this is not going to show me anything too useful as I am populating
 Object straight to PDF...
 
 As the Object to PDF generation process, includes generating the XML and
the
 FO syntax (at some point during the processing - I assume at least)... is
 there any way to get this information by switching on some sort of FOP
 debugging?  
 
 That would be really useful (and will probably save me a lot of
time!!)
 
 Cheers
 
 -Original Message-
 From: Chris Bowditch [mailto:[EMAIL PROTECTED]
 Sent: 07 March 2005 14:04
 To: [EMAIL PROTECTED]
 Subject: Re: Error:
 
 
 Ben Gill wrote:
 
  Hi,
  
  I downloaded the latest 0.20.5 bin and copied the ExampleObj2PDF example
 and
  am getting:
  
  {ERROR} dao.BaseDAOTestCase  Error generating PDF document
  [org.apache.fop.apps.
  FOPException: root must be root element]
  javax.xml.transform.TransformerException:
 org.apache.fop.apps.FOPException:
  root
   must be root element
 
 This is a problem with your XML/XSLT
 
 snip/
 
  
  from XLST stylesheet:
  
  ?xml version=1.0 encoding=UTF-8?
  xsl:stylesheet version=1.1 
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
  xmlns:fo=http://www.w3.org/1999/XSL/Format; 
  exclude-result-prefixes=fo
xsl:output method=xml version=1.0 omit-xml-declaration=no
  indent=yes/
!-- = --
!-- root element: projectteam --
!-- = --
xsl:template match=incident
 
 Note, that the element being matched differs from the comment. However,
this
 
 may not be the cause of the problem. Most likely cause is several
 occurrences 
 of element incident in your source XML, resulting in several root
elements.
 
 To determine where mistake is you should generate XSL-FO file by running 
 xalan.bat (in FOP distribution) from command line.
 
 snip/
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Control Centre.
 
 This message has been checked for all known viruses by the MessageLabs
Virus Control Centre.
 
   
 *
 
 Notice:  This email is confidential and may contain copyright material of
Ocado Limited (the Company). Opinions and views expressed in this message
may not necessarily reflect the opinions and views of the Company.
 If you are not the intended recipient, please notify us immediately and
delete all copies of this message. Please note that it is your
responsibility to scan this message for viruses.
 
 Company reg. no. 3875000.
 Ocado Limited
 Titan Court
 3 Bishops Square
 Hatfield Business Park
 Hatfield
 Herts
 AL10 9NE
 
 
 *
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
This message has been checked for all known viruses by the 
MessageLabs Virus Control Centre

FOP 0.20.5 AWTRenderer: Sometimes rendering fails in the middle of a table with no error message

2005-02-24 Thread Guillaume Ponce
 Hi,

My french team and I work on a Java project and we plan to embed FOP
0.20.5 for the needed print reports.

We experience a problem when we are using the AWT renderer with
documents that contain tables.  Sometimes, a page is cut in the
middle of a table and its header (fo:region-before) is missing.

As far as we have investigated we can say that:

* We have neither abnormal output message, nor exception stack
  trace.

* We only experience this problem with the AWT renderer.  Using
  the PCL renderer works fine (but it lacks multibyte characters
  support that is critical for some of our translated releases).

* We only experience this problem on a true printer (we have tried
  several models from HP and OKI).  We never reproduced the
  problem using a fake printer such as Adobe Acrobat Distiller.

* With the FO document (bug.fo) that is attached, we experience
  the problem 20% of the time when launching the printing from our
  application (we tried both java.awt.print and javax.print APIs).

  When using the `fop.bat' script, we experience the problem 100%
  of the time with the same FO document.

  fop.bat -fo bug.fo -print

  We tried JDK 1.4.1_07 and 1.4.2_07.

* So far, 100% of the time it happened, tables were involved in
  the document.

* Using the same FO document and the same FOP command line several
  times may result in having the bug occuring on different pages
  of the document.  The printing does not fail systematically at
  the same point of the document.


I have attached:

bug.fo.zip

The reference FO document we have used to investigate this
problem (zipped).

If the attachment does not work (I don't know, it is the very
first time I post to this mailing list), you can download it at
http://www.guillaumeponce.org/fop/bug.fo.zip

You can also download http://www.guillaumeponce.org/fop/bug.pdf

I have not attached it because it is 12 Mb.  It is an actual 8 pages
long paper print that has been scanned.  You can see that the problem
I describe occured on page 7 out of 8.


Sorry for any language mistake in this message, I am French.

Best regards.



-- Guillaume Ponce
http://www.guillaumeponce.org/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Out of Memory Error

2005-02-23 Thread rohit . rastogi
Hi

Anyone have an idea about how to increase memory for FOP programaticaly.I
get Out of Memory error when I try to user the
transform() Method of the Transformer Class
Thanks
Rohit





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fop error - Too many open files

2005-02-22 Thread Elton Simões Baptista
usando ulimit -n 64000 aumentamos o numero de arquivos, resolve
solve the problem
J.Pietschmann wrote:
Elton Simões Baptista wrote:
[EMAIL PROTECTED] dbf]$
[EMAIL PROTECTED] dbf]$  fop.sh cat-scania.fo -pdf cat-scania.pdf
Your JRE seems to have difficulties with disposing unused File
objects in time. Well, maybe FOP has indeed an object leak, it's
quite hard to tell from a quick glance at the code.
Some possible solutions:
- Track down the part in the JPG reader after which the
 all data has been read, and close the connection explicitely
- Convert the images into another format, like GIF or BMP, which
 is processed differently and wont have the same problem. In
 particular you'll probably get quite different effects if you
 use GIF images.
- Increase the number of file handles for your user processes,
 or the hard file handle limit in the kernel. Reboot.
- Render the document piecewise, and use another PDF library
 like iText to concat the pieces.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--

Elton Simões Baptista 
elton at cipec com br

Cipec Autopeças Ltda
Fone: +55 19 3834.9817

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


fop error - Too many open files

2005-02-21 Thread Elton Simões Baptista
[EMAIL PROTECTED] dbf]$
[EMAIL PROTECTED] dbf]$  fop.sh cat-scania.fo -pdf cat-scania.pdf


--

Elton Simões Baptista 
elton at cipec com br

Cipec Autopeças Ltda
Fone: +55 19 3834.9817

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] [2]
[INFO] [1]
[INFO] [2]
[INFO] [3]
[INFO] [4]
[INFO] [5]
[INFO] [6]
[INFO] [7]
[INFO] [8]
[INFO] [9]
[INFO] [10]
[INFO] [11]
[INFO] [12]
[INFO] [13]
[INFO] [14]
[INFO] [15]
[INFO] [16]
[INFO] [17]
[INFO] [18]
[INFO] [19]
[INFO] [20]
[INFO] [21]
[INFO] [22]
[INFO] [23]
[INFO] [24]
[INFO] [25]
[INFO] [26]
[INFO] [27]
[INFO] [28]
[INFO] [29]
[INFO] [30]
[INFO] [31]
[INFO] [32]
[INFO] [33]
[INFO] [34]
[INFO] [35]
[INFO] [36]
[INFO] [37]
[INFO] [38]
[INFO] [39]
[INFO] [40]
[INFO] [41]
[INFO] [42]
[INFO] [43]
[INFO] [44]
[INFO] [45]
[INFO] [46]
[INFO] [47]
[INFO] [48]
[INFO] [49]
[INFO] [50]
[INFO] [51]
[INFO] [52]
[INFO] [53]
[INFO] [54]
[INFO] [55]
[INFO] [56]
[INFO] [57]
[INFO] [58]
[INFO] [59]
[INFO] [60]
[INFO] [61]
[INFO] [62]
[INFO] [63]
[INFO] [64]
[INFO] [65]
[INFO] [66]
[INFO] [67]
[INFO] [68]
[INFO] [69]
[INFO] [70]
[INFO] [71]
[INFO] [72]
[INFO] [73]
[INFO] [74]
[INFO] [75]
[INFO] [76]
[INFO] [77]
[INFO] [78]
[INFO] [79]
[INFO] [80]
[INFO] [81]
[INFO] [82]
[INFO] [83]
[INFO] [84]
[INFO] [85]
[INFO] [86]
[INFO] [87]
[INFO] [88]
[INFO] [89]
[INFO] Parsing of document complete, stopping renderer
[ERROR] Error while reading image file:/cipec/imagens/261255.jpg: Error while 
loading image file:/cipec/imagens/261255.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/261255.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/271148.jpg: Error while 
loading image file:/cipec/imagens/271148.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/271148.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/297754.jpg: Error while 
loading image file:/cipec/imagens/297754.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/297754.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/312216.jpg: Error while 
loading image file:/cipec/imagens/312216.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/312216.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/312217.jpg: Error while 
loading image file:/cipec/imagens/312217.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/312217.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/312218.jpg: Error while 
loading image file:/cipec/imagens/312218.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/312218.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/312219.jpg: Error while 
loading image file:/cipec/imagens/312219.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/312219.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/312220.jpg: Error while 
loading image file:/cipec/imagens/312220.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/312220.jpg (Too many open files)
[ERROR] Error while reading image file:/cipec/imagens/312221.jpg: Error while 
loading image file:/cipec/imagens/312221.jpg : class 
java.io.FileNotFoundException - /cipec/imagens/312221.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/261255.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/261255.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/271148.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/271148.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/297754.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/297754.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/312216.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/312216.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/312217.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/312217.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/312218.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/312218.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/312219.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/312219.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/312220.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/312220.jpg (Too many open files)
[ERROR] Error in XObject : Error while loading image 
file:/cipec/imagens/312221.jpg : class java.io.FileNotFoundException - 
/cipec/imagens/312221.jpg (Too

Re: fop error - Too many open files

2005-02-21 Thread J.Pietschmann
Elton Simões Baptista wrote:
[EMAIL PROTECTED] dbf]$
[EMAIL PROTECTED] dbf]$  fop.sh cat-scania.fo -pdf cat-scania.pdf
Your JRE seems to have difficulties with disposing unused File
objects in time. Well, maybe FOP has indeed an object leak, it's
quite hard to tell from a quick glance at the code.
Some possible solutions:
- Track down the part in the JPG reader after which the
 all data has been read, and close the connection explicitely
- Convert the images into another format, like GIF or BMP, which
 is processed differently and wont have the same problem. In
 particular you'll probably get quite different effects if you
 use GIF images.
- Increase the number of file handles for your user processes,
 or the hard file handle limit in the kernel. Reboot.
- Render the document piecewise, and use another PDF library
 like iText to concat the pieces.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SV: fop -fo error

2005-02-18 Thread lars.bjerges
Have you installed JIMI or JAI as described in:
http://xml.apache.org/fop/graphics.html
It seems that the supprt jars are missing.
Hälsningar
Lars Bjerges
FöreningsSparbanken IT
+(8)58594345


-Ursprungligt meddelande-
Från: Luis F. Araujo [mailto:[EMAIL PROTECTED] 
Skickat: den 17 februari 2005 08:30
Till: [EMAIL PROTECTED]
Ämne: fop -fo error

Hello all,

When i run the command:
/usr/bin/fop -fo users_guide.fo -ps users_guide.ps

I get the following error message:

Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
location - no /proc/self/stat
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] property - background-position-horizontal is not implemented yet.
[ERROR] property - background-position-vertical is not implemented yet.
[INFO] JAI support was not installed (read: not present at build time). 
Trying to use Jimi instead
Error creating background image: Error creating FopImage object (Error 
creating FopImage object 
(http://docbook.sourceforge.net/release/images/draft.png) : 
org.apache.fop.image.JimiImage
[ERROR] property - background-position-horizontal is not implemented yet.
[ERROR] property - background-position-vertical is not implemented yet.
Error creating background image: Error creating FopImage object (Error 
creating FopImage object 
(http://docbook.sourceforge.net/release/images/draft.png) : 
org.apache.fop.image.JimiImage
***(Last message repeted around 20 more times)***
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
***(Last message repeated 50-60 times)***
[INFO] [1]
[INFO] area contents overflows area in line
[INFO] [2]
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] [3]
[INFO] [4]
[INFO] [5]
[INFO] [6]
[INFO] [7]
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
***(message repeated 20 times)***
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
***(message repeated around 40 times)***
[INFO] [12]
[INFO] [13]
[INFO] [14]
[ERROR] file:users_guide.fo:611:1093 The id id2522584 already exists 
in this document

Im using the FOP version:
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5

Running on GNU/Linux x86.


I have been looking for information about this , but i really don't find 
too much,
I highly appreciate any help.

Thanks.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error in fop

2005-02-18 Thread Gehani, Sharad \(GE Commercial Finance, NonGE\)



   Hi 
   Can anybody help me to resolve my problem in FOP
   Question:   When i am using a graphic tag fo:external-graphic 
 src=363-Signature-1-126209-0-20041220.bmp border-style=dotted 
 border-width=thin 
   width=9cm height=6cm content-width=6.0cm content-height=4.5cm 
 display-align=after text-align=start/ 
 
   /fo:blockin FOP i am getting the error 
 
   [Fatal Error] graphic.fo:1:7: The processing instruction target 
 matching [xX][m
   M][lL] is not allowed.
   [ERROR] The processing instruction target matching [xX][mM][lL] is 
 not allowed
 
   Regards
   Sharad Gehani

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error in fop

2005-02-18 Thread J.Pietschmann
Gehani, Sharad (GE Commercial Finance, NonGE) wrote:
[Fatal Error] graphic.fo:1:7: The processing instruction target matching 
[xX][m
M][lL] is not allowed.
You've probably put spaces before the XML declaration at the beginning
of the file. There are a few other possiblities.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


fop -fo error

2005-02-17 Thread Luis F. Araujo
Hello all,
When i run the command:
/usr/bin/fop -fo users_guide.fo -ps users_guide.ps
I get the following error message:
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
location - no /proc/self/stat
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] property - background-position-horizontal is not implemented yet.
[ERROR] property - background-position-vertical is not implemented yet.
[INFO] JAI support was not installed (read: not present at build time). 
Trying to use Jimi instead
Error creating background image: Error creating FopImage object (Error 
creating FopImage object 
(http://docbook.sourceforge.net/release/images/draft.png) : 
org.apache.fop.image.JimiImage
[ERROR] property - background-position-horizontal is not implemented yet.
[ERROR] property - background-position-vertical is not implemented yet.
Error creating background image: Error creating FopImage object (Error 
creating FopImage object 
(http://docbook.sourceforge.net/release/images/draft.png) : 
org.apache.fop.image.JimiImage
***(Last message repeted around 20 more times)***
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
***(Last message repeated 50-60 times)***
[INFO] [1]
[INFO] area contents overflows area in line
[INFO] [2]
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] [3]
[INFO] [4]
[INFO] [5]
[INFO] [6]
[INFO] [7]
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
[ERROR] Error in relative-align property value 'baseline': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
[ERROR] Unknown enumerated value for property 'relative-align': baseline
***(message repeated 20 times)***
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
[INFO] area contents overflows area in line
***(message repeated around 40 times)***
[INFO] [12]
[INFO] [13]
[INFO] [14]
[ERROR] file:users_guide.fo:611:1093 The id id2522584 already exists 
in this document

Im using the FOP version:
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
Running on GNU/Linux x86.
I have been looking for information about this , but i really don't find 
too much,
I highly appreciate any help.

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop -fo error

2005-02-17 Thread Jeremias Maerki
Sounds like another DocBook user in trouble. You will probably find some
helpful pointers in the archives:

http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=docbook+already+existsq=b


On 17.02.2005 08:30:27 Luis F. Araujo wrote:
 Hello all,
 
 When i run the command:
 /usr/bin/fop -fo users_guide.fo -ps users_guide.ps
 
 I get the following error message:

snip/

 [ERROR] file:users_guide.fo:611:1093 The id id2522584 already exists 
 in this document
 
 Im using the FOP version:
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] FOP 0.20.5
 
 Running on GNU/Linux x86.
 
 
 I have been looking for information about this , but i really don't find 
 too much,
 I highly appreciate any help.
 
 Thanks.


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-03 Thread Richard Mixon (qwest)
My build of FOP from 2004/05/29 works fine on Sun Java 1.4.1_02 with
Tomcat 5.0.19, but when I move toSun Java 1.5.1 and Tomcat 5.5.7 I get
the URI I/O error listed below. This build included a Batik.jar with
files dates 10/11/2003.

The exception message below seems to indicate it is choking on the
SmileyFace.gif file - but I am not sure why. I google the archives and
could not really find a problem with Java 1.5 and FOP/Batik.

I went and downloaded the latest CVS of FOP, but it looks like the
Driver class my code depended on is now gone. I could not find any doc
on how to use the new APIs.

I found one Wiki page
(http://wiki.apache.org/xmlgraphics-fop/SvgNotes/PdfTranscoderTrueTypeEm
bedding), but it expects a pure SVG file. I have been wrapping my svg
graphic with FO markup (see below the exception for how it normally
appears)

Any ideas on how to either fix the current problem, or do an SVG to PDF
transform with the new API?

Thank you in advance - Richard


19:34:42,179 ERROR [TP-Processor1] PDFXMLHandler:253 - svg graphic could
not be built: file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element image
org.apache.batik.bridge.BridgeException:
file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element image
at org.apache.batik.bridge.SVGImageElementBridge.openStream(Unknown
Source)
at
org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(Un
known Source)
at
org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unk
nown Source)
at
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at
org.apache.fop.render.pdf.PDFXMLHandler$SVGHandler.renderSVGDocument(PDF
XMLHandler.java:251)
at
org.apache.fop.render.pdf.PDFXMLHandler.handleXML(PDFXMLHandler.java:156
)
at
org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java:7
66)
at
org.apache.fop.render.pdf.PDFRenderer.renderDocument(PDFRenderer.java:12
40)
at
org.apache.fop.render.pdf.PDFRenderer.renderForeignObject(PDFRenderer.ja
va:1206)
at
org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.j
ava:675)
at
org.apache.fop.render.pdf.PDFRenderer.renderViewport(PDFRenderer.java:12
65)
at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer
.java:623)
at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.j
ava:609)
at
org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:85
5)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.jav
a:546)
at
org.apache.fop.render.pdf.PDFRenderer.renderBlocks(PDFRenderer.java:503)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java
:587)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.jav
a:537)
at
org.apache.fop.render.pdf.PDFRenderer.renderBlocks(PDFRenderer.java:503)
at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:
462)
at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRende
rer.java:445)
at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer
.java:381)
at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRend
erer.java:327)
at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.
java:299)
at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:436)
at
org.apache.fop.area.RenderPagesModel.checkPreparedPages(RenderPagesModel
.java:118)
at
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:97)
at org.apache.fop.area.AreaTree.addPage(AreaTree.java:111)
at
org.apache.fop.layoutmgr.PageLayoutManager.finishPage(PageLayoutManager.
java:507)
at
org.apache.fop.layoutmgr.PageLayoutManager.doLayout(PageLayoutManager.ja
va:203)
at
org.apache.fop.layoutmgr.PageLayoutManager.run(PageLayoutManager.java:17
8)
at org.apache.fop.apps.Document.format(Document.java:219)
at
org.apache.fop.apps.Document.foPageSequenceComplete(Document.java:123)
at
org.apache.fop.fo.FOTreeHandler.notifyPageSequenceComplete(FOTreeHandler
.java:501

Re: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-03 Thread Jeremias Maerki
You're asking for something to work that was written before JDK 1.5 was
out. 1.5 has some serious consequences. Not everything is guaranteed to
continue working. BTW, are you sure you mean 1.5.1 or rather 1.5.0_01
which is the latest version? Just keep in mind that due to these bigger
changes it will again take a long time until more people will migrate to
the newer JDK. Just remember how long it took until 1.4 was wide-spread.

I wonder why you persist in using an XSL-FO wrapper when all you want to
do is convert SVG to PDF. In this case Batik's Transcoder API would be
more appropriate. The additional content could easily be added in an
all-SVG wrapper around the SVG image.

Anyway, the new API isn't documented, yet, but examples can be found
under the following URL:
http://xml.apache.org/fop/embedding.html#examples

(Click on the future 1.0dev links).

If you continue to run into problems with 1.5 (or 5.0 or whatever Sun
tries to name it) please let us know. Some problems have already been
fixed (in CVS HEAD).

On 03.02.2005 03:51:02 Richard Mixon (qwest) wrote:
 My build of FOP from 2004/05/29 works fine on Sun Java 1.4.1_02 with
 Tomcat 5.0.19, but when I move toSun Java 1.5.1 and Tomcat 5.5.7 I get
 the URI I/O error listed below. This build included a Batik.jar with
 files dates 10/11/2003.
 
 The exception message below seems to indicate it is choking on the
 SmileyFace.gif file - but I am not sure why. I google the archives and
 could not really find a problem with Java 1.5 and FOP/Batik.
 
 I went and downloaded the latest CVS of FOP, but it looks like the
 Driver class my code depended on is now gone. I could not find any doc
 on how to use the new APIs.
 
 I found one Wiki page
 (http://wiki.apache.org/xmlgraphics-fop/SvgNotes/PdfTranscoderTrueTypeEm
 bedding), but it expects a pure SVG file. I have been wrapping my svg
 graphic with FO markup (see below the exception for how it normally
 appears)
 
 Any ideas on how to either fix the current problem, or do an SVG to PDF
 transform with the new API?

snip/


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-03 Thread Richard Mixon (qwest)
Jeremias,

You are correct - java version 1.5.0_01. And yes I know it is still
very new.

I needed session replication with Tomcat 5.5.7 and Java 1.5 was
recommended (there is a mode that works with Java 1.4 also).

Thank you for the API reference I will take a look.

 - Richard

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 12:34 AM
To: [EMAIL PROTECTED]
Subject: Re: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could
not be built


You're asking for something to work that was written before JDK 1.5 was
out. 1.5 has some serious consequences. Not everything is guaranteed to
continue working. BTW, are you sure you mean 1.5.1 or rather 1.5.0_01
which is the latest version? Just keep in mind that due to these bigger
changes it will again take a long time until more people will migrate to
the newer JDK. Just remember how long it took until 1.4 was wide-spread.

I wonder why you persist in using an XSL-FO wrapper when all you want to
do is convert SVG to PDF. In this case Batik's Transcoder API would be
more appropriate. The additional content could easily be added in an
all-SVG wrapper around the SVG image.

Anyway, the new API isn't documented, yet, but examples can be found
under the following URL:
http://xml.apache.org/fop/embedding.html#examples

(Click on the future 1.0dev links).

If you continue to run into problems with 1.5 (or 5.0 or whatever Sun
tries to name it) please let us know. Some problems have already been
fixed (in CVS HEAD).

On 03.02.2005 03:51:02 Richard Mixon (qwest) wrote:
 My build of FOP from 2004/05/29 works fine on Sun Java 1.4.1_02 with
 Tomcat 5.0.19, but when I move toSun Java 1.5.1 and Tomcat 5.5.7 I get
 the URI I/O error listed below. This build included a Batik.jar with
 files dates 10/11/2003.

 The exception message below seems to indicate it is choking on the
 SmileyFace.gif file - but I am not sure why. I google the archives and
 could not really find a problem with Java 1.5 and FOP/Batik.

 I went and downloaded the latest CVS of FOP, but it looks like the
 Driver class my code depended on is now gone. I could not find any doc
 on how to use the new APIs.

 I found one Wiki page

(http://wiki.apache.org/xmlgraphics-fop/SvgNotes/PdfTranscoderTrueTypeEm
 bedding), but it expects a pure SVG file. I have been wrapping my svg
 graphic with FO markup (see below the exception for how it normally
 appears)

 Any ideas on how to either fix the current problem, or do an SVG to
PDF
 transform with the new API?

snip/


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-03 Thread Richard Mixon (qwest)
James,

Thanks for the input and suggestion. I installed the Java 1.4
compatibility files for Tomcat 5.5.7 and reverted to Sun Java 1.4.2_03.
I still get the error below :(

The good news is I know more - it does not appear to be a Java 1.5
issue, but possibly a Tomcat 5.5.x issue.

Any additional ideas are appreciated. I will probably post on the Tomcat
user list also.

Thank you - Richard

08:18:05,396 ERROR [TP-Processor2] PDFXMLHandler:253 - svg graphic could
not be built: file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element image
org.apache.batik.bridge.BridgeException:
file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element image
at org.apache.batik.bridge.SVGImageElementBridge.openStream(Unknown
Source)
at
org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(Un
known Source)
at
org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unk
nown Source)
at
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at
org.apache.fop.render.pdf.PDFXMLHandler$SVGHandler.renderSVGDocument(PDF
XMLHandler.java:251)
at
org.apache.fop.render.pdf.PDFXMLHandler.handleXML(PDFXMLHandler.java:156
)
at
org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java:7
66)
at
org.apache.fop.render.pdf.PDFRenderer.renderDocument(PDFRenderer.java:12
40)
at
org.apache.fop.render.pdf.PDFRenderer.renderForeignObject(PDFRenderer.ja
va:1206)
at
org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.j
ava:675)
at
org.apache.fop.render.pdf.PDFRenderer.renderViewport(PDFRenderer.java:12
65)
at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer
.java:623)
at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.j
ava:609)
at
org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:85
5)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.jav
a:546)
at
org.apache.fop.render.pdf.PDFRenderer.renderBlocks(PDFRenderer.java:503)
at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java
:587)
at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.jav
a:537)
at
org.apache.fop.render.pdf.PDFRenderer.renderBlocks(PDFRenderer.java:503)
at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:
462)
at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRende
rer.java:445)
at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer
.java:381)
at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRend
erer.java:327)
at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.
java:299)
at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:436)
at
org.apache.fop.area.RenderPagesModel.checkPreparedPages(RenderPagesModel
.java:118)
at
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:97)
at org.apache.fop.area.AreaTree.addPage(AreaTree.java:111)
at
org.apache.fop.layoutmgr.PageLayoutManager.finishPage(PageLayoutManager.
java:507)
at
org.apache.fop.layoutmgr.PageLayoutManager.doLayout(PageLayoutManager.ja
va:203)
at
org.apache.fop.layoutmgr.PageLayoutManager.run(PageLayoutManager.java:17
8)
at org.apache.fop.apps.Document.format(Document.java:219)
at
org.apache.fop.apps.Document.foPageSequenceComplete(Document.java:123)
at
org.apache.fop.fo.FOTreeHandler.notifyPageSequenceComplete(FOTreeHandler
.java:501)
at
org.apache.fop.fo.FOTreeHandler.endPageSequence(FOTreeHandler.java:187)
at org.apache.fop.fo.pagination.PageSequence.end(PageSequence.java:312)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:260)
at
org.apache.fop.tools.ProxyContentHandler.endElement(ProxyContentHandler.
java:94)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Transfor
merIdentityImpl.java:1050)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source

Re: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-03 Thread Thomas DeWeese
Richard Mixon (qwest) wrote:
I checked my SVG markup and am not sure how I would change this as I'm
using an xlink:href. Here is an example:
   xlink:href=images/allTimeBest/c:out
value=${cmSummary.allTimeBestIcon}/
   This means that it is using the base URL for the document
to resolve the image reference.  The base URL for the
document would be provided when you parse the document.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-03 Thread Richard Mixon (qwest)
Thomas DeWeese wrote:
 Richard Mixon (qwest) wrote:

 I checked my SVG markup and am not sure how I would change this as
 I'm using an xlink:href. Here is an example:

xlink:href=images/allTimeBest/c:out
 value=${cmSummary.allTimeBestIcon}/

 This means that it is using the base URL for the document
 to resolve the image reference.  The base URL for the
 document would be provided when you parse the document.

I have set the base directory as follows:

  String httpBaseDir = .;
  imageURLProtocol = getInitParameter(imageURLProtocol);
  String baseDir = this.getServletContext().getRealPath(httpBaseDir);
  userAgent = new FOUserAgent();
  userAgent.setBaseURL(imageURLProtocol+baseDir);
  log.info(init - setting httpBaseDir='+httpBaseDir+',
baseDir='+baseDir+');

Here is the output from the last log statement:

  09:20:23,646  INFO [main] SVG2PDFServlet:112 - init - setting
httpBaseDir='.', baseDir='c:\jakarta-tomcat-5.5.7\webapps\stars\.'

I think I am setting this base directory correctly. Maybe not?

I did some more tests before also posting this on the Tomcat list. The
results were interesting:
  Works fine with:
Tomcat 5.0.x and Java 1.4.1_02
Tomcat 5.5.7 and Java 1.4.1_02
  Throws the exception (below) with:
Tomcat 5.5.7 and Java 1.4.2_03
Tomcat 5.5.7 and Java 1.5.0_01

So I can get it to work with Tomcat 5.5.x with an earlier version of
Java 1.4.

Thank you - Richard


Repeating part of the exception for those that might not have seen the
earlier part of the thread:

09:20:56,146 ERROR [TP-Processor2] PDFXMLHandler:253 - svg graphic could
not be built: file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element image
org.apache.batik.bridge.BridgeException:
file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element image
at org.apache.batik.bridge.SVGImageElementBridge.openStream(Unknown
Source)
at
org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(Un
known Source)
  SNIP


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-03 Thread Richard Mixon (qwest)
Bingo! That was it. I changed it from file:// to file:/// and all
works now. You earlier mentioned that might be it - but I was so focused
on the fact that it worked on Java 1.4.1 that I figured I had it
correctly.

That is weird though that moving past Java 1.4.1 breaks this.

Thank you once again, very much - Richard


Thomas DeWeese wrote:
 Hi Richard,

 What is 'imageURLProtocol'  I'm guessing it's file://
 I think it should be either file:/// or file:/.

 Richard Mixon (qwest) wrote:

 Thomas DeWeese wrote:

 Richard Mixon (qwest) wrote:


 I checked my SVG markup and am not sure how I would change this as
 I'm using an xlink:href. Here is an example:

   xlink:href=images/allTimeBest/c:out
 value=${cmSummary.allTimeBestIcon}/

This means that it is using the base URL for the document
 to resolve the image reference.  The base URL for the
 document would be provided when you parse the document.


 I have set the base directory as follows:

   String httpBaseDir = .;
   imageURLProtocol = getInitParameter(imageURLProtocol);
   String baseDir = this.getServletContext().getRealPath(httpBaseDir);
   userAgent = new FOUserAgent();
   userAgent.setBaseURL(imageURLProtocol+baseDir);
   log.info(init - setting httpBaseDir='+httpBaseDir+',
 baseDir='+baseDir+');

 Here is the output from the last log statement:

   09:20:23,646  INFO [main] SVG2PDFServlet:112 - init - setting
 httpBaseDir='.', baseDir='c:\jakarta-tomcat-5.5.7\webapps\stars\.'

 I think I am setting this base directory correctly. Maybe not?

 09:20:56,146 ERROR [TP-Processor2] PDFXMLHandler:253 - svg graphic
 could not be built: file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tidy error

2005-01-19 Thread Luke Shannon
Hello;

If this is not an appropriate forum for this please let me know.

I would like to use tidy to clean up some input before I
render my document with FOP.

I am getting the following error:

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:307)

Anyone seen this before? Below is the code for anyone that is interested.

Thanks,

Luke

private String htmlTidy(String html) {
try {
StringBufferInputStream sbis=new StringBufferInputStream(html);
ByteArrayOutputStream baos=new ByteArrayOutputStream();
Tidy tidy = new Tidy();
Trace.ENTER(FOP PDF: Tidy object created.);
//configure tidy
tidy.setQuiet(true);
tidy.setShowWarnings(false);
tidy.setXmlOut(false);
tidy.setXHTML(true);
tidy.setMakeClean(false);
tidy.setTidyMark(false);
tidy.setUpperCaseTags(false);
tidy.setUpperCaseAttrs(false);
tidy.setQuoteAmpersand(false);
tidy.setNumEntities(true);
tidy.setCharEncoding(Configuration.UTF8);
Trace.ENTER(FOP PDF: Tidy object configured.);
tidy.parse(sbis,baos);
Trace.ENTER(FOP PDF: Tidy parsing complete.);
html = baos.toString();
}
catch (Exception e) {
Trace.ENTER(FOP PDF: TIDY ERROR!  + e);
}
return html;
}








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unbound Error

2005-01-10 Thread Luke Shannon
You are correct.

Thanks,

Luke

- Original Message - 
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 10, 2005 5:44 AM
Subject: Re: Unbound Error


 Luke Shannon wrote:
  Hello Andreas;
 
  This is the nature of my problem. The block lies outside of the root. It
is
  in a template. I start in root, write some generic stuff and than
depending
  on the params jump of the one of several templates to write out the
content.
 
  Each template needs to contains its own formatting schema. I was hoping
to
  do this by embedding the content in a fo block.
 
  If this is allowed, do I have any other options? I would like to avoid
  complicating the root template with 13 different output options.

 I think you just need to define the fo namespace at the top of your
 xsl:stylesheet, e.g.

 xsl:stylesheet xmlns:fo=http://www.w3.org/1999/XSL/Format;
 xsl:template match=/
 fo:root
 ...
 /fo:root
 /xsl:template

 ...

 /xsl:stylesheet

 snip/

 Chris


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unbound Error

2005-01-07 Thread Luke Shannon
Hello;

I am getting the error:

org.xml.sax.SAXParseException: The prefix fo for element fo:block is not
bound.

I have been clicking around the form archives trying to find a solution to
this without much luck.

Can someone give me a hint?

Thanks,

Luke


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unbound Error

2005-01-07 Thread Andreas L. Delmelle
 -Original Message-
 From: Luke Shannon [mailto:[EMAIL PROTECTED]


Hi,

 I am getting the error:

 org.xml.sax.SAXParseException: The prefix fo for element
 fo:block is not bound.

Without seeing your FO source, difficult to say for sure, but it points to
an error in there.

Could be caused by something as simple as:

?xml version=1.0 standalone=yes?

fo:block /
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 ...
/fo:root

Having a block outside of the root is, of course, a major error, but even if
it weren't the 'fo:' prefix is not yet bound to a namespace for the first
fo:block. This error would be encountered before the FO is
validated --'validation' being somewhat of an overstatement considering FOP
0.20.5, but you get the idea ;-)

HTH!

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unbound Error

2005-01-07 Thread Luke Shannon
Hello Andreas;

This is the nature of my problem. The block lies outside of the root. It is
in a template. I start in root, write some generic stuff and than depending
on the params jump of the one of several templates to write out the content.

Each template needs to contains its own formatting schema. I was hoping to
do this by embedding the content in a fo block.

If this is allowed, do I have any other options? I would like to avoid
complicating the root template with 13 different output options.

Thanks,

Luke
- Original Message - 
From: Andreas L. Delmelle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 07, 2005 1:36 PM
Subject: RE: Unbound Error


  -Original Message-
  From: Luke Shannon [mailto:[EMAIL PROTECTED]
 

 Hi,

  I am getting the error:
 
  org.xml.sax.SAXParseException: The prefix fo for element
  fo:block is not bound.

 Without seeing your FO source, difficult to say for sure, but it points to
 an error in there.

 Could be caused by something as simple as:

 ?xml version=1.0 standalone=yes?

 fo:block /
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  ...
 /fo:root

 Having a block outside of the root is, of course, a major error, but even
if
 it weren't the 'fo:' prefix is not yet bound to a namespace for the first
 fo:block. This error would be encountered before the FO is
 validated --'validation' being somewhat of an overstatement considering
FOP
 0.20.5, but you get the idea ;-)

 HTH!

 Greetz,

 Andreas


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: font install error

2004-12-04 Thread Andreas L. Delmelle
 -Original Message-
 From: Mike Sierra [mailto:[EMAIL PROTECTED]

Hi,

 I'm trying to install a custom font for the first time, and am running
 this command as spec'ed in the doc:

 $ java -cp
 build/fop.jar:lib/avalon-framework.jar:lib/xml-apis.jar:lib/

Well... the example command on the website may be a bit simplified. Check
FOP's lib directory, and make sure avalon-framework.jar is not actually
named avalon-framework-{version}.jar or something like that.

HTH!

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: font install error

2004-12-04 Thread Andreas L. Delmelle
 -Original Message-
 From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
  -Original Message-
  From: Mike Sierra [mailto:[EMAIL PROTECTED]

  $ java -cp
  build/fop.jar:lib/avalon-framework.jar:lib/xml-apis.jar:lib/

 Well... the example command on the website may be a bit simplified. Check
 FOP's lib directory, and make sure avalon-framework.jar is not actually
 named avalon-framework-{version}.jar or something like that.

And as an addition: same goes for the Xalan and Xerces jars --if you really
need them.

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



font install error

2004-12-03 Thread Mike Sierra
Pardon me if this is obvious or has been covered many times already,  
but I'm not a Java junkie and have trouble interpreting this error.   
I'm trying to install a custom font for the first time, and am running  
this command as spec'ed in the doc:

$ java -cp  
build/fop.jar:lib/avalon-framework.jar:lib/xml-apis.jar:lib/ 
xercesImpl.jar:lib/xalan.jar org.apache.fop.fonts.apps.PFMReader  
MYFONT.pfm MYFONT.xml

Here's the error I get:
Exception in thread main java.lang.NoClassDefFoundError:  
org/apache/avalon/framework/logger/AbstractLogEnabled
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at  
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

I confirmed the AbstractLogEnabled class exists.  What else could be  
wrong?

Thanks,
--Mike Sierra
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Error] null

2004-11-11 Thread Agar, Robert
hi all

I'm getting this rather less than helpful error message:

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] null

In the list achives there's mention of this being caused by block-container 
elements that are not the direct children of fo:flow, but that's not the case 
as the xsl-fo doesn't include any block-container elements.

Any thoughts anyone?

thanks
Rob
  


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Error] null

2004-11-11 Thread Andreas L. Delmelle
 -Original Message-
 From: Agar, Robert [mailto:[EMAIL PROTECTED]


Hi Rob,

 I'm getting this rather less than helpful error message:
snip /

A couple of hints:

1. try running FOP with the '-d' command line switch. This should give you
more information, maybe even more helpful :-)

2. if the error still isn't obvious, try running the transformation
standalone (i.e. first run the XSL transform, using the supplied xalan.bat
to produce the FO). This will fail if the problem is in the stylesheet (so
not really a FOP error...)

And if after these two steps the error still persists, please attach the FO
file (not XML + XSLT, but the result of the transformation in step 2), and
we'll take a look at it.


Hope this helps!

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Error] null

2004-11-11 Thread Agar, Robert
Andreas:
 A couple of hints:
 
 1. try running FOP with the '-d' command line switch. This 
 should give you
 more information, maybe even more helpful :-)

... tracked down the error to a null pointer exception at 
org.apache.fop.fo.pagination.PageSequence.init(PageSequence.java:173), caused 
by the fo:layout-master-set element being missing.

thanks very much Andreas!

Rob
 


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Error] null

2004-11-11 Thread Andreas L. Delmelle
 -Original Message-
 From: Agar, Robert [mailto:[EMAIL PROTECTED]


Hi Rob,

snip /
 ... tracked down the error to a null pointer exception at
 org.apache.fop.fo.pagination.PageSequence.init(PageSequence.java
 :173), caused by the fo:layout-master-set element being missing.


Well, it's not of much use right now, but in the current development
version, the reporting of such errors is greatly improved.

Something to look forward to :-)

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



exception on error

2004-10-22 Thread Agar, Robert
hi all,

I have FOP running embedded in a java program. How do I make it throw an 
exception on an error, rather than just logging it?

The particular error I want it to fail on is this:
[ERROR] Error while creating area : Error with image URL: Images\test.jpeg (The 
system cannot find the path specified) and no base URL is specified

thanks
Rob


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ERROR -2

2004-09-27 Thread Mark Donnelly
Thanks, Ive canned the lazy Xalan option and rewriting my xslt/html in
xslt/fo so hopefully Ill avoid this error.

Thanks for your help everyone. Great user group.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: 24 September 2004 23:21
To: [EMAIL PROTECTED]
Subject: Re: ERROR -2


J.Pietschmann wrote:
 No idea where this comes from. Anyone else got an idea?
 
 
 It's a known Xalan bug.

Darn, I confused it with the Xalan 2.0 bug which printed a +N
sometimes.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error with multi-column page

2004-09-24 Thread Pascal Sancho
Hi,
In my previous mail, the snipped FO was incomplete and did work fine.
Here follows the right FO, witch generates the described error..
Pascal

 -Message d'origine-
 De : Pascal Sancho 
 Envoyé : jeudi 23 septembre 2004 10:36
 À : [EMAIL PROTECTED]
 Objet : Error with multi-column page
 
  
  Hi there,
 When I try to generate a PDF with the following FO, I get an error:
 [ERROR] file:/E:/projets/peugeot/blueTeam/fop3/data.fo:12:35 
 No meaningful layout in block after many attempts.  Infinite 
 loop is assumed.  Processing halted.
 
 I use FOP 0.20.5.
 
 If I suppress either a fo:external-graphic or the span=all 
 attribute in the final fo:block, I get no error.
  - span attribute is used to avoid id already exist error 
 (can't remove it)
 
 Is there a solution?
 
 Pascal

snip

?xml version=1.0 encoding=ISO-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set xmlns:fox=http://xml.apache.org/fop/extensions;
fo:simple-page-master page-height=327mm page-width=240mm
margin-top=0mm margin-bottom=0mm
margin-left=0mm margin-right=0mm
master-name=gauche
fo:region-body column-count=2 column-gap=5mm
margin-top=79.35mm margin-bottom=42mm
margin-left=59.55mm margin-right=34.8mm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence language=fr master-reference=gauche
fo:flow flow-name=xsl-region-body
fo:block border=solid red .1mm
fo:external-graphic width=800pt 
height=548pt src=dummy.gif/
/fo:block
fo:block border=solid red .1mm
fo:external-graphic width=800pt 
height=548pt src=dummy.gif/
/fo:block
fo:block border=solid red .1mm
fo:external-graphic width=800pt 
height=548pt src=dummy.gif/
/fo:block
fo:block span=all/fo:block
/fo:flow
/fo:page-sequence
/fo:root

/snip


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ERROR -2

2004-09-24 Thread Chris Bowditch
Mark Donnelly wrote:
snip/
java.lang.ArrayIndexOutOfBoundsException: -2
at
org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja
va:130)
This is the key to solving the problem. Looks like you have defined a table 
row with more cells than columns have been defined in the table.

Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: ERROR -2

2004-09-24 Thread Mark Donnelly
Thanks, Ill check it out. I used Xalan to transform a HTML document but
perhaps Ill just modify my xslt to be xslfo to have more control.

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: 24 September 2004 11:39
To: [EMAIL PROTECTED]
Subject: Re: ERROR -2


Mark Donnelly wrote:

snip/

 java.lang.ArrayIndexOutOfBoundsException: -2
 at
 org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja
 va:130)

This is the key to solving the problem. Looks like you have defined a table 
row with more cells than columns have been defined in the table.

Chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ERROR -2

2004-09-24 Thread J.Pietschmann
Jeremias Maerki wrote:
No idea where this comes from. Anyone else got an idea?
It's a known Xalan bug.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ERROR -2

2004-09-24 Thread J.Pietschmann
J.Pietschmann wrote:
No idea where this comes from. Anyone else got an idea?

It's a known Xalan bug.
Darn, I confused it with the Xalan 2.0 bug which printed a +N
sometimes.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error with multi-column page

2004-09-23 Thread Pascal Sancho
 
 Hi there,
When I try to generate a PDF with the following FO, I get an error:
[ERROR] file:/E:/projets/peugeot/blueTeam/fop3/data.fo:12:35 No
meaningful layout in block after many attempts.  Infinite loop is
assumed.  Processing halted.

I use FOP 0.20.5.

If I suppress either a fo:external-graphic or the span=all attribute
in the final fo:block, I get no error.
 - span attribute is used to avoid id already exist error (can't
remove it)

Is there a solution?

Pascal

snip
?xml version=1.0 encoding=ISO-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set xmlns:fox=http://xml.apache.org/fop/extensions;
fo:simple-page-master page-height=327mm page-width=240mm
margin-top=0mm margin-bottom=0mm margin-left=0mm
margin-right=0mm master-name=gauche
fo:region-body column-count=2 column-gap=5mm margin-top=79.35mm
margin-bottom=42mm margin-left=59.55mm margin-right=34.8mm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence language=fr master-reference=gauche
fo:flow flow-name=xsl-region-body
fo:block border=solid red .1mmfo:external-graphic width=800pt
height=548pt src=dummy.gif//fo:block
fo:block border=solid red .1mmfo:external-graphic width=800pt
height=548pt src=dummy.gif//fo:block
fo:block border=solid red .1mmfo:external-graphic width=800pt
height=548pt src=dummy.gif//fo:block
fo:block/fo:block
/fo:flow
/fo:page-sequence
/fo:root
/snip

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ERROR -2

2004-09-23 Thread Mark Donnelly
Not sure if this is a posting to the FOP users group or not.

Here goes anyway ...

Ive just started using Xalan and FOP to attempt creation of pdf documents.
When running FOP I get the following:

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[ERROR] -2

Im not getting any output file and cant find the error code -2 on the FAQ.
Just wondering what this means or if there is an error code listing?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 September 2004 17:59
To: [EMAIL PROTECTED]
Subject: WELCOME to [EMAIL PROTECTED]


Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

Acknowledgment: I have added the address

   [EMAIL PROTECTED]

to the fop-user mailing list.

Welcome to [EMAIL PROTECTED]

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


--- Administrative commands for the fop-user list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
   [EMAIL PROTECTED]

To remove your address from the list, send a message to:
   [EMAIL PROTECTED]

Send mail to the following for info and FAQ for this list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

Similar addresses exist for the digest list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

To get messages 123 through 145 (a maximum of 100 per request), mail:
   [EMAIL PROTECTED]

To get an index with subject and author for messages 123-456 , mail:
   [EMAIL PROTECTED]

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send an empty message to:
   [EMAIL PROTECTED]

The messages do not really need to be empty, but I will ignore
their content. Only the ADDRESS you send to is important.

You can start a subscription for an alternate address,
for example [EMAIL PROTECTED], just add a hyphen and your
address (with '=' instead of '@') after the command word:
[EMAIL PROTECTED]

To stop subscription for this address, mail:
[EMAIL PROTECTED]

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
[EMAIL PROTECTED] Please be patient, my owner is a
lot slower than I am ;-)

--- Enclosed is a copy of the request I received.

Return-Path: [EMAIL PROTECTED]
Received: (qmail 20828 invoked by uid 99); 23 Sep 2004 16:58:29 -
X-ASF-Spam-Status: No, hits=0.0 required=10.0
tests=
X-Spam-Check-By: apache.org
Received-SPF: pass (hermes.apache.org: local policy)
Received: from [194.217.126.3] (HELO mailgate.tissoft.co.uk) (194.217.126.3)
  by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 23 Sep 2004 09:58:28 -0700
Received: by mailgate.tissoft.co.uk (Postfix, from userid 538)
id 080128E4F; Thu, 23 Sep 2004 17:58:25 +0100 (BST)
Received: from ct-mail.tissoft.co.uk (ct-mail.tissoft.co.uk [192.168.1.227])
by mailgate.tissoft.co.uk (Postfix) with ESMTP id 296438E4D
for
fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftware
[EMAIL PROTECTED]; Thu, 23 Sep 2004 17:58:21 +0100 (BST)
Received: by ct-mail.tissoft.co.uk with Internet Mail Service (5.5.2656.59)
id RS90NL1G; Thu, 23 Sep 2004 18:08:26 +0100
Message-ID: [EMAIL PROTECTED]
From: Mark Donnelly [EMAIL PROTECTED]
To:
'fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftwar
[EMAIL PROTECTED]'
fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftware
[EMAIL PROTECTED]
Subject: RE: confirm subscribe to [EMAIL PROTECTED]
Date: Thu, 23 Sep 2004 18:08:24 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2656.59)
Content-Type: text/plain;
charset=iso-8859-1
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
mailgate.tissoft.co.uk
X-Spam-Status: No, hits=-3.9 required=5.3 tests=AWL,BAYES_00 autolearn=ham 
version=2.63
X-Spam-Level: 
X-Virus-Checked: Checked



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 September 2004 17:57
To: [EMAIL PROTECTED]
Subject: confirm subscribe to [EMAIL PROTECTED]


Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

To confirm that you would like

   [EMAIL PROTECTED]

added to the fop-user mailing list, please send
an empty reply to this address:

 
fop-user-sc.1095958608.hkhlnogjecibidngadke-mark.donnelly=strategixsoftware.
[EMAIL PROTECTED]

Usually, this happens when you just hit the reply button.
If this does not work

Re: ERROR -2

2004-09-23 Thread Jeremias Maerki
Strange. If you're doing this on the command-line, use -d to get
additional error information.

If you're running from Java make sure that DEBUG log level is enabled.

On 23.09.2004 19:20:39 Mark Donnelly wrote:
 Not sure if this is a posting to the FOP users group or not.
 
 Here goes anyway ...
 
 Ive just started using Xalan and FOP to attempt creation of pdf documents.
 When running FOP I get the following:
 
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [ERROR] -2
 
 Im not getting any output file and cant find the error code -2 on the FAQ.
 Just wondering what this means or if there is an error code listing?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ERROR -2

2004-09-23 Thread Mark Donnelly
M:

org.apache.fop.apps.FOPException: -2
at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
at org.apache.fop.apps.Fop.main(Fop.java:62)

Looks like FOP is not happy with something but what it doesnt really say.

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: 23 September 2004 18:23
To: [EMAIL PROTECTED]
Subject: Re: ERROR -2


Strange. If you're doing this on the command-line, use -d to get
additional error information.

If you're running from Java make sure that DEBUG log level is enabled.

On 23.09.2004 19:20:39 Mark Donnelly wrote:
 Not sure if this is a posting to the FOP users group or not.
 
 Here goes anyway ...
 
 Ive just started using Xalan and FOP to attempt creation of pdf documents.
 When running FOP I get the following:
 
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
 [INFO] building formatting object tree
 [INFO] setting up fonts
 [INFO] [1]
 [ERROR] -2
 
 Im not getting any output file and cant find the error code -2 on the FAQ.
 Just wondering what this means or if there is an error code listing?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ERROR -2

2004-09-23 Thread Jeremias Maerki
No idea where this comes from. Anyone else got an idea? Mark, please give
us the full command-line you're using along with the JDK version you're
using.

On 23.09.2004 19:41:49 Mark Donnelly wrote:
 M:
 
 org.apache.fop.apps.FOPException: -2
 at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
 at org.apache.fop.apps.Fop.main(Fop.java:62)
 
 Looks like FOP is not happy with something but what it doesnt really say.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error while trying to open PDF(created using FOP) in Adobe Illustrator

2004-09-22 Thread Saptarshi Sen
Hi,
We tried to generate a pdf (an image) with embedded fonts and are
facing a problem. The process that we are following is outlined below.

Process
1.  We first generate a SVG image of the Chart using Corda PopChart
version 5.1.
- The reason for choosing SVG as an intermediate image format is that
it supports embedding of fonts (which reduces the file size). If we try to
generate a PDF directly using PopChart, the fonts are not embedded and the
image file turns out to be pretty bulky.
2.  Data from the generated SVG is extracted and fed to the Apache FOP
(Formatting Objects Processor).
3.  The FOP generates the PDF version of the SVG image.

Problem
The PDF generated does not open in Adobe Illustrator. In Illustrator version
9, it says that Missing Double-byte fonts have been substituted with the
default font. In version 11 CS, it says that Acrobat PDF File Format is
having difficulties. Could not create internal representation of XMP
metadata.

However, these images open up fine in Adobe Acrobat, Acrobat Reader as well
as Adobe PhotoShop. Also, if we open the image in Adobe Acrobat and save it
again, subsequently it opens up fine in Illustrator.

It is important that we be able to edit it using Illustrator as that is what
the users of the system will be using. We are looking for reasons as to why
it's not working; are we missing out any detail?

Attached alongwith are the following files:
1.  109...svg - This is the SVG image generated by PopChart. Opens up
fine in IE.
2.  109...fo - Intermediate file produced by FOP.
3.  109...pdf - Final PDF generated by FOP.


Thanks and Regards,
Saptarshi.



  1094899742704.fo  1094899742704.pdf  1094899742704.svg 



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Private Limited (MindTree) will not be responsible 
for any viruses or defects or any forwarded attachments emanating either from 
within MindTree or outside. If you have received this message by mistake please 
notify the sender by return  e-mail and delete this message from your system. 
Any unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.  Please note that e-mails are susceptible to change and 
MindTree shall not be liable for any improper, untimely or incomplete 
transmission.


1094899742704.fo
Description: 1094899742704.fo


1094899742704.pdf
Description: 1094899742704.pdf


1094899742704.svg
Description: 1094899742704.svg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Error while trying to open PDF(created using FOP) in Adobe Illustrator

2004-09-22 Thread Dennis Myrén
This has always been a problem for me.
The only way as far as I know, is to first create a surface
and then place the PDF object using File-Place.


Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Saptarshi Sen [mailto:[EMAIL PROTECTED] 
Sent: 22. september 2004 10:55
To: [EMAIL PROTECTED]
Subject: Error while trying to open PDF(created using FOP) in Adobe Illustrator

Hi,
We tried to generate a pdf (an image) with embedded fonts and are
facing a problem. The process that we are following is outlined below.

Process
1.  We first generate a SVG image of the Chart using Corda PopChart
version 5.1.
- The reason for choosing SVG as an intermediate image format is that
it supports embedding of fonts (which reduces the file size). If we try to
generate a PDF directly using PopChart, the fonts are not embedded and the
image file turns out to be pretty bulky.
2.  Data from the generated SVG is extracted and fed to the Apache FOP
(Formatting Objects Processor).
3.  The FOP generates the PDF version of the SVG image.

Problem
The PDF generated does not open in Adobe Illustrator. In Illustrator version
9, it says that Missing Double-byte fonts have been substituted with the
default font. In version 11 CS, it says that Acrobat PDF File Format is
having difficulties. Could not create internal representation of XMP
metadata.

However, these images open up fine in Adobe Acrobat, Acrobat Reader as well
as Adobe PhotoShop. Also, if we open the image in Adobe Acrobat and save it
again, subsequently it opens up fine in Illustrator.

It is important that we be able to edit it using Illustrator as that is what
the users of the system will be using. We are looking for reasons as to why
it's not working; are we missing out any detail?

Attached alongwith are the following files:
1.  109...svg - This is the SVG image generated by PopChart. Opens up
fine in IE.
2.  109...fo - Intermediate file produced by FOP.
3.  109...pdf - Final PDF generated by FOP.


Thanks and Regards,
Saptarshi.



  1094899742704.fo  1094899742704.pdf  1094899742704.svg 



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Private Limited (MindTree) will not be responsible 
for any viruses or defects or any forwarded attachments emanating either from 
within MindTree or outside. If you have received this message by mistake please 
notify the sender by return  e-mail and delete this message from your system. 
Any unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.  Please note that e-mails are susceptible to change and 
MindTree shall not be liable for any improper, untimely or incomplete 
transmission.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FOP Error

2004-09-16 Thread Jirole, Amar
Title: Message



I am 
trying to run fop code very similar to ExampleObj2Pdf attached along with 
documentation but I get following error when i try to open the pdf file 
generated.


Any 
idea what might be going wrong? This error is not there in 
FAQ.

Thanks
-Amar

  
  
attachment: Outlook.bmp-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: FOP Error

2004-09-16 Thread Thiruvallur Rathnavelu, Elango (Cognizant)
Title: Message



Hi,

Possible reasons (I know) to get this error
dialog

1.
Check the root element in the xml and also verify whether the
xsl:templatetag name is correct
2. You
will get this error if the rendering process is stop abruptly before
completion.


regards,

Elango
TR

  -Original Message-From: Jirole, Amar
  [mailto:[EMAIL PROTECTED]Sent: Thursday, September 16, 2004 4:38
  AMTo: '[EMAIL PROTECTED]'Subject: FOP
  Error
  I am
  trying to run fop code very similar to ExampleObj2Pdf attached along with
  documentation but I get following error when i try to open the pdf file
  generated.
  
  
  Any
  idea what might be going wrong? This error is not there in
  FAQ.
  
  Thanks
  -Amar
  



This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.  Visit us at http://www.cognizant.comOutlook.bmp

no conversion defined error: content-width='scale-to-fit'

2004-09-15 Thread Steve Whitlatch
Hello,

I use FOP to convert fo files to pdf. The fo files are produced by 
xsltproc and the DocBook XSL stylesheets. To the best of my 
knowledge, FOP produces output that is correct somewhere in the high
90 percent range. Thank you to the developers.

I am investigating some FOP error messages, starting with this one:

*
[ERROR] Error in content-width property value 'scale-to-fit': 
org.apache.fop.fo.expr.PropertyException: No conversion defined
*

How would I define a conversion to make FOP happy? The error message
is produced when FOP's processing reaches the page on which this code
resides in the .fo file produced by xsltproc:

**
fo:block text-align=center
  fo:external-graphic src=graphics/CroppedDecisionObject.tif
width=6.5in height=auto content-width=scale-to-fit
content-height=auto text-align=center/
/fo:block
**

From the original XML file, here is the relevant code:

**
imagedata width=6.5in align =center
   fileref=graphics/CroppedDecisionObject.tif
   format=TIFF/
/imageobject
**

The original XML shows no scale-to-fit value being passed to a
content-width attribute.

Is there any reason to believe that FOP is in error? Unless there is
some reason to believe that FOP is in error, perhaps I should submit
a bug report to the maintainer of the DocBook XSL stylesheets
claiming that the stylesheets erroneously inject
content-width='scale-to-fit'.

Just checking. If I'm confused, please shed some light.

Thanks,

Steve Whitlatch

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: no conversion defined error: content-width='scale-to-fit'

2004-09-15 Thread Clay Leeds
On Sep 15, 2004, at 12:17 PM, Steve Whitlatch wrote:
[...]
How would I define a conversion to make FOP happy? The error message
is produced when FOP's processing reaches the page on which this code
resides in the .fo file produced by xsltproc:
**
fo:block text-align=center
  fo:external-graphic src=graphics/CroppedDecisionObject.tif
width=6.5in height=auto content-width=scale-to-fit
content-height=auto text-align=center/
/fo:block
**
From the original XML file, here is the relevant code:
**
imagedata width=6.5in align =center
   fileref=graphics/CroppedDecisionObject.tif
   format=TIFF/
/imageobject
**
The original XML shows no scale-to-fit value being passed to a
content-width attribute.
Is there any reason to believe that FOP is in error? Unless there is
some reason to believe that FOP is in error, perhaps I should submit
a bug report to the maintainer of the DocBook XSL stylesheets
claiming that the stylesheets erroneously inject
content-width='scale-to-fit'.
Just checking. If I'm confused, please shed some light.
Thanks,
Steve Whitlatch
According to the FOP Compliance page's '@content-width' section, there 
is no extended support for this property[1]. In addition, according to 
Mr. Pietschman[2], 'these properties are never used in FOP for any 
purpose.' I would take that to mean content-width (and content-height) 
are not implemented in FOP.

Looks like you'll need to get by with width  height attributes only.
Web Maestro Clay
[1]
http://xml.apache.org/fop/compliance.html#fo-property-content-width
[2]
http://marc.theaimsgroup.com/?l=fop-userm=109355016503727w=2
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error while building FOP dev1

2004-09-07 Thread Chris Bowditch
Pascal Sancho wrote:
snip/
codegen:
 [echo] Resetting codegen directory
 [echo] Generating the java files from xml resources
[style] Processing D:\cvs\xml-fop\src\codegen\encodings.xml to
D:\cvs\xml-fop\build\gensrc\o
rg\apache\fop\fonts\CodePointMapping.java
[style] Loading stylesheet
D:\cvs\xml-fop\src\codegen\code-point-mapping.xsl
BUILD FAILED
I have just run the build now and it was successful.
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.Tr
ansformerFactoryImpl not found
Looks like a classpath problem: the build cannot find Xalan. Check your 
classpath.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error while building FOP dev1

2004-09-07 Thread Jeremias Maerki
Chris, have you tried under JDK 1.3? Because Pascal tries to compile
under 1.3. Unfortunately, I'm at work on my notebook where I don't have
a current FOP HEAD to try. I can check this out this evening.

On 07.09.2004 11:26:08 Chris Bowditch wrote:
 Pascal Sancho wrote:
 
 snip/
 
  
  codegen:
   [echo] Resetting codegen directory
   [echo] Generating the java files from xml resources
  [style] Processing D:\cvs\xml-fop\src\codegen\encodings.xml to
  D:\cvs\xml-fop\build\gensrc\o
  rg\apache\fop\fonts\CodePointMapping.java
  [style] Loading stylesheet
  D:\cvs\xml-fop\src\codegen\code-point-mapping.xsl
  
  BUILD FAILED
 
 I have just run the build now and it was successful.
 
  javax.xml.transform.TransformerFactoryConfigurationError: Provider
  org.apache.xalan.processor.Tr
  ansformerFactoryImpl not found
 
 Looks like a classpath problem: the build cannot find Xalan. Check your 
 classpath.


 
Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error while building FOP dev1

2004-09-07 Thread Pascal Sancho
I've copied Xalan from my fop dir to my ant dir, and I get now up to 100 errors 
(the build limit).
Here follows pieces of return.
Pascal

compile-src:
 [echo] Compiling the sources
[javac] Compiling 293 source files to D:\cvs\xml-fop\build\classes
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\FOText.java:134: 
Undefined variable or class name: WhiteSpaceCollapse
[javac] if (textInfo.whiteSpaceCollapse == WhiteSpaceCollapse.FALSE
[javac]^
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\FOText.java:197: 
Undefined variable or class name: TextTransform
[javac] if (textInfo.textTransform == TextTransform.NONE) {
[javac]   ^
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\FOText.java:326: Constant 
expression required.
[javac] case TextTransform.NONE:
[javac] ^
[...]
[javac] 
D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\InstreamForeignObject.java:82: 
Constant expression required.
[javac] case TextAlign.CENTER:
[javac] ^
[javac] 
D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\InstreamForeignObject.java:82: 
Undefined variable or class name: TextAlign
[javac] case TextAlign.CENTER:
[javac]  ^
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Leader.java:72: 
Constant expression required.
[javac] case LeaderPattern.SPACE:
[javac] ^
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Leader.java:72: 
Undefined variable or class name: LeaderPattern
[javac] case LeaderPattern.SPACE:
[javac]  ^
[...]
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Table.java:96: 
Undefined variable orclass name: TableLayout
[javac] this.bAutoLayout = (getPropEnum(PR_TABLE_LAYOUT) == 
TableLayout.AUTO);
[javac] ^
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Table.java:99: 
Undefined variable orclass name: TableOmitHeaderAtBreak
[javac] == TableOmitHeaderAtBreak.TRUE;
[javac]^
[...]
[javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\TableCell.java:146: 
Undefined variable or class name: BorderCollapse
[javac] bSepBorders = (getPropEnum(PR_BORDER_COLLAPSE) == 
BorderCollapse.SEPARATE);
[javac]   ^
[...]
[javac] 
D:\cvs\xml-fop\src\java\org\apache\fop\fo\pagination\ConditionalPageMasterReference.java:110:
 Undefined variable or class name: PagePosition
[javac] if (pagePosition == PagePosition.REST) {
[javac] ^
[...]
[javac] 
D:\cvs\xml-fop\src\java\org\apache\fop\fo\pagination\RegionAfter.java:53: 
Undefined variable or class name: Precedence
[javac] precedence = (getPropEnum(PR_PRECEDENCE) == 
Precedence.TRUE);
[javac] ^
[...]
[javac] 
D:\cvs\xml-fop\src\java\org\apache\fop\layoutmgr\BlockContainerLayoutManager.java:77:
 Undefined variable or class name: AbsolutePosition
[javac] if (abProps.absolutePosition == AbsolutePosition.ABSOLUTE) {
[javac] ^
[...]
[javac] 
D:\cvs\xml-fop\src\java\org\apache\fop\layoutmgr\CharacterLayoutManager.java:78:
 Constant expression required.
[javac] case VerticalAlign.MIDDLE:
[javac] ^
[javac] 
D:\cvs\xml-fop\src\java\org\apache\fop\layoutmgr\CharacterLayoutManager.java:78:
 Undefined variable or class name: VerticalAlign
[javac] case VerticalAlign.MIDDLE:
[javac]  ^
[...]
[javac] Too many errors.  (The limit on reported errors is 100.)
[javac] 105 errors

BUILD FAILED
D:\cvs\xml-fop\build.xml:447: Compile failed; see the compiler error output for 
details. 

 -Message d'origine-
 De : Jeremias Maerki [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 7 septembre 2004 11:39
 À : [EMAIL PROTECTED]
 Objet : Re: Error while building FOP dev1
 
 Chris, have you tried under JDK 1.3? Because Pascal tries to 
 compile under 1.3. Unfortunately, I'm at work on my notebook 
 where I don't have a current FOP HEAD to try. I can check 
 this out this evening.
 
 On 07.09.2004 11:26:08 Chris Bowditch wrote:
  Pascal Sancho wrote:
  
  snip/
  
   
   codegen:
[echo] Resetting codegen directory
[echo] Generating the java files from xml resources
   [style] Processing 
 D:\cvs\xml-fop\src\codegen\encodings.xml to 
   D:\cvs\xml-fop\build\gensrc\o 
   rg\apache\fop\fonts\CodePointMapping.java
   [style] Loading stylesheet
   D:\cvs\xml-fop\src\codegen\code-point-mapping.xsl
   
   BUILD FAILED
  
  I have just run the build now and it was successful

Re: Error while building FOP dev1

2004-09-07 Thread Jeremias Maerki
Looks like we don't have JDK 1.3 compatibility at the moment. I think I
have seen this myself under JDk 1.3 lately.

Pascal, please use JDK 1.4 to compile if you really want to take a look
at the latest development code. Be aware that the CVS HEAD code is not
ready for production. It's only interesting for people who want to
follow our developments and/or want to help us improve FOP. The only
exception is the SVG transcoder part which is beta-quality.

Note to Devs: We should see to it that at least the Transcoders compile
again under JDK 1.3 as Batik still depends on it. Unless there is a vote
on dropping JDK 1.3 support for the rest I regard the current state as a
bug. I may have time this week to have a look at it.

On 07.09.2004 13:31:48 Pascal Sancho wrote:
 I've copied Xalan from my fop dir to my ant dir, and I get now up to 100 
 errors (the build limit).
 Here follows pieces of return.
 Pascal
 
 compile-src:
  [echo] Compiling the sources
 [javac] Compiling 293 source files to D:\cvs\xml-fop\build\classes
 [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\FOText.java:134: 
 Undefined variable or class name: WhiteSpaceCollapse
 [javac] if (textInfo.whiteSpaceCollapse == 
 WhiteSpaceCollapse.FALSE
 [javac]^
snip/


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error while building FOP dev1

2004-09-07 Thread Chris Bowditch
Jeremias Maerki wrote:
Chris, have you tried under JDK 1.3? Because Pascal tries to compile
under 1.3. Unfortunately, I'm at work on my notebook where I don't have
a current FOP HEAD to try. I can check this out this evening.
I'm running 1.4 at the moment. Ive just tried 1.3 and it fails! Not with a 
TransformerFactoryImpl class not found exception, but with the later errors 
that pascal reported.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error while building FOP dev1

2004-09-07 Thread Chris Bowditch
Jeremias Maerki wrote:
Looks like we don't have JDK 1.3 compatibility at the moment. I think I
have seen this myself under JDk 1.3 lately.
Yes, I agree.
snip/
Note to Devs: We should see to it that at least the Transcoders compile
again under JDK 1.3 as Batik still depends on it. Unless there is a vote
on dropping JDK 1.3 support for the rest I regard the current state as a
bug. I may have time this week to have a look at it.
We should be supporting 1.3, and I agree that it is a bug if FOP no longer 
compiles on 1.3.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Error while building FOP dev1

2004-09-07 Thread Pascal Sancho
I've just tried the latest SDK
That works fine with J2 SDK 1.4.2_05
Thx to Jeremias  Chris
Pascal 

 -Message d'origine-
 De : Chris Bowditch [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 7 septembre 2004 15:25
 À : [EMAIL PROTECTED]
 Objet : Re: Error while building FOP dev1
 
 Jeremias Maerki wrote:
 
  Looks like we don't have JDK 1.3 compatibility at the 
 moment. I think 
  I have seen this myself under JDk 1.3 lately.
 
 Yes, I agree.
 
 snip/
 
  Note to Devs: We should see to it that at least the Transcoders 
  compile again under JDK 1.3 as Batik still depends on it. 
 Unless there 
  is a vote on dropping JDK 1.3 support for the rest I regard the 
  current state as a bug. I may have time this week to have a 
 look at it.
 
 We should be supporting 1.3, and I agree that it is a bug if 
 FOP no longer compiles on 1.3.
 
 snip/
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please help me( Error in Servlet to run fop)

2004-08-20 Thread KS.Bhaskar
Hello Glen,

I am set path for jar files correctly and also I already
replaced my jar files with new ones. Also I am sending the log file
generated by Tomcat.

Please advise me.

And thanks for your suggestions.

Regards,
Bhaskar

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 10:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Please help me( Error in Servlet to run fop)

Hello Bhaskar, 

Looking at the error stack at the point where FOP was
invoked, it is possible you're having a problem with
the xerces and xalan jars in the servlet container.

Either (1) they're not present in either the shared/
or common/ directories of the servlet container, or
(2) they are, but they're old/buggy versions.  My
guess would be (1)--it just can't find the XML
libraries.  

HTH,
Glen


org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120
)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
at
org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
at 
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactor
yImpl.java:95)
at
org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)


--- [EMAIL PROTECTED] wrote:

 Hi everybody,
 
  
 
 I am using fop to generate report. I
 have set the path of
 JAR file properly. But when tried to create object
 for Driver() class it
 is throwing an error.
 
 I sending attachment (Error.txt) file containing
 error message and I
 using Tomcat1.4.
 
  
 
 Thanks in advance.
 
  
 
 Regards,
 
 Bhaskar
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



2004-08-20 10:51:08 HostConfig[localhost]: Deploying configuration descriptor 
admin.xml
2004-08-20 10:51:09 HostConfig[localhost]: Deploying configuration descriptor 
manager.xml
2004-08-20 10:51:09 WebappLoader[/manager]: Deploying class repositories to 
work directory C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\manager
2004-08-20 10:51:09 ContextConfig[/manager]: Configured an authenticator for 
method BASIC
2004-08-20 10:51:09 StandardManager[/manager]: Seeding random number generator 
class java.security.SecureRandom
2004-08-20 10:51:09 StandardManager[/manager]: Seeding of random number 
generator has been completed
2004-08-20 10:51:09 StandardWrapper[/manager:default]: Loading container 
servlet default
2004-08-20 10:51:09 StandardWrapper[/manager:invoker]: Loading container 
servlet invoker
2004-08-20 10:51:09 HostConfig[localhost]: Deploying web application directory 
bas
2004-08-20 10:51:09 StandardHost[localhost]: Installing web application at 
context path /bas from URL file:C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas
2004-08-20 10:51:09 WebappLoader[/bas]: Deploying class repositories to work 
directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\bas
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy class files /WEB-INF/classes to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\bas\WEB-INF\classes
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR 
/WEB-INF/lib/avalon-framework-cvs-20020806.jar to C:\Program Files\Apache 
Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\avalon-framework-cvs-20020806.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR /WEB-INF/lib/batik.jar to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\batik.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR 
/WEB-INF/lib/iflex_common_1_0_0.jar to C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas\WEB-INF\lib\iflex_common_1_0_0.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR /WEB-INF/lib/xalan-2.4.1.jar 
to C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas\WEB-INF\lib\xalan-2.4.1.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR 
/WEB-INF/lib/xercesImpl-2.2.1.jar to C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas\WEB-INF\lib\xercesImpl-2.2.1.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR /WEB-INF/lib/xml-apis.jar to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\xml-apis.jar
2004-08-20 10:51:10 StandardManager[/bas]: Seeding random number generator 
class java.security.SecureRandom
2004-08-20 10:51:10 StandardManager[/bas]: Seeding of random number generator 
has been completed
2004-08-20 10:51:10 StandardWrapper[/bas:default]: Loading container servlet 
default
2004-08-20 10:51:10 StandardWrapper[/bas:invoker]: Loading container servlet 
invoker
2004-08-20 10:51:10 HostConfig[localhost]: Deploying web application directory 
ROOT
2004-08-20 10:51:10 StandardHost[localhost]: Installing web application at 
context path  from URL file:C:\Program Files\Apache Group\Tomcat 
4.1\webapps\ROOT
2004-08-20 10:51:10 WebappLoader[]: Deploying class repositories to work 
directory C:\Program Files\Apache Group

RE: Please help me( Error in Servlet to run fop)

2004-08-20 Thread Glen Mazza
Did you also include the batik.jar and avalon.jar?  I
don't have any more answers at this stage.  You may
wish to send your question to the Tomcat-Users list,
they may be able to understand your exception list
more easily and can point you to the problem.

I would also search the Tomcat-Users and Struts-Users
(even though you're not using Struts) lists for FOP,
hopefully someone has had your problem.  Also, search
this mailing list (URL below will also get you there)
for Servlet--see if you can a simpler example that
works.

Also, what happens if you comment out the FOP portions
of your Servlet--does it work then?  

Glen

[1]
http://marc.theaimsgroup.com/?l=tomcat-userw=2r=1s=FOPq=b

--- [EMAIL PROTECTED] wrote:

 Hello Glen,
 
   I am set path for jar files correctly and also I
 already
 replaced my jar files with new ones. Also I am
 sending the log file
 generated by Tomcat.
 
 Please advise me.
 
 And thanks for your suggestions.
 
 Regards,
 Bhaskar
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 19, 2004 10:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Please help me( Error in Servlet to run
 fop)
 
 Hello Bhaskar, 
 
 Looking at the error stack at the point where FOP
 was
 invoked, it is possible you're having a problem with
 the xerces and xalan jars in the servlet container.
 
 Either (1) they're not present in either the shared/
 or common/ directories of the servlet container, or
 (2) they are, but they're old/buggy versions.  My
 guess would be (1)--it just can't find the XML
 libraries.  
 
 HTH,
 Glen
 
 

org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120
 )
   at

org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
   at

org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
   at

org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
   at 

org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactor
 yImpl.java:95)
   at

org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)
 
 
 --- [EMAIL PROTECTED] wrote:
 
  Hi everybody,
  
   
  
  I am using fop to generate report. I
  have set the path of
  JAR file properly. But when tried to create object
  for Driver() class it
  is throwing an error.
  
  I sending attachment (Error.txt) file containing
  error message and I
  using Tomcat1.4.
  
   
  
  Thanks in advance.
  
   
  
  Regards,
  
  Bhaskar
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
  2004-08-20 10:51:08 HostConfig[localhost]:
Deploying
 configuration descriptor admin.xml
 2004-08-20 10:51:09 HostConfig[localhost]: Deploying
 configuration descriptor manager.xml
 2004-08-20 10:51:09 WebappLoader[/manager]:
 Deploying class repositories to work directory
 C:\Program Files\Apache Group\Tomcat
 4.1\work\Standalone\localhost\manager
 2004-08-20 10:51:09 ContextConfig[/manager]:
 Configured an authenticator for method BASIC
 2004-08-20 10:51:09 StandardManager[/manager]:
 Seeding random number generator class
 java.security.SecureRandom
 2004-08-20 10:51:09 StandardManager[/manager]:
 Seeding of random number generator has been
 completed
 2004-08-20 10:51:09
 StandardWrapper[/manager:default]: Loading container
 servlet default
 2004-08-20 10:51:09
 StandardWrapper[/manager:invoker]: Loading container
 servlet invoker
 2004-08-20 10:51:09 HostConfig[localhost]: Deploying
 web application directory bas
 2004-08-20 10:51:09 StandardHost[localhost]:
 Installing web application at context path /bas from
 URL file:C:\Program Files\Apache Group\Tomcat
 4.1\webapps\bas
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploying
 class repositories to work directory C:\Program
 Files\Apache Group\Tomcat
 4.1\work\Standalone\localhost\bas
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy class
 files /WEB-INF/classes to C:\Program Files\Apache
 Group\Tomcat 4.1\webapps\bas\WEB-INF\classes
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/avalon-framework-cvs-20020806.jar to
 C:\Program Files\Apache Group\Tomcat

4.1\webapps\bas\WEB-INF\lib\avalon-framework-cvs-20020806.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/batik.jar to C:\Program Files\Apache
 Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\batik.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/iflex_common_1_0_0.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\iflex_common_1_0_0.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/xalan-2.4.1.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\xalan-2.4.1.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/xercesImpl-2.2.1.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\xercesImpl-2.2.1.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF

AW: AW: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-19 Thread Mosimann Matthias
Sorry but I'm very new to xml - techniques, study it for a couple of days. So 
I'm a little bit confused. I don't know what I should do for solving this 
error. I read the FAQ ... But I think there is no solution?!

Could anybody give me some advice? Many thanks for your answers. If anyone 
needs the xsl file and the xml file pls ask for them.


regards

Matthias

-Ursprüngliche Nachricht-
Von: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 16. August 2004 21:31
An: [EMAIL PROTECTED]
Betreff: Re: AW: Error while using fop: [ERROR] 
org.apache.fop.apps.FOPException: master-reference


Mosimann Matthias wrote:
 [ERROR] org.apache.fop.apps.FOPException: No meaningful layout in 
 block after many attempts.  Infinite loop is assumed.  Processing 
 halted.

FAQ (again):
  http://xml.apache.org/fop/faq.html#fop-hangs
  http://xml.apache.org/fop/faq.html#boxoverflow

I think we should update the Q title.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-19 Thread Glen Mazza
Matthias,

I would recommend looking through the on-line
tutorials offered by the commercial implementations
(at www.renderx.com, www.antennahouse.com) first in
order to learn about XSL.  

Then, run each of the FOP examples in the examples/fo
directory of the FOP distribution.  Take notes on what
you can use for your own work--look at the underlying
code.

Although in a ruder tense than I would use, I think
Michael Kay's recent advice for an XSLT newbie [1] may
be relevant here.  Learn a bit more before you start
working!

Regards,
Glen

[1]
http://www.biglist.com/lists/xsl-list/archives/200407/msg00114.html

--- Mosimann Matthias [EMAIL PROTECTED]
wrote:

 Sorry but I'm very new to xml - techniques, study it
 for a couple of days. So I'm a little bit confused.
 I don't know what I should do for solving this
 error. I read the FAQ ... But I think there is no
 solution?!
 
 Could anybody give me some advice? Many thanks for
 your answers. If anyone needs the xsl file and the
 xml file pls ask for them.
 
 
 regards
 
 Matthias
 
 -Ursprüngliche Nachricht-
 Von: J.Pietschmann [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 16. August 2004 21:31
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: Error while using fop: [ERROR]
 org.apache.fop.apps.FOPException: master-reference
 
 
 Mosimann Matthias wrote:
  [ERROR] org.apache.fop.apps.FOPException: No
 meaningful layout in 
  block after many attempts.  Infinite loop is
 assumed.  Processing 
  halted.
 
 FAQ (again):
   http://xml.apache.org/fop/faq.html#fop-hangs
   http://xml.apache.org/fop/faq.html#boxoverflow
 
 I think we should update the Q title.
 
 J.Pietschmann
 
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: AW: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-19 Thread Mosimann Matthias
Hi Glen


Today I bought O'Reillys XSL - FO book written by dave pawson. I think this 
book answer me quite a lot of questions, so I don't have to post the question 
here. Thank you for your good tipps an renderex.com and antennahouse.com! 

Many thanks for your answers!


regards

Matthias

-Ursprüngliche Nachricht-
Von: Glen Mazza [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 19. August 2004 13:47
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: Error while using fop: [ERROR] 
org.apache.fop.apps.FOPException: master-reference


Matthias,

I would recommend looking through the on-line
tutorials offered by the commercial implementations
(at www.renderx.com, www.antennahouse.com) first in
order to learn about XSL.  

Then, run each of the FOP examples in the examples/fo
directory of the FOP distribution.  Take notes on what
you can use for your own work--look at the underlying
code.

Although in a ruder tense than I would use, I think
Michael Kay's recent advice for an XSLT newbie [1] may
be relevant here.  Learn a bit more before you start
working!

Regards,
Glen

[1] http://www.biglist.com/lists/xsl-list/archives/200407/msg00114.html

--- Mosimann Matthias [EMAIL PROTECTED]
wrote:

 Sorry but I'm very new to xml - techniques, study it
 for a couple of days. So I'm a little bit confused.
 I don't know what I should do for solving this
 error. I read the FAQ ... But I think there is no
 solution?!
 
 Could anybody give me some advice? Many thanks for
 your answers. If anyone needs the xsl file and the
 xml file pls ask for them.
 
 
 regards
 
 Matthias
 
 -Ursprüngliche Nachricht-
 Von: J.Pietschmann [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 16. August 2004 21:31
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: Error while using fop: [ERROR]
 org.apache.fop.apps.FOPException: master-reference
 
 
 Mosimann Matthias wrote:
  [ERROR] org.apache.fop.apps.FOPException: No
 meaningful layout in
  block after many attempts.  Infinite loop is
 assumed.  Processing
  halted.
 
 FAQ (again):
   http://xml.apache.org/fop/faq.html#fop-hangs
   http://xml.apache.org/fop/faq.html#boxoverflow
 
 I think we should update the Q title.
 
 J.Pietschmann
 
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please help me( Error in Servlet to run fop)

2004-08-19 Thread KS.Bhaskar








Hi everybody,



 I
am using fop to generate report. I have set the path of JAR file properly. But
when tried to create object for Driver() class it is throwing an error.

I sending attachment (Error.txt) file containing error
message and I using Tomcat1.4.



Thanks in advance.



Regards,

Bhaskar

















 






javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:479)


java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentScannerImpl.java:249)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:245)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source)
at 
org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown
 Source)
at 
org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:367)
at 
org.apache.xerces.parsers.StandardParserConfiguration.(StandardParserConfiguration.java:198)
at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown 
Source

Re: Please help me( Error in Servlet to run fop)

2004-08-19 Thread Glen Mazza
Hello Bhaskar, 

Looking at the error stack at the point where FOP was
invoked, it is possible you're having a problem with
the xerces and xalan jars in the servlet container.

Either (1) they're not present in either the shared/
or common/ directories of the servlet container, or
(2) they are, but they're old/buggy versions.  My
guess would be (1)--it just can't find the XML
libraries.  

HTH,
Glen


org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
at
org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
at 
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95)
at
org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)


--- [EMAIL PROTECTED] wrote:

 Hi everybody,
 
  
 
 I am using fop to generate report. I
 have set the path of
 JAR file properly. But when tried to create object
 for Driver() class it
 is throwing an error.
 
 I sending attachment (Error.txt) file containing
 error message and I
 using Tomcat1.4.
 
  
 
 Thanks in advance.
 
  
 
 Regards,
 
 Bhaskar
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: AW: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-19 Thread J.Pietschmann
Mosimann Matthias wrote:
Sorry but I'm very new to xml - techniques, study it for a couple of
days. So I'm a little bit confused. I don't know what I should do for
solving this error. I read the FAQ ... But I think there is no
solution?!

You've probably got an image or a block-container or something
else with a width and/or height which exceeds the available
space. Other possible reasons include wrong region dimensions
in the layout master and allocating not enough space for table
columns or list labels.
Check all width, height, extent, column-width and indent settings.
A common strategy is to generate the FO document as a file
 http://xml.apache.org/fop/running.html#check-input
then carefully delete parts of the content until the problem
disappeared, then undelete it and delete something else, until
the document is small enough that the cause of the problem
is obvious.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-16 Thread Mosimann Matthias
Hi everyone


I recieve the following error when I want to translate a xml and it's
xsl stylesheet to pdf:

sh fop.sh -xsl foptest.xsl -xml foptest.xml foptest.pdf
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] org.apache.fop.apps.FOPException: master-reference
'der-einzige-seitentyp' for fo:page-sequence matches no
simple-page-master or page-sequence-master


Anyone could help me? If it's neccessary I will send you the xml and the
xsl file!

Regards and many thanks for your answers!
Matthias 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-16 Thread Glen Mazza
I suspect there is something wrong with your
transformation--the fo:layout-master-set is not
getting copied over into the FO document.

FOP is claiming that your fo:layout-master-set (at the
top of your FO) has no simple-page-master or
page-sequence-master called der-einzige-seitentyp. 
Please check for the fo:layout-master-set in the
resultant file and make sure it has a
der-einzige-seitentyp.  (Use Xalan for this.)

You may also wish to look at examples/pagination to
see the use of layout-master-set.  

Glen

--- Mosimann Matthias [EMAIL PROTECTED]
wrote:


 [ERROR] org.apache.fop.apps.FOPException:
 master-reference
 'der-einzige-seitentyp' for fo:page-sequence matches
 no
 simple-page-master or page-sequence-master
 
 
 Anyone could help me? If it's neccessary I will send
 you the xml and the
 xsl file!
 
 Regards and many thanks for your answers!
 Matthias 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-16 Thread Mosimann Matthias
Hi Glen

FOP is claiming that your fo:layout-master-set (at the
top of your FO) has no simple-page-master or page-sequence-master called 
der-einzige-seitentyp. 
Please check for the fo:layout-master-set in the
resultant file and make sure it has a
der-einzige-seitentyp.  (Use Xalan for this.)

- Jep that helped me (stupid mistake)! Thank you! But Now I reieve another 
error:

sh fop.sh -xml foptest.xml -xsl foptest.xsl -pdf foptest.pdf

   
[INFO] FOP 0.20.4
[INFO] building formatting object tree
[INFO] [1]
.
.
.
[INFO] [50
[ERROR] org.apache.fop.apps.FOPException: No meaningful layout in block after 
many attempts.  Infinite loop is assumed.  Processing halted.

Anyone could help me again? Thank you again for your supports!


Regards

Matthias

-Ursprüngliche Nachricht-
Von: Glen Mazza [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 16. August 2004 13:30
An: [EMAIL PROTECTED]
Betreff: Re: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: 
master-reference


I suspect there is something wrong with your transformation--the 
fo:layout-master-set is not getting copied over into the FO document.

FOP is claiming that your fo:layout-master-set (at the
top of your FO) has no simple-page-master or page-sequence-master called 
der-einzige-seitentyp. 
Please check for the fo:layout-master-set in the
resultant file and make sure it has a
der-einzige-seitentyp.  (Use Xalan for this.)

You may also wish to look at examples/pagination to
see the use of layout-master-set.  

Glen

--- Mosimann Matthias [EMAIL PROTECTED]
wrote:


 [ERROR] org.apache.fop.apps.FOPException:
 master-reference
 'der-einzige-seitentyp' for fo:page-sequence matches
 no
 simple-page-master or page-sequence-master
 
 
 Anyone could help me? If it's neccessary I will send
 you the xml and the
 xsl file!
 
 Regards and many thanks for your answers!
 Matthias
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-16 Thread J.Pietschmann
Mosimann Matthias wrote:
[ERROR] org.apache.fop.apps.FOPException: No meaningful layout in
block after many attempts.  Infinite loop is assumed.  Processing
halted.
FAQ (again):
 http://xml.apache.org/fop/faq.html#fop-hangs
 http://xml.apache.org/fop/faq.html#boxoverflow
I think we should update the Q title.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tutalii error??

2004-07-21 Thread Raúl Herranz Serrano




In OC4J with FOP 0.20.5... what is the problem with 
this piece of code?:

Tutalii: 
C:\desarrollo\java\install\oc4j\j2ee\home\applications\QuemasFOP\QuemasFOP\WEB-INF\lib/fop.jar[INFO] 
[1]


The code thatis generating this 
'error':

public ByteArrayOutputStream transform(Source 
xmlSrc, Source xslSrc) throws TransformerConfigurationException, 
TransformerException { 
ByteArrayOutputStream out = new ByteArrayOutputStream(); 
org.apache.fop.configuration.Configuration.put("baseDir","C:/desarrollo/java/install/oc4j/j2ee/home/applications/QuemasFOP/QuemasFOP/pages/baseDir"); 
Driver driver = new Driver(); Logger logger = new 
ConsoleLogger(ConsoleLogger.LEVEL_INFO); 
MessageHandler.setScreenLogger(logger); 
driver.setLogger(logger); 
driver.setRenderer(Driver.RENDER_PDF); 
driver.setOutputStream(out); TransformerFactory 
transformerFactory = TransformerFactory.newInstance(); 
Transformer transformer = 
transformerFactory.newTransformer(xslSrc); Result res = 
new SAXResult(driver.getContentHandler()); 
transformer.transform(xmlSrc, res); //this is the point where I get the 
tutalii error
 return out;
}


Thanks a lot!

 Raul Herranz 
(Spain)


Re: [XSL-FO] tutalii error??

2004-07-21 Thread Raúl Herranz Serrano

I have found that this is an error with the xml libraries that come with the
oc4j... I have to start the oc4j server with the following options:

-Xbootclasspath/a:/path to xml-apis.jar
-Xbootclasspath/a:/path to xalan-2.4.1.jar
-Xbootclasspath/a:/path to xercesImpl-2.2.1.jar

as I said before: amazing!! :)

Thanks everybody!!

Raul (Spain)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XMLParser error with unicode characters in XML file.

2004-07-11 Thread Mike Ferrando
Manoj,

For the XML declaration, the encoding attribute value is specified by
the IANA values. The uppercase value of 'utf-8' is the prefered form
of the character set.

This is the first time I have seen the need for choosing the
preferred value, but I will make a note of it for my stylesheets.

You can find a list of character set values online (below).

Mike Ferrando
Washington, DC

IANA character set spec
http://www.iana.org/assignments/character-sets

W3c XML 1.0 spec
http://www.w3.org/TR/2004/REC-xml-20040204/#sec-existing-stds
--- [EMAIL PROTECTED] wrote:
 
 Thanks for the reply. However this problem has nothing to do with
 data
 transfer as I am creating XML file on the fly. So if is installed
 on Unix
 file gets created on Unix and same for windows...
 
 My guess turned out right. On Unix you need to specify the encoding
 as
 'UTF-8' ( case sensitive ) while on windows 'utf8' ( and for that
 matter
 'UTF-8') works fine..
 
 FYI
 Manoj
 
 
 
 

   
   J.Pietschmann  
   
   [EMAIL PROTECTED]To:  
 [EMAIL PROTECTED]  
   e   cc: 
   
Subject:  Re:
 XMLParser error with unicode characters in XML   
   07/08/2004 03:59  file.  
   
   AM   
   
   Please respond to
   
   fop-user 
   

   

   
 
 
 
 
 [EMAIL PROTECTED] wrote:
  My boss just called me and informed me that on UNIX ( where we
 have our
  jars and where we run our application server) its getting an
 error
  saying encoding error utf8. It worked on windows 2000 pro which
 I am
  using. Does the utf8 string needs to be different on unix?
 
 The most likely problem is that the files got corrupted during
 transfer.
 
 You should definitely get some education about encoding issues
 rather
 than stumbling along blindly. Start here for the XML related
 problems
   http://skew.org/xml/tutorial/
 There are some websites dealing with encoding issues in Java and
 with
 transferring files across machines as well.
 
 J.Pietschmann
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XMLParser error with unicode characters in XML file.

2004-07-09 Thread Manoj_Nair

Thanks for the reply. However this problem has nothing to do with data
transfer as I am creating XML file on the fly. So if is installed on Unix
file gets created on Unix and same for windows...

My guess turned out right. On Unix you need to specify the encoding as
'UTF-8' ( case sensitive ) while on windows 'utf8' ( and for that matter
'UTF-8') works fine..

FYI
Manoj





  
  J.Pietschmann   
  
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED] 
 
  e   cc:  
  
   Subject:  Re: XMLParser error 
with unicode characters in XML   
  07/08/2004 03:59  file.   
  
  AM
  
  Please respond to 
  
  fop-user  
  

  

  




[EMAIL PROTECTED] wrote:
 My boss just called me and informed me that on UNIX ( where we have our
 jars and where we run our application server) its getting an error
 saying encoding error utf8. It worked on windows 2000 pro which I am
 using. Does the utf8 string needs to be different on unix?

The most likely problem is that the files got corrupted during transfer.

You should definitely get some education about encoding issues rather
than stumbling along blindly. Start here for the XML related problems
  http://skew.org/xml/tutorial/
There are some websites dealing with encoding issues in Java and with
transferring files across machines as well.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: XMLParser error with unicode characters in XML file.

2004-07-08 Thread Manoj_Nair
My boss just called me and informed me that on UNIX ( where we have our jars and where we run our application server) its getting an error saying "encoding error utf8". It worked on windows 2000 pro which I am using. Does the utf8 string needs to be different on unix?Paging Vinuta ThanksManoj-Forwarded by Manoj Nair/LA/SPE on 07/07/2004 06:08PM -To: [EMAIL PROTECTED]From: [EMAIL PROTECTED]Date: 07/07/2004 11:01AMSubject: RE: XMLParser error with unicode characters in XML file.ThanksVinuta!Thatworkedfine.IhavetestedwithSpanish,German,Italian,FrenchandPortuguese.IamstilltotestJapanese(whichmightbeapaininneck)...Willkeepyouposted...Thanksagaintoallwhoreplied..ManojVinutaNagaraddi[EMAIL PROTECTED]To:[EMAIL PROTECTED]muscle.comcc:Subject:RE:XMLParsererrorwithunicodecharactersinXML07/06/200402:31file.PMPleaserespondtofop-userIhadasimilarproblem.Iamwritingtoafileusingthefollowingcode:FileoutputDir=newFile(outputPath);outputDir.mkdir();StringfoFile=outputPath+"/image.fo";log.debug("Writingtofile"+foFile);FileOutputStreamfileoutstream=newFileOutputStream(foFile);Writerwriter=newOutputStreamWriter(fileoutstream,"utf8");writer.write(foDoc.toString().trim());writer.close();Theimportantpartofthecodeiswritingtothefileusingutf8encoding.VinutaNagaraddi-OriginalMessage-From:[EMAIL PROTECTED][mailto:[EMAIL PROTECTED]Sent:Tuesday,July06,20045:28PMTo:[EMAIL PROTECTED]Cc:fop-dev@xml.apache.orgSubject:XMLParsererrorwithunicodecharactersinXMLfile.IamgettingaXMLparsingerrorfromweblogic.apache.xerceswhenIparseaXMLdocumentwhichcontainsaccentedcharacters.ThisiswhatIamdoing1)Somedatabasecolumnshaveaccenteddataforspanish,japaneseetclanguageslikeNúmerodeidentificação:andnúmerodeidentificación.2)IamreadingthisdataandcreatingaXMLfileusingsomeprocessingandthenwritingthefileonthediscusingweblogic.xml.stream.XMLOutputStreamflush()method.3)ThenIamusingFOPtorenderthisXMLinPDF.Intherenderingprocesstheweblogic.apache.xerces.XMLparsergetscalledtoparsetheXML.Heretheparserthrowsaorg.xml.sax.SAXParserException(AninvalidXMLcharacter(Unicode:0xfa)wasfoundintheelementcontentofthedocument).IwasundertheimpressionthatXMLParsershouldtakecareoftheaccentedcharacters.WhenIopentheXMLfilewhichIcreatedinXMLSPYIsee"box"characterslike"clientendeidentificaci".Pleaseletmeknowhowshouldihandlemycodehere.ThanksManojThanks-Tounsubscribe,e-mail:[EMAIL PROTECTED]Foradditionalcommands,e-mail:[EMAIL PROTECTED]

Re: XMLParser error with unicode characters in XML file.

2004-07-08 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
My boss just called me and informed me that on UNIX ( where we have our 
jars and where we run our application server) its getting an error 
saying encoding error utf8. It worked on windows 2000 pro which I am 
using. Does the utf8 string needs to be different on unix?
The most likely problem is that the files got corrupted during transfer.
You should definitely get some education about encoding issues rather
than stumbling along blindly. Start here for the XML related problems
 http://skew.org/xml/tutorial/
There are some websites dealing with encoding issues in Java and with
transferring files across machines as well.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: XMLParser error with unicode characters in XML file.

2004-07-07 Thread Manoj_Nair

Thanks Vinuta !

That worked fine. I have tested with Spanish,German,Italian, French and
Portuguese. I am still to test Japanese ( which might be a pain in neck
)... Will keep you posted...

Thanks again to all who replied..
Manoj






  
  Vinuta Nagaraddi  
  
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED] 
 
  muscle.com  cc:  
  
   Subject:  RE: XMLParser error 
with unicode characters in XML   
  07/06/2004 02:31  file.   
  
  PM
  
  Please respond to 
  
  fop-user  
  

  

  




I had a similar problem.  I am writing to a file using the following code:



File outputDir = new File(outputPath);
outputDir.mkdir();

String foFile = outputPath + /image.fo;
log.debug(Writing to file  + foFile);
FileOutputStream fileoutstream = new FileOutputStream(foFile);
Writer writer = new OutputStreamWriter(fileoutstream, utf8);
writer.write(foDoc.toString().trim());
writer.close();




The important part of the code is writing to the file using utf8 encoding.

Vinuta Nagaraddi

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 5:28 PM
To: [EMAIL PROTECTED]
Cc: fop-dev@xml.apache.org
Subject: XMLParser error with unicode characters in XML file.

I am getting a XML parsing error from weblogic.apache.xerces when I parse a
XML
document which contains accented characters.

This is what I am doing
1) Some database columns have accented data for spanish,japanese etc
languages
like Nmero de identificao: and nmero de identificacin.

2) I am reading this data and creating a XML file using some processing and
then writing the file on the disc using weblogic.xml.stream.XMLOutputStream
flush() method.

3) Then I am using FOP to render this XML in PDF. In the rendering process
the weblogic.apache.xerces.XMLparser gets called to parse the XML. Here the
parser throws a org.xml.sax.SAXParserException ( An invalid XML character
(Unicode: 0xfa) was found in the element content of the document).

I was under the impression that XMLParser should take care of the accented
characters. When I open the XML file which I created in XML SPY I see box
characters like cliente  n de identificaci.

Please let me know how should i handle my code here.

Thanks
Manoj

Thanks




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Re: fo:marker initial child error

2004-07-01 Thread Louis . Masters

Here is a sample table cell from the xalan processor (I stripped out almost
anything that might cause an issue):

fo:table-row
fo:table-cell
fo:marker
marker-class-name=bill_of_ladingRBHZamp;P00111/fo:markerfo:marker
 marker-class-name=carrier/fo:marker
marker-class-name=vesselVoyage//fo:marker
/fo:table-cell
/fo:table-row

I get the following errors:

[ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be
unique for same parent
[ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be
unique for same parent

It looks like the first marker is OK, but anything after that generates the
error.

Anything stand out?
-Lou




 
  J.Pietschmann   
 
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
 
  de  cc:  
 
   Subject: Re: fo:marker initial 
child error
  06/27/2004 18:01  
 
  Please respond
 
  to fop-user   
 

 

 



[EMAIL PROTECTED] wrote:
 I'm having a problem with my markers in fop 0.20.3.  The marker data
 displays correctly in the PDF, but I get a log full of the following
 message:

 1088163278596 - ERROR  [fop]:fo:marker must be an initial child,and
 'marker-class-name' must be unique for same parent

The most common reason for the must be an initial child message is
that there is whitespace before the marker. Your code snippet doesn't
give hints for this though. Try to run the XSL transformation
standalone and check the result.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fo:marker initial child error

2004-07-01 Thread Clay Leeds
On Jul 1, 2004, at 7:57 AM, [EMAIL PROTECTED] wrote:
Here is a sample table cell from the xalan processor (I stripped out  
almost
anything that might cause an issue):

fo:table-row
fo:table-cell
fo:marker
marker-class-name=bill_of_ladingRBHZamp;P00111/fo:markerfo: 
marker
 marker-class-name=carrier/fo:marker
marker-class-name=vesselVoyage//fo:marker
/fo:table-cell
/fo:table-row

I get the following errors:
[ERROR]: fo:marker must be an initial child,and 'marker-class-name'  
must be
unique for same parent
[ERROR]: fo:marker must be an initial child,and 'marker-class-name'  
must be
unique for same parent

It looks like the first marker is OK, but anything after that  
generates the
error.

Anything stand out?
-Lou
Since they must be unique, they can only be on the page once. I don't  
know what you're trying to do, but the way I use them is to place a  
Continued on next page item. My solution was to place the marker at  
the *end* of my document--you could place yours after the table (the  
table-footer probably wouldn't work since it needs to be unique):

fo:page-sequence master-reference=repeating  
force-page-count=no-force
  fo:static-content flow-name=xsl-region-before
fo:block padding=0pt xsl:use-attribute-sets=attributes_DEFAULT
  xsl:call-template name=tmpHeader/
/fo:block
  /fo:static-content
  fo:static-content flow-name=xsl-region-after
fo:block xsl:use-attribute-sets=attributes_DEFAULT
  xsl:call-template name=tmpFooter/
/fo:block
  /fo:static-content
  fo:flow flow-name=xsl-region-body
fo:block xsl:use-attribute-sets=attributes_DEFAULT
  xsl:call-template name=tmpBody/
  fo:block padding=0pt font-size=1pt
fo:marker marker-class-name=table-continued/
  /fo:block
/fo:block
  /fo:flow
/fo:page-sequence

Then I call it like this:
!-- REGION-AFTER: tmpFooter TEMPLATE --
xsl:template name=tmpFooter
  fo:block padding-left=18pt
fo:table border=0pt padding-bottom=0pt padding-right=0pt  
padding-before=4pt table-layout=fixed
  fo:table-column column-width=20cm/
  fo:table-body
fo:table-row
  fo:table-cell text-align=left padding-left=6pt
fo:block text-align=left font-weight=bold
  fo:retrieve-marker retrieve-class-name=table-continued  
retrieve-position=last-starting-within-page  
retrieve-boundary=page/
/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
  /fo:block
  ..
 /xsl:template

Hope this information is useful...
Web Maestro Clay
p.s. Also, I suspect markers were improved in fop-0.20.4  fop-0.20.5.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fo:marker initial child error

2004-07-01 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
Here is a sample table cell from the xalan processor (I stripped out almost
anything that might cause an issue):
fo:table-row
fo:table-cell
fo:marker
I'd suspect the line feed before the fo:marker might cause the
problem. Every marker will trigger this.
I also suggest to put the markers into a fo:block in the cell
(there must be at least one anyway, I vaguely remember problems
if a marker was an immediate child of a fo:table-row or fo:table-cell.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fo:marker initial child error

2004-07-01 Thread Louis . Masters

OK, I can get it to work if I manually remove the carriage returns and
place the marker inside an inline:

fo:inlinefo:marker
marker-class-name=marker__bill_of_ladingRBHZamp;P00111/fo:marker/fo:inline
fo:inlinefo:marker marker-class-name=marker__carrier//fo:inline


However, xalan will not let me do this.  When run the code through it, I
get:

fo:inline
fo:marker
marker-class-name=marker__bill_of_ladingRBHZamp;P00111/fo:marker
/fo:inline
fo:inline
fo:marker marker-class-name=marker__carrier/
/fo:inline

Which generates the error.  It looks like I might have to move this
discussion to the xalan group or try to implement what Clay showed on an
earlier thread.

-Lou




 
  J.Pietschmann   
 
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
 
  de  cc:  
 
   Subject: Re: fo:marker initial 
child error
  07/01/2004 13:13  
 
  Please respond
 
  to fop-user   
 

 

 



[EMAIL PROTECTED] wrote:

 Here is a sample table cell from the xalan processor (I stripped out
almost
 anything that might cause an issue):

 fo:table-row
 fo:table-cell
 fo:marker

I'd suspect the line feed before the fo:marker might cause the
problem. Every marker will trigger this.

I also suggest to put the markers into a fo:block in the cell
(there must be at least one anyway, I vaguely remember problems
if a marker was an immediate child of a fo:table-row or fo:table-cell.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fo:marker initial child error

2004-07-01 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
OK, I can get it to work if I manually remove the carriage returns and
place the marker inside an inline:
...
However, xalan will not let me do this.
The line feed probably comes from the input. Check whether
xsl:strip-space elemets=*, or a better selection of elements,
fixes this. If this doesn't help, or discards whitespace elsewhere,
refine the template which generates the FO containing the
markers.
Otherwise, check whether you've set indent=yes in the xsl:output
element, although this shouldn't have an effect if you run FOP
with the xml+xsl command line.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fo:marker initial child error

2004-06-27 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I'm having a problem with my markers in fop 0.20.3.  The marker data
displays correctly in the PDF, but I get a log full of the following
message:
1088163278596 - ERROR  [fop]:fo:marker must be an initial child,and
'marker-class-name' must be unique for same parent
The most common reason for the must be an initial child message is
that there is whitespace before the marker. Your code snippet doesn't
give hints for this though. Try to run the XSL transformation
standalone and check the result.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error in output to PostScript

2004-06-22 Thread Jeremias Maerki

On 22.06.2004 11:18:27 Renzo Callant wrote:
 Problem solved. I removed the check from PSStream.java.
 
 I do wonder why this check was in the code.

I've explained, haven't I?

 Can this be left out in a future release ?

Yes, I've just disabled it in CVS HEAD.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error in output to PostScript

2004-06-21 Thread Renzo Callant








Hi all,



Im trying to render a PostScript file with
FOP. 

But i get the following error :





[DEBUG] rendering areas to PostScript

[INFO] [1]

[DEBUG] Last page-sequence produced 1 pages.

[INFO] [2]

[ERROR] PostScript Command exceeded limit of 255 characters

org.apacge.fop.apps.FOPException: PostScript command exceeded
limit of 255 characters





Ive used the same .fo to render a .pdf of 4
pages, no problem with that.

Why do i get this error in generating a .ps ? 



Regards,



Renzo Callant










Re: Error in output to PostScript

2004-06-21 Thread Jeremias Maerki
Uh oh. My fault. You hit a bug. This happens in
org.apache.fop.render.ps.PSStream.java. I think I read somewhere that a
single line of PostScript code shouldn't contain more than 256
characters. That's probably why I wrote that check. But unfortunately, I
can't find the reference anymore.

A work-around is to fetch the FOP 0.20.5 sources, remove the check from
PSStream.java and recompile the whole thing. If your PostScript RIP
doesn't choke on lines longer than 256 characters you've won.

If that doesn't work, we need to find out why this happened. In this
case you'd have to send an XSL-FO document that reproduces the bug. One
immediate way to narrow down the search: Use -d on the FOP command line
and send the stacktrace. But it probably won't be enough.

On 21.06.2004 16:04:19 Renzo Callant wrote:
 I'm trying to render a PostScript file with FOP. 
 But i get the following error :
  
 ...
 [DEBUG] rendering areas to PostScript
 [INFO] [1]
 [DEBUG] Last page-sequence produced 1 pages.
 [INFO] [2]
 [ERROR] PostScript Command exceeded limit of 255 characters
 org.apacge.fop.apps.FOPException: PostScript command exceeded limit of
 255 characters
 ...
  
 I've used the same .fo to render a .pdf of 4 pages, no problem with
 that.
 Why do i get this error in generating a .ps ? 



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IPD error although width=100%

2004-05-26 Thread Sandy . Soesilo

...
hi..

i got this error message everytime i run my fop
:
[WARNING] Sum of fixed column widths 793693 greater than maximum specified
IPD 0
[ERROR] At least one of minimum, optimum, or maximum IPD must be specified
on table.
[ERROR] At least one of minimum, optimum, or maximum IPD must be specified
on table.
[WARNING] Sum of fixed column widths 793700 greater than maximum specified
IPD 785197

i already tried to set all the column width to 100% , but it didn't make any
difference
..as i found it from the archive .. J.Pietschmann wrote this


Your options: specify all column widths in absolute units, or specify the
table width. 
The table width can be given as percentage (contrary to column widths), 
so you can have a table spanning the whold page width by specifying
width=100%. 


can I please attach my .fo file to the list so somebody can take a look of
my file and check it,..

thanks a lot in advance


sandy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IPD error although width=100%

2004-05-26 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
...
hi..
i got this error message everytime i run my fop
:
[WARNING] Sum of fixed column widths 793693 greater than maximum specified
IPD 0
This error is simply saying that youve declared columns whose total width is 
greater than the width of the page.

Column widths need to be specified either as fixed values, e.g. 5cm, 25mm, etc 
or using the proportional-column-width() function. You cannot use percentages 
in column widths. You do not need to specify a width for the table itself.

snip/
can I please attach my .fo file to the list so somebody can take a look of
my file and check it,..
you may post a small snippet, showing the table definition.
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FOP 0.20.5 PDF Renderer yields [INFO] 1 [ERROR] null - no FAQ or Web information available

2004-05-21 Thread Kyle Partridge

Thank you for your help, Chris.

I must have missed that item when I was going through the compliance
page!

Kyle

 
Chris Bowditch wrote:
snip
block-containers are not fully implemented in FOP, and have some
restrictions. 
   These are listed on the compliance page:

http://xml.apache.org/fop/compliance.html#fo-object-block-container

Basically the error you see above is caused when the block-container is
not a 
direct child of fo:flow.

Chris
/snip



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



format-number rounding error

2004-05-13 Thread lijun zou
Hi, I am trying to generate PDF using FOP. 
But I got a rounding error when using the following
fo script
fo:block
xsl:value-of select=format-number(0.5,'0')/
/fo:block

The result from fop is
0
instead of 
1

Is this a bug?
How do we get around of it?

Thanks

LZ




__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: format-number rounding error

2004-05-13 Thread Chris Bowditch
lijun zou wrote:
Hi, I am trying to generate PDF using FOP. 
But I got a rounding error when using the following
fo script
fo:block
xsl:value-of select=format-number(0.5,'0')/
/fo:block
This is not a rounding error You have specified your format to be 0, so 
the string 0 is always output. I think what you need is:

xsl:value-of select=format-number(0.5,'#,##0.0')/
snip/
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: format-number rounding error

2004-05-13 Thread Chris Bowditch
lijun zou wrote:
No, It is an error.
'0' is a pattern, meaning round to integer.
Perhaps you are right. But this is really the wrong forum for this question as 
its a pure xslt question. You will get better answers on the xsl-list:

http://lists.mulberrytech.com/xsl-list/
I use other formatter, the result is ok.
Its the XSLT processor that is responsible for the format-number() function, 
FOP uses Xalan by default. What XSLT processor is this other formatter using?

snip/
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: format-number rounding error

2004-05-13 Thread Andreas L. Delmelle
 -Original Message-
 From: Chris Bowditch [mailto:[EMAIL PROTECTED]

 lijun zou wrote:

  No, It is an error.
  '0' is a pattern, meaning round to integer.

 Perhaps you are right. But this is really the wrong
 forum for this question as its a pure xslt question.
 You will get better answers on the xsl-list:

Hi,

A pure XSLT question indeed, but I'm wondering why the OP doesn't simply use
the round() function (which does *exactly* what he needs)


Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



feature not implemented error

2004-02-27 Thread Iorio, Lou
I'm trying to produce pdf output from docbook using the docbook-xsl 
fo stylesheet as described in DocBook XSL, the Definitive Guide. The
same XML file works fine when used with the html xsl template. Using
the fo template, I get this every time, with the error repeating a
couple 
of dozen times:

ouch
~/home/vprogs\ fop.sh new.fo new.pdf
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] property - background-position-horizontal is not 
implemented yet.
[ERROR] property - background-position-vertical is not 
implemented yet. Error creating background image: Error while 
recovering Image Informations (htt
://docbook.sourceforge.net/release/images/draft.png) : Connection 
refused: conn
ct
/ouch

I've tried running the fo through fo-patch-for-fop.xsl with no change.
I've tried several different XML files with no luck.


Any help?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: feature not implemented error

2004-02-27 Thread J.Pietschmann
Iorio, Lou wrote:
[ERROR] property - background-position-horizontal is not 
implemented yet.
[ERROR] property - background-position-vertical is not 
implemented yet.
Just ignore them. Alternatively, patch whatever stylesheet you use
to avoud putting the background-position-horizontal and
background-position-vertical in. It shouldn't be too hard to find
them.
Error creating background image: Error while 
recovering Image Informations (htt
://docbook.sourceforge.net/release/images/draft.png) : Connection 
refused: conn
This means you can't get the image from sourceforge. This may
happen for a varity of reasons, most probably a firewall or
because the SF server just experiences a load peak.
I think there is a parameter which controls whether the document
is marked as draft, check the docbook-xsl documentation.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error areas pending text probably lost

2004-02-10 Thread Abhijit Junnare
So there is nothing that I can really do but when the
problem appears change my source fo ( or source xml in
my case)
Thanks for the help.
Abhi
--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Andreas L. Delmelle wrote:
  Nested inlines... My guess is: there's the bugger!
 
 Correct.
 
  Can you try rendering again, but replacing the
 inner fo:inline in the above
  snippet with an fo:wrapper,
 
 Won't work. The problem is as follows: The line
 layout is
 called with a bunch of characters. It is scanned for
 possible
 line breaks, more or less whitespace (which is
 incomplete in
 itself). If the character sequence is exhausted
 before a break
 possibility is encountered but there's still space
 left in
 the line, the text snippet processed so far is
 stored in
 the pending area list, because it might be wrapped
 to the
 next line. Upon the next call, scanning proceeds,
 and if
 the line is full without finding a break possiblity,
 processing is unwound unto the block, which
 generates a new
 line. This new line grabs the pending area list from
 the
 previous line and adds it to itself, because it's
 word content
 which had been wrapped.
 
 The problem occurs if the overflowed line is at the
 end of the
 page, because the block layout code which would
 otherwise
 generate a new line returns up to the page layout
 loop.
 New block areas are created, the link to the line
 with the
 non-empty pending area list is lost, and the new
 line starts
 without the wrapped text. The error message is
 generated in
 the renderer which simply looks at the pending area
 list of
 the line, which should have been emptied.
 
 The problem occurs rarely because it only happens if
 a word is
 fragmented so that the pending area list is filled.
 Because
 some code accumulates the SAX character events, only
 inline
 FOs which mark parts of a word may cause this. The
 only way
 around the bug is to eliminate the inline FOs, or
 fine tune
 display space in order to avoid having the content
 in question
 falling at the edge of a page.
 
 A similar, but code-wise unrelated bug occurs when
 an inline
 graphic is added which is too high to fit the
 available space
 on the page: the text already in the line is lost.
 Fortunately,
 FOP can't cope with dynamic line height anyway, so
 people
 rarely do this.
 
 
 J.Pietschmann
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error areas pending text probably lost

2004-02-09 Thread Abhijit Junnare
I am generating PDFs from a XML using FOP. I am
getting an error saying

[ERROR] Areas pending, text probably lost in line this
applies in all the cases except when

I look at the PDF and see that the word after 'when'
is missing the first letter. Is there a way to fix
this problem or why am I getting this error?
Any help will be appreciated.
Thanks,
Abhi

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error areas pending text probably lost

2004-02-09 Thread Andreas L. Delmelle
 -Original Message-
 From: Abhijit Junnare [mailto:[EMAIL PROTECTED]

 I am generating PDFs from a XML using FOP. I am
 getting an error saying

 [ERROR] Areas pending, text probably lost in line this
 applies in all the cases except when

 I look at the PDF and see that the word after 'when'
 is missing the first letter. Is there a way to fix
 this problem or why am I getting this error?

Hmm. Can you try running this with the '-d' option, and send us more of the
output?
Of course, a sample fo-snippet could also help.
From this, I can only tell where the error happens(*), not exactly why it is
happening.

Thanks,

Andreas

(*) fop.layout.LineArea.render() - line 372


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error areas pending text probably lost

2004-02-09 Thread Chris Bowditch
Abhijit Junnare wrote:
I am generating PDFs from a XML using FOP. I am
getting an error saying
[ERROR] Areas pending, text probably lost in line this
applies in all the cases except when
I look at the PDF and see that the word after 'when'
is missing the first letter. Is there a way to fix
this problem or why am I getting this error?
This problem was seen a few times on older versions of FOP. What version 
are you using?

A quick scan of the archives revealed this related thread:
http://marc.theaimsgroup.com/?l=fop-userm=105536043405456w=2
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   3   4   5   >