Looks strange, I have had no problem with the latest from Trunk and the
stand alone program here  http://pastebin.com/zzQrHwwD

Except for the Font issue I am having that is. 

 

Maybe have a look at the code I have there and see where yours differs, mine
takes xml/xslt and turns it into PDF

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




From: dinuka dayarathna [mailto:[email protected]] 
Sent: 11 May 2011 12:21
To: [email protected]
Subject: ExampleXML2PDF.java ERROR

 

(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link ExampleXML2PDF.java
<http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/
embedding/ExampleXML2PDF.java?view=markup> . This is the application which I
had searched from a long time.

But when I build and run this application it gives me the following error.
============================================================================
=============

FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectt
eam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectt
eam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pd
f)

Transforming...
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/ut
il/Iterator;
    at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:75)
    at
org.apache.fop.fo.ElementMappingRegistry.<init>(ElementMappingRegistry.java:
67)
    at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:162)
    at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
    at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.
============================================================================
=============
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.

Reply via email to