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 193190 - Hidden Java compiler failure - Coupling error
Summary: Hidden Java compiler failure - Coupling error
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 193069 193080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-09 18:54 UTC by asmotrich
Modified: 2010-12-17 16:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE dump file (4.05 KB, text/plain)
2010-12-09 18:54 UTC, asmotrich
Details
IDE log file (221.23 KB, text/plain)
2010-12-09 18:56 UTC, asmotrich
Details
Cacche file (47.15 KB, application/octet-stream)
2010-12-10 19:02 UTC, asmotrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asmotrich 2010-12-09 18:54:31 UTC
Created attachment 103901 [details]
IDE dump file

There is a hidden intermittent Java compiler failure that exhibits itself as marking a perfectly compilable class with error badge, marking some of the code lines with errors and producing errors in the error view. This is happening in the latest dev build; the same file loads perfectly into 6.9.1. The IDE does not give any indications of its own failure and does not popup an exception dialog. However, there is a lot of dump files being generated in the ~/.netbeans/dev/var/log, one of them is attached. There are also corresponding messages in the IDE log file, also attached.

Any attempts to make compiler change its mind about the file using editing, refactoring, etc. do not produce any effect - the errors persist. However removing the IDE cache directory completely eliminates the problem and the same file is parsed without any error indications, that is why I mark it as intermittent.

There are a couple of similar bugs in bugzilla filed against the older IDE releases, the latest one of them is #183899 that has a similar stack trace.

Best regards,
-Azary
Comment 1 asmotrich 2010-12-09 18:56:11 UTC
Created attachment 103902 [details]
IDE log file
Comment 2 asmotrich 2010-12-09 19:12:17 UTC
Found another potentially relevant bug #187697 in NetBeans bugzilla. I am using Mac OS X and latest JDK update 22.
Comment 3 Dusan Balek 2010-12-10 10:56:29 UTC
Could you please attach file:/Users/asmotrich/.netbeans/dev/var/cache/index/s50/java/14/classes/com/liveops/callcenter/presence/AgentCore.sig together with AgentCore.java?
Are you able to reproduce the issue on your sources?
Comment 4 Dusan Balek 2010-12-10 17:45:15 UTC
*** Bug 193069 has been marked as a duplicate of this bug. ***
Comment 5 Dusan Balek 2010-12-10 18:10:15 UTC
*** Bug 193080 has been marked as a duplicate of this bug. ***
Comment 6 asmotrich 2010-12-10 19:02:34 UTC
Created attachment 103946 [details]
Cacche file

Unfortunately I cannot attach the source file without going through a lengthy legal process. And it will not help you anyway because it is part of an inheritance chain.

I cannot reproduce the problem, simple removal of the cache directory made the problem disappear and it did not happen again since. That suggest a possible fix - detect an error and invalidate all relevant cache entries.
Comment 7 Dusan Balek 2010-12-17 16:52:15 UTC
Unfortunately, the fix is not so easy - sometimes, Coupling errors are thrown for valid reason - e.g. if there is a jar file with attached sources, however the sources does not match the jar file content (sometimes happen when e.g. there is an rt.jar with src.zip attached the comes from different JDK version). However, this is not the case of this bug. The problem here is that already created valid sig file gets corrupted later on. This particular case should be fixed by

changeset ec9d8a9bb989 in main-silver
details: http://hg.netbeans.org/main-silver?cmd=changeset;node=ec9d8a9bb989
changeset 08e4360ea2a7 in main-silver
details: http://hg.netbeans.org/main-silver?cmd=changeset;node=08e4360ea2a7