[platform-dev] Topcomponent.open() can't not access.

  • From: "binle" < >
  • To:
  • Subject: [platform-dev] Topcomponent.open() can't not access.
  • Date: Mon, 30 Jul 2012 02:09:10 -0400


mienamoo wrote:
> Hi,
> 
> What is the error or exception that you see? A null pointer exception in 
> TopComponent.open() maybe? In that case, debug through the constructor of 
> your MyTopComponent class and make sure that everything in there completes 
> without any exceptions, including the initComponent() method's code.
> 
> 
> Best wishes,
> Hermien PELLISSIER
> 
> 
> On Mon, Jul 30, 2012 at 6:43 AM, binle <address-removed (address-removed)> 
> wrote:
> 
> > Help me the code below:
> > //=================
> > 
> > MyTopComponent top..
> > ..................
> > ........
> > 
> > top.open();
> > top.setName("Topcomponent");
> > top.requestActive();
> > panelControlShowInformation.loadAllData();
> > ......................
> > 
> > //================
> > I checked and detected, my app had hardness at line top.open();
> > I don't understand why that is.
> > I use ExplorerManager.Provider in MyTopcomponent, and I think that 
> > Topcomponent and ExplorerManager had conflict.
> > 
> > Your help is appreciated. Thanks!
> > 
> > 
> > 
> > 
> > 
> 


I checked and detected, my app had hardness at line top.open();
I had run and wait about 30' but app not see any exception.
when netbean ide run, output window show message until message below:"
//=======
WARNING [org.openide.filesystems.Ordering]: Not all children in Menu/Window/ 
marked with the position attribute: 
[vn-com-hkt-cm-basic-gui-spi-EnterpriseManagerTopComponent.shadow], but some 
are: [org-netbeans-modules-favorites-View.shadow, 
org-netbeans-core-windows-actions-GlobalPropertiesAction.shadow, Output, 
SwitchToRecentDocumentAction.shadow, ProgressListAction.shadow, 
Separator3.instance, CloseWindowAction.shadow, MaximizeWindowAction.shadow, 
org-netbeans-core-windows-actions-UndockAction.shadow, Separator4.instance, 
CloneDocumentAction.shadow, CloseAllDocumentsAction.shadow, 
CloseAllButThisAction.shadow, DocumentsAction.shadow, Separator5.instance, 
org-netbeans-core-windows-actions-ResetWindowsAction.shadow] 
"
/======

then output window not show any more message.






[platform-dev] Topcomponent.open() can't not access.

binle 07/30/2012

[platform-dev] Re: Topcomponent.open() can't not access.

Hermien Pellissier 07/30/2012

[platform-dev] Topcomponent.open() can't not access.

binle 07/30/2012

[platform-dev] Re: Topcomponent.open() can't not access.

Hermien Pellissier 07/31/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close