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 113188 - Update IDE with some modules doesn't work
Summary: Update IDE with some modules doesn't work
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
: 112406 113415 (view as bug list)
Depends on:
Blocks: 113796
  Show dependency tree
 
Reported: 2007-08-20 10:56 UTC by Lukas Hasik
Modified: 2007-09-06 10:08 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
first start (29.63 KB, text/plain)
2007-09-04 21:26 UTC, Lukas Hasik
Details
updater restart (26.00 KB, text/plain)
2007-09-04 21:29 UTC, Lukas Hasik
Details
manual restart of IDE -> after this the web functionality is finally in the IDE. Does anybody know why it creates new log for every start? Bug or feature? (29.33 KB, text/plain)
2007-09-04 21:30 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2007-08-20 10:56:51 UTC
Product Version: NetBeans IDE Dev (Build 200708200000) Java: 1.6.0_03-ea; Java HotSpot(TM) Client VM 1.6.0_03-ea-b02
System: Linux version 2.6.20-15-generic running on i386; UTF-8; en_US (nb) Userdir: /home/tester/nb60-0820

Scenario:
1, download and install "Java ME" NB IDE from http://bits.netbeans.org/netbeans/6.0/nightly/
2, start IDE
3, Tools > Plugins
4, install some of "Web and Java EE" modules
5, when it asks for Restart , choose Restart Now
6, -> IDE crashs. I'm back in command line = no restart
7, start it again -> the Java EE modules are still not there
8, close IDE -> wow, it runs Updater, why?
Comment 1 rmatous 2007-08-21 14:00:19 UTC
Please, mention the name of plugin, you intended to install
Comment 2 Lukas Hasik 2007-08-21 14:45:35 UTC
I installed following plugins "Web Services", "Web Applications" 
Comment 3 Lukas Hasik 2007-08-21 14:47:29 UTC
I'm able to reproduce it on windows + ubuntu
Comment 4 rmatous 2007-08-21 15:53:23 UTC
OK - reproducible for me
Comment 5 rmatous 2007-08-21 17:28:56 UTC
Similarly like #112885 issue - is caused by new behavior #111701 - Autoupdate should overwrite the
existing location while updating modules.  

Comment 6 Lukas Hasik 2007-08-22 09:11:16 UTC
yes, it seems similar but in my case there are no warnings in my case. I'll check if the fix of issue 112885 will fix
also this one.
Comment 7 rmatous 2007-08-22 11:53:58 UTC
*** Issue 113415 has been marked as a duplicate of this issue. ***
Comment 8 rmatous 2007-08-22 14:22:19 UTC
nbexec needs to know about newly created cluster
Comment 9 Lukas Hasik 2007-08-23 08:39:35 UTC
*** Issue 112406 has been marked as a duplicate of this issue. ***
Comment 10 rmatous 2007-08-28 16:24:47 UTC
Somehow fixed for unix:
/cvs/core/launcher/unix/nbexec,v  <--  nbexec
new revision: 1.49; previous revision: 1.48

/cvs/autoupdate/services/nbproject/project.xml,v  <--  project.xml
new revision: 1.8; previous revision: 1.7

/cvs/autoupdate/services/src/org/netbeans/modules/autoupdate/services/InstallManager.java,v  <--  InstallManager.java
new revision: 1.18; previous revision: 1.17

/cvs/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/NewClustersRebootCallback.java,v  <-- 
initial revision: 1.1

/cvs/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/NewClustersRebootTest.java,v  <-- 
initial revision: 1.1
Comment 11 rmatous 2007-08-28 16:26:11 UTC
Radim, please could you follow it for windows?
Comment 12 _ rkubacki 2007-09-04 08:45:15 UTC
Checking in core/launcher/windows/nbexec.cpp;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.cpp,v  <--  nbexec.cpp
new revision: 1.33; previous revision: 1.32
done
Checking in core/launcher/windows/nbexec.exe;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.exe,v  <--  nbexec.exe
new revision: 1.32; previous revision: 1.31
done
Checking in autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/NewClustersRebootTest.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/NewClustersRebootTest.java,v
 <--  NewClustersRebootTest.java
new revision: 1.2; previous revision: 1.1
done
Checking in autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/NewClustersRebootCallback.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/NewClustersRebootCallback.java,v
 <--  NewClustersRebootCallback.java
new revision: 1.3; previous revision: 1.2
done
Comment 13 Lukas Hasik 2007-09-04 09:41:04 UTC
verified on ubuntu 7.04

needs to be verified on windows
Comment 14 _ rkubacki 2007-09-04 12:06:27 UTC
Lukas, can you verify it also on Windows (trunk build) before we merge it to beta1 branch? 
Comment 15 Lukas Hasik 2007-09-04 19:08:37 UTC
it doesn't work as expected on windows. The updater runs but the new modules (Java EE) doesn't appear.
Now it behaves:
1, install mobility distribution, run IDE
2, update with Web Application, Web Services and Sun JAva Application Server plugins 
3, when it asks for restart, choose restart now
4, updater runs -> but the modules are not visible in the IDE
5, close IDE
6, restart -> new modules are there

I'll retest once more.
Comment 16 Lukas Hasik 2007-09-04 21:24:29 UTC
ok, still doesn't work with the 3021 build on windows. It seems that the new cluster (enterprise4) isn't add to
installation. After another restart it appears in etc/netbeans.clusters twice.

I'm ataching messages.log where you can see what clusters are in IDE. I started IDE, then the updater restarted it, then
I restarted it once more.

Comment 17 Lukas Hasik 2007-09-04 21:26:57 UTC
Created attachment 48093 [details]
first start
Comment 18 Lukas Hasik 2007-09-04 21:29:17 UTC
Created attachment 48094 [details]
updater restart
Comment 19 Lukas Hasik 2007-09-04 21:30:57 UTC
Created attachment 48095 [details]
manual restart of IDE -> after this the web functionality is finally in the IDE. Does anybody know why it creates new log for every start? Bug or feature?
Comment 20 _ rkubacki 2007-09-05 13:17:27 UTC
Yes, I see now. Updater took new clusters definition and then it was deleted and main was started again with old list.
Now the deleting is moved to correct place.

Checking in nbexec.cpp;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.cpp,v  <--  nbexec.cpp
new revision: 1.34; previous revision: 1.33
done
Checking in nbexec.exe;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.exe,v  <--  nbexec.exe
new revision: 1.33; previous revision: 1.32
done
Comment 21 _ rkubacki 2007-09-05 16:50:10 UTC
/shared/data/ccvs/repository/core/launcher/unix/nbexec,v  <--  nbexec
new revision: 1.49.2.1; previous revision: 1.49
Comment 22 _ rkubacki 2007-09-05 16:54:52 UTC
oops, the last notice belongs to other bug (#114405)

anyway this one is now fixed in trunk and can be backported if it is verified
Comment 23 Lukas Hasik 2007-09-06 08:46:54 UTC
verified on windows with netbeans-hudson-trunk-3065-mobility.zip build that was updated with the J2EE modules. Updater
updates the IDE correctly, all new modules(clusters) appears in IDE. Subsequential restarts works too. The
netbeans.clusters seems ok, too.
Comment 24 Lukas Hasik 2007-09-06 08:51:32 UTC
I clicked the Submit button too quickly. I checked once more the netbeans.clusters file on Win and Linux. The
enterprise4 cluster (that I'm updating the IDE with) is listed twice there. It probably doesn't harm anything however I
wanted to mention it to you. 
Comment 25 _ rkubacki 2007-09-06 09:09:56 UTC
commited to beta1

Checking in core/launcher/windows/nbexec.cpp;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.cpp,v  <--  nbexec.cpp
new revision: 1.32.8.1; previous revision: 1.32
done
Checking in core/launcher/windows/nbexec.exe;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.exe,v  <--  nbexec.exe
new revision: 1.31.8.1; previous revision: 1.31
done
Comment 26 Lukas Hasik 2007-09-06 10:08:22 UTC
filed issue 114857 for the minor problem