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 27959

Summary: Annotation: Parse error in file jar:file:/.../text.jar!
Product: editor Reporter: _ hair <hair>
Component: -- Other --Assignee: issues@editor <issues>
Status: VERIFIED WORKSFORME    
Severity: blocker CC: jglick
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows XP   
URL: http://ripple.ecsi.com.au/bugzilla/show_bug.cgi?id=2022
Issue Type: TASK Exception Reporter:
Attachments: patch to org/netbeans/modules/text/layer.xml
patch to org/netbeans/modules/text/TXTWizardIterator.java

Description _ hair 2002-10-11 15:24:58 UTC
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.
Comment 1 _ hair 2002-10-11 15:42:21 UTC
Created attachment 7647 [details]
patch to org/netbeans/modules/text/layer.xml
Comment 2 _ hair 2002-10-11 15:43:06 UTC
Created attachment 7648 [details]
patch to org/netbeans/modules/text/TXTWizardIterator.java
Comment 3 Jesse Glick 2002-11-30 18:01:37 UTC
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.
Comment 4 _ hair 2006-07-05 18:58:11 UTC
verified or just very old