Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Home made update site: NullPointerException when selecting feature
Home made update site: NullPointerException when selecting feature [message #319468] Wed, 22 August 2007 07:40 Go to next message
Eclipse UserFriend
Dear All,

I created an update site for my company containing a single category with
4 features. When I try to install features from this site using the update
manager I get the following NPE on feature select:

java.lang.NullPointerException
at
org.eclipse.update.internal.ui.wizards.ReviewPage$TreeConten tProvider.getParent(ReviewPage.java:181)
at
org.eclipse.update.internal.ui.wizards.ReviewPage.getSite(Re viewPage.java:1370)
at
org.eclipse.update.internal.ui.wizards.ReviewPage.access$29( ReviewPage.java:1367)
at
org.eclipse.update.internal.ui.wizards.ReviewPage$13.run(Rev iewPage.java:816)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)

I do not get this if I select the category instead.

Site created using Eclipse SDK Version: 3.2.2, Build id: M20070212-1330
Site accessed using Eclipse SDK Version: 3.2.2, Build id: M20070212-1330

What have I done wrong?

Thanks,

Miles
Re: Home made update site: NullPointerException when selecting feature [message #319480 is a reply to message #319468] Wed, 22 August 2007 10:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zx.us.ibm.com

Does your category have a name? Without looking deep into the problem,
usually you're missing a name or label on a required attribute.

Cheers,

~ Chris
Re: Home made update site: NullPointerException when selecting feature [message #319487 is a reply to message #319480] Wed, 22 August 2007 14:44 Go to previous message
Eclipse UserFriend
Chris,

Here is my site.xml. It seems fine to me.

Thanks,

Miles

<?xml version="1.0" encoding="UTF-8"?>
<site>
<description
url=" http://afsweb.ms.com/ms/dist/eclipseide/PROJ/update/3.2/comm on/msde/">
This Update Site contains some Morgan Stanley proprietary Features.
</description>
<feature url="features/com.msdw.appmw.jxbui_1.4.0.jar"
id="com.msdw.appmw.jxbui" version="1.4.0">
<category name="MSDE Homegrown Features"/>
</feature>
<feature url="features/msjava.ide.eclipse.mqaccess_1.0.0.jar"
id="msjava.ide.eclipse.mqaccess" version="1.0.0">
<category name="MSDE Homegrown Features"/>

</feature>
<feature url="features/msjava.ide.eclipse.reqrespclient_2.1.4.jar"
id="msjava.ide.eclipse.reqrespclient" version="2.1.4">
<category name="MSDE Homegrown Features"/>
</feature>
<feature url="features/msjava.ide.eclipse.xmltk_2.0.1.jar"
id="msjava.ide.eclipse.xmltk" version="2.0.1">
<category name="MSDE Homegrown Features"/>
</feature>
<feature url="features/msjava.ide.eclipse.msde_3.2.10.jar"
id="msjava.ide.eclipse.msde" version="3.2.10">
<category name="MSDE Homegrown Features"/>

</feature>
<category-def name="MSDE Homegrown Features" label="MSDE Homegrown
Features">
<description>
A collection of Proprietary Features provided by MSDE.
</description>
</category-def>
</site>
Previous Topic:Targeting multiple platform versions from the same plugin codebase
Next Topic:Any efficient way to display a huge amount of items?
Goto Forum:
  


Current Time: Sat Nov 08 04:09:01 EST 2025

Powered by FUDForum. Page generated in 0.03733 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top