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 68507 - Error opening
Summary: Error opening
Status: CLOSED INVALID
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 02:12 UTC by kopela
Modified: 2006-10-23 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This is a tiny project that fails with the bug error I described above (27.94 KB, application/x-compressed)
2005-11-22 13:41 UTC, kopela
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kopela 2005-11-11 02:12:59 UTC
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)
Comment 1 Peter Pis 2005-11-14 14:45:27 UTC
Reassinging to "j2me" for evaluation.
Comment 2 Adam Sotona 2005-11-16 14:15:26 UTC
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?
Comment 3 kopela 2005-11-22 13:41:09 UTC
Created attachment 27149 [details]
This is a tiny project that fails with the bug error I described above
Comment 4 Adam Sotona 2005-12-07 15:05:42 UTC
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
Comment 5 kopela 2005-12-07 15:17:19 UTC
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
Comment 6 Adam Sotona 2005-12-07 15:38:43 UTC
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.
Comment 7 Lukas Hasik 2006-01-17 13:57:35 UTC
verifying all old issues