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 192239 - Update tool does not work
Summary: Update tool does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-21 13:03 UTC by eliassal
Modified: 2011-11-16 16:40 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 eliassal 2010-11-21 13:03:40 UTC
Hi, I donloaded Java EE and SE , glassfish 3 and Netbeans. glassfish is up and running, updates working correctly.
I started following the java EE 6 tutorial, Your first cup, where it is indicated I need to get the most recent version of the tutorial 
Open services Tab > righ click Glassfish > select View update center

As soon as I do this I get the following 

*******************************************************
The software needed for this command (updatetool) 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

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

Would you like to install Update Tool now (y/n): 
Proxy: Using system proxy settings.
Install image: /home/salam/glassfishv3
Installing pkg packages.
Unrecognized exception: package installed more than once: pkg:/pkg-java@1.122-38
java.lang.RuntimeException: package installed more than once: pkg:/pkg-java@1.122-38
        at com.sun.pkg.client.Image.getVersionInstalled(Image.java:1753)
        at com.sun.pkg.client.Image.access$700(Image.java:85)
        at com.sun.pkg.client.Image$ImagePlan.evaluateFmri(Image.java:461)
        at com.sun.pkg.client.Image$ImagePlan.evaluate(Image.java:530)
        at com.sun.pkg.client.Image.makeAndEvaluateImagePlan(Image.java:1548)
        at com.sun.pkg.client.Image.makeInstallPlan(Image.java:1526)
        at com.sun.pkg.client.Image.installPackages(Image.java:1592)
        at com.sun.pkg.bootstrap.Bootstrap._main(Bootstrap.java:219)
        at com.sun.pkg.bootstrap.Bootstrap._main(Bootstrap.java:154)
        at com.sun.pkg.bootstrap.Bootstrap.main(Bootstrap.java:104)
*******************************************************************

So, first question, why do I have "Proxy: Using system proxy settings." I have configured everything with no proxy (as I siad the update tool in the Glassfish console works fine in the browser).

Thanks for your help.

N.B : I searched to download the tutorial without update center it seems impossible (no links exist), why is this

Thanks again
Comment 1 eliassal 2010-11-21 13:38:14 UTC
I forgo to say as well that restarted netbeans, rebooted the machine twice
Comment 2 Kenneth Ganfield 2010-11-23 17:11:05 UTC
I am not sure where the problem is or if this is a NetBeans IDE issue.

When I use the View Update Center, I see the message to install the tool. I click yes and the pkg installs and the Update Tool opens and displays the available updates. So launching the Update Tool works for me using GlassFish 3.1.

My understanding is that the proxy settings refer to the proxy settings of the machine to connect to the internet to get a list of the updates. 

I believe the GlassFish Update Tool is independent of NetBeans.

I did not see a version of the tutorial on the GlassFish Update Center.

It seems that Your First Cup is available here:
http://docs.sun.com/app/docs/doc/821-1770
Comment 3 eliassal 2010-12-02 13:27:55 UTC
Thanks for your response.
I have copy of the tutorial doc itself but not the tutorial files

Exactly, I am sking why when I try "view update center " it is crashing with this message.

Mayebe I was not clear, I dont use any proxy,it is a direct acess to intrnet
Comment 4 Vince Kraemer 2011-11-10 20:15:14 UTC
i cannot reproduce this with 7.0.1 on mac...

Please reopen with more info if you can reproduce this issue in a NB 7.0.1/GF 3.1.1 environment or a an NB 7.1 / GF 3.1.1 environment.