Skip to content

Conversation

@matthiasblaesing
Copy link
Contributor

Exceptions can be observed with CPPLite and JS debugger. The issue is that the support for showing values for variables inline is registered unconditionally, but the implementation is JPDA only.

java.lang.NullPointerException: Cannot invoke "org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.addPropertyChangeListener(java.beans.PropertyChangeListener)" because "this.debugger" is null
	at org.netbeans.modules.debugger.jpda.ui.models.InlineValueComputerImpl.<init>(InlineValueComputerImpl.java:101)
	at org.netbeans.modules.debugger.jpda.ui.models.InlineValueComputerImpl$Init.sessionAdded(InlineValueComputerImpl.java:306)
[catch] at org.netbeans.api.debugger.DebuggerManager.fireSessionAdded(DebuggerManager.java:1324)
	at org.netbeans.api.debugger.DebuggerManager.addSession(DebuggerManager.java:1598)
	at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:314)
	at org.netbeans.modules.cpplite.debugger.CPPLiteDebugger.startDebugging(CPPLiteDebugger.java:845)
	at org.netbeans.modules.cpplite.debugger.api.Debugger.startInDebugger(Debugger.java:43)
	at org.netbeans.modules.cpplite.project.ActionProviderImpl.lambda$invokeAction$4(ActionProviderImpl.java:88)
	at org.netbeans.api.extexecution.base.BaseExecutionService$2.call(BaseExecutionService.java:236)
	at org.netbeans.api.extexecution.base.BaseExecutionService$2.call(BaseExecutionService.java:212)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	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)

…sions

Observed exception:

java.lang.NullPointerException: Cannot invoke "org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.addPropertyChangeListener(java.beans.PropertyChangeListener)" because "this.debugger" is null
at org.netbeans.modules.debugger.jpda.ui.models.InlineValueComputerImpl.(InlineValueComputerImpl.java:101)
at org.netbeans.modules.debugger.jpda.ui.models.InlineValueComputerImpl$Init.sessionAdded(InlineValueComputerImpl.java:306)
[catch] at org.netbeans.api.debugger.DebuggerManager.fireSessionAdded(DebuggerManager.java:1324)
at org.netbeans.api.debugger.DebuggerManager.addSession(DebuggerManager.java:1598)
at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:314)
at org.netbeans.modules.cpplite.debugger.CPPLiteDebugger.startDebugging(CPPLiteDebugger.java:845)
at org.netbeans.modules.cpplite.debugger.api.Debugger.startInDebugger(Debugger.java:43)
at org.netbeans.modules.cpplite.project.ActionProviderImpl.lambda$invokeAction$4(ActionProviderImpl.java:88)
at org.netbeans.api.extexecution.base.BaseExecutionService$2.call(BaseExecutionService.java:236)
at org.netbeans.api.extexecution.base.BaseExecutionService$2.call(BaseExecutionService.java:212)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
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)
@matthiasblaesing matthiasblaesing added this to the NB29 milestone Dec 8, 2025
@matthiasblaesing matthiasblaesing added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) debugger labels Dec 8, 2025
@matthiasblaesing
Copy link
Contributor Author

@scalyon please test the nightly build available from the checks page (or directly: https://github.com/apache/netbeans/suites/51723620523/artifacts/4802105448).

@lahodaj could you please have a look? I think this is caused by the addition of the inline value display for java debugging. I think the fix is trivial.

Copy link
Contributor

@lahodaj lahodaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) debugger Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants