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 200807170007) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows XP, 5.1, x86 User Comments: Tried to insert a label, and then Message component from Woodstock Basic components
Created attachment 65254 [details] stacktrace
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=71865
Build: NetBeans IDE Dev (Build 200807251401) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Windows XP, 5.1, x86 User Comments: [60cat][vwp] Add staticText label to visual editor. Had added labels earlier in same editing session with no problems, so this was a surprise. Stacktrace: java.lang.AssertionError: Token length=-38 <= 0 at org.netbeans.lib.lexer.token.DefaultToken.<init>(DefaultToken.java:84) at org.netbeans.lib.lexer.token.PropertyToken.<init>(PropertyToken.java:61) at org.netbeans.lib.lexer.token.PartToken.<init>(PartToken.java:67) at org.netbeans.lib.lexer.JoinLexerInputOperation.createJoinToken(JoinLexerInputOperation.java:263) at org.netbeans.lib.lexer.JoinLexerInputOperation.createDefaultTokenInstance(JoinLexerInputOperation.java:237) at org.netbeans.lib.lexer.LexerInputOperation.createToken(LexerInputOperation.java:269)
Created attachment 65693 [details] stacktrace
Build: NetBeans IDE Dev (Build 200807251401) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Windows XP, 5.1, x86 User Comments: [65cat][vwp] Add another StaticText component to visual editor, this error message is identical to the the first StaticText component message. Stacktrace: java.lang.AssertionError: Token length=-38 <= 0 at org.netbeans.lib.lexer.token.DefaultToken.<init>(DefaultToken.java:84) at org.netbeans.lib.lexer.token.PropertyToken.<init>(PropertyToken.java:61) at org.netbeans.lib.lexer.token.PartToken.<init>(PartToken.java:67) at org.netbeans.lib.lexer.JoinLexerInputOperation.createJoinToken(JoinLexerInputOperation.java:263) at org.netbeans.lib.lexer.JoinLexerInputOperation.createDefaultTokenInstance(JoinLexerInputOperation.java:237) at org.netbeans.lib.lexer.LexerInputOperation.createToken(LexerInputOperation.java:269)
Created attachment 65695 [details] stacktrace
[65cat][vwp] Request the priority be raised from P3 to P2 - this error occurs every time I drag-n-drop a component to the design surface in Visual JSF. Not only a nuisance, but a definite work hindrance.
Build: NetBeans IDE Dev (Build 200807251401) VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Linux, 2.6.24-16-generic, amd64 User Comments: Stacktrace: java.lang.AssertionError: Token length=-36 <= 0 at org.netbeans.lib.lexer.token.DefaultToken.<init>(DefaultToken.java:84) at org.netbeans.lib.lexer.token.PropertyToken.<init>(PropertyToken.java:61) at org.netbeans.lib.lexer.token.PartToken.<init>(PartToken.java:67) at org.netbeans.lib.lexer.JoinLexerInputOperation.createJoinToken(JoinLexerInputOperation.java:263) at org.netbeans.lib.lexer.JoinLexerInputOperation.createDefaultTokenInstance(JoinLexerInputOperation.java:237) at org.netbeans.lib.lexer.LexerInputOperation.createToken(LexerInputOperation.java:269)
Created attachment 66098 [details] stacktrace
Build: NetBeans IDE Dev (Build 200807251401) VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Linux, 2.6.24-16-generic, amd64 User Comments: Stacktrace: java.lang.AssertionError: Token length=-36 <= 0
Created attachment 66099 [details] stacktrace
I've tried to add static texts from woodstock several times but the exception did not occur. Added RANDOM keyword since the report said that several labels were fine... I've done two bugfixes that might influence the problem - issue 137542 and issue 137872. Could you please attempt to reproduce in a dev builds after Aug 1? Thanks.
[65cat] Using build 0802, I replicated the problem. VWP, drop static text on blank workplace; drop label; drop grid panel. All fine so far. Drag label component on top of grid panel component, received out of bounds condition. On the bright side, the behavior has much improved from before.
This issue has already 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=71865
Even after trying several times unfortunately I was not able to reproduce the problem. Anyway in the meantime there were four issues fixed (issue 141151, issue 143759, issue 137809 and today issue 144538) that might relate to this problem. Also I've run the build with -J-Dorg.netbeans.spi.lexer.MutableTextInput.level=FINE to see whether the lexer's token hierarchy is properly accessed under read/write lock and there was one exception (attached) - the XMLSyntaxParser:66 is accessing the TH without read-lock. Although it's hard to say that this is a culprit (since the embeddings are also created dynamically from a RequestProcessor) the access to hierarchy without locked document should be avoided (e.g. by using Document.render() or NbDocument.runAtomic() etc.). Reassigning to visualweb module for evaluation.
Created attachment 68024 [details] Missing readlock
Changed summary for NetCAT
Missing read lock on document (see mmetelka's comment), probably insync's responsibility to acquire it. Passing there.
Insync is not handling the faces configuration file, it is just using the results from web/jsf module. This could be a problem in web JSF implementation. Re-assigning to Po-Ting for more investigation. Note that insync has not changed for quite sometime.
> the access to hierarchy without locked document should be avoided (e.g. by using Document.render() or NbDocument.runAtomic() etc.). > Created an attachment (id=68024) > Missing readlock I think the lock should be implemented at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:259). The caller does not have object Document available yet when calling getModel.
Fixed: http://hg.netbeans.org/main?cmd=changeset;node=edd3fed2bd49. The diffs look huge because of indentation, the fact is, I just added readLock and readUnlock and removed one unused method.
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/edd3fed2bd49 User: samaresh@netbeans.org Log: #141189 read lock on document while creating xdm model.