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 77535 - javax.swing.text.BadLocationException:
Summary: javax.swing.text.BadLocationException:
Status: VERIFIED WORKSFORME
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Jiri Prazak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-07 16:12 UTC by Fabiola Rios
Modified: 2007-04-27 09:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
code example (6.35 KB, application/octet-stream)
2006-06-08 09:40 UTC, Fabiola Rios
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabiola Rios 2006-06-07 16:12:15 UTC
I just paste some code from Internet and the exception appear in a MIDlet:

javax.swing.text.BadLocationException: Invalid offset=-2 not within <0, 1225>
	at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1266)
	at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1261)
	at org.netbeans.editor.Utilities.getRowStart(Utilities.java:129)
	at org.netbeans.editor.Utilities.getRowStart(Utilities.java:112)
	at
org.netbeans.modules.kjava.editor.hints.PreprocessorHintsProvider.getHints(PreprocessorHintsProvider.java:49)
	at
org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:264)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:520)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:953)
Comment 1 Jiri Prox 2006-06-08 09:03:35 UTC
Can you provide the text in clipboard and file you've pasted it in, please?
Comment 2 Fabiola Rios 2006-06-08 09:40:08 UTC
Created attachment 30885 [details]
code example
Comment 3 Fabiola Rios 2006-06-08 09:42:30 UTC
I  have attachmented the file, I don't know if this is related with the
exception, but I made refactoring to change the name of the package. The text
come from PDF file.
 
Comment 4 Miloslav Metelka 2006-06-08 15:39:50 UTC
Looks like the kjava.editor.hints.PreprocessorHintsProvider requests an invalid
offset. Reassigning for evaluation.
Comment 5 Lukas Hasik 2006-06-08 16:35:42 UTC
reassigning
Comment 6 Lukas Hasik 2006-06-23 15:07:30 UTC
moving to mobility component
Comment 7 Jiri Prazak 2006-09-06 16:09:59 UTC
I will have a look at this, this is my component.
Comment 8 Jiri Prazak 2006-09-11 09:00:46 UTC
Cannot duplicate, not enough information.
Comment 9 Lukas Hasik 2006-09-12 16:40:36 UTC
invalid status is used for INVALID issues. This issue appeared. When you don't
have enought information use INCOMPETE keyword. When you cannot reproduce the
issue then use WORKSFORME status.

thank you ;)
Comment 10 Lukas Hasik 2006-09-12 16:41:23 UTC
x
Comment 11 Fabiola Rios 2007-04-27 09:33:14 UTC
verified 20070426 
agree