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.
Hi the error icon is popping up every few seconds or so. the error message is actually not visible from it using the show detail button - dialog dumps. looking at the log file it was 120MB and growing (hence no attachment - sorry) with the exception pasted at the end of this message shown over and over again (don't mean to paste 'large amounts of text' but log file way too big). also, cpu usage stays constant at between 60-80% - which on a laptop running on battery is a disaster! (using top on linux - netbeans IS the culprit). all i'm doing is writing a simple jsp webapp - nothing special. thanks Takis ---- log file excerpt: ---- *********** Exception occurred ************ at 10:52 AM on Nov 29, 2006 java.lang.IndexOutOfBoundsException: 526 at org.netbeans.modules.classfile.ConstantPool.get(ConstantPool.java:90) at org.netbeans.modules.classfile.ConstantPool.getClass(ConstantPool.java:102) at org.netbeans.modules.classfile.ClassFile.loadClassHeader(ClassFile.java:191) at org.netbeans.modules.classfile.ClassFile.load(ClassFile.java:160) at org.netbeans.modules.classfile.ClassFile.<init>(ClassFile.java:118) at org.netbeans.modules.javacore.scanning.ClassUpdater.getClassFile(ClassUpdater.java:235) at org.netbeans.modules.javacore.scanning.ClassUpdater.updateResources(ClassUpdater.java:124) at org.netbeans.modules.javacore.scanning.ClassUpdater.updateResources(ClassUpdater.java:98) at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:292) at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:249) at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:249) at org.netbeans.modules.javacore.scanning.FileScanner.scan(FileScanner.java:177) [catch] at org.netbeans.modules.javacore.JMManager.scanFiles(JMManager.java:1183) at org.netbeans.modules.javacore.JMManager.resolveCPRoot(JMManager.java:1097) at org.netbeans.modules.javacore.JMManager.resolveCodebases(JMManager.java:871) at org.netbeans.modules.javacore.JMManager$2.run(JMManager.java:821) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932) *********** Exception occurred ************ at 10:52 AM on Nov 29, 2006 java.lang.IndexOutOfBoundsException: 526 at org.netbeans.modules.classfile.ConstantPool.get(ConstantPool.java:90) at org.netbeans.modules.classfile.ConstantPool.getClass(ConstantPool.java:102) at org.netbeans.modules.classfile.ClassFile.loadClassHeader(ClassFile.java:191) at org.netbeans.modules.classfile.ClassFile.load(ClassFile.java:160) at org.netbeans.modules.classfile.ClassFile.<init>(ClassFile.java:118) at org.netbeans.modules.javacore.scanning.ClassUpdater.getClassFile(ClassUpdater.java:235) at org.netbeans.modules.javacore.scanning.ClassUpdater.updateResources(ClassUpdater.java:124) at org.netbeans.modules.javacore.scanning.ClassUpdater.updateResources(ClassUpdater.java:98) at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:292) at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:249) at org.netbeans.modules.javacore.scanning.FileScanner.scanPackage(FileScanner.java:249) at org.netbeans.modules.javacore.scanning.FileScanner.scan(FileScanner.java:177) [catch] at org.netbeans.modules.javacore.JMManager.scanFiles(JMManager.java:1183) at org.netbeans.modules.javacore.JMManager.resolveCPRoot(JMManager.java:1097) at org.netbeans.modules.javacore.JMManager.resolveCodebases(JMManager.java:871) at org.netbeans.modules.javacore.JMManager$2.run(JMManager.java:821) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
cleared log and restarted. messages.log attached with ide version/module info etc. thanks Takis
Created attachment 36340 [details] message log
Looks like a problem in our Java infrastructure. Can you guys please look at the stack trace and evaluate the issue? Does it help if you launch NetBeans with an empty userdir and open the project? netbeans -userdir ../abcd [Enter]
Hi i tried launching netbeans with no projects open at all. i then opened up my projects individually. i noticed that it was only the projects with versioning attached that kicked off the problem. i recently switched from cvs repos to subversion. in the process some binary files didn't convert very well to subversion and had to be removed/recreated. it appears that some jars referenced from the 'problem' projects were corrupted. netbeans must of been trying to 'read' them and was constantly dumping. ok so perhaps not a netbeans issues as such - which is good. however, even with corrupt and unreadable jars, it did exhibit some strange behaviour - perhaps it should have just reported the problem and stopped scanning the problem jars - the corrupt jar was never reported in fact, just the stack i previously posted. anyway, with new jars the issue isn't popping up anymore. so all good. thanks Takis
Reorganization of java component
I have the same as well with the same error output. One odd way I found to fix it was to log into my collaboration account in NetBeans and close the application with the offending. Then I would re-launch NetBeans and the problem would be fixed. It worked everytime I did this, not sure if it will help you though but its worth a try. The error for me turned disables refactoring and messes up template creation (causing NB not to set the variable names macro in the template) which is annoying. Does the Collab session login re-set the app internally? Or could the error related to something else like Collaboration? (I am using NB 5.5.1, and yes I do do SVN and CVS libraries for projects like jME and LWGL)
This issue is not valid in current builds any more. Java support was completely redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.