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

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]


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)
)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:482)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve
.java:130)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc
essLogValve.java:481)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:534)

-Original Message-
From: James Shaw [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 6:53 AM
To: Batik Users
Subject: Re: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could
not be built


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.



Not sure this is particularly helpful, but I have come across similar IO
problems running Eclipse with Java 1.5.
I understand the problem is related to file locking and is an issue
specific to the new version of Java.
Unfortunately, my solution was to revert to 1.4.

James Shaw

-
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 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]



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]



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]


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]



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]



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: 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]



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]



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]



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]



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]


RE: Error areas pending text probably lost

2004-02-09 Thread Abhijit Junnare
Below is the FO that comes out when I run my xml and
xsl through xalan. Right now I use a xml and xsl to
gene rate the PDF. I can see that the first letter is
there in the FO but it is lost when rendering through
FOP. Also this line appears at the end of a page and
the word 'Condition' appears on the next page but the
letter 'C' is missing from it. Is there any thing I
can do for this not to happen. I am not able to run
with the -d option coz I am not sure if I can use two
options at a time as I use a userconfiguration file to
embeed one font and hence need to use -c option. Let
me know how I can use both options and I will give it
a try.
Thanks,
Abhi

FO SNIPPET

fo:block line-height=1.2em space-before=5pt
color=black start-indent=from-parent(start-indent)
+ 12pt

fo:inline font-weight=bold font-style=italic
font-size=10pt font-family=Helvetica
text-align=left color=blackSome Title/fo:inline

  
fo:inline color=black
space-before.conditionality=discard
This applies in all the cases except when
  fo:inline font-family=Helvetica
font-weight=bold font-variant=small-caps
font-size=12ptCondition 4/fo:inline 
of terms and conditions is true 
/fo:inline
/fo:block



__
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]



version number Re: Error areas pending text probably lost

2004-02-09 Thread Abhijit Junnare
Sorry I forgot to mention that. But i am using 
fop-0.20.5 version


__
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 Forget, Pascal

Can't you remove font-variant=small-caps  from your XSL?



-Original Message-
From: Abhijit Junnare [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 10:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Error areas pending text probably lost


Below is the FO that comes out when I run my xml and
xsl through xalan. Right now I use a xml and xsl to
gene rate the PDF. I can see that the first letter is
there in the FO but it is lost when rendering through
FOP. Also this line appears at the end of a page and
the word 'Condition' appears on the next page but the
letter 'C' is missing from it. Is there any thing I
can do for this not to happen. I am not able to run
with the -d option coz I am not sure if I can use two
options at a time as I use a userconfiguration file to
embeed one font and hence need to use -c option. Let
me know how I can use both options and I will give it
a try.
Thanks,
Abhi

FO SNIPPET

fo:block line-height=1.2em space-before=5pt
color=black start-indent=from-parent(start-indent)
+ 12pt

fo:inline font-weight=bold font-style=italic
font-size=10pt font-family=Helvetica
text-align=left color=blackSome Title/fo:inline

 
fo:inline color=black
space-before.conditionality=discard
This applies in all the cases except when
  fo:inline font-family=Helvetica
font-weight=bold font-variant=small-caps
font-size=12ptCondition 4/fo:inline
of terms and conditions is true
/fo:inline
/fo:block



__
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]


___
 This message contains information that may be privileged or confidential
 and is the property of the Cap Gemini/Ernst  Young Group.  It is intended
 only for the person to whom it is addressed.  If you are not the intended
 recipient, you are not authorized to read, print, retain, copy,
 disseminate, distribute, or use this message or any part thereof. If you
 receive this message in error, please notify the sender immediately and
 delete all copies of this message.
___

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



RE: Error areas pending text probably lost

2004-02-09 Thread Abhijit Junnare
No I cannot. We have a strict formatting specification
and so I cannoot remove the small-caps formatting
style.
Any other suggestions?

--- Forget, Pascal [EMAIL PROTECTED] wrote:
 
 Can't you remove font-variant=small-caps  from
 your XSL?
 
 
 

__
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]

snip /

 fo:inline color=black
 space-before.conditionality=discard
 This applies in all the cases except when
   fo:inline font-family=Helvetica
 font-weight=bold font-variant=small-caps
 font-size=12ptCondition 4/fo:inline
 of terms and conditions is true
 /fo:inline
 /fo:block

Nested inlines... My guess is: there's the bugger!

Can you try rendering again, but replacing the inner fo:inline in the above
snippet with an fo:wrapper, like:

fo:inline color=black ...
This applies in all the cases except when
  fo:wrapper font-family=Helvetica ...
Condition 4/fo:wrapper
of terms and conditions is true/fo:inline
/fo:block

And let us know if that removes the error?


Cheers,

Andreas


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



RE: Error areas pending text probably lost

2004-02-09 Thread Abhijit Junnare
I tried replacing the inner fo:inline with fo:wrapper
but the result is the same. The text is still lost.
any more ideas?

--- Andreas L. Delmelle [EMAIL PROTECTED]
wrote:
  -Original Message-
  From: Abhijit Junnare [mailto:[EMAIL PROTECTED]
 
 snip /
 
  fo:inline color=black
  space-before.conditionality=discard
  This applies in all the cases except when
fo:inline font-family=Helvetica
  font-weight=bold font-variant=small-caps
  font-size=12ptCondition 4/fo:inline
  of terms and conditions is true
  /fo:inline
  /fo:block
 
 Nested inlines... My guess is: there's the bugger!
 
 Can you try rendering again, but replacing the inner
 fo:inline in the above
 snippet with an fo:wrapper, like:
 
 fo:inline color=black ...
 This applies in all the cases except when
   fo:wrapper font-family=Helvetica ...
 Condition 4/fo:wrapper
 of terms and conditions is true/fo:inline
 /fo:block
 
 And let us know if that removes the error?
 
 
 Cheers,
 
 Andreas
 
 

__
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: Forget, Pascal [mailto:[EMAIL PROTECTED]

 Can't you remove font-variant=small-caps  from your XSL?


Silly question maybe, but what exactly would that achieve?

Hmm. Could indeed be just that... AFAIK 0.20.5 uses simulated small-caps
(regular caps at 80% the font-size), so probably it's got something to do
with the role of this in the calculations. (The first character wouldn't be
subject to the scaling, which could explain its mystical
status --disappearing as it does ;) )


Cheers,

Andreas


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



RE: Error areas pending text probably lost

2004-02-09 Thread Abhijit Junnare
So??? But I need to use small-caps so I cant give up
on that.

--- Andreas L. Delmelle [EMAIL PROTECTED]
wrote:
  Can't you remove font-variant=small-caps  from
 your XSL?
 
 
 Silly question maybe, but what exactly would that
 achieve?
 
 Hmm. Could indeed be just that... AFAIK 0.20.5 uses
 simulated small-caps
 (regular caps at 80% the font-size), so probably
 it's got something to do
 with the role of this in the calculations. (The
 first character wouldn't be
 subject to the scaling, which could explain its
 mystical
 status --disappearing as it does ;) )
 
 
 Cheers,
 
 Andreas
 

__
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 J.Pietschmann
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]


RE: Error areas pending text probably lost

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

 I tried replacing the inner fo:inline with fo:wrapper
 but the result is the same. The text is still lost.
 any more ideas?


I can't seem to reproduce this at first glance... Can you provide us with a
bit more context?

FYI:
appending your supplied block snippet to the simple.fo example file that
comes with FOP gave no problems at all with 0.20.5. (1.0-dev still had
problems with the small-caps and seems to swallow some text after a
linebreak...)


Cheers,

Andreas


-
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]

 So??? But I need to use small-caps so I cant give up
 on that.


Sorry, this one was meant more as an explanation of what could be the source
of the behaviour (--for future reference :) )

Cheers,

Andreas


-
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: J.Pietschmann [mailto:[EMAIL PROTECTED]
 
snip /
 Won't work. The problem is as follows: 

snip .. with kind permission ;) /

Yes siree! He 'dze' man :)


Cheers,

Andreas


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



Re: Error areas pending text probably lost

2004-02-09 Thread J.Pietschmann
Andreas L. Delmelle wrote:
I can't seem to reproduce this at first glance... Can you provide us with a
bit more context?
See Bug #13464
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: error = id already exists

2004-02-05 Thread Mark Williams
Hi,

Thanks for the replies.

I've now found a way of removing the problem from the template concerned and
that is to remove any fo:wrapper tags.  These are the source of the problem
and their removal does not seem to have any impact on the outputted pdf.

Thanks again,

Mark

- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 9:31 PM
Subject: Re: error = id already exists


 Mark Williams wrote:
  Hi,
 
  I've searched the mailing lists for info on the above error, but
couldn't
  find anything much on the subject.
 
  Basically, we have a largeish xslt stylesheet (produces roughly a 12
page
  document), which contains a table with rows that repeat for however many
  times a particular node appears in the XML file.  If it appears more
than
  once, so that the table row has to be repeated, we keep getting the
above
  FOP exception, ie that the id exists.  The id is the id assigned by FOP
to
  the fo:wrapper property for each row.  There is an error statement for
each
  fo-wrapper for each row I have checked the xslt stylesheet and there is
no
  duplication.

 FOP does not assign IDs. You are actually using a two stage process:
 1st stage: transforming the XML into XSLFO using the style sheet
 2nd stage: rendering the XSLFO into the output format.

 It's quite possible that the same id is used multiple times even
 if it is only once in the style sheet. Run the transformation
 standalone
   http://xml.apache.org/fop/running.html#check-input
 and examine the output.

 There's also a slight chance you got the still not completely fixed
 duplicate id bug, which may bite you in a few somewhat exotic
 situations. If your FO file doesn't have dupliacted ids, send in
 the FO snippet surrounding the place where the objectionable id
 occurs.

 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 = id already exists

2004-02-05 Thread Peer Brink
Hi everybody,
J.Pietschmann wrote:
There's also a slight chance you got the still not completely fixed
duplicate id bug, which may bite you in a few somewhat exotic
situations. If your FO file doesn't have dupliacted ids, send in
the FO snippet surrounding the place where the objectionable id
occurs.
I do have exactly this problem. I generate fo from Docbook-XML with 
docbook-xslt-stylesheets version 1.64.0 and I get the error
null:640:1159 The id d0e1379 already exists in this document
from Fop 0.20.5 when generating PDF. Please note that the id from the 
error-message is in fact unique in the complete FO-document. Please see below 
the fo-snippet containing the id.
Thanks for any help,
Peer.
fo:block id=d0e1373
fo:block
 fo:block
  fo:block keep-together=always margin-left=0cm 
font-family=Helvetica,Arial,sans-serif,Symbol,ZapfDingbats
   fo:block keep-with-next.within-column=always
fo:block font-family=Helvetica,Arial,sans-serif font-weight=bold keep-with-next.within-column=always 
space-before.minimum=0.8em space-before.optimum=1.0em space-before.maximum=1.2em
 fo:marker marker-class-name=section.head.marker4. FAQ - Frequently 
asked Questions (and answers)
 /fo:marker
 fo:block font-size=24.8832pt4. FAQ - Frequently asked Questions (and 
answers)/fo:block
/fo:block
   /fo:block
  /fo:block
 /fo:block
 fo:block/
/fo:block
fo:block id=d0e1376
 fo:list-block space-before.optimum=0em space-before.minimum=0em space-before.maximum=0em space-after.optimum=1em 
space-after.minimum=0.8em space-after.maximum=1.2em provisional-label-separation=0.2em 
provisional-distance-between-starts=2.5em
  fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em 
space-before.maximum=1.0em id=d0e1378
   fo:list-item-label id=d0e1379 end-indent=label-end()
fo:block4.1.
/fo:block
   /fo:list-item-label
   fo:list-item-body start-indent=body-start()
fo:block space-before.optimum=1em space-before.minimum=0.8em 
space-before.maximum=1.2emWhich editor program should I use?/fo:block
   /fo:list-item-body
  /fo:list-item
  fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em 
space-before.maximum=1.0em
   fo:list-item-label id=d0e1382 end-indent=label-end()
fo:block/
   /fo:list-item-label
   fo:list-item-body start-indent=body-start()
fo:block space-before.optimum=1em space-before.minimum=0.8em 
space-before.maximum=1.2emUse whatever you like - your favourite text/XML editor./fo:block
   /fo:list-item-body
  /fo:list-item
 /fo:list-block
/fo:block
/fo:block
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: error = id already exists

2004-02-05 Thread Adrian Sobotta
You can get passed this problem by applying the patch that Nancy Deschenes
wrote.. I got her patch, recompiled that class and updated the jar and all
was good again.. Here is the link to the bug report and patch:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3497



-Original Message-
From: Peer Brink [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 5 February 2004 3:50 PM
To: [EMAIL PROTECTED]
Subject: Re: error = id already exists

Hi everybody,

J.Pietschmann wrote:
 There's also a slight chance you got the still not completely fixed
 duplicate id bug, which may bite you in a few somewhat exotic
 situations. If your FO file doesn't have dupliacted ids, send in
 the FO snippet surrounding the place where the objectionable id
 occurs.

I do have exactly this problem. I generate fo from Docbook-XML with
docbook-xslt-stylesheets version 1.64.0 and I get the error

null:640:1159 The id d0e1379 already exists in this document

from Fop 0.20.5 when generating PDF. Please note that the id from the
error-message is in fact unique in the complete FO-document. Please see
below the fo-snippet containing the id.

Thanks for any help,
Peer.

fo:block id=d0e1373
 fo:block
  fo:block
   fo:block keep-together=always margin-left=0cm
font-family=Helvetica,Arial,sans-serif,Symbol,ZapfDingbats
fo:block keep-with-next.within-column=always
 fo:block font-family=Helvetica,Arial,sans-serif font-weight=bold
keep-with-next.within-column=always space-before.minimum=0.8em
space-before.optimum=1.0em space-before.maximum=1.2em
  fo:marker marker-class-name=section.head.marker4. FAQ - Frequently
asked Questions (and answers)
  /fo:marker
  fo:block font-size=24.8832pt4. FAQ - Frequently asked Questions
(and answers)/fo:block
 /fo:block
/fo:block
   /fo:block
  /fo:block
  fo:block/
 /fo:block
 fo:block id=d0e1376
  fo:list-block space-before.optimum=0em space-before.minimum=0em
space-before.maximum=0em space-after.optimum=1em
space-after.minimum=0.8em space-after.maximum=1.2em
provisional-label-separation=0.2em
provisional-distance-between-starts=2.5em
   fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em
space-before.maximum=1.0em id=d0e1378
fo:list-item-label id=d0e1379 end-indent=label-end()
 fo:block4.1.
 /fo:block
/fo:list-item-label
fo:list-item-body start-indent=body-start()
 fo:block space-before.optimum=1em space-before.minimum=0.8em
space-before.maximum=1.2emWhich editor program should I use?/fo:block
/fo:list-item-body
   /fo:list-item
   fo:list-item space-before.optimum=0.8em space-before.minimum=0.5em
space-before.maximum=1.0em
fo:list-item-label id=d0e1382 end-indent=label-end()
 fo:block/
/fo:list-item-label
fo:list-item-body start-indent=body-start()
 fo:block space-before.optimum=1em space-before.minimum=0.8em
space-before.maximum=1.2emUse whatever you like - your favourite text/XML
editor./fo:block
/fo:list-item-body
   /fo:list-item
  /fo:list-block
 /fo:block
/fo:block


-
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 = id already exists

2004-02-05 Thread J.Pietschmann
Adrian Sobotta wrote:
You can get passed this problem by applying the patch that Nancy Deschenes
wrote.. I got her patch, recompiled that class and updated the jar and all
was good again.. Here is the link to the bug report and patch:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3497
This patch is already in the code. There are still FOs which
don't unregister the id in case of undoing some layout, IIRC
the cases left require some more thinking in order to get it
right.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: error = id already exists

2004-02-04 Thread Chris Pratt
You probably have to id=value with the same value.  Remember, id values
must be unique across the whole document, not just the element they are used
on.
  (*Chris*)

- Original Message - 
From: Mark Williams [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 11:32 am
Subject: error = id already exists


 Hi,

 I've searched the mailing lists for info on the above error, but couldn't
 find anything much on the subject.

 Basically, we have a largeish xslt stylesheet (produces roughly a 12 page
 document), which contains a table with rows that repeat for however many
 times a particular node appears in the XML file.  If it appears more than
 once, so that the table row has to be repeated, we keep getting the above
 FOP exception, ie that the id exists.  The id is the id assigned by FOP to
 the fo:wrapper property for each row.  There is an error statement for
each
 fo-wrapper for each row I have checked the xslt stylesheet and there is no
 duplication.

 Although I could find one or two threads on the subject, I could not
 actually find a resolution and the problems seemed to be related to
manually
 assigned ids not FOP assigned ids as in this case.  Unless it's something
 that I'm doing wrong, I'm surprised that this problem has not cropped up
 more often.

 Does anyone please know of a solution to this problem.

 Yours gratefully,

 Mark Williams


 -
 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 = id already exists

2004-02-04 Thread J.Pietschmann
Mark Williams wrote:
Hi,
I've searched the mailing lists for info on the above error, but couldn't
find anything much on the subject.
Basically, we have a largeish xslt stylesheet (produces roughly a 12 page
document), which contains a table with rows that repeat for however many
times a particular node appears in the XML file.  If it appears more than
once, so that the table row has to be repeated, we keep getting the above
FOP exception, ie that the id exists.  The id is the id assigned by FOP to
the fo:wrapper property for each row.  There is an error statement for each
fo-wrapper for each row I have checked the xslt stylesheet and there is no
duplication.
FOP does not assign IDs. You are actually using a two stage process:
1st stage: transforming the XML into XSLFO using the style sheet
2nd stage: rendering the XSLFO into the output format.
It's quite possible that the same id is used multiple times even
if it is only once in the style sheet. Run the transformation
standalone
 http://xml.apache.org/fop/running.html#check-input
and examine the output.
There's also a slight chance you got the still not completely fixed
duplicate id bug, which may bite you in a few somewhat exotic
situations. If your FO file doesn't have dupliacted ids, send in
the FO snippet surrounding the place where the objectionable id
occurs.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error on AIX box with no X-Windows

2004-01-20 Thread J.Pietschmann
Manjush G. Menon wrote:
The java code exits; without throwing an Exception at the line
where new Driver() instance is created.
Does this have any relation with X-Windows?
That's hard to say without taking a look at the actual
exception message. However, FOP has indeed problems on
headless servers, check the FAQ:
 http://xml.apache.org/fop/faq.html#svg-headless
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ERROR: Renderer has not been set!

2003-11-20 Thread J.Pietschmann
Dave Chan wrote:
FOP 0.20.1
...
ERROR: Renderer has not been set!
This might be an old bug. Get the latest release (0.20.5)
and check whether the problem persists.
J.Pietschmann

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


Re: [ERROR] leader sizes wrong error message ???

2003-10-21 Thread Chris Bowditch
From: Dang Minh Phuong [EMAIL PROTECTED]
hi all,
when I generate my pdf using FOP 0.20.5rc2, I always have this error 
message
even though my pdf is generated correctly. What is going on with my code 
and
how to avoid this error message.

FOP 0.20.5rc2 had a few bugs which were fixed in the released version 
0.20.5. The changes include some tinkering with leader behaviour. I 
recommend you upgrade to 0.20.5, and if the problem persists please post a 
small self contained example of your XSL-FO to this list.

Chris
_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger

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


Re: Error with Block-container

2003-09-15 Thread Chris Bowditch
From: Abhijit Junnare [EMAIL PROTECTED]
Hi,
I am having problem with fo:block-container. When I
run FOP I am getting an error
[ERROR] java.lang.ClassCastException:
org.apache.fop.layout.BlockArea
Did anyone come accross something like this?
Abhi
FOP has only limited support for fo:block-container. It cannot be placed as 
a child of a fo:block, and should be a direct descedent of fo:flow.

This is becoming a VFAQ
Chris
_
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error with Block-container

2003-09-15 Thread Abhijit Junnare
Got it thanks.
Abhi
--- Chris Bowditch [EMAIL PROTECTED] wrote:
 From: Abhijit Junnare [EMAIL PROTECTED]
 
 Hi,
 I am having problem with fo:block-container. When I
 run FOP I am getting an error
 [ERROR] java.lang.ClassCastException:
 org.apache.fop.layout.BlockArea
 
 Did anyone come accross something like this?
 Abhi
 
 
 FOP has only limited support for fo:block-container.
 It cannot be placed as 
 a child of a fo:block, and should be a direct
 descedent of fo:flow.
 
 This is becoming a VFAQ
 
 Chris
 

_
 Get Hotmail on your mobile phone
 http://www.msn.co.uk/msnmobile
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Error with FOP about IPD on table

2003-09-12 Thread J.Pietschmann
Abhijit Junnare wrote:
When I run FOP i get the following error. 

[ERROR] At least one of minimum, optimum, or maximum
IPD must be specified on table.
I know thats its the problem with specifying IPD for
the table in the stylesheet. But I dont really
understand what I am missing and where should I
specify Inline-progression-dimension I mean on what
object?
FOP tries to calculate the table width from the column
width, which must be specified for FOP to work. If all
columns have an absolute width, this is easy. However,
if you use the proportional-column-width() function,
or if you specify a width which FOP doesn't understand
for table columns (like percentages), you'll get the
error message above unless you also specify the with of
the table itself (which is exaclty the wording of the
message).
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%.
J.Pietschmann

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


RE: Error when placing svg into xsl with fo:external-graphic

2003-09-03 Thread Victor Mote
Benjamin Wischek wrote:

 I'm trying to put a svg-file into my xsl-file and then let it run through
 FOP. The svg is a barcode example from krysalis barcode homepage.

 I used the fo:external-graphic command:

 fo:block
 fo:external-graphic src=example-code39.svg/
 /fo:block

I'm not sure whether this is your problem or not, but make sure that FOP can
actually find the file. See:
http://xml.apache.org/fop/fo.html#external-resources
for documentationa about specifying the external resource as a URI,
including the instructions about setting a base URI.

If that doesn't solve the problem, open the file and make sure it actually
has some SVG code in it, and that there is no obvious namespace problem.
Beyond that, we'll need to get someone with more Batik expertise to answer.

Victor Mote


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



Re: Error when placing svg into xsl with fo:external-graphic

2003-09-03 Thread Benjamin Wischek
Ok, I'm so sorry...

I tried the whole thing at home now, and everything works fine.

Seems like I have some old JDK on my system at work. Thought it is
1.3.1 which should be sufficient. Looks like I have to reinstall it or
upgrade to a newer one.

Sorry again for my mistake.

Greets,

Ben


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



Re: Error when placing svg into xsl with fo:external-graphic

2003-09-03 Thread J.Pietschmann
Benjamin Wischek wrote:
Seems like I have some old JDK on my system at work. Thought it is
1.3.1 which should be sufficient. Looks like I have to reinstall it or
upgrade to a newer one.
1.3.1 is ok. Perhaps a firewall blocks the parser from retrieving
the SVG DTD (you might want to set up a catalog to use a local
copy).
J.Pietschmann

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


RE: [ERROR]: resulting in Exception in thread main java.l ang.OutOfMemoryError no stack trace avalable

2003-07-11 Thread Rob Stote
Title: RE: [ERROR]:  resulting in  Exception in thread main java.lang.OutOfMemoryError no stack trace avalable






You are able to produce the 1000 page PDF on the Linux box ? 
If so, double check the HEAP settings on your Linux machine make sure the Linux, and Windows box match. 


Also there is a really good FAQ on the FOP site: http://xml.apache.org/fop/running.html#memory


Rob


-Original Message-
From: Kenny Vandenbroucke [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 11, 2003 7:50 AM
To: [EMAIL PROTECTED]
Subject: FW: [ERROR]:  resulting in Exception in thread main java.lang.OutOfMemoryError no stack trace avalable


 Hello,
 
 When I try to convert a a complex xml-file (steerfile which refers to 
 other xml-files) to a pdf-file the first step works : the conversion to a fo-file. But in the second step, the conversion from a fo-file to a pdf-file I get several errors [ERROR]: . When I limit the number of pages to 60 I get a well-formed pdf-file but the actual pdf-file I have to produce is almost 1000 pages. On a Linux-workstation this works but my goal is to do it on a windows-pc or server and there lies the problem. After about 100 pages I get the following error after which the program stops :

 
 Exception in thread main java.lang.OutOfMemoryError
   no stack available
 
 
 Does anyone know how to solve this problem?
 
 
 greetz
 
 
 
 


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





Re: error

2003-06-12 Thread J.Pietschmann
amar wrote:
hello any one knows what this error means
the same application is working fine on win32 machine
 but when porting the application to unix i get the following
An invalid XML character (Unicode: 0x92) was found in the
 element content of the document.

You probably set the encoding to ISO-8859-1. Unfortunately,
the byte 0x92 in ISO-8859-1 encoding does not represent a
valid XML character, check the spec at
 http://www.w3.org/TR/REC-xml
Windows uses the bytes 0x80...0x9F in its own extension of
8859-1 (and other encodings), which is usually called Windows
codepage 1252 (and similar). Check whether your XML parser on
the target platform can understand this encoding, and how it
denotes it (CP-1252 or something, although there is no standard).
If the parser can't deal with the Windows character encoding,
your only way out is to replace the offending characters with
character references for their Unicode counterparts before
feeding it into the XML application.
J.Pietschmann

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


Re: Error message

2003-06-11 Thread J.Pietschmann
Mark Baier wrote:
i got following error message:
[ERROR] Areas pending, text probably lost in line...
But the text was printed out correctly.
You were lucky: you probably lost only whitespace.
My first question is, what should this error message say to me ??
Text may get lost under certain circumstances if it was
processed with the last line on a page but should go to
the first line of the next page.
Second question:
Due orphans and widows are not implemented yet, how can
 i do such text formatting issues on my own ???
Improve FOP!
J.Pietschmann

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


Re: Re: Error when piping XSL-FO to FOP driver using SAXResult

2003-05-14 Thread Om Narayan
Thanks for the response. Yes, its definitely a hack because I could not put
a /fo:table-row inside the xsl:if tag. I get an error message saying
The element type xsl:if must be terminated by the matching end-tag
/xsl:if

Is there a better way to accomplish what I need to do...i.e. ouputting
portions of table-row tags depending on certain conditions? Thanks.

==
You MUSTN'T enclose XML tags to be written to the output in CDATA
sections. In SAX that will result in calls to characters() instead of
startElement/endElement and therefore your closing fo:table-row tags
don't get recognized as tags. What you did here is a hack. Try to
reformulate that snippet.

On 14.05.2003 07:23:17 Om Narayan wrote:
 Here is a snippet of the code from the XSL
 ===

 fo:table-body
xsl:text
 disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text
   xsl:for-each select=customerPF
  xsl:if test=position()!=1
 xsl:if test=(position()-1) mod 3 = 0
xsl:text
 disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text
xsl:text
 disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text
/xsl:if
   /xsl:if
   fo:table-cellfo:blockxsl:value-of
 select=position()//fo:block/fo:table-cell
  /xsl:for-each
   xsl:text
 disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text
 /fo:table-body



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: Re: Error when piping XSL-FO to FOP driver using SAXResult

2003-05-14 Thread Fernando López Carballeda
Look at http://www.dpawson.co.uk/xsl/sect2/N4486.html#d4085e94

From the [EMAIL PROTECTED] [Grouping]

HTH

Fernando López Carballeda

-Original Message-
Sent: miércoles, 14 de mayo de 2003 20:02
Subject: Re: Re: Error when piping XSL-FO to FOP driver using SAXResult


Thanks for the response. Yes, its definitely a hack because I could not put
a /fo:table-row inside the xsl:if tag. I get an error message saying
The element type xsl:if must be terminated by the matching end-tag
/xsl:if

Is there a better way to accomplish what I need to do...i.e. ouputting
portions of table-row tags depending on certain conditions? Thanks.

==
You MUSTN'T enclose XML tags to be written to the output in CDATA
sections. In SAX that will result in calls to characters() instead of
startElement/endElement and therefore your closing fo:table-row tags
don't get recognized as tags. What you did here is a hack. Try to
reformulate that snippet.

On 14.05.2003 07:23:17 Om Narayan wrote:
 Here is a snippet of the code from the XSL
 ===

 fo:table-body
xsl:text
 disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text
   xsl:for-each select=customerPF
  xsl:if test=position()!=1
 xsl:if test=(position()-1) mod 3 = 0
xsl:text
 disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text
xsl:text
 disable-output-escaping=yes![CDATA[fo:table-row]]/xsl:text
/xsl:if
   /xsl:if
   fo:table-cellfo:blockxsl:value-of
 select=position()//fo:block/fo:table-cell
  /xsl:for-each
   xsl:text
 disable-output-escaping=yes![CDATA[/fo:table-row]]/xsl:text
 /fo:table-body



Jeremias Maerki


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



RE: Re: Error when piping XSL-FO to FOP driver using SAXResult

2003-05-14 Thread Savino, Matt C
Below is something we use as part of a much more involved stylesheet. Although 
looking at it now it's not the most efficient piece of code as it loops through 
the same nodes several times. (We use it to break output into groups of five 
columns and know we'll never have more than 3 or 4 groups, so we didn't need to 
worry about running through the same nodes a few extra times.) 

I think for efficiency and straighforwardness, the Steve Tinney example from 
the link in the previous post is probably the best way to go. 
(http://www.dpawson.co.uk/xsl/sect2/N4486.html#d4085e94)

-matt


[...]
fo:table-body
   
  xsl:for-each select=customerPF
xsl:if test=(position()-1) mod 3 = 0

xsl:call-template name=new-row
 xsl:with-param name=row-num select=position() - 1 /
/xsl:call-template

/xsl:if
   fo:table-cellfo:blockxsl:value-of 
select=position()//fo:block/fo:table-cell
  /xsl:for-each
 
/fo:table-body
[...]


xsl:template name=new-row
 xsl:param name=row-num/
 
   fo:table-row

xsl:for-each select=../customerPF
 xsl:if test=$row-num lt; position()
  xsl:if test=$row-num+4 gt; position()
fo:table-cellfo:blockxsl:value-of 
select=position()//fo:block/fo:table-cell   
  /xsl:if
 /xsl:if
/xsl:for-each
   
  /fo:table-row
xsl:template



 Thanks for the response. Yes, its definitely a hack because I 
 could not put
 a /fo:table-row inside the xsl:if tag. I get an error 
 message saying
 The element type xsl:if must be terminated by the matching end-tag
 /xsl:if
 
 Is there a better way to accomplish what I need to do...i.e. ouputting
 portions of table-row tags depending on certain conditions? Thanks.
 



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



RE: Re: Error when piping XSL-FO to FOP driver using SAXResult

2003-05-14 Thread Savino, Matt C
Woops, that first fo:table-cell... tag below should have been removed. 
Actually if you use this:

xsl:for-each select=../customerPF[$row-num lt; position() and $row-num+4 
gt; position()]

instead of the xsl:for-each followed by 2 xsl:if-s below, our code might be 
somewhat efficient after all. I just tested and it seems ok on first pass.

Apparently we were still learning our XSLT back then. Now comes the age-old 
question of whether or not to rewrite code that works fine just because we know 
it can be done better. I think that question usually comes down on the 
do-not-rewrite side.



 -Original Message-
 From: Savino, Matt C 
 Sent: Wednesday, May 14, 2003 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Re: Error when piping XSL-FO to FOP driver using 
 SAXResult
 
 
 Below is something we use as part of a much more involved 
 stylesheet. Although looking at it now it's not the most 
 efficient piece of code as it loops through the same nodes 
 several times. (We use it to break output into groups of five 
 columns and know we'll never have more than 3 or 4 groups, so 
 we didn't need to worry about running through the same nodes 
 a few extra times.) 
 
 I think for efficiency and straighforwardness, the Steve 
 Tinney example from the link in the previous post is probably 
 the best way to go. 
 (http://www.dpawson.co.uk/xsl/sect2/N4486.html#d4085e94)
 
 -matt
 
 
 [...]
 fo:table-body

   xsl:for-each select=customerPF
 xsl:if test=(position()-1) mod 3 = 0
 
   xsl:call-template name=new-row
xsl:with-param name=row-num select=position() - 1 /
   /xsl:call-template
 
 /xsl:if
fo:table-cellfo:blockxsl:value-of 
 select=position()//fo:block/fo:table-cell
   /xsl:for-each
  
 /fo:table-body
 [...]
 
 
 xsl:template name=new-row
  xsl:param name=row-num/
  
fo:table-row
 
 xsl:for-each select=../customerPF
  xsl:if test=$row-num lt; position()
   xsl:if test=$row-num+4 gt; position()
 fo:table-cellfo:blockxsl:value-of 
 select=position()//fo:block/fo:table-cell   
   /xsl:if
  /xsl:if
 /xsl:for-each

   /fo:table-row
 xsl:template
 
 
 
  Thanks for the response. Yes, its definitely a hack because I 
  could not put
  a /fo:table-row inside the xsl:if tag. I get an error 
  message saying
  The element type xsl:if must be terminated by the matching end-tag
  /xsl:if
  
  Is there a better way to accomplish what I need to 
 do...i.e. ouputting
  portions of table-row tags depending on certain conditions? 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 when trying to print double-sided

2003-05-08 Thread Robert P. J. Day
On Wed, 7 May 2003, J.Pietschmann wrote:

 Robert P. J. Day wrote:
  assuming you're referring to the docbook XSL stylesheets, i'm running
  red hat 9 which appears to have the latest stylesheet release: 1.60.1.
  at least, that's the latest release at sourceforge, unless you're 
  referring to a CVS snapshot or something.
  
  can you clarify this?
 
 The style sheet declares an invalid page master named 'blank'. Find it
 and delete the region-name for the body region. That's all. Several
 people wrote they had fixed style sheet, apparently they fixd it by
 themself.

ok, i just removed that entry from the fo/pagesetup.xsl stylesheet,
and it seems to have worked.  thanks muchly.

on a related note, gievn that i'm still getting used to all of this,
it's sometimes confusing, when my final output contains errors,
to know where the ask the question, as in; is it a docbook issue,
an xsltproc issue, a stylesheet issue, a FOP issue?

sometimes, it's not at all clear, so i'll try to restrict myself
to what are clearly FOP issues here.  but i'm sure i'll screw
up on occasion.

rday


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



RE: error converting SVG to PDF

2003-04-16 Thread Gary Marshall-Stevens
Thanks Jeremias,

I downloaded 1.5 beta5 earlier and that did fix the issue.
Thanks for the reply anyway.

Gary

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2003 19:19
To: [EMAIL PROTECTED]
Subject: Re: error converting SVG to PDF


Batik 1.5 beta5 has the PDF transcoder included.

As an alternative you can try to rename fop.jar to pdf-transcoder.jar so
the classpath specified inside batik-rasterizer.jar picks up FOP at all.
The problem you have is that fop.jar doesn't get loaded into the
classpath. The other possibility is to explicitly specify the classpath
using -cp or -classpath instead of using -jar.

And last but not least: The PDF transcoder you get when downloading the
HEAD branch from CVS (or from a CVS snapshot) will give you an improved
implementation of the PDF transcoder. We'll soon do a separate release
of that code.

On 15.04.2003 16:46:18 Gary Marshall-Stevens wrote:
 Can anyone help with this issue:
  
 I have batik-1.1.1 installed and fop-0.20.4 both binaries.
 I am running the following at the command line:
  
 C:\FOP\batik-1.1.1java -jar batik-rasterizer.jar -m application/pdf 
 samples/batikFX.svg
  
 this is the error I receive:
 
 Error while converting files:
  Error: cannot access transcoder for image of type application/pdf
  
 Will installing the src instead of binaries fix this ?


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 converting SVG to PDF

2003-04-15 Thread Jeremias Maerki
Batik 1.5 beta5 has the PDF transcoder included.

As an alternative you can try to rename fop.jar to pdf-transcoder.jar so
the classpath specified inside batik-rasterizer.jar picks up FOP at all.
The problem you have is that fop.jar doesn't get loaded into the
classpath. The other possibility is to explicitly specify the classpath
using -cp or -classpath instead of using -jar.

And last but not least: The PDF transcoder you get when downloading the
HEAD branch from CVS (or from a CVS snapshot) will give you an improved
implementation of the PDF transcoder. We'll soon do a separate release
of that code.

On 15.04.2003 16:46:18 Gary Marshall-Stevens wrote:
 Can anyone help with this issue:
  
 I have batik-1.1.1 installed and fop-0.20.4 both binaries.
 I am running the following at the command line:
  
 C:\FOP\batik-1.1.1java -jar batik-rasterizer.jar -m application/pdf
 samples/batikFX.svg
  
 this is the error I receive:
 
 Error while converting files:
  Error: cannot access transcoder for image of type application/pdf
  
 Will installing the src instead of binaries fix this ?


Jeremias Maerki


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



Re: [ERROR] -2

2003-04-11 Thread Jeremias Maerki
I don't know. Run FOP on the command-line with the -d (debug) option.
You'll get a stacktrace that will be more informative.

On 11.04.2003 11:44:06 Todtenhaupt, Susann wrote:
 While processing with fop I get the error [ERROR] -2. What does it mean?


Jeremias Maerki


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



RE: [ERROR] -2

2003-04-11 Thread Adam Shelley
Hello,

I noticed that you are using table-layout-auto, is this supported?  You also
have data like crysat test and 1 of 1 Non conformance report both
outside the bounds of a table-cell but within table row?

I'm not an expert so i don't really know, but i'd change your table to
include a fixed number of columns and use the proportional widths properties
and also put all your data in your table within a table cell.

-Adam

-Original Message-
From: Todtenhaupt, Susann [mailto:[EMAIL PROTECTED]
Sent: April 11, 2003 3:55 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [ERROR] -2


Hello markus...

This I already tried because I guessed the same as you. But this doesn't
help :-(

Thanx anyway!


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



Re: Error in PDF file

2003-04-08 Thread Clay Leeds
Ethan,

I suspect there's a problem in your XSL-FO file. I had similar things
happen to me with fo:list-item, and one of the components turned out to
be empty. This caused an error in the renderer. I processed my XML 
XSL-FO using XALAN.BAT (included with 0.20.5rc), but set my output to -fo.

the command line would be (assume c:\java\fop-0.20.5rc is command
prompt):

c:\java\fop-0.20.5rcxalan.bat -in c:\path\to\your\xmlfile.xml -xsl
c:\path\to\your\xslfile.xsl -out c:\path\to\your\outputfofile.fo

Hope this helps!

Web Maestro Clay

(note to FOP-DEV: it'd be nice to add a -fo output option to FOP, for
debugging--although xalan.bat does this, it'd be nice not have to learn
one more thing ;-p)

Leet, Ethan C wrote:
   I am trying to create a simple PDF document.
 
   It consists of three pages or simple 2D graphics.
 
   I am using the PDFRenderer to create the pages.
 
   I create an SVG document from the SVGGraphics2D object.
 
   Then create a SVGArea with the SVGDocument.
 
   Thie area is then added to the Page's BodyAreaContainer's
 mainReferenceArea.
 
   Thie creates a PDF file that looks like it is large enough with all
 the pictures.
 
   When I open the file in Acrobat reader, I get an error saying 
 
   Illegal operation 'q' inside a text object
 
   And the pages are blank.
 
   Why ??


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



RE: Error in PDF file

2003-04-08 Thread Victor Mote
Clay Leeds wrote:

 (note to FOP-DEV: it'd be nice to add a -fo output option to FOP, for
 debugging--although xalan.bat does this, it'd be nice not have to learn
 one more thing ;-p)

I suspect the reason why we didn't go that route is that -fo is already
used as an /input/ option. The only way you could make this work is to treat
-fo differently depending on whether -xml is present. That seems
confusing and risky, since a user might accidentally overwrite a valuable fo
file this way. I think it is better to keep the two processes separate.

Victor Mote


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



Re: Error in PDF file

2003-04-08 Thread Clay Leeds
Allow me to clarify what I said. Sorry for the re-post...

My problem was in fo:list-block:

fo:list-block space-before=6pt space-after=6pt font-family=Times
  fo:list-item
fo:list-item-label end-indent=label-end()
  fo:block font-family=ZapfDingbats?/fo:block
/fo:list-item-label
fo:list-item-body start-indent=body-start()
  fo:block
  This is the first entry
  in a plain unordered list.
  A check symbol is displayed in the bullet.
/fo:block
/fo:list-item-body
  /fo:list-item
  fo:list-item
fo:list-item-label end-indent=label-end()
  fo:block font-family=ZapfDingbats?/fo:block
/fo:list-item-label
fo:list-item-body start-indent=body-start()
  fo:block/fo:block
/fo:list-item-body
  /fo:list-item
/fo:list-block

I was missing content in 2nd fo:list-item-bodyfo:block. The PDF file
rendered normally (I think FOP returned a warning), but an error was
given when the file was opened in Adobe Acrobat Reader. Unbeknownst to
me, my XML file did not include data where it was expected.

What did I do? I wrote this list and they recommended I output the FO
file using XALAN.BAT, and look for the problem. I found the problem by
searching all of the fo:list-block items...

Clay Leeds wrote:
 Ethan,
 
 I suspect there's a problem in your XSL-FO file. I had similar things
 happen to me with fo:list-item, and one of the components turned out to
 be empty. This caused an error in the renderer. I processed my XML 
 XSL-FO using XALAN.BAT (included with 0.20.5rc), but set my output to -fo.
 
 the command line would be (assume c:\java\fop-0.20.5rc is command
 prompt):
 
 c:\java\fop-0.20.5rcxalan.bat -in c:\path\to\your\xmlfile.xml -xsl
 c:\path\to\your\xslfile.xsl -out c:\path\to\your\outputfofile.fo
 
 Hope this helps!
 
 Web Maestro Clay
 
 (note to FOP-DEV: it'd be nice to add a -fo output option to FOP, for
 debugging--although xalan.bat does this, it'd be nice not have to learn
 one more thing ;-p)


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



RE: Error in PDF file

2003-04-08 Thread Leet, Ethan C
//lcBody.getMainReferenceArea().addChildAtStart(lcSvgArea); //
adds invalid q
//lcBody.getMainReferenceArea().addChild(lcSvgArea); // adds
invalid q
//lcBody.addChild(lcSvgArea); // does nothing

lcAreaTree.addPage(lcCurPage);
 }
 lcStrRenderer.stopRenderer();
 lcFileOut.close();
  }
  catch(Exception e)
  {
 lcLog.LogWarning(ERROR: +e);
 throw new PrintException(e);
  }
   }

This will create an invlaid PDF file that will popup an error

saying Illegal 'q' in text object

??



-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2003 1:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Error in PDF file


Allow me to clarify what I said. Sorry for the re-post...

My problem was in fo:list-block:

fo:list-block space-before=6pt space-after=6pt font-family=Times
  fo:list-item
fo:list-item-label end-indent=label-end()
  fo:block font-family=ZapfDingbats?/fo:block
/fo:list-item-label
fo:list-item-body start-indent=body-start()
  fo:block
  This is the first entry
  in a plain unordered list.
  A check symbol is displayed in the bullet.
/fo:block
/fo:list-item-body
  /fo:list-item
  fo:list-item
fo:list-item-label end-indent=label-end()
  fo:block font-family=ZapfDingbats?/fo:block
/fo:list-item-label
fo:list-item-body start-indent=body-start()
  fo:block/fo:block
/fo:list-item-body
  /fo:list-item
/fo:list-block

I was missing content in 2nd fo:list-item-bodyfo:block. The PDF file
rendered normally (I think FOP returned a warning), but an error was
given when the file was opened in Adobe Acrobat Reader. Unbeknownst to
me, my XML file did not include data where it was expected.

What did I do? I wrote this list and they recommended I output the FO
file using XALAN.BAT, and look for the problem. I found the problem by
searching all of the fo:list-block items...

Clay Leeds wrote:
 Ethan,
 
 I suspect there's a problem in your XSL-FO file. I had similar things
 happen to me with fo:list-item, and one of the components turned out to
 be empty. This caused an error in the renderer. I processed my XML 
 XSL-FO using XALAN.BAT (included with 0.20.5rc), but set my output to -fo.
 
 the command line would be (assume c:\java\fop-0.20.5rc is command
 prompt):
 
 c:\java\fop-0.20.5rcxalan.bat -in c:\path\to\your\xmlfile.xml -xsl
 c:\path\to\your\xslfile.xsl -out c:\path\to\your\outputfofile.fo
 
 Hope this helps!
 
 Web Maestro Clay
 
 (note to FOP-DEV: it'd be nice to add a -fo output option to FOP, for
 debugging--although xalan.bat does this, it'd be nice not have to learn
 one more thing ;-p)


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


-
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 PDF file

2003-04-08 Thread Clay Leeds
Ethan,

I snipped a bit, but found this in your code. Notice the three lines of
code which adds invalid q. I don't suppose removing these three lines
of code will fix your problem? Otherwise, I can't help. I'm a doctor,
not a... er... never mind... Good luck!

Leet, Ethan C wrote:
 // Create a Page with the PageMaster
 Page lcCurPage = lcPageMaster.makePage(lcAreaTree);
 
 //lcCurPage.getBody().addChild(lcSvgArea); // does nothing
  
 lcCurPage.getBody().getMainReferenceArea().addChild(lcSvgArea);// adds
 invalid q
 
 //lcCurPage.getBody().addChild(lcSvgArea); // does nothing
 //lcBody.getMainReferenceArea().addChildAtStart(lcSvgArea); //
 adds invalid q
 //lcBody.getMainReferenceArea().addChild(lcSvgArea); // adds
 invalid q
 //lcBody.addChild(lcSvgArea); // does nothing
 
 lcAreaTree.addPage(lcCurPage);
  }
 
   This will create an invlaid PDF file that will popup an error
 
   saying Illegal 'q' in text object


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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



RE: Error in PDF file

2003-04-08 Thread Leet, Ethan C

lcCurPage.getBody().getMainReferenceArea().addChild(lcSvgArea);

This line is the line that causes the problem.

the // adds invalid q is a note to myself for which lines I have
tried, and their result.

If I remove the line, I can open the document with no errors, but
also no data :-(

Thank you.

I hopefully will crack this soon :-)


-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2003 2:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Error in PDF file


Ethan,

I snipped a bit, but found this in your code. Notice the three lines of
code which adds invalid q. I don't suppose removing these three lines
of code will fix your problem? Otherwise, I can't help. I'm a doctor,
not a... er... never mind... Good luck!

Leet, Ethan C wrote:
 // Create a Page with the PageMaster
 Page lcCurPage = lcPageMaster.makePage(lcAreaTree);
 
 //lcCurPage.getBody().addChild(lcSvgArea); // does nothing
  
 lcCurPage.getBody().getMainReferenceArea().addChild(lcSvgArea);// adds
 invalid q
 
 //lcCurPage.getBody().addChild(lcSvgArea); // does nothing
 //lcBody.getMainReferenceArea().addChildAtStart(lcSvgArea); //
 adds invalid q
 //lcBody.getMainReferenceArea().addChild(lcSvgArea); // adds
 invalid q
 //lcBody.addChild(lcSvgArea); // does nothing
 
 lcAreaTree.addPage(lcCurPage);
  }
 
   This will create an invlaid PDF file that will popup an error
 
   saying Illegal 'q' in text object


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


-
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 building bgimage.fo, images.fo, list.pdf

2003-04-03 Thread MattO
Thanks for your reply, J.

Is there a consolidated list of minimum software/system requirements
available in the distribution? 

Would the dev list be a more suitable place to ask specifically what
native libraries are required that don't come with the FOP distribution?

I don't think my sysadmin is going to be as friendly when I tell him I
need to upgrade my OS to use FOP...

Matt
-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 02, 2003 9:04 AM
To: [EMAIL PROTECTED]
Subject: Re: error building bgimage.fo, images.fo, list.pdf

MattO wrote:
 I downloaded the fop 0.20.4 binary distribution to a Unix box running
 Solaris 5.7 with Java RE 1.3.0 installed.
 
 I'm able to build a .pdf from docs/examples/simple.fo, but when I
 attempt to build images.fo, I get the following:
...
 java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)

It seems your environment is lacking a native library for processing
GIF images, or something similar. Ask your friendly system administrator
to fix this.
BTW isn't Solaris 5.7 rather old? Probably even older than fop 0.20.4...

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 building bgimage.fo, images.fo, list.pdf

2003-04-03 Thread J.Pietschmann
MattO wrote:
Is there a consolidated list of minimum software/system requirements
available in the distribution? 

Would the dev list be a more suitable place to ask specifically what
native libraries are required that don't come with the FOP distribution?
FOP is a Java program and doesn't care about platform specifics.
More clearly: your JRE and/or base system installation has been
screwed up, probably because someone deleted a library or a symlink,
or it wasnt properly installed the first place. A properly installed
JRE *never* gets linking errors.
Ask for a proper reinstall. Ask the Solaris support and your JRE vendor
(probably Sun too) for details. I vaguely remember the ldd(1) command
had an option for displaying the shared library dependencies, which
may be helpful for tracking down the missing library (or not).
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: error building bgimage.fo, images.fo, list.pdf

2003-04-02 Thread J.Pietschmann
MattO wrote:
I downloaded the fop 0.20.4 binary distribution to a Unix box running
Solaris 5.7 with Java RE 1.3.0 installed.
I'm able to build a .pdf from docs/examples/simple.fo, but when I
attempt to build images.fo, I get the following:
...
java.lang.UnsatisfiedLinkError: exception occurred in JNI_OnLoad
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
It seems your environment is lacking a native library for processing
GIF images, or something similar. Ask your friendly system administrator
to fix this.
BTW isn't Solaris 5.7 rather old? Probably even older than fop 0.20.4...
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error creating PDF with FOPServlet

2003-03-28 Thread shankar




hai,

Check do you the following libraray files are in the classpath
jaxp,xerces,xalan.

Amin Schoeib wrote:
   
  
 
  
  Error creating PDF with FOPServlet
 
  Hi,  
  I have a problem creating a PDF-File using
a XML-File and a XSL-File with the FOP-Servlet(fhe one in the FOP examples
directory).
  
  When I try making a PDF with a FO-File then
everything is ok.  
  Hope that somebody can helps. 
  
  I become the following error: 
  
  java.lang.NullPointerException
 void oracle.xml.jaxp.JXTransformer.reportXSLException(oracle.xml.parser.v2.XSLException)
 JXTransformer.java:762
 void oracle.xml.jaxp.JXTransformer.transform(javax.xml.transform.Source,
javax.xml.transform.Result)
 JXTransformer.java:335
 void oracle.xml.jaxp.JXTransformerHandler.endDocument()
 JXTransformerHandler.java:135
 void oracle.xml.parser.v2.NonValidatingParser.parseDocument()
 NonValidatingParser.java:269
 void oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
 XMLParser.java:147
 void oracle.xml.jaxp.JXXMLFilter.parse(org.xml.sax.InputSource)
 JXXMLFilter.java:91
 void org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader, org.xml.sax.InputSource)
 Driver.java:456
 void Beraterfonds_Servlets.FopServlet.renderXML(org.apache.fop.apps.XSLTInputHandler,
javax.servlet.http.HttpServletResponse)
 FopServlet.java:129
 void Beraterfonds_Servlets.FopServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 FopServlet.java:73
 void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 HttpServlet.java:740
 void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 HttpServlet.java:853
 void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 ServletRequestDispatcher.java:721
 void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest,
javax.servlet.http.HttpServletResponse)
 ServletRequestDispatcher.java:306
 boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS
(9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest,
com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse,
java.io.InputStream, java.io.OutputStream, boolean)
 HttpRequestHandler.java:767
 void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
 HttpRequestHandler.java:259
 void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
 HttpRequestHandler.java:106
 void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
 PooledExecutor.java:803
 void java.lang.Thread.run()
 Thread.java:484  
  
  4Tek Gesellschaft fr angewandte Informationstechnologien
mbH  
  Schoeib Amin  
  Tel. +49 (0) 69 697688-132  
  Fax. +49 (0) 69 697688-111  
  http://www.4tek.de 
  

-- 
With Best Regards / Mit Freundlichen Gren
Shankar ThulasiRaman
___
Maas High Tech Software GmbH, Germany
Calysto Softwares, India -- Ideas 2 Reality

Tel: +91  44 / 52139048
Mobile: +91 98403 78757

http://maas.dehttp://afp2web.de http://xml4cobol.de







Re: Error creating PDF with FOPServlet

2003-03-28 Thread rhodespc
You are using OC4j
In order to get fop to locate the Xalan XSLT transformer,
it was necessary to add the following define to the EXTRA_JAVA_ARGS
in your oc4j startup script:

-
Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFa
ctoryImpl

Otherwise, the JAXP framework provided by OC4J was returning
a broken Oracle implementation of XSLT.




Quoting shankar [EMAIL PROTECTED]:

 hai,
 
 Check do you the following libraray files are in the classpath
 jaxp,xerces,xalan.
 
 Amin Schoeib wrote:
 
  Hi,
  I have a problem creating a PDF-File using a XML-File and a XSL-File 
  with the FOP-Servlet(fhe one in the FOP examples directory).
 
  When I try making a PDF with a FO-File then everything is ok.
  Hope that somebody can helps.
 
  I become the following error:
 
  java.lang.NullPointerException
  void 
 
 oracle.xml.jaxp.JXTransformer.reportXSLException
(oracle.xml.parser.v2.XSLException)
  JXTransformer.java:762
  void 
  oracle.xml.jaxp.JXTransformer.transform(javax.xml.transform.Source, 
  javax.xml.transform.Result)
  JXTransformer.java:335
  void oracle.xml.jaxp.JXTransformerHandler.endDocument()
  JXTransformerHandler.java:135
  void oracle.xml.parser.v2.NonValidatingParser.parseDocument()
  NonValidatingParser.java:269
  void oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
  XMLParser.java:147
  void oracle.xml.jaxp.JXXMLFilter.parse(org.xml.sax.InputSource)
  JXXMLFilter.java:91
  void org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader, 
  org.xml.sax.InputSource)
  Driver.java:456
  void 
 
 Beraterfonds_Servlets.FopServlet.renderXML
(org.apache.fop.apps.XSLTInputHandler,
 
  javax.servlet.http.HttpServletResponse)
  FopServlet.java:129
  void 
 
 Beraterfonds_Servlets.FopServlet.doGet(javax.servlet.http.HttpServletRequest,
 
  javax.servlet.http.HttpServletResponse)
  FopServlet.java:73
  void 
 
 javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,
 
  javax.servlet.http.HttpServletResponse)
  HttpServlet.java:740
  void 
  javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, 
  javax.servlet.ServletResponse)
  HttpServlet.java:853
  void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for 
 
 J2EE].server.http.ServletRequestDispatcher.invoke
(javax.servlet.ServletRequest,
 
  javax.servlet.ServletResponse)
  ServletRequestDispatcher.java:721
  void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for 
 
 J2EE].server.http.ServletRequestDispatcher.forwardInternal
(javax.servlet.ServletRequest,
 
  javax.servlet.http.HttpServletResponse)
  ServletRequestDispatcher.java:306
  boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for 
 
 J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS
 
  (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, 
  com.evermind[Oracle9iAS (9.0.3.0.0) Containers for 
  J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS
 
  (9.0.3.0.0) Containers for 
  J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, 
  java.io.OutputStream, boolean)
  HttpRequestHandler.java:767
  void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for 
  J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
  HttpRequestHandler.java:259
  void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for 
  J2EE].server.http.HttpRequestHandler.run()
  HttpRequestHandler.java:106
  void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
  PooledExecutor.java:803
  void java.lang.Thread.run()
  Thread.java:484
 
  4Tek Gesellschaft für angewandte Informationstechnologien mbH
  Schoeib Amin
  Tel.  +49 (0) 69 697688-132
  Fax. +49 (0) 69 697688-111
  http://www.4tek.de
 
 
 -- 
 With Best Regards / Mit Freundlichen Grüßen
 Shankar ThulasiRaman
 ___
 Maas High Tech Software GmbH, Germany
 Calysto Softwares, India -- Ideas 2 Reality
 
 Tel: +91  44 / 52139048
 Mobile: +91 98403 78757
 
 http://maas.dehttp://afp2web.de http://xml4cobol.de
 
 
 
 

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



Re: Error creating PDF with FOPServlet

2003-03-28 Thread Clay Leeds
Amin,
I believe this person was recommending that *you* look in the 
properties of your project on how to add extra vm arguments to the 
embedded oc4j container. I don't think this person was offerring to do 
it for you.

Good luck!
Amin Schoeib wrote:
That would be very nice.
Thanxx
Schoeib
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 28. März 2003 17:58
An: [EMAIL PROTECTED]
Betreff: Re: AW: Error creating PDF with FOPServlet

I do not use Jdeveloper, but I would look in the properties of your project on 
how to add extra vm arguments to the embedded oc4j container.


-sorry.  

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error using images served by tomcat through apache HTTP server

2003-01-23 Thread Oleg Tkachenko
Koes, Derrick wrote:
Does tomcat not report the correct header info or something to FOP?
I don't understand why there should be a difference.  Does the
authentication interfere in some way?
Sure. How do you think FOP can authentificate itself in your application?
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error logged, but PDF with pictures is OK

2003-01-22 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I still use FOP ver. 0.20.3 .
Upgrade to 0.20.5rc, there were a lot of fixes in this area.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error using images served by tomcat through apache HTTP server

2003-01-22 Thread Clay Leeds
Derrick,
Forgive my newbie-ness, but don't you need a domain like www.koes.com 
in there. Or do you have http://koes/; set up in a host file of some 
sort. If so, perhaps the error is that FOP doesn't read HOSTS files or 
something.

Hope this helps!
Web Maestro Clay
Koes, Derrick wrote:
I'm running Tomcat 4.1.18 with Apache HTTP 2.0.43 and FOP 0.20.4.
In a browser I can get to http://koes/dora/images/draft.jpg (after
authenticating).  However, if I authenticate to my web application and try
to render an fo to pdf using this url for a background-image, I get the
following error.
Error creating background image: No ImageReader for this type of image
(http://koes/dora/images/draft.jpg)+
If I simply serve the file through Apache HTTP (i.e. don't include it in my
web application), everything works fine.
Does tomcat not report the correct header info or something to FOP?
I don't understand why there should be a difference.  Does the
authentication interfere in some way?
Thanks,
Derrick

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer, Medata, Inc.
http://www.medata.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error with footnote

2003-01-20 Thread Marko Petersen
At 23:13 19.01.2003 +0100, you wrote:
java.lang.NullPointerException
at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:94)
Seems like links do not mix well with footnote spilling.
Workarounds:
- Avoid links in footnotes generally. This will save you occasional
  other trouble too.
- Avoid footnote spilling. Check for footnotes which are rendered
  on the page following the reference and force a page break at a
  convenient place before the footnote reference.
I think the problem is easy to fix.
Ok, thanks, I think I will try your second suggestion.
Marko
J.Pietschmann

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


Re: Error with footnote

2003-01-19 Thread J.Pietschmann
Marko Petersen wrote:
I often get the following error after changing some content of my 
docbook-XML when I try to generate PDF:
...
java.lang.NullPointerException
at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:94)
Seems like links do not mix well with footnote spilling.
Workarounds:
- Avoid links in footnotes generally. This will save you occasional
  other trouble too.
- Avoid footnote spilling. Check for footnotes which are rendered
  on the page following the reference and force a page break at a
  convenient place before the footnote reference.
I think the problem is easy to fix.
J.Pietschmann

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


RE: Error with WebSphere

2003-01-16 Thread Sharma, Siddharth









I suggest
you use the Xerces that ships with fop.

Make it
part of your enterprise application, and reference the same by adding its entry
in the webapp's manifest.



Or, simply
replace the Xerces in websphere's lib directory if that is an option for you.





-Original
Message-
From: Paolo Beatrici
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 16, 2003
11:37 AM
To: [EMAIL PROTECTED]
Subject: Error with WebSphere



I've
just installed an application embedding fop into Websphere 4.0.1 Advanced
Edition on Linux.

We got
the following exception :



[03.01.16 14:32:02:736 CET] 10b37e12
ExceptionUtil X CNTR0020E: Non-application exception occurred while processing
method createOutput on bean
BeanId(Deployed_tes_isybusEjbWAS#tes_isybusEjb.jar#Isybus, f2c72ebaa6):
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader

at org.apache.fop.apps.Driver.getParserClassName(Unknown
Source)

at
org.apache.fop.svg.SVGElementMapping.setupSVG(Unknown Source)

at
org.apache.fop.svg.SVGElementMapping.addToBuilder(Unknown Source)

at
org.apache.fop.apps.Driver.addElementMapping(Unknown Source)

at org.apache.fop.apps.Driver.addElementMapping(Unknown
Source)

at
org.apache.fop.apps.Driver.setupDefaultMappings(Unknown Source)

at
org.apache.fop.apps.Driver.init(Unknown Source)

at
com.isyde.isydriver.output.FopDriver.save(FopDriver.java:86)

at com.isyde.isybusparser.output.IsyFopDriver.save(IsyFopDriver.java:76)

at
com.isyde.isybusparser.DDMParser.parse(DDMParser.java:95)

at
com.isyde.isybus.so.Isybus.createOutput(Isybus.java:72)



Can you help me about
this?

Thank you.

Paolo
Beatrici






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

Re: Error with WebSphere

2003-01-16 Thread bhati001



Dont know whether this is related to Fop but i use 
xslt with xml and while testing my installation yesterday, I got the same xsl 
error, so what I did was go with the previous version of xalan and xerces. It 
seemed to work but of course u lose the functionality and performance of the new 
version.

  - Original Message - 
  From: 
  Sharma, Siddharth 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, January 16, 2003 10:38 
  AM
  Subject: RE: Error with WebSphere
  
  
  I 
  suggest you use the Xerces that ships with 
  fop.
  Make 
  it part of your enterprise application, and reference the same by adding its 
  entry in the webapp's manifest.
  
  Or, 
  simply replace the Xerces in websphere's lib directory if that is an option 
  for you.
  
  
  -Original 
  Message-From: Paolo 
  Beatrici [mailto:[EMAIL PROTECTED]Sent: Thursday, January 16, 2003 11:37 
  AMTo: 
  [EMAIL PROTECTED]Subject: Error with 
  WebSphere
  
  I've 
  just installed an application embedding fop into Websphere 4.0.1 Advanced 
  Edition on Linux.
  We got 
  the following exception :
  
  [03.01.16 14:32:02:736 CET] 
  10b37e12 ExceptionUtil X CNTR0020E: Non-application exception occurred while 
  processing method createOutput on bean 
  BeanId(Deployed_tes_isybusEjbWAS#tes_isybusEjb.jar#Isybus, f2c72ebaa6): 
  java.lang.AbstractMethodError: 
  javax/xml/parsers/SAXParser.getXMLReader
  at 
  org.apache.fop.apps.Driver.getParserClassName(Unknown 
  Source)
  at 
  org.apache.fop.svg.SVGElementMapping.setupSVG(Unknown 
  Source)
  at 
  org.apache.fop.svg.SVGElementMapping.addToBuilder(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.addElementMapping(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.addElementMapping(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.setupDefaultMappings(Unknown 
  Source)
  at 
  org.apache.fop.apps.Driver.init(Unknown Source)
  at 
  com.isyde.isydriver.output.FopDriver.save(FopDriver.java:86)
  at 
  com.isyde.isybusparser.output.IsyFopDriver.save(IsyFopDriver.java:76)
  at 
  com.isyde.isybusparser.DDMParser.parse(DDMParser.java:95)
  at 
  com.isyde.isybus.so.Isybus.createOutput(Isybus.java:72)
  
  Can you help me 
  about this?
  Thank 
  you.
  Paolo 
  Beatrici
  
  

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


Re: ERROR Divided by zero

2003-01-13 Thread Laura Ameijide Garcia
If I execute it in the comand thats the result:  It's for my version?

.Laura

C:\fop\fop-0.20.3java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;
lib\avalon-framework 4.0.jar;lib\logkit1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop -d -xml evalu.html -xsl evalu.xsl evalu.pdf

[DEBUG]: Input mode:
[DEBUG]: xslt transformation
[DEBUG]: xml input file: evalu.html
[DEBUG]: xslt stylesheet: gastronofo.xsl
[DEBUG]: Output mode:
[DEBUG]: pdf
[DEBUG]: output file: evalu.pdf
[DEBUG]: OPTIONS
[DEBUG]: no user configuration file is used [default]
[DEBUG]: debug mode on
[DEBUG]: dump configuration
[DEBUG]: quiet mode on
[DEBUG]: base directory: file:/C:/fop/fop-0.20.3/
[INFO]: FOP 0.20.3
[DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
[INFO]: building formatting object tree
[DEBUG]: setting up fonts
[INFO]: Parsing of document complete, stopping renderer
[DEBUG]: Initial heap size: 978Kb
[DEBUG]: Current heap size: 801Kb
[DEBUG]: Total memory used: -177Kb
[DEBUG]:   Memory use is indicative; no GC was performed
[DEBUG]:   These figures should not be used comparatively
[DEBUG]: Total time used: 250ms
[DEBUG]: Pages rendererd: 0
[INFO]: Parsing of document complete, stopping renderer
[ERROR]: / by zero
org.apache.fop.apps.FOPException: / by zero
at org.apache.fop.apps.Driver.render(Driver.java:486)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

javax.xml.transform.TransformerException: / by zero
at
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:137)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

javax.xml.transform.TransformerException: / by zero
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1212)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Thread.java:479)
-
java.lang.ArithmeticException: / by zero
at
org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer.java:171)
at
org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:205)
at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler
.java:180)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1194)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Thread.java:479)





***
- Original Message -
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 13, 2003 10:46 AM
Subject: Re: ERROR Divided by zero


 This indicates an arithmetic error like: 13 / 0 = illegal. You know that
 from school.

 Somewhere in FOP something wanted to divide some value by zero. The
 question now is: where and why?

 The first thing you can do is calling FOP from the command line and
 using the -d parameter which enables more debug output. That way, we
 will get a stacktrace which helps you/us find the location of the error.
 If the information you will get then doesn't help you, send another
 email and copy the whole output from FOP and attach the xhtml and your
 xsl so we can reproduce the error.

 What FOP version do you use?

 On 13.01.2003 10:06:26 Laura Ameijide Garcia wrote:
  Hello,
  I'm beginner in this area. I'm trying to convert a simple html using a
xsl  but the fop always says me:
  [ERROR]: / by zero.
 
  Somebody can help me? What's the meaning of this error?


 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 Divided by zero

2003-01-13 Thread Jeremias Maerki
Ok, the first part is easy. That's an old bug on 0.20.3. Please upgrade
to the 0.20.5rc. But you still need to fix the problem that FOP really
doesn't generate even one page. To track this down, generate the FO file
by just running your XSLT processor but not FOP. Then analyze what's
wrong. If you don't succeed post your FO file.

On 13.01.2003 11:53:20 Laura Ameijide Garcia wrote:

snip/

 [INFO]: FOP 0.20.3

snip/

 [DEBUG]: Pages rendererd: 0

snip/
 java.lang.ArithmeticException: / by zero


Jeremias Maerki


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



Re: Error while loading a local image

2002-12-19 Thread Marcus Kalthoff




Hi,

I found the error. In this case the images were not handled by tomcat directly,
but by a servlet. The servlet did not set the content type. So the content
type being null results in a NullPointerException in fop. Is fop not robust
enough? 


Ciot, Thierry schrieb:

  
Or can somebody say "I have had no problems with that.

  
  
I have no problem including jpeg or gif files from a Tomcat server (Both
Tomcat 3.x and 4.x).
And my Tomcat server is running on a different port (48080).

I use something like this because my images are dynamically generated and
the url is extracted from the input XML stream:

fo:block
 fo:external-graphic
  xsl:attribute name="src"xsl:value-of select="."//xsl:attribute
 /fo:external-graphic
/fo:block

Thierry.

-Original Message-
From: Marcus Kalthoff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 4:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Error while loading a local image


Hi,

just tried with fop-0.20.5rc, but same result: no picture is shown which 
has a "http://localhost/..." url. Does somebody have the same problem?
Or can somebody say "I have had no problems with that. I can include 
images with http://localhost/ !!".

Regards
Marcus Kalthoff


Marcus Kalthoff schrieb:

  
  
Oleg Tkachenko schrieb:



  Marcus Kalthoff wrote:

  
  
I have an fo:external-graphic in my .fo file. The transformation is
running in a jsp-File on tomcat.

When I use a local src= "" "http://localhost/" or
"http://127.0.0.1/.

no picture is shown and I get an error message in the log file:

Error in XObject : Error while loading image
http://localhost/contextpath/myfile.gif : class
java.lang.NullPointerException - null

  
  

Sounds too bizarre, give us more information (full but FOP-only 
exception trace, FOP's debug messages).

  

Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use 
an image on my local tomcat application server. If I type in the url 
in my browser - I see the image.

Here is the complete output with -d option. Again, if use the 
"file:c:\myimage.gif" syntax or if I place the picture somewhere in 
the web and use "http://somewhereinteweb/myimage.gif" everything is fine.


E:\public\fop-0.20.4rcjava -cp 


  
  build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib
\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\j
imi-1.0.jar 
  
  
org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf [DEBUG] 
Input mode:
[DEBUG] FO
[DEBUG] fo input file: C:\placeoffo\test.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: test2.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/placeoffo/
[INFO] FOP 0.20.4rc
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[ERROR] Error in XObject : Error while loading image 
http://localhost/contextpath/images/myimage.gif : class 
java.lang.NullPointerException - null
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 408Kb
[DEBUG] Current heap size: 1624Kb
[DEBUG] Total memory used: 1215Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 3055ms
[DEBUG] Pages rendererd: 1
[DEBUG] Avg render time: 3055ms/page
  





Re: Error while loading a local image

2002-12-19 Thread Johan Åbrandt
 I found the error.
 The servlet did not set the content type.
 Is fop not robust enough?
Robust enough for who? Shit in - shit out...
Marcus Kalthoff wrote:
  Hi,
I found the error. In this case the images were not handled by tomcat 
directly, but by a servlet. The servlet did not set the content type. So 
the content type being null results in a NullPointerException in fop. Is 
fop not robust enough?

Ciot, Thierry schrieb:
Or can somebody say I have had no problems with that.
   

I have no problem including jpeg or gif files from a Tomcat server (Both
Tomcat 3.x and 4.x).
And my Tomcat server is running on a different port (48080).
I use something like this because my images are dynamically generated and
the url is extracted from the input XML stream:
fo:block
fo:external-graphic
 xsl:attribute name=srcxsl:value-of select=.//xsl:attribute
/fo:external-graphic
/fo:block
Thierry.
-Original Message-
From: Marcus Kalthoff [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 4:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Error while loading a local image
Hi,
just tried with fop-0.20.5rc, but same result: no picture is shown which 
has a http://localhost/...; url. Does somebody have the same problem?
Or can somebody say I have had no problems with that. I can include 
images with http://localhost/ !!.

Regards
Marcus Kalthoff
Marcus Kalthoff schrieb:
 

Oleg Tkachenko schrieb:
   

Marcus Kalthoff wrote:
 

I have an fo:external-graphic in my .fo file. The transformation is
running in a jsp-File on tomcat.
When I use a local src= like http://localhost/; or
http://127.0.0.1/.
no picture is shown and I get an error message in the log file:
Error in XObject : Error while loading image
http://localhost/contextpath/myfile.gif : class
java.lang.NullPointerException - null
   

Sounds too bizarre, give us more information (full but FOP-only 
exception trace, FOP's debug messages).

 

Ok, now I use fop standalone (fop.bat). Again, in my .fo file, I use 
an image on my local tomcat application server. If I type in the url 
in my browser - I see the image.

Here is the complete output with -d option. Again, if use the 
file:c:\myimage.gif syntax or if I place the picture somewhere in 
the web and use http://somewhereinteweb/myimage.gif; everything is fine.

E:\public\fop-0.20.4rcjava -cp 

   

build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib
\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\j
imi-1.0.jar 
 

org.apache.fop.apps.Fop -d C:\placeoffo\test.fo test2.pdf [DEBUG] 
Input mode:
[DEBUG] FO
[DEBUG] fo input file: C:\placeoffo\test.fo
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: test2.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/placeoffo/
[INFO] FOP 0.20.4rc
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[ERROR] Error in XObject : Error while loading image 
http://localhost/contextpath/images/myimage.gif : class 
java.lang.NullPointerException - null
[DEBUG] Last page-sequence produced 1 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 408Kb
[DEBUG] Current heap size: 1624Kb
[DEBUG] Total memory used: 1215Kb
[DEBUG]   Memory use is indicative; no GC was performed
[DEBUG]   These figures should not be used comparatively
[DEBUG] Total time used: 3055ms
[DEBUG] Pages rendererd: 1
[DEBUG] Avg render time: 3055ms/page


--
Johan Åbrandt
Technical Project Manager
(Tekninen projektipäällikkö)
Tel. +358 9 6817 3342
Mobile. +358 40 848 8068
[EMAIL PROTECTED]
Profit Software Oy
Meritullinkatu 11 C
00170 Helsinki, Finland
__
This message and its attachments have been found clean from known viruses 
with three different antivirus programs.
__

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


Re: Error while loading a local image

2002-12-19 Thread Oleg Tkachenko
Marcus Kalthoff wrote:
I found the error. In this case the images were not handled by tomcat 
directly, but by a servlet. The servlet did not set the content type. So 
the content type being null results in a NullPointerException in fop. Is 
fop not robust enough?
FOP is robust, but error handling/reporting - not, it's well-known problem, 
which is addressed by the redesign. In all cases of problems with images I'd 
suggest to open image in mozilla and check out content-type, length etc in 
View/Page Info window.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >