Hello, In this line the Method with public StyleSheet parseStyleSheet(ParsedURL uri, String media) is available.... (in the Source Code) Downloaded from the Batik Site with the the Jar File i can use this code... URL url = new URL(uri2); CSSEngine.parseStyleSheet(url, "all"); So the JAR File and the Source are not equal... But My Real Problem is, that a NPE Exception happens when calling ... and i can't look why.... Element.setAttributeNS(null, "pointer-events", "all"); java.lang.NullPointerException at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown Source)
at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown Source) at org.apache.batik.dom.events.EventSupport.dispatchEvent(Unknown Source) at org.apache.batik.dom.AbstractNode.dispatchEvent(Unknown Source) at org.apache.batik.dom.AbstractElement.fireDOMAttrModifiedEvent(Unknown Source) at org.apache.batik.dom.AbstractAttr.setNodeValue(Unknown Source) at org.apache.batik.dom.AbstractAttr.setValue(Unknown Source) at org.apache.batik.dom.AbstractElement.setAttributeNS(Unknown Source) at at.pke.ag.Layer.setVisible(Layer.java:339) at at.pke.ag.LayerManager.setOverlayVisibility(LayerManager.java:649) ________________________________ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 05. August 2008 14:05 An: [email protected] Cc: [email protected] Betreff: Re: WG: Hi Kerschbaum, "Kerschbaum Michael " <[EMAIL PROTECTED]> wrote on 08/05/2008 07:51:17 AM: > I tried to download the Source distribution of 1.7, but the source > code is not the same like in Binary distribution for JRE 1.4+. > > e.g. in org.apache.batik.css.engine.CSSEngine the method > parseStyleSheet(URL,String) exists in the jar Files of the Binary > distribution for JRE 1.4+, but not in the Source distribution?! It's there for me, line 1108. What file did you download? Perhaps you are having a build/classpath problem? > I have a NPE problem, and tried to view the Batik Code.... > > elt is a Element... > ... > > elt.setAttributeNS(null, "pointer-events", "all"); > ... > java.lang.NullPointerException > at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown > Source) > at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown > Source) > at org.apache.batik.dom.events.EventSupport.dispatchEvent(Unknown Source) > at org.apache.batik.dom.AbstractNode.dispatchEvent(Unknown Source) > at org.apache.batik.dom.AbstractElement. > fireDOMAttrModifiedEvent(Unknown Source) > at org.apache.batik.dom.AbstractAttr.setNodeValue(Unknown Source) > at org.apache.batik.dom.AbstractAttr.setValue(Unknown Source) > at org.apache.batik.dom.AbstractElement.setAttributeNS(Unknown Source) > at at.pke.ag.Layer.setVisible(Layer.java:339) > at at.pke.ag.LayerManager.setOverlayVisibility(LayerManager.java:649) > > Mit freundlichen Grüßen Michael Kerschbaum > > DI (FH) Michael Kerschbaum > PKE Electronics AG > Zentrale Wien / Entwicklung > Computerstraße 6 > A - 1101 Wien > TEL: +43 (0) 50 150 - 1210 > [EMAIL PROTECTED] > www.pke.at > > Aktiengesellschaft mit dem Sitz in Wien > Firmenbuchnummer 103264i > HG Wien, DVR 0159701 > Johann Helf - Vorsitzender des Vorstandes > Bruno Faustka - Mitglied des Vorstandes > Christian Prelz - Vorsitzender des Aufsichtsrates >
