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 149372 - Update Tool can't be installed from Netbeans
Summary: Update Tool can't be installed from Netbeans
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 14:13 UTC by Jaroslav Pospisil
Modified: 2008-10-29 14:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2008-10-07 14:13:40 UTC
Start IDE with new userdir and with no Update tool installed on Glassfish v3.
Go to Services tab in NB,select Servers and right click on GlassFish v3. Select View Update Center to open Update center
and since it's first time and Update Tool isn't installed yet,it attempts to install it.

*******************************************************************************************
The software needed for this command (updatetool.bat) is not installed.

If you choose to install Update Tool, your system will be automatically
configured to periodically check for software updates. If you would like
to configure the tool to not check for updates, you can override the
default behavior via the tool's Preferences facility.

When this tool interacts with package repositories, some system information
such as your system's IP address and operating system type and version
is sent to the repository server. For more information please see:

http://wiki.updatecenter.java.net/Wiki.jsp?page=UsageMetricsUC2
The syntax of the command is incorrect.

Once installation is complete you may re-run this command.

Would you like to install Update Tool now (y/n): 
************************************************************************************************

At this point,however,whole installation can't continue,since I can's press y and Enter in log window.
If I run Update Tool from command console,everything works and second time I click on it, Update center opens correctly,
however it's only workaround,not fix for the issue.I sould be able either to press y and Enter in the Log window or
there should be message displayed, that I have to install Update toll from Command console.
Comment 1 _ pcw 2008-10-07 16:25:35 UTC
What operating system, JDK, etc., is this?  When installed within NetBeans, you don't need to hit "Y", it's already been
hit for you.

What I need to know --

When this happens, does it happen ALL the time on a given system.  Does it happen across builds?  Can you get this
behavior on other systems?  Is there a proxy server involved?

If you subsequently ran update center from the command line and it worked correctly, I suppose that means the network is
generally ok.
Comment 2 _ pcw 2008-10-07 16:31:57 UTC
From J2EE meeting - occurred on both Linux Ubuntu and Windows Vista.  No proxy server.
Comment 3 Jaroslav Pospisil 2008-10-08 15:38:27 UTC
Successfully reproduced both on Ubuntu and Win Vista with today's latest builds (JDK1.6.0_10). No proxy. The Update tool
asks if it can install Update center software and then continues,until it reach y/n line,then it stops.
Pcw, what's your platform please? Do you have Mac? We just had another issue in WSIT, which was working perfectly on
Mac,but anywhere else it was 100% reproducible and as I just checked on one of our Macs,this works there. I don't think
this is random,since we can easily reproduce it on two different machines. 

P.S. If I invoke Update tool from IDE,then wait for couple of minutes and do it again, I get always the same - question
if it could be installed and then log until y/n line. If I invoke the same update tool from command line,I get to the
same point,but now I can press y and Enter and update center is installed normally. 
Base of this issue is, that y and Enter isn't hit for me,like you describe.
Comment 4 Jaroslav Pospisil 2008-10-08 16:00:23 UTC
Correction - Mac I've been reproducing the Issue on,was behaving like it really installed the Update Center and if I
clicked on the same menu item in short time again,it displayed message,that Update center is already running.However
when it finished and the Update center was invoked again,it offered installation once more,like it haven't been already
installed.
Comment 5 _ pcw 2008-10-08 16:36:32 UTC
Thanks.  I forgot to add late yesterday that I found and fixed the cause of this.  Patch pending.
Comment 6 _ pcw 2008-10-08 21:19:37 UTC
Fixed.

http://hg.netbeans.org/main/rev/0facd42b31bc

Wait for integration notice for main-golden before verifying please.
Comment 7 Quality Engineering 2008-10-09 06:00:06 UTC
Integrated into 'main-golden', will be available in build *200810090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0facd42b31bc
User: pcw@netbeans.org
Log: #149372 update tool not being launched properly.
Comment 8 Jaroslav Pospisil 2008-10-29 14:32:57 UTC
v.