Resolved: NPE SVGDOMImplementation
Alan White <[email protected]> Tue, 5 Mar 2019 15:40:37 +0000
| Newsgroups | gmane.text.xml.batik.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-0DB87A70-10B1-40DA-87CC-14F5D152FCEA Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Errors in a build script were pulling in old versions of fop.=20 Alan White [email protected] > On 3 Mar 2019, at 00:53, Alan White <[email protected]> wrote: >=20 > Hi,=20 >=20 > Getting an NPE as follows: >=20 > Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org= /apache/batik/dom/svg/SVGDOMImplementation = =20 > at org.apache.fop.svg.AbstractFOPTranscoder.(AbstractFOPTranscoder= .java:71) = =20 > at org.apache.fop.svg.PDFTranscoder.(PDFTranscoder.java:88) = = =20 > at org.whiteware.score.file.ScorePDFWriter.scoreWriteFilePDF(Score= PDFWriter.java:91) = =20 >=20 > I note that the doc has SVGDOMImplementation living in the anim jar as org= .apache.batik.anim.dom.SVGDOMImplementation, and not org.apache.batik.dom.sv= g.SVGDOMImplementation. >=20 > As you can see it's being sought by the fop PDF transcoder, I have the fol= lowing jars in the classpath >=20 > avalon-framework-api-4.3.1.jar=20 > batik-awt-util-1.11.jar =20 > batik-dom-1.11.jar =20 > batik-svggen-1.11.jar =20 > batik-util-1.11.jar =20 > xmlgraphics-commons-2.3.jar =20 > batik-anim-1.11.jarbatik-constants-1.11.jarbatik-i18n-1.11.jarbatik-transc= oder-1.11.jar =20 >=20 > fop-2.3.jar = =20 >=20 > I saw the stackoverflow post saying at batik 1.8 it moved to anim, but why= would something still be referencing it by it's old name, I've got the comp= lete batik 1.11 and fop 2.3 here. >=20 > Thanks > Alan --Apple-Mail-0DB87A70-10B1-40DA-87CC-14F5D152FCEA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto">Errors in a build script were pulling in ol= d versions of fop. <br><br><div id=3D"AppleMailSignature" dir=3D"ltr">A= lan White<div><a href=3D"mailto:[email protected]">[email protected]</a></= div></div><div dir=3D"ltr"><br>On 3 Mar 2019, at 00:53, Alan White <<a hr= ef=3D"mailto:[email protected]">[email protected]</a>> wrote:<br><br></= div><blockquote type=3D"cite"><div dir=3D"ltr"><div dir=3D"ltr">Hi, <di= v><br></div><div>Getting an NPE as follows:</div><div><br></div><div><table b= order=3D"0" cellpadding=3D"0" cellspacing=3D"0"><tbody><tr><td><div id=3D"gm= ail-vt100" style=3D"float:left;border:0px solid;padding:1px;line-height:113%= ;font-size:9pt;font-family:"Lucida Console","Lucida Console &= quot;,Consolas;color:rgb(191,191,191);background-color:rgb(0,0,0)"><pre styl= e=3D"margin-top:0px;margin-bottom:0px;padding:0px;font-family:inherit"><span= class=3D"gmail-od">Exception in thread "AWT-EventQueue-0" java.lang.NoClass= DefFoundError: org/apache/batik/dom/svg/SVGDOMImplementation = </span> <span class=3D"ev"> at org.apache.fop.svg.AbstractFOPTranscoder.(Abst= ractFOPTranscoder.java:71) = </span> <span class=3D"gmail-od"> at org.apache.fop.svg.PDFTranscoder.(PDFTra= nscoder.java:88) = </span> <span class=3D"ev"> at org.whiteware.score.file.ScorePDFWriter.scoreW= riteFilePDF(ScorePDFWriter.java:91) = </span></pre></div></td></tr></tbody= ></table><br></div><div>I note that the doc has SVGDOMImplementation living i= n the anim jar as org.apache.batik.anim.dom.SVGDOMImplementation, and not or= g.apache.batik.dom.svg.SVGDOMImplementation.</div><div><br></div><div>As you= can see it's being sought by the fop PDF transcoder, I have the following j= ars in the classpath</div><div><br></div><div><table border=3D"0" cellpaddin= g=3D"0" cellspacing=3D"0"><tbody><tr><td> <div id=3D"gmail-vt100" style=3D"float:left;border:0px solid;padding:1px;l= ine-height:113%;font-size:9pt;font-family:"Lucida Console","L= ucida Console ",Consolas;color:rgb(191,191,191);background-color:rgb(0,= 0,0)"> <pre style=3D"margin-top:0px;margin-bottom:0px;padding:0px;font-family:in= herit"><span class=3D"gmail-od">avalon-framework-api-4.3.1.jar </span></pre>= <pre style=3D"margin-top:0px;margin-bottom:0px;padding:0px;font-family:inher= it"><span class=3D"gmail-od">batik-awt-util-1.11.jar </span></pre><pre sty= le=3D"margin-top:0px;margin-bottom:0px;padding:0px;font-family:inherit"><spa= n class=3D"gmail-od">batik-dom-1.11.jar </span></pre><pre style=3D"margin-= top:0px;margin-bottom:0px;padding:0px;font-family:inherit"><span class=3D"gm= ail-od">batik-svggen-1.11.jar </span></pre><pre style=3D"margin-top:0px= ;margin-bottom:0px;padding:0px;font-family:inherit"><span class=3D"gmail-od"= >batik-util-1.11.jar </span></pre><pre style=3D"margin-top:0px;margin-botto= m:0px;padding:0px;font-family:inherit"><span class=3D"gmail-od">xmlgraphics-= commons-2.3.jar </span> <span class=3D"ev">batik-anim-1.11.jar</span><span class=3D"ev">batik-consta= nts-1.11.jar</span><span class=3D"ev">batik-i18n-1.11.jar</span><span class=3D= "ev">batik-transcoder-1.11.jar </span><span class=3D"ev gmail-bd gmail-fg-c= olor12" style=3D"font-weight:bold;color:rgb(96,96,255)"><br><span style=3D"c= olor:rgb(191,191,191);font-family:inherit;font-size:9pt;font-weight:normal">= <br></span><span style=3D"color:rgb(191,191,191);font-family:inherit;font-si= ze:9pt;font-weight:normal">fop-2.3.jar = </span></span></pre> </div> </td></tr></tbody></table></div><div><br></div><div>I saw the stackoverflo= w post saying at batik 1.8 it moved to anim, but why would something still b= e referencing it by it's old name, I've got the complete batik 1.11 and fop 2= .3 here.</div><div><br></div><div>Thanks</div><div>Alan</div></div> </div></blockquote></body></html>= --Apple-Mail-0DB87A70-10B1-40DA-87CC-14F5D152FCEA--