You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "0k00l (via GitHub)" <gi...@apache.org> on 2025/01/22 15:22:46 UTC

[I] "The result parameter cannot be null" on code complation [netbeans]

0k00l opened a new issue, #8179:
URL: https://github.com/apache/netbeans/issues/8179

   ### Apache NetBeans version
   
   Apache NetBeans 24
   
   ### What happened
   
   New install on gentoo from https://cgit.gentoo.org/dev/fordfrog.git (portage overlay), every opened project doesn't support code completion.
   Tried(as suggested on netbeans boot) with openjdk23 but ide doesn't recognize that is has bean lunched with it (warning still occurs), nb-javac doesn't downloading.
   
   ### Language / Project Type / NetBeans Component
   
   java, maven, spring
   
   ### How to reproduce
   
   Create new project then new class - done, code completion not working
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Gentoo(kernel 6.6.62-gentoo-x86_64)
   
   ### JDK
   
   17, 23
   
   ### Apache NetBeans packaging
   
   Other
   
   ### Anything else
   
   in logs i see:
   ```
   NFO [org.netbeans.modules.parsing.impl.SourceCache]: Parser factory: org.netbeans.modules.java.source.parsing.JavacParserFactory@792287cf returned null parser for Snapshot 944010107: CashCardJsonTest.java
   INFO [org.netbeans.modules.parsing.impl.SourceCache]: Parser factory: org.netbeans.modules.java.source.parsing.JavacParserFactory@792287cf returned null parser for Snapshot 1005017317: CashCardApplicationTests.java
   WARNING [org.openide.filesystems.Ordering]: Not all children in UI/ToolActions/ marked with the position attribute: [Files, Java, org-netbeans-modules-gsf-testrunner-ui-TestCreatorAction.shadow], but some are: [io-github-moacirrf-javadecompiler-DecompileAction.shadow]
   INFO [org.netbeans.modules.parsing.impl.SourceCache]: Parser factory: org.netbeans.modules.java.source.parsing.JavacParserFactory@792287cf returned null parser for Snapshot 543755576: CashCardApplication.java
   INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 493 ms.
   
   WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with the position attribute: [org-netbeans-modules-lsp-client-bindings-CompletionProviderImpl.instance], but some are: [org-netbeans-modules-parsing-ui-WaitScanFinishedCompletionProvider.instance, org-netbeans-modules-editor-java-JavaCompletionProvider.instance, org-netbeans-modules-jshell-editor-HistoryCompletionProvider.instance, org-netbeans-modules-java-editor-javadoc-JavadocCompletionProvider.instance, org-netbeans-modules-micronaut-completion-MicronautDataCompletionProvider.instance, org-netbeans-lib-editor-codetemplates-CodeTemplateCompletionProvider.instance, org-netbeans-modules-j2ee-persistence-editor-completion-JPACodeCompletionProvider.instance, org-netbeans-modules-websvc-editor-completion-WSCompletionProvider.instance, org-netbeans-modules-spellchecker-completion-WordCompletion.instance]
   SEVERE [org.openide.util.Exceptions]
   java.lang.NullPointerException: The result parameter cannot be null
           at org.openide.util.Parameters.notNull(Parameters.java:64)
           at org.netbeans.api.java.source.CompilationController.get(CompilationController.java:63)
           at org.netbeans.modules.micronaut.completion.MicronautDataCompletionTask$1.run(MicronautDataCompletionTask.java:120)
           at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
           at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:197)
           at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:180)
           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)
   Caused: org.netbeans.modules.parsing.spi.ParseException
           at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186)
           at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:83)
   [catch] at org.netbeans.modules.micronaut.completion.MicronautDataCompletionTask.query(MicronautDataCompletionTask.java:117)
           at org.netbeans.modules.micronaut.completion.MicronautDataCompletionProvider$MicronautDataCompletionQuery.query(MicronautDataCompletionProvider.java:129)
           at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198)
           at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
           at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
           at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
           at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
   ```
   
   ![Image](https://github.com/user-attachments/assets/bc8da96d-3765-4734-bccd-89431cd1427c)
   
   ![Image](https://github.com/user-attachments/assets/5aebd69c-a885-4cf3-8407-60a42eac7ff4)
   
   log from launch:
   
   [netbenas-launch.log](https://github.com/user-attachments/files/18507671/netbenas-launch.log)
   
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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


Re: [I] "The result parameter cannot be null" on code complation [netbeans]

Posted by "0k00l (via GitHub)" <gi...@apache.org>.
0k00l closed issue #8179: "The result parameter cannot be null" on code complation
URL: https://github.com/apache/netbeans/issues/8179


-- 
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


Re: [I] "The result parameter cannot be null" on code complation [netbeans]

Posted by "0k00l (via GitHub)" <gi...@apache.org>.
0k00l commented on issue #8179:
URL: https://github.com/apache/netbeans/issues/8179#issuecomment-2607566371

   Removing ~/.netbeans solved problem. Sry :D.
   
   So, procedure to resolve this is as follow:
   -  remember to remove ~/.netbeans always before install netbeans!
   
   


-- 
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