thanks...i fixed it. i think it had to do with how and when i was appending the text node to the text element.
-----Original Message----- From: Thomas DeWeese [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 1:46 PM To: [EMAIL PROTECTED] Cc: '[EMAIL PROTECTED]' Subject: Re: dynamically adding text nodes to a document Krevetski, Maria T (EMA) wrote: >Hello, > >I'm trying to dynamically create an svg document, append text nodes to it, >and then display the svg document on a JSVGCanvas. I'm getting this error. >Can anyone tell me what I need to do to fix it? Thanks. > > Hmm looks to me like you might be using 'bad' text nodes (meaning nodes not created by the SVGDocument it's self). Can you provide a standalone example that shows this problem? or at least a code snippit that shows how you are creating the SVG document and appending the text nodes? >java.lang.NullPointerException >at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown Source) > >at org.apache.batik.css.engine.CSSEngine.getComputedStyle(Unknown Source) > >at org.apache.batik.bridge.CSSUtilities.getComputedStyle(Unknown Source) > >at org.apache.batik.bridge.CSSUtilities.convertDisplay(Unknown Source) >at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > >at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) >at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) >at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source) > >Maria Krevetski >Computer Programmer/Web Developer >22755 Saufley Road >Patuxent River, MD 20670 >Phone: (301) 342-6629 >E-mail: [EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]