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 2023/01/11 07:39:24 UTC

[GitHub] [netbeans] alexx7676 opened a new issue, #5272: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null

alexx7676 opened a new issue, #5272:
URL: https://github.com/apache/netbeans/issues/5272

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   I've got error while trying to find usage of class constructor.
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Linux Mint 21.1 amd64
   
   ### JDK
   
   Oracle java version "17.0.5" 2022-10-18 LTS x64
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   [AbstractPacketProcessor_4.dump.txt](https://github.com/apache/netbeans/files/10389811/AbstractPacketProcessor_4.dump.txt)
   
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### 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] mbien commented on issue #5272: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null

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

   almost the same exception as #3725


-- 
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] javatlacati commented on issue #5272: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null

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

   Same issue here on a dukescript project:
   
   ```
   java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null
   	at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitApply(Flow.java:1576)
   	at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1799)
   	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:447)
   	at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:219)
   	at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1586)
   	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:447)
   	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
   	at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitBlock(Flow.java:1325)
   	at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1082)
   	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:447)
   	at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitMethodDef(Flow.java:1291)
   	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:912)
   	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:447)
   	at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitClassDef(Flow.java:1254)
   	at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:810)
   	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:447)
   	at com.sun.tools.javac.comp.Flow$FlowAnalyzer.analyzeTree(Flow.java:1669)
   	at com.sun.tools.javac.comp.Flow$FlowAnalyzer.analyzeTree(Flow.java:1659)
   	at com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:225)
   	at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1377)
   	at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1341)
   	at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:404)
   	at com.sun.tools.javac.api.JavacTaskImpl.generate(JavacTaskImpl.java:465)
   	at org.netbeans.modules.java.source.indexing.VanillaCompileWorker$2.run(VanillaCompileWorker.java:359)
   	at org.netbeans.modules.java.source.parsing.FileManagerTransaction.runConcurrent(FileManagerTransaction.java:180)
   [catch] at org.netbeans.modules.java.source.indexing.VanillaCompileWorker.compile(VanillaCompileWorker.java:346)
   	at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:360)
   	at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:274)
   	at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2749)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.lambda$index$0(RepositoryUpdater.java:2626)
   	at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2625)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.lambda$scanFiles$2(RepositoryUpdater.java:3332)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.lambda$runInContext$4(RepositoryUpdater.java:2119)
   	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2117)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2098)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1400(RepositoryUpdater.java:135)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:3290)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:3832)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3452)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6197)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$3400(RepositoryUpdater.java:5855)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.lambda$call$0(RepositoryUpdater.java:6116)
   	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
   	at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6116)
   	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6112)
   	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.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6112)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	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)
   	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
   ```
   
   ## OS
   
   Product Version: Apache NetBeans IDE 16
   Java: 18.0.2; OpenJDK 64-Bit Server VM 18.0.2+9-61
   Runtime: OpenJDK Runtime Environment 18.0.2+9-61
   System: Windows 10 version 10.0 running on amd64; UTF-8; en_US (nb)


-- 
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] FiruzzZ commented on issue #5272: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null

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

   I got the same Exception every time that I save an @Entity class file and the IDE (latest version) is not capable of generate the StaticMetaModels of EclipseLink from several Entities
   JDK: Adoptium 17


-- 
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] java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null [netbeans]

Posted by "ebarboni (via GitHub)" <gi...@apache.org>.
ebarboni closed issue #5272: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null
URL: https://github.com/apache/netbeans/issues/5272


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