You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by je...@sanmargroup.com on 2005/06/30 08:23:42 UTC

Object instance as first argument

Hi all,

I have taken the two files from Mr samir's mail (from fop-dev list), when 
I convert it into pdf , i get the below error,

can anyone help me to find out the error..

OS :  WIN98 

C:\fop-0.20.5>FOP -xsl xsl.txt -xml xml.txt -pdf tt.pdf
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[ERROR] javax.xml.transform.TransformerException: Instance method call to 
method
 getInstance requires an Object instance as first argument

C:\fop-0.20.5>

Regards
Eugene

Re: Object instance as first argument

Posted by Jeremias Maerki <de...@greenmail.ch>.
That looks a lot like an XSLT problem to me, not like a FOP problem.
There are custom extensions (or rather Java classes) referenced in the
stylesheet. The problems probably come from there. I'd run the XSLT
stage separately (i.e. just generate the FO file). You can also get a
more informative stack trace from FOP by specifying the "-d" parameter.

I'll also answer Samir Jyoti separately.

On 30.06.2005 08:23:42 jeb501 wrote:
> Hi all,
> 
> I have taken the two files from Mr samir's mail (from fop-dev list), when 
> I convert it into pdf , i get the below error,
> 
> can anyone help me to find out the error..
> 
> OS :  WIN98 
> 
> C:\fop-0.20.5>FOP -xsl xsl.txt -xml xml.txt -pdf tt.pdf
> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [INFO] FOP 0.20.5
> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [INFO] building formatting object tree
> [INFO] setting up fonts
> [INFO] [1]
> [ERROR] javax.xml.transform.TransformerException: Instance method call to 
> method
>  getInstance requires an Object instance as first argument
> 
> C:\fop-0.20.5>
> 
> Regards
> Eugene



Jeremias Maerki


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