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.
I've been working with netbeans 4.1, due to re installation of my current operating system (windows xp) I made a backup all my projects. After the system was reinstalled, I couldn't open any previous project created on the same version 4.1 and I've got the following error: nnotation: Exception occurred in Request Processor java.lang.NullPointerException: Must pass a non-null filename at org.netbeans.spi.project.support.ant.AntProjectHelper.resolveFileObject (AntProjectHelper.java:1056) at org.netbeans.modules.kjava.j2meproject.queries.CompiledSourceForBinaryQuery$1R. createRoots(CompiledSourceForBinaryQuery.java:83) at org.netbeans.modules.kjava.j2meproject.queries.CompiledSourceForBinaryQuery$1R. getRoots(CompiledSourceForBinaryQuery.java:71) at org.netbeans.modules.javacore.classpath.FilterClassPathImplementation.createRes ources(FilterClassPathImplementation.java:115) at org.netbeans.modules.javacore.classpath.FilterClassPathImplementation.<init> (FilterClassPathImplementation.java:57) at org.netbeans.modules.javacore.classpath.FilterClassPathImplementation.createCla ssPath(FilterClassPathImplementation.java:206) at org.netbeans.modules.javacore.ExclusiveMutex.setClassPath (ExclusiveMutex.java:418) at org.netbeans.modules.javacore.JMManager.setClassPath (JMManager.java:380) at org.netbeans.modules.javacore.JMManager.setClassPath (JMManager.java:437) at org.netbeans.modules.javacore.JMManager.setClassPath (JMManager.java:426) at org.netbeans.modules.javacore.api.JavaModel.setClassPath (JavaModel.java:74) at org.netbeans.modules.java.JavaEditor$JavaEditorComponent.createNode (JavaEditor.java:1248) at org.netbeans.modules.java.JavaEditor$JavaEditorComponent.access$800 (JavaEditor.java:1170) at org.netbeans.modules.java.JavaEditor$12.run(JavaEditor.java:1222) at org.openide.util.Mutex.readAccess(Mutex.java:181) at org.netbeans.modules.java.JavaEditor$11.run(JavaEditor.java:1220) at org.openide.util.Task.run(Task.java:189) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:721)
Reassinging to "j2me" for evaluation.
This exception indicates broken project meta-information (for this case broken nbproject\project.properties). Could you please attach zipped nbproject folder to check what happend?
Created attachment 27149 [details] This is a tiny project that fails with the bug error I described above
Yes, the project meta information is broken. There are definitelly missing many properties from nbproject/project.properties, like for example: abilities= build.classes.dir=${build.dir}/compiled build.classes.excludes=**/*.java,**/*.form,**/*.class,**/.nbintdb,**/*.mvd,**/*.wsclient build.dir=build/${config.active} build.root.dir=build dist.dir=dist/${config.active} dist.jad=MobileApplication.jad dist.jar=MobileApplication.jar dist.javadoc.dir=${dist.dir}/doc dist.root.dir=dist filter.exclude.tests=false filter.excludes= filter.use.standard=true jar.compress=true javac.debug=true javac.deprecation=false javac.optimize=false javac.source=1.3 javac.target=1.1 javadoc.author=false javadoc.encoding= javadoc.noindex=false javadoc.nonavbar=false javadoc.notree=false javadoc.private=false javadoc.splitindex=true javadoc.use=true javadoc.version=false javadoc.windowtitle= libs.classpath=manifest.apipermissions= manifest.jad= manifest.midlets=MIDlet-1: HelloMidlet, , hello.HelloMidlet\n manifest.others=MIDlet-Vendor: Vendor\nMIDlet-Version: 1.0\nMIDlet-Name: MobileApplication\n manifest.pushregistry= name=MobileApplication no.dependencies=false obfuscated.classes.dir=${build.dir}/obfuscated obfuscation.custom= obfuscation.level=0 obfuscator.destjar=${build.dir}/obfuscated.jar obfuscator.srcjar=${build.dir}/before-obfuscation.jar preprocessed.dir=${build.dir}/preprocessed preverify.classes.dir=${build.dir}/preverified run.method=STANDARD run.security.domain=trusted run.use.security.domain=false sign.alias= sign.enabled=false sign.keystore= src.dir=src use.emptyapis=true
Could you inform how to correct these errors, because I have more than 20 projects in these conditions. These erros have been produced after reinstalling the netbeans 4.1 and erasing all previous version of netbeans and also previous wireless toolkit. Thanks
You can create a new project and manually copy and correct the missing properties in nbproject/project.propertis file. The other steps I would recommend is to delete nbproject/private folder and nbproject/build-impl.xml file. Private properties can be later fixed in IDE when some broken reference appear and build-impl.xml gets regenerated when missing.
verifying all old issues