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 180326 - IllegalArgumentException: bad position: 1288
Summary: IllegalArgumentException: bad position: 1288
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-05 04:06 UTC by Alexey Butenko
Modified: 2016-07-07 09:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164910


Attachments
stacktrace (2.70 KB, text/plain)
2010-02-05 04:06 UTC, Alexey Butenko
Details
stacktrace (2.70 KB, text/plain)
2010-02-05 04:07 UTC, Alexey Butenko
Details
stacktrace (2.70 KB, text/plain)
2010-02-05 04:08 UTC, Alexey Butenko
Details
Suggested fix (858 bytes, patch)
2010-02-05 04:28 UTC, Alexey Butenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Butenko 2010-02-05 04:06:39 UTC
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)
Comment 1 Alexey Butenko 2010-02-05 04:06:43 UTC
Created attachment 93902 [details]
stacktrace
Comment 2 Alexey Butenko 2010-02-05 04:07:51 UTC
Created attachment 93903 [details]
stacktrace

isert context:property-placeholder tag by code completion
Comment 3 Alexey Butenko 2010-02-05 04:08:50 UTC
Created attachment 93904 [details]
stacktrace
Comment 4 Exceptions Reporter 2010-02-05 04:09:01 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=164910
Comment 5 Alexey Butenko 2010-02-05 04:28:34 UTC
Created attachment 93906 [details]
Suggested fix

following patch will solve the issue
Comment 6 Martin Balin 2016-07-07 09:56:17 UTC
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