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'm getting this on startup with my branched version of core. I'd like to suggest that, especially while things are a bit unstable with the new projects (semi-hack projectization of some things, etc.), and just as a general prinicple, that any exception thrown while reading an xml file *always* include the full path of the file being read - then one can at least compare it with something else and have a chance at fixing it. org.xml.sax.SAXException: No <jar> at org.netbeans.modules.apisupport.project.ModuleList.<init>(Mo duleList.java:86) at org.netbeans.modules.apisupport.project.ModuleList.getModule List(ModuleList.java:50) at org.netbeans.modules.apisupport.project.NbModuleProject.<init >(NbModuleProject.java:73) at org.netbeans.modules.apisupport.project.NbModuleProjectType. createProject(NbModuleProjectType.java:41)
I'll attach a patch, but better would be to print out the offending line number.
Created attachment 14205 [details] Just adding in the filename and element (although its toString() is less meaningful than I'd hoped)
Current version of ModuleList does mention where nbroot is. Probably you are using an obsolete version of the apisupport/project module on newer trunk sources.
Hmm. The problem seems to be that (in my current trunk checkout, unless it changed *very* recently), ModuleList assumes that every module element will have a jar tag, and throws an exception if it's missing. But many module tags in the current modules.xml don't have any jar tag.
The current ModuleList does not assume that every module has a <jar> tag. You are using an obsolete version of it, I presume.
Okay, I'll do a fresh checkout and build and hopefully the problem will go away. Nonetheless, I'd suggest that for all parts of the projects infrastructure that parse XML files, any error message should include the file (and ideally) line where the problem occured.
closed