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.
Summary: | IndexOutOfBoundsException: Invalid line index=82 >= lineCount=69 | ||
---|---|---|---|
Product: | third-party | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | -- Other -- | Assignee: | issues@third-party <issues> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | abalint21, alied, cezariusz, ggghhhjjj, jglick, jockel, KhArtNJava, luis.boch, mig_soft, misterm, mkhramov, RampantBadger, sdedic, terje7601 |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 210659 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
Exceptions Reporter
2014-07-11 15:34:34 UTC
Created attachment 148001 [details]
stacktrace
Please handle gracefully the IOOBE, or check that line number < # of lines in the document. Hi, the "PMD" plugin is no longer maintained. Please consider using the "EasyPMD" plugin instead. Thx. This issue should be reinvestigated, as it has nothing to do with PMD (in my case I was editing a pom.xml file) & already has 19 duplicates. Product Version: NetBeans IDE Dev (Build 201502120001) Updates: Updates available Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07 Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) (In reply to terje7601 from comment #4) > This issue should be reinvestigated, as it has nothing to do with PMD (in my > case I was editing a pom.xml file) & already has 19 duplicates. > The cause is as said earlier in the defect. Text API caller has to either ensure the line number is valid (i.e. read-lock the document, check the # of lines, perform operation) or face IOOBE and handle it. Exception reporter sometimes misreports related exceptions, although the stacktrace is different - attaches to a wrong group of reports. Your issue (report #766366) should be created for maven support (see your own stacktrace). Please do not change components unless you investigate the reported issue in detail. (In reply to Svata Dedic from comment #5) > The cause is as said earlier in the defect. Text API caller has to either > ensure the line number is valid (i.e. read-lock the document, check the # of > lines, perform operation) or face IOOBE and handle it. > > Exception reporter sometimes misreports related exceptions, although the > stacktrace is different - attaches to a wrong group of reports. Your issue > (report #766366) should be created for maven support (see your own > stacktrace). > > Please do not change components unless you investigate the reported issue in > detail. Sorry for having changed this issue, but I did read through the comments. And since the stack trace in the description matched mine exactly, I thought this was the appropriate issue to report my problem. All the more since there were already 19 duplicates. As a mere user, I'm unaware that NetBeans has a Text API which is called by all the other components. And that those components have to call the Text API in a correct way to avoid IOOBEs like this. Also, if NetBeans gives me an error in the Text API, I don't see how I'd be able to know whether it's an error in the Text API itself or in the component that uses it. Anyway, thanks for clarifying, I'll remember this for the future :) And thanks for creating the new issue. Created attachment 156334 [details]
stacktrace
Typing
Created attachment 156335 [details]
stacktrace
Typing
Created attachment 158562 [details]
stacktrace
editing a project's POM. Moving dependencies to parent's dependency management
Created attachment 158604 [details]
stacktrace
Not sure.
Created attachment 162140 [details]
stacktrace
Editing a project POM
Created attachment 162334 [details]
stacktrace
edited a project's POM and saved.
one more thing: I don't have installed PMD. Created attachment 165664 [details]
stacktrace
Invoke resolve conflicts command on changed file
|