List Info

Thread: NullPointerException on removing svg 1.2 document from JSVGComponent




NullPointerException on removing svg 1.2 document from JSVGComponent
user name
2006-12-06 11:47:10
Hi Stephen,

-----Stephen Drake <stevedrakenz.com> wrote: -----

> I use JSVGComponent in my program to display several pages of
> svg content.  I have noticed NullPointerExceptions occuring
> sometimes when switching quickly between pages.  I can reproduce
> the problem in squiggle as follows:

> 1.  Load any svg 1.2 document.
> 2.  Hit refresh a bunch of times.  Sometimes a double-click will
> do, sometimes you need to be a bit more persistent.

I can't reproduce this on my machine.  I suspect
the difference is the files being used.  Can you point to
a file in the Batik samples directory or other public place
that this happens for you with?
NullPointerException on removing svg 1.2 document from JSVGComponent
user name
2006-12-06 22:00:18
Hi Thomas,


thomas.deweese wrote:
> 
>    I can't reproduce this on my machine.  I suspect
> the difference is the files being used.  Can you point
to
> a file in the Batik samples directory or other public
place
> that this happens for you with?
> 

I should have noted that I was using a recent build from
svn.  I have also
tested with builds that I have sitting around from as far
back as 14 June
2006, but I can't reproduce the problem with the 1.6
release.
I get the same result with every svg 1.2 file I have tried -
I tested
several in the samples directory, for example
samples/tests/spec12/structure/multi2.svg, and the following
trivial case:

<?xml version="1.0"
encoding="UTF-8"?>

<svg xmlns="http://www.w3.org/20
00/svg" version="1.2">
  <rect x="5%" y="5%"
width="90%" height="90%" />
</svg>


Stephen Drake wrote:
> 
>> 2.  Hit refresh a bunch of times.  Sometimes a
double-click will
>> do, sometimes you need to be a bit more persistent.
> 
Again, I might not have been entirely clear - by "a bit
more persistent" I
mean click refresh or hit ^R as fast as you can!  It might
help to use a
slower computer - I am using a P4 and and a G5, both 1.6
GHz.

Regards,
Steve Drake

-- 
View this message in context: http://www.nabble.com/NullPointerException-on-removing-svg
-1.2-document-from-JSVGComponent-tf2764838.html#a7728839
Sent from the Batik - Users mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

NullPointerException on removing svg 1.2 document from JSVGComponent
user name
2006-12-09 15:16:57
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )