You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Kerschbaum Michael <m....@pke.at> on 2008/08/05 13:51:17 UTC
WG:
Hello,
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?!
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
m.kerschbaum@pke.at
www.pke.at <http://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
AW: AW: WG:
Posted by Kerschbaum Michael <m....@pke.at>.
Hello,
Our Problems is solved for now. We had an "old" version of batik, it was 1.7beta1 i guess... I downloaded the source and binary from the batik site and the NPE is never thrown...again...
Thanks ...
The problem is, that i get the project using batik 1 months ago... The guy who was working on it did't get anything right...
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
m.kerschbaum@pke.at
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
-----Ursprüngliche Nachricht-----
Von: Jeremias Maerki [mailto:dev@jeremias-maerki.ch]
Gesendet: Dienstag, 05. August 2008 17:34
An: batik-users@xmlgraphics.apache.org
Betreff: Re: AW: WG:
Have you tried using https instead of http with your SVN client? It's a common work-around. HTH
On 05.08.2008 16:22:36 Kerschbaum Michael wrote:
<snip/>
> Where can i get the Original Source Code of Batik 1.7 ... I can't use svn.. Because our firewall blocks that ?!
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: AW: WG:
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Have you tried using https instead of http with your SVN client? It's a
common work-around. HTH
On 05.08.2008 16:22:36 Kerschbaum Michael wrote:
<snip/>
> Where can i get the Original Source Code of Batik 1.7 ... I can't use svn.. Because our firewall blocks that ?!
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: WG:
Posted by Helder Magalhães <he...@gmail.com>.
> And sometimes this problem occures...But everytime with the same Stacktrace...
> I would like to know why this NPE occures..
"Sometimes"? Seems a multiple thread issue. Please consider using the
recommended, thread-safe, approach [1] to manipulate the document (if
you aren't already doing it, of course).
> Where can i get the Original Source Code of Batik 1.7 ... I can't use svn.. Because our firewall blocks that ?!
Batik 1.7 source code can be downloaded in the project's download page [2].
Hope this helps,
Helder Magalhães
[1] http://xmlgraphics.apache.org/batik/using/scripting/java.html#Threads
[2] http://xmlgraphics.apache.org/batik/download.cgi
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
AW: WG:
Posted by Kerschbaum Michael <m....@pke.at>.
Hello,
No it is very hard to get send you a test case. We use the Batik in a big application, and when i hide or show elements i use this code
...
for (int i = 0; i < layerMembers.size(); i++) {
Element elt = (Element) layerMembers.get(i);
if (elt != null) {
if (visible) {
elt.removeAttributeNS(null, "visibility");
elt.setAttributeNS(null, "pointer-events", "all");
}else{
elt.setAttributeNS(null, "visibility", "hidden");
elt.setAttributeNS(null, "pointer-events", "none");
}
}
....
And sometimes this problem occures...But everytime with the same Stacktrace...
I would like to know why this NPE occures.. I tried to include the Source Code instead of the jar file in my Eclipse Project, but then i had the problem that JAR and Source are not equal... I tried reverse engineering with JAD... No success ...
The only thing i really know is that the npe occures in the class org.apache.batik.dom.events.EventSupport in this method
protected void fireEventListeners(NodeEventTarget node,
AbstractEvent e,
EventListenerList.Entry[] listeners,
HashSet stoppedGroups,
HashSet toBeStoppedGroups)
Where can i get the Original Source Code of Batik 1.7 ... I can't use svn.. Because our firewall blocks that ?!
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
m.kerschbaum@pke.at
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
-----Ursprüngliche Nachricht-----
Von: Helder Magalhães [mailto:helder.magalhaes@gmail.com]
Gesendet: Dienstag, 05. August 2008 15:42
An: batik-users@xmlgraphics.apache.org
Betreff: Re: WG:
> URL url = new URL(uri2);
> CSSEngine.parseStyleSheet(url, "all");
>
> But My Real Problem is, that a NPE Exception happens when calling ...
> and i can't look why....
Could you attach the CSS file (or, even better, a reduced test case
[1]) which is raising the null pointer exception?
[1] http://webkit.org/quality/reduction.htmlhttp://webkit.org/quality/reduction.html
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: WG:
Posted by Helder Magalhães <he...@gmail.com>.
> URL url = new URL(uri2);
> CSSEngine.parseStyleSheet(url, "all");
>
> But My Real Problem is, that a NPE Exception happens when calling ... and i
> can't look why....
Could you attach the CSS file (or, even better, a reduced test case
[1]) which is raising the null pointer exception?
[1] http://webkit.org/quality/reduction.htmlhttp://webkit.org/quality/reduction.html
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
AW: WG:
Posted by Kerschbaum Michael <m....@pke.at>.
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: thomas.deweese@kodak.com [mailto:thomas.deweese@kodak.com]
Gesendet: Dienstag, 05. August 2008 14:05
An: batik-users@xmlgraphics.apache.org
Cc: batik-users@xmlgraphics.apache.org
Betreff: Re: WG:
Hi Kerschbaum,
"Kerschbaum Michael " <m....@pke.at> 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
> m.kerschbaum@pke.at
> 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
>
Re: WG:
Posted by th...@kodak.com.
Hi Kerschbaum,
"Kerschbaum Michael " <m....@pke.at> 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
> m.kerschbaum@pke.at
> 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
>