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 95748 - Exception if scan running while building in background
Summary: Exception if scan running while building in background
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-16 00:00 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2007-02-16 00:00:56 UTC
In a shell, run ant build-nozip in $NB_SRC/nbbuild
Start nb on a clean userdir.
Open the $NB_SRC/openide/explorer project
Expand the handle for the Explorer and Property Sheet API

Exception is thrown as follows.  Probably it tried to scan a .class file as it
was being written;  but it probably should be more robust in the case of
corrupted class files - it appears to have aborted the scan (I could imagine
similar problems with obfuscated class files and such).

Annotation: While scanning:
jar:file:/C:/space/newnbsrc/websvc/external/jaxws21/jaxws-rt.jar!/
Annotation: While scanning:
jar:file:/C:/space/newnbsrc/websvc/external/jaxws21/jaxws-rt.jar!/
Annotation: While scanning:
jar:file:/C:/space/newnbsrc/websvc/external/jaxws21/jaxws-rt.jar!/
org.netbeans.modules.classfile.InvalidClassFileAttributeException: invalid
RuntimeInvisibleParameterAnnotations attribute
	at
org.netbeans.modules.classfile.Parameter.loadParameterAnnotations(Parameter.java:76)
	at org.netbeans.modules.classfile.Parameter.<init>(Parameter.java:59)
	at org.netbeans.modules.classfile.Parameter.createParameter(Parameter.java:51)
	at org.netbeans.modules.classfile.Parameter.access$000(Parameter.java:40)
	at org.netbeans.modules.classfile.Parameter$ParamIterator.next(Parameter.java:216)
	at org.netbeans.modules.classfile.Parameter.makeParams(Parameter.java:45)
	at org.netbeans.modules.classfile.Method.getParameters(Method.java:147)
	at
org.netbeans.modules.java.source.usages.BinaryAnalyser.performAnalyse(BinaryAnalyser.java:324)
	at
org.netbeans.modules.java.source.usages.BinaryAnalyser.analyse(BinaryAnalyser.java:219)
	at
org.netbeans.modules.java.source.usages.BinaryAnalyser.analyseArchive(BinaryAnalyser.java:179)
	at
org.netbeans.modules.java.source.usages.BinaryAnalyser.access$400(BinaryAnalyser.java:71)
	at
org.netbeans.modules.java.source.usages.BinaryAnalyser$1.run(BinaryAnalyser.java:114)
	at
org.netbeans.modules.java.source.usages.BinaryAnalyser$1.run(BinaryAnalyser.java:93)
	at
org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:49)
	at
org.netbeans.modules.java.source.usages.BinaryAnalyser.analyse(BinaryAnalyser.java:93)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.scanRoots(RepositoryUpdater.java:860)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.access$1400(RepositoryUpdater.java:600)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:716)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:621)
	at
org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:49)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:621)
	at
org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:600)
	at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1085)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[catch] at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
	at org.netbeans.modules.classfile.Annotation.load(Annotation.java:47)
	at
org.netbeans.modules.classfile.Parameter.loadParameterAnnotations(Parameter.java:74)
	... 28 more
Caused by: While scanning:
jar:file:/C:/space/newnbsrc/websvc/external/jaxws21/jaxws-rt.jar!/
Comment 1 Jan Lahoda 2007-02-16 12:40:33 UTC
What build do you use? This looks like issue #91098, fixed some time ago. Also
the robustness of the scanning process is supposed to be improved for some time.
Comment 2 _ tboudreau 2007-02-16 23:29:20 UTC
Ah, sorry, in that case closing.  Since I'd been running NB straight from
$NB_SRC/nbbuild/netbeans, and I was rebuilding it, I reverted to running a copy
of build 061221 that I had elsewhere while rebuilding the trunk.