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.

Bug 153354

Summary: Reload in target platform fails reloading a TopComponent
Product: apisupport Reporter: ecerulm <ecerulm>
Component: HarnessAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: pchytil
Priority: P4    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: messages.log target platform
netbeans 6.5 and java 1.5.0_16
netbeans 6.5 and java 1.6.0_07

Description ecerulm 2008-11-18 06:51:41 UTC
Steps to reproduce

1) New Project -> Netbeans Modules -> Netbeans Platform Application (DemoApplication)
2) DemoApplication -> Modules -> Add new (DemoModule)
3) DemoModule -> New -> Window Component (Open when application starts)
4) Run the application
5) Open the window in target
5) Add jLabel to the Window Component
6) Install/reload in target platform

After install/reload the window is closed in the target plaform and in cannot be opened again 

In the messages.log of the target platform there are NoClassDefFoundException s. 

When I try the same procedure in windows, everything works fine. 
The
Comment 1 ecerulm 2008-11-18 06:53:14 UTC
Created attachment 73847 [details]
messages.log target platform
Comment 2 Petr Chytil 2008-11-18 13:11:19 UTC
reassigning to apisupport for evaluation
Comment 3 Jesse Glick 2008-11-18 18:38:19 UTC
"Install/Reload in Target Platform" works for some things but not everything. Probably this is a bug in the window
system impl. Whether it is feasible to fix it is another question.
Comment 4 ecerulm 2008-11-18 19:32:07 UTC
I want to stress the fact the same "Install/Reload in Target Platform"   works in Windows XP. I'm only experiencing this issue in Mac OS X Leopard. 

Comment 5 Petr Chytil 2008-11-19 09:11:17 UTC
I am able to reproduce it in latest build:

Product Version: NetBeans IDE Dev (Build 200811180201)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)
Userdir: /Users/petr/.netbeans/dev
Comment 6 ecerulm 2008-11-19 10:52:46 UTC
Issue 153282 could be related or have a common source problem.
Comment 7 rmichalsky 2008-12-04 09:55:38 UTC
*** Issue 153282 has been marked as a duplicate of this issue. ***
Comment 8 ecerulm 2009-01-27 20:05:08 UTC
I tried with Netbeans 6.5 and although the result is the same "the window is closed in the target plaform and in cannot be opened again", there is no 
NoClassDefFoundException in the messages.log. See messages_65_1.5.0.log

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb)
Userdir: /Users/ecerulm/.netbeans/6.5



Comment 9 ecerulm 2009-01-27 20:06:19 UTC
Created attachment 76275 [details]
netbeans 6.5 and java 1.5.0_16
Comment 10 ecerulm 2009-01-27 20:16:21 UTC
Trying the same thing using Netbeans 6.5 and java 1.6.0_07 yields different messages.log (the window is not closed down but it's still not updated). See 
attached logs at messages_6.5_1.6.0_07.log 

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57
System: Mac OS X version 10.5.6 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/ecerulm/.netbeans/6.5
Comment 11 ecerulm 2009-01-27 20:26:27 UTC
Created attachment 76276 [details]
netbeans 6.5 and java 1.6.0_07
Comment 12 Jesse Glick 2010-03-11 17:21:48 UTC
You are advised to not use Reload in Target Platform if you encounter any problems with it. Some things work, some don't.
Comment 13 Jaroslav Tulach 2012-06-27 15:23:14 UTC
I've just tried to reload modified top component in 7.2. I had to close it and open new one, but yes, I can see it. Marking worksforme.