quality@glassfish.java.net

Re: Mail regarding Error

From: Tom Mueller <Tom.Mueller_at_Sun.COM>
Date: Wed, 01 Apr 2009 11:26:39 -0500

Rahul,
Thank you for the detailed description of the steps.

In step 3, how are you uninstalling GlassFish? Using the uninstaller?
Just removing the directory using Windows Explorer?

I expect that what is happening here is that the Update Center
notification tool is still running from the GlassFish directory at the
time of the uninstall. You check this by using the Task Manager to see
if you have a python and/or updatetool process running before doing the
uninstall. The uninstaller should make sure that this doesn't happen (if
you are using the uninstaller). If just removing the directory, then the
notifier would need to be stopped manually, or run
updatetool\bin\updatetoolconfig -- unregister before removing the
directory.

The installer should also probably check to make sure the target
directory is empty before doing the install.

I'll add these notes to the bug.
Tom


Rahul Satasia wrote:
> Hi..! Tom,
> The Reason behind Update center Error is: Re-installation of Glassfish.
>
> *How To Reproduce?*
> step-1). Install Glassfish
> step-2). Install Available Update
> step-3). Uninstall Glassfish (But, root directory have still some
> files in there.)
> step-4) Install Glassfish
> Step-5) Open Update Center
> Step-6) Error is waiting for you....
>
> The Reason behind this is Un-Installation of Glassfish and it's root
> directory which was not completely deleted.
>
> I have filed a bug for that:
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=7438
>
>
> *Steps for Re-Installation of Glassfish to avoid Update Center Error,
> which works well for me are:*
> step-1). Install Glassfish
> step-2). Install Available Update
> step-3). Uninstall Glassfish (But, root directory have still some
> files in there.)
> step-4). Restart PC (without Restart you may not able to delete
> the root directory. or stop the process of glassfish which are
> currently in process)
> step-5). Delete root directory of Glassfish
> step-6) Install Glassfish
> Step-7) Open Update Center.......no more Error
>
> Pls. Correct me If I'm wrong. Ihave tested this under
> Windows VISTA and Windows 7 Beta.
>
>
> *Thank You,*
>
> *Rahul Satasia.*
>
>
>
> ------------------------------------------------------------------------
> *From:* Tom Mueller <Tom.Mueller_at_Sun.COM>
> *To:* abhi85ster_at_gmail.com
> *Cc:* quality_at_glassfish.dev.java.net
> *Sent:* Tuesday, 31 March, 2009 3:15:06 PM
> *Subject:* Re: Mail regarding Error
>
> This error message indicates that the packaging system thinks that
> there are two versions of the same package installed when that should
> never be the case. Previous messages mentioned the possibility that
> what might be happening here is that the previous installation was not
> completely removed, and then GlassFish was installed in the same
> directory. Could that be happening with your install?
>
> It would be helpful to know what steps lead to this problem.
> Thanks.
> Tom
>
>
> abhishek jain wrote:
>> Hi Tom,
>>
>> I encountered the same problem.
>> I am running glassfish on windows vista.
>>
>> Here is the complete stack trace from the error dialogue box:
>>
>> *Application ID: [Update Tool 2.0.0 (Build 15.1269)]
>> Timestamp : [ Pacific Daylight Time(Pacific Daylight Time)]
>> wx Version : [2.8.8.0]
>> wx Platform : [__WXMSW__]
>> Python Version: [UNKNOWN]
>> Platform : [UNKNOWN]
>>
>> Traceback (innermost last):
>> File
>> "C:\glassfishv3-prelude\updatetool\vendor-packages\updatetool\mainframe.py",
>> line 510, in update_image_view
>> self._list_generic(imagedir, view)
>> File
>> "C:\glassfishv3-prelude\updatetool\vendor-packages\updatetool\mainframe.py",
>> line 1502, in _list_generic
>> self._list_updates(imageroot)
>> File
>> "C:\glassfishv3-prelude\updatetool\vendor-packages\updatetool\mainframe.py",
>> line 1657, in _list_updates
>> pkg_plans = ips.get_list_of_updates(img)
>> File
>> "C:\glassfishv3-prelude\updatetool\vendor-packages\updatetool\ips.py",
>> line 433, in get_list_of_updates
>> verbose = False, noexecute = False)
>> File
>> "C:\glassfishv3-prelude\pkg\vendor-packages\pkg\client\image.py",
>> line 1701, in make_install_plan
>> ip.propose_fmri(pmatch[0])
>> File
>> "C:\glassfishv3-prelude\pkg\vendor-packages\pkg\client\imageplan.py",
>> line 114, in propose_fmri
>> if self.image.has_version_installed(fmri):
>> File
>> "C:\glassfishv3-prelude\pkg\vendor-packages\pkg\client\image.py",
>> line 839, in has_version_installed
>> v = self._get_version_installed(fmri)
>> File
>> "C:\glassfishv3-prelude\pkg\vendor-packages\pkg\client\image.py",
>> line 781, in _get_version_installed
>> assert len(pkgs_inst) <= 1
>> AssertionError
>>
>> *Is there a way to fix this problem.
>>
>> Regards,
>> Abhishek Jain
>>
>>
>> On Tue, Mar 31, 2009 at 7:58 AM, Tom Mueller <Tom.Mueller_at_sun.com
>> <mailto:Tom.Mueller_at_sun.com>> wrote:
>>
>> Hi Akshay,
>> Could you please cut/paste the complete stack trace from that
>> error dialog into an email response. Since there is a scrollbar
>> there that is scrolled to the top, I'm unable to see the complete
>> message.
>>
>> Just to confirm: you are running on Windows Vista, right?
>>
>> Thanks.
>> Tom
>>
>> Akshay Asare wrote:
>>> hi,
>>>
>>> When i click on available update tab on the Update tool screen i
>>> get this error massage, can anyone help me regarding how to fix
>>> the problem.
>>> I have attached the screen shot of the error massage.
>>>
>>> --
>>> With Regards
>>>
>>> Akshay Asare
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ------------------------------------------------------------------------
>>> --------------------------------------------------------------------- To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net <mailto:quality-unsubscribe_at_glassfish.dev.java.net> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net <mailto:quality-help_at_glassfish.dev.java.net>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> quality-unsubscribe_at_glassfish.dev.java.net
>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
>> For additional commands, e-mail:
>> quality-help_at_glassfish.dev.java.net
>> <mailto:quality-help_at_glassfish.dev.java.net>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> <mailto:quality-unsubscribe_at_glassfish.dev.java..net>
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
> <mailto:quality-help_at_glassfish.dev.java.net>
>
> ------------------------------------------------------------------------
> Check out the all-new Messenger 9.0! Click here.
> <http://in.rd.yahoo.com/tagline_messenger_7/*http://in.messenger.yahoo.com/>