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 - Annotation: Parse error in file jar:file:/.../text.jar!
Summary: Annotation: Parse error in file jar:file:/.../text.jar!
Status: VERIFIED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker with 3 votes (vote)
Assignee: issues@editor
URL: http://ripple.ecsi.com.au/bugzilla/sh...
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-11 15:24 UTC by _ hair
Modified: 2006-07-05 18:58 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
patch to org/netbeans/modules/text/layer.xml (814 bytes, patch)
2002-10-11 15:42 UTC, _ hair
Details | Diff
patch to org/netbeans/modules/text/TXTWizardIterator.java (1.01 KB, patch)
2002-10-11 15:43 UTC, _ hair
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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