This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
@DebuggerServiceRegistration( path = "CallStackView", types = {TreeModel.class, NodeModel.class} ) public class MyCallStackModel implements TreeModel, NodeModel { .... } public class MyDebugger extends ActionsProviderSupport { public MyDebugger(ContextProvider context) { MyCallStackModel callStack = context.lookupFirst("CallStackView", TreeModel.class); // callStack is null... } } However, when registering MyCallStackModel the old fashioned way, i.e. via folders: META-INF.debugger.MySession.CallStackView (folder) - org.netbeans.spi.viewmodel.TreeModel (file) - org.mycompany.mydebugger.MyCallStackModel (file content) ... everything works just fine. So it seems that when using the annotation for registering a debugger service, it fails to register it within the lookup. The problem description also applies to other services such as BreakpointsView, LocalsView etc.
Belongs more to debugger than general lookup, I think.
The path should be "MySession/CallStackView" @DebuggerServiceRegistration( path = "MySession/CallStackView", types = { ... })