Ah, great. Well spotted too, thanks Andrea.
For info, I had to remove the style manually from the layer's info.xml
file, because after removing it from the layer using the config page and
clicking submit, it would just reappear.
All is working now. Thanks again
Miles
> -----Original Message-----
> From: Andrea Aime [mailto:aaime@anonymised.com]
> Sent: Wednesday, 27 February 2008 9:13 PM
> To: Miles Jordan
> Cc: geoserver-users@lists.sourceforge.net
> Subject: Re: [Geoserver-users] Malformed XML in WMS
> getCapabilities response [Sec=Unclassified]
>
>
> Andrea Aime ha scritto:
> >> Followed by a NullPointerException -
> >> at
> >>
> org.vfny.geoserver.wms.responses.helpers.WMSCapsTransformer$C
apabilitiesTranslator.handleFeatureType > (WMSCapsTransformer.java:814)
> >
> > This one is the real cause of failure, and it relates to alternate
> > styles usage in the feature type configuration page (you know, the
> > list of styles where you can choose a second, third and so
> on style
> > for a layer, to be published in the capabilities as an
> alterantive).
> > I'm not sure how it is triggered thought. Maybe you had set an
> > alternate style in that layer and then that style got deleted?
>
> Just confirmed this is a way to trigger the NPE. Associate a
> style as a secondary one on the feature type configuration
> form, then delete that style, and you'll get exactly that
> stack trace. Going to add some checks preventing deletion of
> used styles: http://jira.codehaus.org/browse/GEOS-1770
>
> Cheers
> Andrea
>
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________