Re: Strange FOP error

2006-10-08 Thread Jeremias Maerki
You're missing some JAR files in the classpath. Judging from the error
message at least avalon-framework.jar is missing. Please tell us how you
start FOP. Are you using the fop.bat script that comes with FOP? Are you
using java -jar fop.jar? Or are you setting up the classpath yourself?

The method Main.startFOPWithDynamicClasspath() is only called if some
dependencies FOP needs are missing on the classpath. In this case, FOP
tries to find the dependencies itself. But that only works if the
current directory (the directory where you start the JVM from) is the
root directory of your FOP installation.

If you start FOP using fop.bat from the root directory of your FOP
installation, it should work. Would you please test that?

Good luck.

On 08.10.2006 07:57:34 Nicol Bolas wrote:
 
 I'm getting some strange errors with the 0.92beta release of FOP. I'm able to
 use 0.91beta just fine, but 0.92beta gives me the following errors:
 
 Unable to start FOP:
 java.lang.RuntimeException: fop.jar not found in directory: G:\ (or below)
 at org.apache.fop.cli.Main.getJARList(Main.java:57)
 at
 org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:117)
 at org.apache.fop.cli.Main.main(Main.java:192)
 
 If I'm in the FOP directory when I run it, I get different errors:
 
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:125)
 at org.apache.fop.cli.Main.main(Main.java:192)
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/avalon/framework/configuration/ConfigurationException
 at
 org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:90)
 at org.apache.fop.cli.Main.startFOP(Main.java:146)
 
 I'm running on WinXP.
 
 Any ideas?



Jeremias Maerki


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



Re: Error when using FOP embedded using Saxon for transformation

2006-10-08 Thread Florent Georges
Jeremias Maerki wrote:

  Hi

 Seems to be a problem in Saxon. When I last tested with Saxon
 8.7.1, everything was fine. But I downloaded 8.8 and I can now
 reproduce your problem. So it's a regression in Saxon. The SAX
 startDocument() method is somehow called twice although it must
 not be.

  BTW, Mike released a snapshot of the SVN repository on the
29th of September.  Maybe this fix the problem?  See:

http://sourceforge.net/mailarchive/message.php?msg_id=36968233

  Regards,

--drkm























___ 
Découvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.com 


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



conversion of xml data to pdf

2006-10-08 Thread Srinivas Akula
Hello Sir,   I am usingFop 0.2.5., it is working fine in tomcat 5.0, but when the same application has been deployed in oracle 9i apache server, the application is throwing Null Pointer Exception,. The Problem i am getting is at Transformer.transform(Source, Result).   I appriciate you, if you could please provide me the solution.I will wait for your earliest response.  Thanks and Regars,  A.Srinivas  
A.Srinivas.
Tel:24553502
 
		Get your email and more, right on the  new Yahoo.com 


Re: conversion of xml data to pdf

2006-10-08 Thread Andreas L Delmelle

On Oct 8, 2006, at 12:33, Srinivas Akula wrote:

I am using Fop  0.2.5., it is working fine in tomcat 5.0, but when  
the same application has been deployed in oracle 9i apache server,  
the application is throwing Null Pointer Exception,. The Problem i  
am getting is at Transformer.transform(Source, Result).

I appriciate you, if you could please provide me the solution.


This looks a lot like the bug in Oracle's XSLT processor that has  
popped up a few times now on this list...


There are two possible solutions:
- replace Oracle's XML/XSLT combo with Xerces (XML) and Xalan/Saxon  
(XSLT)
- file a bug with Oracle, and insist on the problem being resolved at  
their end


It appears that either these bugs simply get ignored by Oracle (*),  
or no-one takes the time to file them and supply the Oracle-devs with  
the information they really need to address these problems.


(*) Hard to believe, but it does happen with commercial software. Ask  
Jeremias about his experience with filing bugs against Adobe Acrobat. :)
Plain commercial logic: if you're not a large enough customer, the  
bug will end up way at the bottom of their priority list.



In any case, nothing that can be done about it from the FOP side, I'm  
afraid...


Cheers,

Andreas


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



Re: conversion of xml data to pdf

2006-10-08 Thread Glen Mazza

Andreas L Delmelle wrote:


On Oct 8, 2006, at 15:45, Andreas L Delmelle wrote:


snip /
It appears that either these bugs simply get ignored by Oracle (*),  
or no-one takes the time to file them and supply the Oracle-devs  
with the information they really need to address these problems.



It just occurred to me: to make sure which of the two options applies  
here, maybe someone can test this with Oracle 10g and see if the bug  
is still present in that release. Maybe it has already been fixed,  
but not in Oracle 9...





Been there, done that with Oracle 10.1.3, Oracle XML-parsing bugs still 
exist there too.  The main solution, which worked well for me, is to 
switch to the Apache Xerces libraries[1].


Glen

[1] 
http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14433/classload.htm#CIHFJEEF



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



Glyphs in TrueType font file not found by FOP

2006-10-08 Thread kev martin
Using FOP 0.92.

I have created an XML file to use the the arial.ttf font file, like this:

java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar
 org.apache.fop.fonts.apps.TTFReader C:\windows\fonts\arial.ttf arial.xml

I have written some code for Arabic charcter shaping, which tells me that the glyph I need has glyph index 1509.
 Using FontLab Studio (www.fontlab.com), and opening arial.ttf, I can see that this is correct, and the glyph I want is indeed at index 1509.


But the arial.xml file has no glyph index 1509, and I am unable to understand why.
 I have checked the FOP source against the TrueType specification and I cannot see the problem – does anyone have any ideas ?

Thanks

Kev


Glyphs in TrueType font file not found by FOP

2006-10-08 Thread kev martin
Hi

I am using FOP 0.92.
I have created an XML file to use the the arial.ttf font file, like this:
java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.1.jar org.apache.fop.fonts.apps.TTFReader C:\windows\fonts\arial.ttf arial.xml
I have written some code for Arabic charcter shaping, which tells me that the glyph I need has glyph index 1509. Using FontLab Studio (www.fontlab.com), and opening arial.ttf, I can see that this is correct, and the glyph I want is indeed at index 1509. 

But the arial.xml file has no glyph index 1509, and I am unable to understand why. I have checked the FOP source against the TrueType specification and I cannot see the problem – does anyone have any ideas ?
Thanks

Kev 


Re: Strange FOP error

2006-10-08 Thread Nicol Bolas


Jeremias Maerki-2 wrote:
 
 You're missing some JAR files in the classpath. Judging from the error
 message at least avalon-framework.jar is missing. Please tell us how you
 start FOP. Are you using the fop.bat script that comes with FOP? Are you
 using java -jar fop.jar? Or are you setting up the classpath yourself?
 

I'm using fop.bat.




Jeremias Maerki-2 wrote:
 
 The method Main.startFOPWithDynamicClasspath() is only called if some
 dependencies FOP needs are missing on the classpath. In this case, FOP
 tries to find the dependencies itself. But that only works if the
 current directory (the directory where you start the JVM from) is the
 root directory of your FOP installation.
 
 If you start FOP using fop.bat from the root directory of your FOP
 installation, it should work. Would you please test that?
 

Running fop.bat from the FOP directory gives the second error message I
reported.

On 08.10.2006 07:57:34 Nicol Bolas wrote:
 
 I'm getting some strange errors with the 0.92beta release of FOP. I'm able
 to
 use 0.91beta just fine, but 0.92beta gives me the following errors:
 
 Unable to start FOP:
 java.lang.RuntimeException: fop.jar not found in directory: G:\ (or below)
 at org.apache.fop.cli.Main.getJARList(Main.java:57)
 at
 org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:117)
 at org.apache.fop.cli.Main.main(Main.java:192)
 
 If I'm in the FOP directory when I run it, I get different errors:
 
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:125)
 at org.apache.fop.cli.Main.main(Main.java:192)
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/avalon/framework/configuration/ConfigurationException
 at
 org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:90)
 at org.apache.fop.cli.Main.startFOP(Main.java:146)
 
 I'm running on WinXP.
 
 Any ideas?



Jeremias Maerki


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




-- 
View this message in context: 
http://www.nabble.com/Strange-FOP-error-tf2403581.html#a6711867
Sent from the FOP - Users mailing list archive at Nabble.com.


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