You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/04/12 08:02:18 UTC
[GitHub] [netbeans] timfel opened a new issue, #3967: java.lang.NullPointerException at org.netbeans.modules.java.source.ui.LspElementUtils.processOffsetInfo
timfel opened a new issue, #3967:
URL: https://github.com/apache/netbeans/issues/3967
### Apache NetBeans version
Apache NetBeans latest daily build
### What happened
Opening any document in emacs lsp in the latest version gives this error:
```
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.java.lsp.server.protocol.TextDocumentServiceImpl$$Lambda$234/683895263
java.lang.NullPointerException
at org.netbeans.modules.java.source.ui.LspElementUtils.processOffsetInfo(LspElementUtils.java:297)
at org.netbeans.modules.java.source.ui.LspElementUtils.setOffsets(LspElementUtils.java:355)
at org.netbeans.modules.java.source.ui.LspElementUtils.element2StructureElement(LspElementUtils.java:83)
at org.netbeans.modules.java.source.ui.LspElementUtils.element2StructureElement(LspElementUtils.java:127)
at org.netbeans.api.java.source.ui.ElementHeaders.toStructureElement(ElementHeaders.java:215)
at org.netbeans.modules.editor.java.JavaStructureProvider.element2StructureElement(JavaStructureProvider.java:97)
at org.netbeans.modules.editor.java.JavaStructureProvider.lambda$getStructure$0(JavaStructureProvider.java:75)
at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:504)
at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:132)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:116)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:83)
at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:454)
at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:425)
at org.netbeans.modules.editor.java.JavaStructureProvider.getStructure(JavaStructureProvider.java:60)
at org.netbeans.modules.java.lsp.server.protocol.TextDocumentServiceImpl.lambda$documentSymbol$20(TextDocumentServiceImpl.java:829)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
```
### How to reproduce
Open any Java file using lsp-netbeans in emacs.
### Did this work correctly in an earlier version?
Apache NetBeans 13
### Operating System
Ubuntu 18.04
### JDK
GraalVM 22.0 JDK17
### Apache NetBeans packaging
Other
### Anything else
Every time I open a document.
### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] sdedic commented on issue #3967: java.lang.NullPointerException at org.netbeans.modules.java.source.ui.LspElementUtils.processOffsetInfo
Posted by GitBox <gi...@apache.org>.
sdedic commented on issue #3967:
URL: https://github.com/apache/netbeans/issues/3967#issuecomment-1097978630
Got something similar, although not the same stacktrace. NPE in `processOffsetInfo`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] sdedic closed issue #3967: java.lang.NullPointerException at org.netbeans.modules.java.source.ui.LspElementUtils.processOffsetInfo
Posted by GitBox <gi...@apache.org>.
sdedic closed issue #3967: java.lang.NullPointerException at org.netbeans.modules.java.source.ui.LspElementUtils.processOffsetInfo
URL: https://github.com/apache/netbeans/issues/3967
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] timfel commented on issue #3967: java.lang.NullPointerException at org.netbeans.modules.java.source.ui.LspElementUtils.processOffsetInfo
Posted by GitBox <gi...@apache.org>.
timfel commented on issue #3967:
URL: https://github.com/apache/netbeans/issues/3967#issuecomment-1096350965
I'll look at it myself later tonight, just wanted to open the issue for tracking
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists