2009/1/12 Helder Magalhães <[email protected]>:
>> I still haven't found a solution. Does no one have any idea?
>
> I believe this was caused by a bug in version 1.7 (you didn't include
> the Batik version used!) which is already fixed in current development

Indeed, my bad, I should have included those details.
I used 1.7 with JDK 1.6u7.

> version [1]. I've tested with Batik 1.8 revision 733683, JDK 1.6u11 in
> Windows XP SP3 and no NullPointerException was thrown. Visual result

I now tested it with the 2009-01-04 source available for download but
the problem remains or even got worse. This should be rev731265, not
sure where you got a later version from.
I still get a NullPointerException as soon as I try to add the begin
attribute containing an id of an element which isn't present yet.

---------------------------------------------------------------------------------------
java.lang.NullPointerException
  at org.apache.batik.anim.timing.SyncbaseTimingSpecifier.<init>(Unknown Source)
  at org.apache.batik.anim.timing.TimingSpecifierListProducer.syncbase(Unknown
Source)
  at org.apache.batik.parser.TimingSpecifierParser.handleTimingSpecifier(Unknown
Source)
  at org.apache.batik.parser.TimingSpecifierListParser.doParse(Unknown Source)
  at org.apache.batik.parser.AbstractParser.parse(Unknown Source)
  at 
org.apache.batik.anim.timing.TimingSpecifierListProducer.parseTimingSpecifierList(Unknown
Source)
  at org.apache.batik.anim.timing.TimedElement.parseBegin(Unknown Source)
  at org.apache.batik.anim.timing.TimedElement.parseAttributes(Unknown Source)
  at 
org.apache.batik.bridge.SVGAnimationElementBridge.initializeTimedElement(Unknown
Source)
  at 
org.apache.batik.bridge.SVGAnimationElementBridge.initializeTimedElement(Unknown
Source)
  at org.apache.batik.bridge.SVGAnimationElementBridge.handleElement(Unknown
Source)
  at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
  at org.apache.batik.bridge.SVGGElementBridge.handleElementAdded(Unknown
Source)
  at 
org.apache.batik.bridge.SVGGElementBridge.handleDOMNodeInsertedEvent(Unknown
Source)
  at 
org.apache.batik.bridge.BridgeContext$DOMNodeInsertedEventListener.handleEvent(Unknown
Source)
  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.AbstractParentNode.fireDOMNodeInsertedEvent(Unknown
Source)
  at org.apache.batik.dom.AbstractParentNode.appendChild(Unknown Source)
  at mpsf.MPSFView$10.run(MPSFView.java:486)
  at org.apache.batik.util.RunnableQueue.run(Unknown Source)
  at java.lang.Thread.run(Thread.java:619)
---------------------------------------------------------------------------------------

Now with the never Batik version I also get a NullPointerException
when I try to set the begin attribute of the first element after I
added the second:

---------------------------------------------------------------------------------------
java.lang.NullPointerException
  at org.apache.batik.anim.timing.TimedElement.addInstanceTime(Unknown Source)
  at org.apache.batik.anim.timing.SyncbaseTimingSpecifier.newInterval(Unknown
Source)
  at org.apache.batik.anim.timing.TimedElement.notifyNewInterval(Unknown Source)
  at org.apache.batik.anim.timing.TimedElement.selectNewInterval(Unknown Source)
  at org.apache.batik.anim.timing.TimedElement.sampleAt(Unknown Source)
  at org.apache.batik.anim.timing.TimedDocumentRoot.seekTo(Unknown Source)
  at org.apache.batik.anim.AnimationEngine.tick(Unknown Source)
  at org.apache.batik.bridge.SVGAnimationEngine.access$600(Unknown Source)
  at 
org.apache.batik.bridge.SVGAnimationEngine$AnimationTickRunnable.run(Unknown
Source)

  at org.apache.batik.util.RunnableQueue.run(Unknown Source)
  at java.lang.Thread.run(Thread.java:619)
---------------------------------------------------------------------------------------

> was compared with the one obtained using Opera 10.0a. I'm also
> attaching the test case, which was incomplete (missing the surrounding
> "svg" element).
>

I didn't include the tags in the example since it was just for
illustrating the situation I'm trying to achieve.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to