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 "Peter B. West" <li...@pbw.id.au> on 2005/12/07 11:27:04 UTC

0.20.5 XP and SVG

I'm trying to output an SVG image as an fo:external-graphic.  I'm 
getting the following:

Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.batik.bridge.
UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/
Element;)Lorg/apache/batik/util/UnitProcessor$Context;
         at 
org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107)

         at 
org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav
a:85)
         at 
org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact
ory.java:129)
         at 
org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181)
         at 
org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18
8)

Is this a classpath problem, is it not finding the image, or is it 
something else?

Peter
---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


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


Re: 0.20.5 XP and SVG

Posted by "Peter B. West" <li...@pbw.id.au>.
Peter B. West wrote:
> Jeremias Maerki wrote:
> 
>> Make sure you're using the Batik version that comes with FOP 0.20.5.
>> Newer versions of Batik have a backwards-incompatible change in the API.
>> The alternative is to use the maintenance branch [1] where the necessary
>> adjustments have been made.
>>
>> [1] 
>> http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain/ 
>>
>>
>> On 07.12.2005 11:27:04 Peter B. West wrote:
>>
>>> I'm trying to output an SVG image as an fo:external-graphic.  I'm 
>>> getting the following:
>>>
>>> Exception in thread "main" java.lang.NoSuchMethodError: 
>>> org.apache.batik.bridge.
>>> UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/ 
>>>
>>> Element;)Lorg/apache/batik/util/UnitProcessor$Context;
>>>         at 
>>> org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107)
>>>
>>>         at 
>>> org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav
>>> a:85)
>>>         at 
>>> org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact
>>> ory.java:129)
>>>         at 
>>> org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181)
>>>         at 
>>> org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18
>>> 8)
>>>
>>> Is this a classpath problem, is it not finding the image, or is it 
>>> something else?
>>
>>
> 
> Hi Jeremias,
> 
> As far as I can tell, I'm using a standard 0.20.5 distribution.  The 
> script I'm using is calling the fop.bat script, and the classpath 
> includes the lib/batik.jar from 0.20.5. ???
> 
> Peter

There is a local habit of dropping every jar that comes along into 
jre/lib/ext, including batik 1.6.  That will be the problem.

Peter
---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


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


Re: 0.20.5 XP and SVG

Posted by "Peter B. West" <li...@pbw.id.au>.
Jeremias Maerki wrote:
> Make sure you're using the Batik version that comes with FOP 0.20.5.
> Newer versions of Batik have a backwards-incompatible change in the API.
> The alternative is to use the maintenance branch [1] where the necessary
> adjustments have been made.
> 
> [1] http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain/
> 
> On 07.12.2005 11:27:04 Peter B. West wrote:
> 
>>I'm trying to output an SVG image as an fo:external-graphic.  I'm 
>>getting the following:
>>
>>Exception in thread "main" java.lang.NoSuchMethodError: 
>>org.apache.batik.bridge.
>>UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/
>>Element;)Lorg/apache/batik/util/UnitProcessor$Context;
>>         at 
>>org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107)
>>
>>         at 
>>org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav
>>a:85)
>>         at 
>>org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact
>>ory.java:129)
>>         at 
>>org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181)
>>         at 
>>org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18
>>8)
>>
>>Is this a classpath problem, is it not finding the image, or is it 
>>something else?
> 

Hi Jeremias,

As far as I can tell, I'm using a standard 0.20.5 distribution.  The 
script I'm using is calling the fop.bat script, and the classpath 
includes the lib/batik.jar from 0.20.5. ???

Peter
---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


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


Re: 0.20.5 XP and SVG

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Make sure you're using the Batik version that comes with FOP 0.20.5.
Newer versions of Batik have a backwards-incompatible change in the API.
The alternative is to use the maintenance branch [1] where the necessary
adjustments have been made.

[1] http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain/

On 07.12.2005 11:27:04 Peter B. West wrote:
> I'm trying to output an SVG image as an fo:external-graphic.  I'm 
> getting the following:
> 
> Exception in thread "main" java.lang.NoSuchMethodError: 
> org.apache.batik.bridge.
> UnitProcessor.createContext(Lorg/apache/batik/bridge/BridgeContext;Lorg/w3c/dom/
> Element;)Lorg/apache/batik/util/UnitProcessor$Context;
>          at 
> org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:107)
> 
>          at 
> org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.jav
> a:85)
>          at 
> org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFact
> ory.java:129)
>          at 
> org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181)
>          at 
> org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:18
> 8)
> 
> Is this a classpath problem, is it not finding the image, or is it 
> something else?


Jeremias Maerki


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