This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 30996 - Graphical diff visualizer throws BadLocationExceptions.
Summary: Graphical diff visualizer throws BadLocationExceptions.
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 31211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-12 15:17 UTC by Jiri Kovalsky
Modified: 2003-07-14 14:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
One of those exceptions. (2.09 KB, text/plain)
2003-02-12 15:18 UTC, Jiri Kovalsky
Details
The first file. (32.50 KB, text/plain)
2003-02-19 13:47 UTC, Jiri Kovalsky
Details
The second file. (13.80 KB, text/plain)
2003-02-19 13:48 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2003-02-12 15:17:52 UTC
Development build #200302120100 of NetBeans 3.5
Windows 2000 with FCS build #21 of JDK 1.4.1

Description:
============
Many BadLocationExceptions are thrown when user
wants to see differences between two revisions of
a file. However, the diff is opened. Please take a
look at this regression soon. For more information
see the attached exception.

Steps to reproduce:
===================
1. Mount CVS filesystem using command-line client.
2. Insert new line into some [Up-to-date] file and
save it.
3. Invoke "CVS | Diff Graphical" and prepare for
exceptions.
Comment 1 Jiri Kovalsky 2003-02-12 15:18:32 UTC
Created attachment 8922 [details]
One of those exceptions.
Comment 2 Jiri Kovalsky 2003-02-12 15:19:17 UTC
Oops, version was not set correctly.
Comment 3 Martin Entlicher 2003-02-18 14:34:53 UTC
I was not able to reproduce it. It works for me in dev build
#200302180100 on Solaris and on Windows NT.
Comment 4 Jiri Kovalsky 2003-02-19 13:45:35 UTC
Reopening since another user reported the same. I'm gonna attach the
files that produce the exception. Development build #200302190100 of
NetBeans 3.5.
Comment 5 Jiri Kovalsky 2003-02-19 13:46:56 UTC
*** Issue 31211 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Kovalsky 2003-02-19 13:47:59 UTC
Created attachment 9031 [details]
The first file.
Comment 7 Jiri Kovalsky 2003-02-19 13:48:29 UTC
Created attachment 9032 [details]
The second file.
Comment 8 dmladek 2003-02-20 14:25:21 UTC
I can't reproduce it either.
I'm using lozalized linux (which alread yleads to some
Localizations troubles, but in this case...it's OK)

  Product Version       = NetBeans IDE Dev (Build 200302170100)
  IDE Versioning        = IDE/1 spec=3.38 impl=200302170100
  Operating System      = Linux version 2.4.18-19.7.x running on i386
  Java; VM; Vendor      = 1.4.1_01; Java HotSpot(TM) Client VM
1.4.1_01-b01; Sun Microsystems Inc.
  Java Home             = /usr/java/jdk1.4.1/jre
  System Locale; Encod. = cs_CZ; ISO-8859-2
  Home Dir; Current Dir = /home.local/delfajz;
/home.local/delfajz/forte3/NBdev-last/netbeans/bin
  IDE Install; User Dir = /home.local/delfajz/NBdev-last;
/home.local/delfajz/.netbeans/dev


Comment 9 Jiri Kovalsky 2003-02-27 08:04:20 UTC
Please note that this issue is Q-build #200302260100 showstopper and
must be fixed in its branch.
Comment 10 mslama 2003-02-27 09:14:00 UTC
I saw similar exception in Search dialog. I recommend to make sure you
access displayable component (already in AWT hierarchy) ONLY from AWT
thread. This seems like race condition. See issue #30518.
Comment 11 Tomas Zezula 2003-02-27 17:59:35 UTC
Fixed
Comment 12 Martin Entlicher 2003-02-28 08:52:33 UTC
Thanks Tomas, the changes were:

Revision  Changes
  1.15      +1 -1     
diff/src/org/netbeans/modules/diff/builtin/visualizer/DiffPanel.java

Since this is a q-build stopper, I've merged it into QBE200302260100
branch:
/cvs/diff/src/org/netbeans/modules/diff/builtin/visualizer/DiffPanel.java,v 
<--  DiffPanel.java
new revision: 1.14.4.1; previous revision: 1.14
Comment 13 dmladek 2003-02-28 10:52:49 UTC
I can't verify this bug now 'cause no new build is available...
I'll be back on MAR 10.
Comment 14 dmladek 2003-02-28 11:22:58 UTC
Jiri, I took the latest available continues build form today:
 NetBeans IDE Dev (Build 20030228-0746)

and I must say that I can't see any E. which might be good and I might
verify this as fixed, but I haven't been ever able to reproduce it on
my linux. So IMHO I won't verify this issue and left it for you;-)

It's your turn, please:-)
thanks
Comment 15 Jiri Kovalsky 2003-07-14 14:55:18 UTC
Great, I have not seen any exception from Diff for a long time.
Verified in NetBeans 3.5.1 build #200307092351.