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 50146 - Lots of exceptions and errors in messages.log
Summary: Lots of exceptions and errors in messages.log
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
: 50377 (view as bug list)
Depends on:
Blocks: 49624
  Show dependency tree
 
Reported: 2004-10-08 07:58 UTC by tboerkel
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (110.59 KB, text/plain)
2004-10-08 07:59 UTC, tboerkel
Details
Recursion stacktrace. (190.65 KB, text/plain)
2004-10-15 13:38 UTC, tboerkel
Details
Informational exceptions. (3.95 KB, text/plain)
2004-10-18 07:10 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tboerkel 2004-10-08 07:58:41 UTC
I get lots of exceptions and other errors in
messages.log and NB consumes 100% CPU for a while,
after clean + build project.
For me, it looks as if the parser is scanning the
.class files!
We have the .class files in the source tree
(build.classes.dir=${src.dir} in
project.properties) and hide them with an
appropriate pattern in system settings, which is
perfectly legal, AFAIK.

Using NB 20041005 with JDK 1.5.0.

Attaching part of messages.log.
Comment 1 tboerkel 2004-10-08 07:59:49 UTC
Created attachment 18153 [details]
messages.log
Comment 2 Jan Becicka 2004-10-12 15:24:46 UTC
Yes, this is reproducible.
Comment 3 Jan Becicka 2004-10-12 15:48:22 UTC
Problem is in RepositoryUpdater. Martin will look at it.
Comment 4 tboerkel 2004-10-15 13:37:59 UTC
NetBeans 20041012 just got hung up completely (had to kill it) after
clean+build, I think because of the same problem. Attaching new
messages.log with recursion stacktrace.
Comment 5 tboerkel 2004-10-15 13:38:25 UTC
Created attachment 18321 [details]
Recursion stacktrace.
Comment 6 Martin Matula 2004-10-15 14:16:57 UTC
This problem exposes a bug in RepositoryUpdater which behaves
inconsistently with respect to FileScanner.
Comment 7 Martin Matula 2004-10-15 14:18:38 UTC
Btw. the recursion is fixed in the current build. Now I am going to
fix the RepositoryUpdater.
Comment 8 Martin Matula 2004-10-15 15:51:33 UTC
Fixed.

Checking in src/org/netbeans/modules/javacore/scanning/ClassUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/ClassUpdater.java,v
 <--  ClassUpdater.java
new revision: 1.9; previous revision: 1.8
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/javacore/RepositoryUpdater.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/RepositoryUpdater.java,v
 <--  RepositoryUpdater.java
new revision: 1.22; previous revision: 1.21
done
Comment 9 tboerkel 2004-10-18 07:09:34 UTC
This seems to be OK now in build 20041017. I deleted the mdrstorage
folder before testing, to be sure, everything would be rebuild. 
But I got 2 informational exceptions in the log during or after
classpath scanning regarding a source, that was open in the editor at
last shutdown. Are these a problem? 
Attaching messages.log.
Comment 10 tboerkel 2004-10-18 07:10:06 UTC
Created attachment 18344 [details]
Informational exceptions.
Comment 11 Martin Matula 2004-10-18 09:51:58 UTC
I am not sure. We should investigate it, so I am reopening the bug,
but lowering the priority since these exceptions are not fatal. I will
add some debugging output to the code so that you could provide more
information when this happens again.
Comment 12 Martin Matula 2004-10-18 10:00:09 UTC
Debug info added.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v
 <--  ResourceImpl.java
new revision: 1.36; previous revision: 1.35
done
Comment 13 Martin Matula 2004-10-18 16:37:51 UTC
*** Issue 50377 has been marked as a duplicate of this issue. ***
Comment 14 Martin Matula 2004-10-21 11:59:25 UTC
OK, we finally managed to track down the "Info is null..." problem -
it was caused by a wrong synchronization and is now fixed.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v
 <--  ResourceImpl.java
new revision: 1.41; previous revision: 1.40
done
Comment 15 Quality Engineering 2007-09-20 12:09:45 UTC
Reorganization of java component