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 88388

Summary: AIOOBE after trying to "Toggle Breakpoint"
Product: debugger Reporter: Martin Krauskopf <mkrauskopf>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: CLOSED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: AIOOBE

Description Martin Krauskopf 2006-11-01 09:35:15 UTC
(today's fresh build, linux)

1) I've just opened
$NB_CVS/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/queries/SubprojectProviderImplTest.java
2) Pressed Ctrl-F8 on some line

Attached AIOOBE is always thrown so I can't use debugger at all.
Comment 1 Martin Krauskopf 2006-11-01 09:36:08 UTC
Created attachment 35690 [details]
AIOOBE
Comment 2 Martin Krauskopf 2006-11-01 09:55:38 UTC
Workaround:

1) cd $NBUSERDIR
2) find -iname "debugger" | xargs rm -rf
Comment 3 Martin Entlicher 2006-11-01 13:29:38 UTC
Exceptions were caused by breakpoints located in files which do not exist any more.

To Reproduce:
1) Create two simple Java projects.
2) Add several breakpoints to just one of them
3) Close NetBeans and delete the project with breakpoints
4) Start NetBeans and try to add breakpoints to the other project.
The attached exception is thrown and no breakpoints can be added any more.
Comment 4 Martin Entlicher 2006-11-01 13:35:12 UTC
The fix was fortunately very simple:

/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/PersistenceManager.java,v
 <--  PersistenceManager.java
new revision: 1.7; previous revision: 1.6
Comment 5 Quality Engineering 2010-04-29 09:30:50 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.