-
Notifications
You must be signed in to change notification settings - Fork 914
Open
Labels
Gradle[ci] enable "build tools" tests[ci] enable "build tools" testsJava EE/Jakarta EE[ci] enable enterprise job[ci] enable enterprise jobhintskind:bugBug report or fixBug report or fix
Description
Apache NetBeans version
Apache NetBeans 28 latest release candidate
What happened
When loading my web app projects (which use a small subset of EE technologies) a NullPointerException is thrown when attempting to load the webapp components. As such, those components are not directly accessible in NetBeans. Here is the stacktrace...
java.lang.NullPointerException: The file parameter cannot be null
at org.openide.util.Parameters.notNull(Parameters.java:64)
at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:889)
at org.netbeans.modules.gradle.javaee.web.WebModuleImpl.getDocumentBase(WebModuleImpl.java:90)
at org.netbeans.modules.web.api.webmodule.WebModule.getDocumentBase(WebModule.java:127)
at org.netbeans.modules.web.jsf.api.facesmodel.JsfVersionUtils.get(JsfVersionUtils.java:238)
at org.netbeans.modules.web.jsf.api.facesmodel.JsfVersionUtils.forWebModule(JsfVersionUtils.java:99)
at org.netbeans.modules.web.jsf.hints.JsfHintsContext.<init>(JsfHintsContext.java:42)
at org.netbeans.modules.web.jsf.hints.JsfHintsUtils.createJsfHintsContext(JsfHintsUtils.java:63)
at org.netbeans.modules.web.jsf.hints.JsfHintsUtils.getOrCacheContext(JsfHintsUtils.java:53)
at org.netbeans.modules.web.jsf.hints.rules.JakartaFacesBeanIsGonnaBeDeprecated.run(JakartaFacesBeanIsGonnaBeDeprecated.java:92)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
[catch] at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:306)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:721)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:596)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:615)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:562)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:110)
at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:118)
at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:151)
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:627)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:66)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:640)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:240)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:224)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:191)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:111)
at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:62)
at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
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)
Language / Project Type / NetBeans Component
Gradle "war" project created from command line
How to reproduce
Happens on load of any of my "war" projects
Did this work correctly in an earlier version?
Apache NetBeans 27
Operating System
Mac OS X version 15.7.1 running on aarch64; UTF-8; en_US (nb)
JDK
25.0.1; OpenJDK 64-Bit Server VM 25.0.1 from homebrew
Apache NetBeans packaging
Other
Anything else
I am using the "NetBeans macOS Bundle" tool to package the macOS app directly from the 28-rc2 download link.
Are you willing to submit a pull request?
No
Metadata
Metadata
Assignees
Labels
Gradle[ci] enable "build tools" tests[ci] enable "build tools" testsJava EE/Jakarta EE[ci] enable enterprise job[ci] enable enterprise jobhintskind:bugBug report or fixBug report or fix