You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by David Neumann <dn...@apple.com> on 2002/06/16 07:37:07 UTC
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...
<fo:block>
<fo:instream-foreign-object>
<svg xmlns="http://www.w3.org/2000/svg" width="6in"
height="0.1in">
<g><line stroke-width="0.05in" stroke="#000000"
x1="0.4in" y1="1.2in" y2="1.2in" x2="6in"></line></g>
</svg>
</fo:instream-foreign-object>
</fo:block>
...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.<init>(URL.java:496)
at java.net.URL.<init>(URL.java:376)
at java.net.URL.<init>(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: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: SVG base URL exception
Posted by Ralph LaChance <Ra...@compuserve.com>.
At 11:04 AM 6/16/02, you wrote:
>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
This reminds me that the AWTStarter and the PrintStarter do
not quite set up the logging environment in the same was as PDF.
I have the changes needed to bring them (i.e., Print & AWT) into
alignment with PDF. I can't send them along until Wednesday
(my office is being dismantled around me as I speak...) which I
believe is still in time for spinning 0.20.4.
(signing off before someone pulls the wrong plug !)
' Best,
-Ralph LaChance
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: SVG base URL exception
Posted by "J.Pietschmann" <j3...@yahoo.de>.
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...
>
> <fo:block>
> <fo:instream-foreign-object>
> <svg xmlns="http://www.w3.org/2000/svg" width="6in" height="0.1in">
> <g><line stroke-width="0.05in" stroke="#000000" x1="0.4in"
> y1="1.2in" y2="1.2in" x2="6in"></line></g>
> </svg>
> </fo:instream-foreign-object>
> </fo:block>
>
>
> ...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: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org