打开netbeans时出现java.lang.IndexOutOfBoundsException

时间:2022-10-22 20:39:02

Whenever i starts the netbeans, i am getting this error java.lang.IndexOutOfBoundsException, i am not understanding why it is coming contiguously , previously i was working a project and i used servlet and hibernate framework, which runs well at that time but now this errors comes continuously

每当我启动netbeans时,我收到此错误java.lang.IndexOutOfBoundsException,我不明白为什么它会连续,以前我正在工作一个项目,我使用servlet和hibernate框架,当时运行良好,但现在这个错误不断发生

java.lang.IndexOutOfBoundsException
at java.nio.StringCharBuffer.subSequence(StringCharBuffer.java:92)
at org.netbeans.modules.java.editor.javadoc.JavadocCompletionUtils.isLineBreak(JavadocCompletionUtils.java:325)
at org.netbeans.modules.java.editor.javadoc.JavadocCompletionUtils.isLineBreak(JavadocCompletionUtils.java:306)
at org.netbeans.modules.java.editor.javadoc.DocPositions.resolve(DocPositions.java:177)

Caused:

java.lang.IllegalStateException: Please attach dump file file:/C:/Users/praveen/AppData/Roaming/NetBeans/7.3beta2/var/log/Servlet_163.jddump to bug.
at org.netbeans.modules.java.editor.javadoc.JavadocCompletionUtils.dumpOutOfSyncError(JavadocCompletionUtils.java:522)
at org.netbeans.modules.java.editor.javadoc.JavadocCompletionUtils.dumpOutOfSyncError(JavadocCompletionUtils.java:594)
at org.netbeans.modules.java.editor.javadoc.DocPositions.resolve(DocPositions.java:209)

Caused: java.lang.IllegalStateException: ' @author praveen '

造成:java.lang.IllegalStateException:'@ author praveen'

org.netbeans.modules.java.editor.javadoc.DocPositions@3ecc02

token sequence dump: TokenSequence for text/x-java/text/x-javadoc at tokenIndex=1. TokenList contains 5 tokens:

token sequence dump:tokenIndex = 1处的text / x-java / text / x-javadoc的TokenSequence。 TokenList包含5个令牌:

T[0]: "\n *\n * " <484,491> OTHER_TEXT[5] DefT, IHC=32569212
*[1]: "@author" <491,498> TAG[1] DefT, IHC=17308677
T[2]: " " <498,499> OTHER_TEXT[5] DefT, IHC=23575283
T[3]: "praveen" <499,506> IDENT[0] DefT, IHC=19063215
T[4]: "\n " <506,508> OTHER_TEXT[5] DefT, IHC=17748422

at org.netbeans.modules.java.editor.javadoc.DocPositions.resolve(DocPositions.java:212)
at org.netbeans.modules.java.editor.javadoc.DocPositions.getTags(DocPositions.java:138)
at org.netbeans.modules.java.editor.javadoc.JavadocImports.computeReferencedElements(JavadocImports.java:123)
at org.netbeans.modules.java.editor.imports.UnusedImports$DetectorVisitor.handleJavadoc(UnusedImports.java:137)
at org.netbeans.modules.java.editor.imports.UnusedImports$DetectorVisitor.visitClass(UnusedImports.java:144)
at org.netbeans.modules.java.editor.imports.UnusedImports$DetectorVisitor.visitClass(UnusedImports.java:116)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:620)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:90)
at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:103)
at org.netbeans.modules.java.editor.imports.UnusedImports$DetectorVisitor.visitCompilationUnit(UnusedImports.java:171)
at org.netbeans.modules.java.editor.imports.UnusedImports$DetectorVisitor.visitCompilationUnit(UnusedImports.java:116)
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:490)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94)
at org.netbeans.modules.java.editor.imports.UnusedImports.process(UnusedImports.java:94)
at org.netbeans.modules.java.editor.semantic.SemanticHighlighter.computeUnusedImports(SemanticHighlighter.java:135)
at org.netbeans.modules.java.hints.Imports.unusedImport(Imports.java:97)

Caused: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
[catch] at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:299)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:751)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$300(HintsInvoker.java:110)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:618)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:656)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:250)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:233)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:204)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:180)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:147)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:113)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:83)
at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:559)
at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:735)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

1 个解决方案

#1


The problem is that if you rollback more changes and those changes are conflicting (affect the same code) svn creates a file with nested conflict blocks that cannot be easily resolved. Maybe the conflicts resolver could detect that and show a message instead that you need to resolve this manually in the editor.

问题是,如果您回滚更多更改并且这些更改存在冲突(影响相同的代码),则svn会创建一个包含无法轻松解决的嵌套冲突块的文件。也许冲突解析器可以检测到并显示一条消息,而不是您需要在编辑器中手动解决此问题。

check link

#1


The problem is that if you rollback more changes and those changes are conflicting (affect the same code) svn creates a file with nested conflict blocks that cannot be easily resolved. Maybe the conflicts resolver could detect that and show a message instead that you need to resolve this manually in the editor.

问题是,如果您回滚更多更改并且这些更改存在冲突(影响相同的代码),则svn会创建一个包含无法轻松解决的嵌套冲突块的文件。也许冲突解析器可以检测到并显示一条消息,而不是您需要在编辑器中手动解决此问题。

check link