SVG base URL exception
FOP is complaining about "Could not set base URL for svg" and refusing to draw a line. How does one set this URL? The version of FOP I'm using .20.1 Specifically, this XSL:FO... http://www.w3.org/2000/svg"; width="6in" height="0.1in"> ...gives me this stack trace... [ERROR]: Logger not set [INFO]: building formatting object tree [INFO]: [1] [INFO]: [2] [ERROR]: > [ERROR]: > [ERROR]: Could not set base URL for svg java.net.MalformedURLException: java.lang.NullPointerException at java.net.URL.(URL.java:496) at java.net.URL.(URL.java:376) at java.net.URL.(URL.java:330) at org.apache.fop.svg.SVGElement.layout(SVGElement.java:143) at org.apache.fop.fo.flow.InstreamForeignObject.layout (InstreamForeignObject.java:198) at org.apache.fop.fo.flow.Block.layout(Block.java:259) at org.apache.fop.fo.flow.Flow.layout(Flow.java:149) at org.apache.fop.fo.flow.Flow.layout(Flow.java:108) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:294) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:191) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:178) I remember creating SVG lines in the past (must have been an older version of FOP) w/o errors like this. d - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: SVG base URL exception
David Neumann wrote: > FOP is complaining about "Could not set base URL for svg" and refusing > to draw a line. How does one set this URL? The version of FOP I'm using > .20.1 > > Specifically, this XSL:FO... > > > > http://www.w3.org/2000/svg"; width="6in" height="0.1in"> >y1="1.2in" y2="1.2in" x2="6in"> > > > > > > ...gives me this stack trace... > > [ERROR]: Logger not set > [INFO]: building formatting object tree > [INFO]: [1] > [INFO]: [2] > [ERROR]: > > [ERROR]: > > [ERROR]: Could not set base URL for svg > java.net.MalformedURLException: java.lang.NullPointerException Odd, I was not able to find the error location in the 0.20.1 source. Are you sure you are using 0.20.1? Anyway, it is recommended to upgrade to 0.20.3 or .4 (soon to appear), because this fixes a few important bugs. Apart from this, you could try to set the baseDir property http://marc.theaimsgroup.com/?l=fop-dev&m=101777546120252&w=2 J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]