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 100201-3fc727840087) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux User Comments: alexeybutenko: Insert context:component-scan element by code completion: - Creat web app with spring framework - Open applicationContext.xml - Insert namespace: xmlns:context="http://www.springframework.org/schema/context" with location http://www.springframework.org/schema/context/spring-context-3.0.xsd - type "<" and invoke code completion for a list of available tags - select context:component-scan and press enter Stacktrace: java.lang.IllegalArgumentException: bad position: 1288 at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1650) at org.netbeans.modules.xml.schema.completion.CompletionResultItem$1.run(CompletionResultItem.java:166) at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:311) at org.netbeans.modules.xml.schema.completion.CompletionResultItem.replaceText(CompletionResultItem.java:158) at org.netbeans.modules.xml.schema.completion.CompletionResultItem.defaultAction(CompletionResultItem.java:204) at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:602)
Created attachment 93902 [details] stacktrace
Created attachment 93903 [details] stacktrace isert context:property-placeholder tag by code completion
Created attachment 93904 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=164910
Created attachment 93906 [details] Suggested fix following patch will solve the issue
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss