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.
Build: NetBeans IDE Dev (Build 200904011705) VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284 OS: Mac OS X, 10.5.6, i386 User Comments: maxnitribitt: Created a Module, from the project Node launched New File Wizard ->Module Development -> Module Installer, kept defaults, clicked next, then finish. => this Exception Stacktrace: java.lang.AssertionError: [] at org.netbeans.modules.apisupport.project.CreatedModifiedFilesFactory.copyAndSubstituteTokens(CreatedModifiedFilesFactory.java:320) at org.netbeans.modules.apisupport.project.CreatedModifiedFilesFactory.access$200(CreatedModifiedFilesFactory.java:96) at org.netbeans.modules.apisupport.project.CreatedModifiedFilesFactory$CreateFile.run(CreatedModifiedFilesFactory.java:288) at org.netbeans.modules.apisupport.project.CreatedModifiedFiles.run(CreatedModifiedFiles.java:181) at org.netbeans.modules.apisupport.project.ui.wizard.moduleinstall.NewModuleInstallIterator.instantiate(NewModuleInstallIterator.java:67) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1018)
Created attachment 81061 [details] stacktrace
Reproducible? Does your IDE installation contain ide11/modules/org-netbeans-libs-freemarker.jar? Could you attach IDE log?
I submitted this via automated exception report (http://statistics.netbeans.org/analytics/exception.do?id=202728) and it was marked as a duplicate of the bug Toni reported. Reading through his description, he did exactly the same thing as me before encountering the bug. Now we know that it is not specific to a given platform or JRE. My IDE does contain the ide11/modules/org-netbeans-libs-freemarker.jar file. My IDE log file appears to have been uploaded with the exception report, here: http://statistics.netbeans.org/analytics/messageslog?id=202728
FWIW, the Installer wizard created an zero-length file named Installer, although it was in the correct package. The dependency on the Module System API was not added to project.xml nor was the registration entry added to the manifest file.
Thanks for the log, there is another exception before the reported one, so it may be the culprit. Is this random in your case or reproducible consistently?
I've shutdown the IDE since I experienced the problem, so I can't say for sure whether I had an exception earlier in the process. I don't recall one, but it's certainly possible. It seems the problem is not 100% reproducible. I just launched the same build, created a new platform app and added a new module to it. I used the wizard to create a ModuleInstall, but this time it worked.
requested information was provided by user
Don't know how to reproduce. Improving diagnostics: core-main #31fdc90ce152
Integrated into 'main-golden', will be available in build *201002180200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/31fdc90ce152 User: Jesse Glick <jglick@netbeans.org> Log: Better assertion for #163878.
*** Bug 196845 has been marked as a duplicate of this bug. ***
Duplicate says: java.lang.AssertionError: #163878: [] lacks freemarker using ModuleCL@637050f5[org.netbeans.modules.java.source] though lookup has [apple.applescript.AppleScriptEngineFactory@60173295, org.netbeans.libs.freemarker.FreemarkerFactory@12fa057c] implying that someone is calling Thread.currentThread().setContextClassLoader(SomeClassInJavaSourceModule.class.getClassLoader()). In the java.source module itself I can see JavacParser and Reindenter doing this, but both take care to reset the CCL in a finally block (and the exception is not inside either of these methods). Should be easy enough to work around, by specifying a ClassLoader explicitly, but I would like to know what the root cause is; other things could be broken too.
core-main #f818806409b3
Integrated into 'main-golden', will be available in build *201103190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f818806409b3 User: Jesse Glick <jglick@netbeans.org> Log: #163878: AssertionError: []