Hi Thomas,
I don't really know what your problem is...
My problem is the appearing batik error panel ;-)

a e.printStackTrace() to line 773 in CSSEngine.java.
Maybe your source code is different, my line 773 in CSSEngine.java from
http://apache.engram.de/apache.org/xml/batik/batik-src-1.5.1.zip
is
  String style = elt.getAttributeNS(styleNamespaceURI, ...
  there does not appear the exception, but a little bit later

My appearing exception is the DOMException catched in line 784.
The full stack trace is:
java.lang.NullPointerException
at org.apache.batik.css.engine.CSSEngine.putAuthorProperty(CSSEngine.java:1222)
at org.apache.batik.css.engine.CSSEngine$StyleDeclarationDocumentHandler.property(CSSEngine.java:1408)
at org.apache.batik.css.parser.Parser.parseStyleDeclaration(Parser.java:910)
at org.apache.batik.css.parser.Parser.parseStyleDeclarationInternal(Parser.java:301)
at org.apache.batik.css.parser.Parser.parseStyleDeclaration(Parser.java:1711)
at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(CSSEngine.java:782)
at org.apache.batik.css.engine.CSSEngine.invalidateProperties(CSSEngine.java:1941)
at org.apache.batik.css.engine.CSSEngine.propagateChanges(CSSEngine.java:2086)
at org.apache.batik.css.engine.CSSEngine.invalidateProperties(CSSEngine.java:1981)
at org.apache.batik.css.engine.CSSEngine.propagateChanges(CSSEngine.java:2086)
at org.apache.batik.css.engine.CSSEngine.invalidateProperties(CSSEngine.java:1981)
at org.apache.batik.css.engine.CSSEngine.inlineStyleAttributeUpdated(CSSEngine.java:1880)
at org.apache.batik.css.engine.CSSEngine$DOMAttrModifiedListener.handleEvent(CSSEngine.java:2349)
at org.apache.batik.dom.events.EventSupport.fireEventListeners(EventSupport.java:268)
at org.apache.batik.dom.events.EventSupport.dispatchEvent(EventSupport.java:240)
at org.apache.batik.dom.AbstractNode.dispatchEvent(AbstractNode.java:455)
at org.apache.batik.dom.AbstractElement.fireDOMAttrModifiedEvent(AbstractElement.java:547)
at org.apache.batik.dom.AbstractAttr.setNodeValue(AbstractAttr.java:175)
at org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:218)
at org.apache.batik.dom.AbstractElement.setAttributeNS(AbstractElement.java:276)
at org.apache.batik.dom.svg.SVGStylableElement$StyleDeclaration.propertyChanged(SVGStylableElement.java:707)
at org.apache.batik.css.dom.CSSOMStyleDeclaration.setProperty(CSSOMStyleDeclaration.java:189)
at de.proveo.wwt.gui.svgmap.unit.SVGUnit.show(SVGUnit.java:299)
at de.proveo.wwt.gui.svgmap.panels.SVGMapPanel$1.run(SVGMapPanel.java:336)
at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:207)
at java.lang.Thread.run(Thread.java:536)



> Is the top of the stack trace always the updateManager > runnableQueue? Yes, it seems so.

Did I use the UpdateManager wrong ?

Maik


Thomas DeWeese schrieb:
Hi Maik,

   I don't really know what your problem is, I haven't encountered
anything like this in my experience.  My first guess is that some of
your old code is still not using the update manager/invoke later
to make changes to the DOM.

   You might get a clearer picture of what is going wrong by adding
a e.printStackTrace() to line 773 in CSSEngine.java.

   Is the top of the stack trace always the updateManager
runnableQueue?

Maik Sch�rer wrote:

since I have added update my canvas via getUpdateManager/invokeLater, I get irregular DOMExceptions like that:
org.w3c.dom.DOMException: file:...test.svg:
The attribute "style" represents an invalid CSS declaration ("fill:rgb(0,0,255);stroke:rgb(0,0,0);stroke-width:1").
Original message:
at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown Source)
...


The line/style, which is criticized, is always different and I think my test.svg is ok.

When I remove getUpdateManager/invokeLater, no error panel appears.
(But also my changes doesn't appears immediately ;-) )
Any ideas ? What did I wrong ?
Maik


--------------------------------------------------------------------- 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]



Reply via email to