Hello Thomas !
I know , my Version of xerces is not up to date, but I cannot update it, because some parts of the system I am working on cannot be updated :(  .
But on Linux, Windows and Solaris  it  runs without any problems and the same jars..
I cannot believe, it do not work on FreeBSD.  
However we have switched our live environment to Solaris and now everything is running fine. I am just wondering if there is such a difference in VMs..

Greetings,
Lutz



Thomas DeWeese <[EMAIL PROTECTED]>

03.20.04 01:30 AM
Bitte antworten an "Batik Users"

       
        An:        Batik Users <[EMAIL PROTECTED]>
        Kopie:        
        Thema:        Re: batik throws java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found



Hi Lutz,

   This looks like some sort of mismatched Jar file problem.
In the very least I think you may need to upgrade Xerces.
Right now Batik is distributed with Xercies 2.5.0 - you seem
to be using 1.2.3!


Lutz Dornbusch wrote:

>
> Greetings!
>
> I have the following problem:
>
> I am using batik V1.5 on a jdk 1.3.1_04 on solaris and on jdk 1.4.0_01
> on Windows 2000 as developmentplatform
>
> I installed the batik on a FreeBSD 4.9 with diablo jdk 1.3.1 and
> sun-jdk-1.3.1_10 in Linux compatibility Mode and it throws on this
> machine an Exception. (listed below)
> I am using the same jar. I am starting from commandline like this:
>  >java  -classpath [path]batik_1_5.jar:[PATH]xerces_1_2_3.jar
> org.apache.batik.apps.rasterizer.Main -scriptSecurityOff [PATH]mySVG.svg
>
> On solaris , windows and on a gentoo-Linux it runs and generates the PNG
> on FreeBSD it crashes [on an very old RedHat-Linux it crashes with a
> segmentation fault, but this is not important here]
>
> Why is this problem on FreeBSD? I read on another forum, that multiple
> SAXParser can cause this Exception, but when I start without
> xerces_1_2_3.jar, batik is complainig the missing SAXParser, so I think
> there is only this one. I also tried on
>
> Any idea how to solve this problem?
>
>
> I tried it on different JDKS also:
> on JDK 1.18 it complains wrong major number
> on JDK 1.2.2_012 it throws on windows 2000 also the mentioned
> exception.. but I didn't investigated this further, because batik should
> only run on java 1.3
>
> Thanx  in advance!
>
>
> Exception thrown by FreeBSD:
>  Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found
>         at org.apache.batik.dom.GenericAttr.<init>(GenericAttr.java:42)
>         at
> org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:176)
>         at
> org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap.setUnspecifiedAttribute(AbstractElement.java:231)
>
>         at
> org.apache.batik.dom.svg.AbstractElement.setUnspecifiedAttribute(AbstractElement.java:142)
>
>         at
> org.apache.batik.dom.svg.AttributeInitializer.resetAttribute(AttributeInitializer.java:94)
>
>         at
> org.apache.batik.dom.svg.AttributeInitializer.initializeAttributes(AttributeInitializer.java:70)
>
>         at
> org.apache.batik.dom.svg.AbstractElement.initializeAttributes(AbstractElement.java:108)
>
>         at
> org.apache.batik.dom.svg.AbstractElement.<init>(AbstractElement.java:52)
>         at
> org.apache.batik.dom.svg.SVGOMElement.<init>(SVGOMElement.java:67)
>         at
> org.apache.batik.dom.svg.SVGStylableElement.<init>(SVGStylableElement.java:61)
>
>         at
> org.apache.batik.dom.svg.SVGOMSVGElement.<init>(SVGOMSVGElement.java:104)
>         at
> org.apache.batik.dom.svg.SVGDOMImplementation$SvgElementFactory.create(SVGDOMImplementation.java:1497)
>
>         at
> org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.createElementNS(ExtensibleSVGDOMImplementation.java:204)
>
>         at
> org.apache.batik.dom.svg.SVGOMDocument.createElementNS(SVGOMDocument.java:320)
>
>         at
> org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(SVGDOMImplementation.java:164)
>
>         at
> org.apache.batik.dom.util.SAXDocumentFactory.startElement(SAXDocumentFactory.java:494)

>
>         at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371)
>         at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:705)
>
>         at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1852)
>
>         at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1000)
>
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380)
>
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861)
>         at
> org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:370)
>
>         at
> org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:299)
>
>         at
> org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:186)
>
>         at
> org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:259)
>
>         at
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:118)
>
>         at
> org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:959)
>
>         at
> org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:685)
>
>         at org.apache.batik.apps.rasterizer.Main.execute(Main.java:877)
>         at org.apache.batik.apps.rasterizer.Main.main(Main.java:930)



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



Reply via email to