Hi,

> > Try to check the GVTNode exist or not by bridgeContext.getGraphicsNode
> > (Element) this method will return GVT node, if it succesfully create the
> > corresponding GVT node for new added element.
> > First check the returned GVT Node for
> > - null or not
> > - if not null call gvtNode.getBounds() to check the resulting rectangle
> > geometry (x,y,w,h) is it really in the intended area space
> > 
> 
> Good tip it seems.
> 
> getBounds() is null for all shapes i add that don't appear. Where does 
> the bounds get set or what could be causing this ? In case it helps, 
> I've uploaded an example xml stream my servlet is generating to 
> www.domek.be/map3.log.

Some error in batik especially during runtime are not reported through
Throw clause that we can catch using try..catch block, because some part
of batik catch this error first and instead of re throw, it is pass the
exception to the userAgent.displayError(Exception). So in your
userAgent/inherited user agent, try to print the stack trace of the
exception in method userAgent.displayError(Exception). The default
userAgent.displayError() is just empty method.

Secondly, how do you import the new created node. Are you using the
batik SVG Implementation Document import? Ignoring the performance
issues first (batik import is fast enough) try to use the Batik SVG
Document import to make sure that the created node is using Batik class,
because I saw some place in Batik code that cast some node into its own
class eg: (SVGOMDocument)doc. This cast could throw exception if the
node is not batik class.

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


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

Reply via email to