It's all about the answers!

Ask a question

RTC NetBeans Client and APT modul - huge problem


Pawel Dolecinski (26163) | asked May 10 '10, 10:25 a.m.
Hello,
I'm project manager of NetBeans IDE Plugin for RTC and now we want implement APT functionality in NetBeans IDE.
This is very big feature in RTC - planning possibility and for us this is one of main use cases to implement it.
And we have a huge problem with this module. I know that API for APT plugin isn't public but if in Eclipse it works so why the same code couldn't work in plain java application?
So we started from IterationPlanClient:

this.planClient = (IterationPlanClient) PlanningClientPlugin.getIterationPlanClient(repo)

And this code throws an exception:

SEVERE : !ExtensionRegistryReader.ErrorExtensionAdd!
java.lang.NullPointerException
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:97)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:1)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:205)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:624)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1129)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:318)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<init>(StaticConfigurationDataRegistry.java:91)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<clinit>(StaticConfigurationDataRegistry.java:44)
at com.ibm.team.apt.internal.common.PlanningCommonImpl.<init>(PlanningCommonImpl.java:98)
at com.ibm.team.apt.internal.client.IterationPlanClient.<init>(IterationPlanClient.java:320)
at com.ibm.team.apt.internal.client.IterationPlanClientLibraryFactory.createClientLibrary(IterationPlanClientLibraryFactory.java:17)
at com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)
at com.ibm.team.apt.internal.client.PlanningClientPlugin.getIterationPlanClient(PlanningClientPlugin.java:140)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerImpl.<init>(RtcPlansManagerImpl.java:41)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerFactoryImpl.getManager(RtcPlansManagerFactoryImpl.java:19)
at pl.edu.amu.wmi.kino.rtc.client.plans.RtcPlansModuleFactory.createModuleNodes(RtcPlansModuleFactory.java:24)
at pl.edu.amu.wmi.kino.rtc.client.connection.nodes.RtcActiveProjectAreaNodeChildren.createNodes(RtcActiveProjectAreaNodeChildren.java:58)
at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1611)
at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:147)
at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:917)
at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:247)
at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:86)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:177)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:222)
at org.openide.nodes.Children.getNodes(Children.java:442)
at org.openide.nodes.Children.findChild(Children.java:387)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:215)
at org.openide.nodes.EntrySupport$Default.getNodesCount(EntrySupport.java:226)
at org.openide.nodes.Children.getNodesCount(Children.java:493)
at org.openide.explorer.view.TreeView$6.run(TreeView.java:940)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
SEVERE : !ExtensionRegistryReader.ErrorExtensionAdd!
java.lang.NullPointerException
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:97)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:1)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:205)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:624)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1129)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:318)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<init>(StaticConfigurationDataRegistry.java:91)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<clinit>(StaticConfigurationDataRegistry.java:44)
at com.ibm.team.apt.internal.common.PlanningCommonImpl.<init>(PlanningCommonImpl.java:98)
at com.ibm.team.apt.internal.client.IterationPlanClient.<init>(IterationPlanClient.java:320)
at com.ibm.team.apt.internal.client.IterationPlanClientLibraryFactory.createClientLibrary(IterationPlanClientLibraryFactory.java:17)
at com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)
at com.ibm.team.apt.internal.client.PlanningClientPlugin.getIterationPlanClient(PlanningClientPlugin.java:140)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerImpl.<init>(RtcPlansManagerImpl.java:41)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerFactoryImpl.getManager(RtcPlansManagerFactoryImpl.java:19)
at pl.edu.amu.wmi.kino.rtc.client.plans.RtcPlansModuleFactory.createModuleNodes(RtcPlansModuleFactory.java:24)
at pl.edu.amu.wmi.kino.rtc.client.connection.nodes.RtcActiveProjectAreaNodeChildren.createNodes(RtcActiveProjectAreaNodeChildren.java:58)
at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1611)
at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:147)
at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:917)
at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:247)
at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:86)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:177)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:222)
at org.openide.nodes.Children.getNodes(Children.java:442)
at org.openide.nodes.Children.findChild(Children.java:387)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:215)
at org.openide.nodes.EntrySupport$Default.getNodesCount(EntrySupport.java:226)
at org.openide.nodes.Children.getNodesCount(Children.java:493)
at org.openide.explorer.view.TreeView$6.run(TreeView.java:940)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
SEVERE : !ExtensionRegistryReader.ErrorExtensionAdd!
java.lang.NullPointerException
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:97)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:1)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:205)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:624)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1129)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:318)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<init>(StaticConfigurationDataRegistry.java:91)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<clinit>(StaticConfigurationDataRegistry.java:44)
at com.ibm.team.apt.internal.common.PlanningCommonImpl.<init>(PlanningCommonImpl.java:98)
at com.ibm.team.apt.internal.client.IterationPlanClient.<init>(IterationPlanClient.java:320)
at com.ibm.team.apt.internal.client.IterationPlanClientLibraryFactory.createClientLibrary(IterationPlanClientLibraryFactory.java:17)
at com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)
at com.ibm.team.apt.internal.client.PlanningClientPlugin.getIterationPlanClient(PlanningClientPlugin.java:140)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerImpl.<init>(RtcPlansManagerImpl.java:41)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerFactoryImpl.getManager(RtcPlansManagerFactoryImpl.java:19)
at pl.edu.amu.wmi.kino.rtc.client.plans.RtcPlansModuleFactory.createModuleNodes(RtcPlansModuleFactory.java:24)
at pl.edu.amu.wmi.kino.rtc.client.connection.nodes.RtcActiveProjectAreaNodeChildren.createNodes(RtcActiveProjectAreaNodeChildren.java:58)
at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1611)
at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:147)
at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:917)
at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:247)
at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:86)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:177)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:222)
at org.openide.nodes.Children.getNodes(Children.java:442)
at org.openide.nodes.Children.findChild(Children.java:387)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:215)
at org.openide.nodes.EntrySupport$Default.getNodesCount(EntrySupport.java:226)
at org.openide.nodes.Children.getNodesCount(Children.java:493)
at org.openide.explorer.view.TreeView$6.run(TreeView.java:940)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
SEVERE : !ExtensionRegistryReader.ErrorExtensionAdd!
java.lang.NullPointerException
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:97)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:1)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:205)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:624)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1129)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:318)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<init>(StaticConfigurationDataRegistry.java:91)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<clinit>(StaticConfigurationDataRegistry.java:44)
at com.ibm.team.apt.internal.common.PlanningCommonImpl.<init>(PlanningCommonImpl.java:98)
at com.ibm.team.apt.internal.client.IterationPlanClient.<init>(IterationPlanClient.java:320)
at com.ibm.team.apt.internal.client.IterationPlanClientLibraryFactory.createClientLibrary(IterationPlanClientLibraryFactory.java:17)
at com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)
at com.ibm.team.apt.internal.client.PlanningClientPlugin.getIterationPlanClient(PlanningClientPlugin.java:140)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerImpl.<init>(RtcPlansManagerImpl.java:41)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerFactoryImpl.getManager(RtcPlansManagerFactoryImpl.java:19)
at pl.edu.amu.wmi.kino.rtc.client.plans.RtcPlansModuleFactory.createModuleNodes(RtcPlansModuleFactory.java:24)
at pl.edu.amu.wmi.kino.rtc.client.connection.nodes.RtcActiveProjectAreaNodeChildren.createNodes(RtcActiveProjectAreaNodeChildren.java:58)
at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1611)
at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:147)
at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:917)
at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:247)
at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:86)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:177)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:222)
at org.openide.nodes.Children.getNodes(Children.java:442)
at org.openide.nodes.Children.findChild(Children.java:387)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:215)
at org.openide.nodes.EntrySupport$Default.getNodesCount(EntrySupport.java:226)
at org.openide.nodes.Children.getNodesCount(Children.java:493)
at org.openide.explorer.view.TreeView$6.run(TreeView.java:940)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
SEVERE : !ExtensionRegistryReader.ErrorExtensionAdd!
java.lang.NullPointerException
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:97)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.handleExtensionAdded(StaticConfigurationDataRegistry.java:1)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.basicHandleExtensionAdded(ExtensionRegistryReader.java:205)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.handleExtensionAddedToRegistry(ExtensionRegistryReader.java:624)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.addContributedExtensions(ExtensionRegistryReader.java:143)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.start(ExtensionRegistryReader.java:1129)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.earlyStart(ExtensionRegistryReader.java:318)
at com.ibm.team.repository.common.util.ExtensionRegistryReader.<init>(ExtensionRegistryReader.java:114)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<init>(StaticConfigurationDataRegistry.java:91)
at com.ibm.team.apt.internal.common.process.StaticConfigurationDataRegistry.<clinit>(StaticConfigurationDataRegistry.java:44)
at com.ibm.team.apt.internal.common.PlanningCommonImpl.<init>(PlanningCommonImpl.java:98)
at com.ibm.team.apt.internal.client.IterationPlanClient.<init>(IterationPlanClient.java:320)
at com.ibm.team.apt.internal.client.IterationPlanClientLibraryFactory.createClientLibrary(IterationPlanClientLibraryFactory.java:17)
at com.ibm.team.repository.client.internal.ClientLibraryFactoryRegistry.getClientLibrary(ClientLibraryFactoryRegistry.java:89)
at com.ibm.team.repository.client.internal.TeamRepository.getClientLibrary(TeamRepository.java:460)
at com.ibm.team.apt.internal.client.PlanningClientPlugin.getIterationPlanClient(PlanningClientPlugin.java:140)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerImpl.<init>(RtcPlansManagerImpl.java:41)
at pl.edu.amu.wmi.kino.rtc.client.impl.plans.RtcPlansManagerFactoryImpl.getManager(RtcPlansManagerFactoryImpl.java:19)
at pl.edu.amu.wmi.kino.rtc.client.plans.RtcPlansModuleFactory.createModuleNodes(RtcPlansModuleFactory.java:24)
at pl.edu.amu.wmi.kino.rtc.client.connection.nodes.RtcActiveProjectAreaNodeChildren.createNodes(RtcActiveProjectAreaNodeChildren.java:58)
at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1611)
at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:147)
at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:917)
at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:247)
at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:86)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:177)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:222)
at org.openide.nodes.Children.getNodes(Children.java:442)
at org.openide.nodes.Children.findChild(Children.java:387)
at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:215)
at org.openide.nodes.EntrySupport$Default.getNodesCount(EntrySupport.java:226)
at org.openide.nodes.Children.getNodesCount(Children.java:493)
at org.openide.explorer.view.TreeView$6.run(TreeView.java:940)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)



And my question is what we should do before getting IterationPlanClient?
Maybe some configuration? Or maybe we needs some config files or other stuff from Eclipse? How to use it in external plain java application?
Because of this exception we cannot retrieve plan types, view modes and also, what is the most important thing, we cannot retrieve planed items for plan.

Could I please for any help?

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.