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 167355 - [67cat] Can't debug anymore
Summary: [67cat] Can't debug anymore
Status: CLOSED DUPLICATE of bug 148490
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 09:36 UTC by ulfzibis
Modified: 2010-05-06 08:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
No debug anymore (183.55 KB, image/png)
2009-06-19 09:37 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2009-06-19 09:36:19 UTC
[ BUILD # : RC3 ]
[ JDK VERSION : 1.6.* ]

See attachment.

I'm afraid I have to delete cache.

Is there any other way by partially deleting the cache to avoid Issue
166800 (> 2 hours to wait for new project scan) today?
Comment 1 ulfzibis 2009-06-19 09:37:10 UTC
Created attachment 83794 [details]
No debug anymore
Comment 2 Martin Entlicher 2009-06-19 09:47:58 UTC
Can not comment in issue #166800.

This does not seem to be about caches.

If translate.google.com is correct, the error says: "A file can not be created if it already exists".
It seems like the previous debug session was to fully terminated and the shared memory is still somehow in use. Not sure
we can do anything about this. Please try to close NetBeans, kill all Java processes and try again...
Comment 3 Martin Entlicher 2009-06-19 11:20:38 UTC
Did that solve the problem?

I've found issue #148490, which already describes this problem. This is a duplicate.

*** This issue has been marked as a duplicate of 148490 ***
Comment 4 ulfzibis 2009-06-19 11:43:16 UTC
Very much thanks for quick help.

Indeed restarting NetBeans helped.

For the offhand user it seems, *NetBeans fails* because of wrong data in cache. In assumption of this, it's a P1,
because there is no hint, no help, what to do. Offhand user maybe doesn't know about existence of cache, he just can't
debug anymore.

It's a P2 as long, as there is no hint, where the problem is located (e.g. previous debug session was to fully
terminated and the shared memory is still somehow in use), so user doesn't guess by himself, that simple restart could help.
- the message seems like wrong data in cache (here: ..\cache\executor-snippets\...).
- experienced user knows, that cache will not be cleared by restart, so why should it help?
- *missing name* of already-existing-file maybe would give better hint to the user.
Comment 5 Martin Entlicher 2009-06-19 11:52:35 UTC
In the error output in the attached screenshot I do not see anything that would suggest that caches are involved.
I understand that the error message "A file can not be created if it already exists" does not say much, but that's out
of scope for NetBeans. This message is provided by JVM. If it should be improved, it should be improved there.

Restart of NetBeans probably interrupted the shared memory connection with the staled debugger session and therefore
released the shared memory. - That's my guess.
Comment 6 ulfzibis 2009-06-19 12:40:12 UTC
> .. I do not see anything that would suggest that caches are involved.
From error output user can guess about 2 possible problems:
- erroneously already existing file, but nobody knows which and where (Couldn't NB detail this?)
- erroneous xml script "...junit-debug.xml", which is undoubtedly located in *cache*.

Couldn't you say:
" ... possibly caused by JDK bug (not released shared memory). Closing NetBeans and killing all JVM instances should help)
Comment 7 Marian Mirilovic 2010-05-06 08:02:21 UTC
verified duplicate