The only thing I would add to this discussion is that if you can't duplicate
the problem, you can't fix it reliably. I tried everything I could think of
and didn't duplicate the problem. I haven't yet tried it with the same
exact Java version. We can't yet know if the problem is in JUMP code or
This is a good point Larry.
What I could do is give Paolo a build to try out. Then at least we can
know if we've eliminated the problem for him.
It is also possible that the existing code lacks some robustness. I
see no reason why the getShape method of this particular cursor tool
should be
I think you need to give Jukka the code, not Paolo :)
stefan
Sunburned Surveyor wrote:
This is a good point Larry.
What I could do is give Paolo a build to try out. Then at least we can
know if we've eliminated the problem for him.
It is also possible that the existing code lacks some
Yes, and I doubt that even Jukka can reliably reproduce the problem. I've
actually gotten array out of bounds exceptions myself using SkyJUMP, but it
was always when I was doing actual GIS work and I didn't take the time to
record the exception. It never seems to happen during testing. :-(
Thanks guys. I geuss I got Jukka and Paolo mixed up.
SS
On Wed, Dec 17, 2008 at 10:52 AM, Larry Becker becker.la...@gmail.com wrote:
Yes, and I doubt that even Jukka can reliably reproduce the problem. I've
actually gotten array out of bounds exceptions myself using SkyJUMP, but it
was
Just right, Larry. I have been digitising for half an hour now trying to catch
the error but with no luck. I would say this is not any serious bug. Even when
it occurs no work gets lost.
But hey! Right now I know how to reach the error.
- select either draw polygon or draw linestring tool
I'm happy to be helpful!!! :-)
But remember that the check on coordinates.size() avoids the exception,
but it doesn't solve the problem.
Someway it has to be ensured that each coordinate is added to the array
before it is used.
I don't know how to ensure this...???
Even if both methods were
Paolo,
That was some good debugging. :] I'm constantly reminded of how much I
need to learn about Java. Based on the information you gave me, I
think I can patch the code.
I'm not sure why this problem is just now showing up.
Maybe the other programms have some ideas.
I will work on a fix
I didn't debugged the code, but the exception says:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
so it seems that the coordinates ArrayList is empty when
trying to access it's first element in:
coordinates.get(0);
Defensive programming would suggest something like:
Can't duplicate with jdk1.6.0_01 or jre1.5.0_12.
Larry
On Wed, Dec 17, 2008 at 1:25 PM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:
Just right, Larry. I have been digitising for half an hour now trying to
catch the error but with no luck. I would say this is not any serious bug.
Even when
Hi,
It is rather well isolated now. I can't dublicate it with jre 1.6.0_07, but
for sure with 1.6.0_11.
-Jukka-
-Alkuperäinen viesti-
Lähettäjä: Larry Becker [mailto:becker.la...@gmail.com]
Lähetetty: ke 17.12.2008 22:32
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel]
Guess we need to look at the Java change logs for 1.6.0_11. Is anyone using
a 1.6 before _11 and after _07?
Larry
On Wed, Dec 17, 2008 at 4:45 PM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:
Hi,
It is rather well isolated now. I can't dublicate it with jre 1.6.0_07,
but for sure with
12 matches
Mail list logo