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.
Every startup using netbeans3.4 platform (with text.jar module installed of course) we get: Annotation: Parse error in file jar:file:/C:/Merlin/modules/text.jar!/org/netbeans/modules/text/Layer.xml line 30 column -1 (PUBLIC null) org.xml.sax.SAXParseException: unknown <attr> value type for templateWizardIterator at org.netbeans.core.projects.cache.ParsingLayerCacheManager.startElement(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:396) [catch] at org.netbeans.core.projects.cache.ParsingLayerCacheManager.store(Unknown Source) at org.netbeans.core.projects.ModuleLayeredFileSystem$1.run(Unknown Source) at org.openide.filesystems.EventControl.runAtomicAction(Unknown Source) at org.openide.filesystems.FileSystem.runAtomicAction(Unknown Source) at org.netbeans.core.projects.ModuleLayeredFileSystem.setURLs(Unknown Source) at org.netbeans.core.projects.ModuleLayeredFileSystem.addURLs(Unknown Source) at org.netbeans.core.modules.NbInstaller.loadLayers(Unknown Source) at org.netbeans.core.modules.NbInstaller.load(Unknown Source) at org.netbeans.core.modules.ModuleManager.enable(Unknown Source) at org.netbeans.core.modules.ModuleList.installNew(Unknown Source) at org.netbeans.core.modules.ModuleList.trigger(Unknown Source) at org.netbeans.core.modules.ModuleSystem.scanForNewAndRestore(Unknown Source) at org.netbeans.core.NonGui.run(Unknown Source) at org.netbeans.core.Main.run(Main.java:249) at org.openide.TopManager.initializeTopManager(Unknown Source) at org.openide.TopManager.getDefault(Unknown Source) at org.netbeans.core.Main.main(Main.java:401) at org.netbeans.core.TopThreadGroup.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) Looking into this and comparing to other <attr name="templateWizardIterator" ... \> fields in layer.xml's i see that newvalue="..." is not used anymore. The patch files alter TXTWizardIterator and layer.xml to use the more common methodvalue="..." way.
Created attachment 7647 [details] patch to org/netbeans/modules/text/layer.xml
Created attachment 7648 [details] patch to org/netbeans/modules/text/TXTWizardIterator.java
I don't get such an exception. Maybe you have a prerelease copy of NetBeans, or of the text module? There is nothing wrong with the text module layer. newvalue and methodvalue are both fine. The patch would work the same way; there is no particular advantage or disadvantage. It would cache the iterator instance, but this is pretty irrelevant since the object is lightweight anyway.
verified or just very old