[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] WMS import troubles
|
Hi there,
I've got some troubles with WMS in udig.
I made WMS facade wich acts like a WMS, nothing special.
It lives at http://localhost:1010/test
By the request
http://localhost:1010/test?service=WMS&request=getcapabilities made with
web browser I'm getting capabilities - so, everithing works.
But when I'm trying to import this to udig, I'm always getting an error:
java.io.IOException: Could not connect to WMS. Possible reason: null
at
net.refractions.udig.catalog.internal.wms.WMSServiceImpl.getWMS(WMSServiceImpl.java:124)
at
net.refractions.udig.catalog.internal.wms.WMSServiceImpl.getInfo(WMSServiceImpl.java:142)
at
net.refractions.udig.catalog.internal.wms.ui.WMSWizardPage.getResources(WMSWizardPage.java:290)
at
net.refractions.udig.catalog.internal.ui.ConnectionPage.getResources(ConnectionPage.java:72)
at
net.refractions.udig.catalog.internal.ui.ConnectionPage$1.run(ConnectionPage.java:127)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
at
net.refractions.udig.catalog.internal.ui.ConnectionPage.getNextPage(ConnectionPage.java:147)
at
net.refractions.udig.catalog.internal.ui.CatalogImportWizard.performFinish(CatalogImportWizard.java:54)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at
org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:159)
at
org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:167)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at
net.refractions.udig.internal.ui.UDIGApplication.run(UDIGApplication.java:28)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.NullPointerException
at
org.geotools.data.wms.response.AbstractResponse.<init>(AbstractResponse.java:47)
at
org.geotools.data.wms.response.GetCapabilitiesResponse.<init>(GetCapabilitiesResponse.java:22)
at
org.geotools.data.wms.WebMapServer.internalIssueRequest(WebMapServer.java:353)
at
org.geotools.data.wms.WebMapServer.issueRequest(WebMapServer.java:372)
at
net.refractions.udig.catalog.internal.wms.WMSServiceImpl$CustomWMS.issueRequest(WMSServiceImpl.java:328)
at
org.geotools.data.wms.WebMapServer.negotiateVersion(WebMapServer.java:177)
at org.geotools.data.wms.WebMapServer.<init>(WebMapServer.java:103)
at
net.refractions.udig.catalog.internal.wms.WMSServiceImpl$CustomWMS.<init>(WMSServiceImpl.java:317)
at
net.refractions.udig.catalog.internal.wms.WMSServiceImpl.getWMS(WMSServiceImpl.java:114)
... 44 more
Who can tell what's wrong?
Capabilities as seen in browser (cap.xml, attached)
Thank you,
Anton.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "capabilities_1_1_1.dtd"><WMT_MS_Capabilities version="1.1.1" updateSequence="0"><!-- Service Metadata --><Service><!-- The WMT-defined name for this type of service --><Name>OGC:WMS</Name><!-- Human-readable title for pick lists --><Title>Lifemapper Map Server</Title><!-- Narrative description providing additional information --><Abstract>WMT Map Server maintained by the Biodiversity Research Center. High-quality maps showing museum specimen locations and habitat prediction models.</Abstract><KeywordList><Keyword>biodiversity</Keyword><Keyword>habitat</Keyword><Keyword>species</Keyword><Keyword>location</Keyword><Keyword>prediction model</Keyword><Keyword>distribution</Keyword></KeywordList><!-- Top-level web address of service or service provider. See also OnlineResource elements under <DCPType>. --><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://hostname/"></OnlineResource><!-- Contact information --><ContactInformation><ContactPersonPrimary><ContactPerson>Aimee Stewart</ContactPerson><ContactOrganization>Biodiversity Research Center, University of Kansas</ContactOrganization></ContactPersonPrimary><ContactPosition>Software Developer</ContactPosition><ContactAddress><AddressType>postal</AddressType><Address>1345 Jayhawk Blvd., Dyche Hall</Address><City>Lawrence</City><StateOrProvince>KS</StateOrProvince><PostCode>66045</PostCode><Country>USA</Country></ContactAddress><ContactFacsimileTelephone>+1 785 864-5335</ContactFacsimileTelephone><ContactElectronicMailAddress>astewart@xxxxxx</ContactElectronicMailAddress></ContactInformation><!-- Fees or access constraints imposed. --><Fees>none</Fees><AccessConstraints>none</AccessConstraints></Service><Capability><Request><GetCapabilities><Format>application/vnd.ogc.wms_xml</Format><DCPType><HTTP><Get><!-- The URL here for invoking GetCapabilities using HTTP GET
is only a prefix to which a query string is appended. --><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:1010/test?" xlink:type="simple"/></Get></HTTP></DCPType></GetCapabilities><GetMap><Format>image/gif</Format><DCPType><HTTP><Get><!-- The URL here for invoking GetCapabilities using HTTP GET
is only a prefix to which a query string is appended. --><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost:1010/test?" xlink:type="simple"/></Get></HTTP></DCPType></GetMap></Request><Exception><Format>application/vnd.ogc.se_xml</Format><Format>application/vnd.ogc.se_inimage</Format><Format>application/vnd.ogc.se_blank</Format></Exception><VendorSpecificCapabilities><!--
ScientificName is an optional Query String parameter for GetMap. If a Scientific
Name is specified, and exists on the server, Data Points, or Predicted Distribution Maps (models),
or both, will be displayed on the map. If neither the points nor the models is specified in
the layer parameter, both will be displayed
--><ScientificName>Client specified scientific name</ScientificName><!--
MapTitle is an optional Query String parameter for GetMap - the default is false. A value
of true will display the Scientific name of the requested species (SpeciesScientificName)
on the map.
--><MapExtras MapTitle="false"/></VendorSpecificCapabilities><Layer><Title>Lifemapper Map Server</Title><SRS>EPSG:4326</SRS><!-- all layers are available in at least this SRS --><LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/><Layer opaque="1" queryable="0" noSubsets="0"><name>Land_Shallow_Topo</name><Abstract>NASA's "Blue Marble: Land Surface, Shallow Water, and Shaded Topography" is
a 21600 x 10800 true-color image of the earth.
Scientists and visualizers stitched together a collection of satellite-based observations
of the land surface, oceans, sea ice, and clouds into a seamless, true-color mosaic of every square
kilometer (.386 square mile) of our planet. These images are freely available to educators,
scientists, museums, and the public.</Abstract><Attribution>NASA</Attribution><AuthorityURL>http://www.nasa.gov</AuthorityURL><MetadataURL>http://visibleearth.nasa.gov/cgi-bin/viewrecord?11656</MetadataURL></Layer><Layer opaque="1" queryable="0" noSubsets="0"><name>Background</name></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>Political Boundaries</name><Abstract>Political Boundaries were derived from data sets within the ESRIDATA provided with
ESRI's ArcView 3.2. World/Cntry98, Canada/Province, Mexico/States, and USA/States were joined
and normalized.</Abstract><Attribution>Environmental Systems Research Institute, Inc. (ESRI)</Attribution><AuthorityURL>www.esri.com</AuthorityURL><MetadataURL/><Style/></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>County USA</name><Abstract>The County USA dataset was created by ESRI and provided with
ESRI's ArcView 3.2.</Abstract><Attribution>Environmental Systems Research Institute, Inc. (ESRI)</Attribution><AuthorityURL>www.esri.com</AuthorityURL><MetadataURL/><Style/></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>Lakes</name><Abstract>Lakes were derived from datasets within the ESRIDATA provided with
ESRI's ArcView 3.2. World/Lakes, Canada/Lakes, Mexico/Lakes, and USA/Lakes were joined
and normalized.</Abstract><Attribution>Environmental Systems Research Institute, Inc. (ESRI)</Attribution><AuthorityURL>www.esri.com</AuthorityURL><MetadataURL/><Style/></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>Roads</name><Abstract>Roads were derived from datasets within the ESRIDATA provided with
ESRI's ArcView 3.2. Canada/Roads, Mexico/Roads, and USA/Roads were joined
and normalized.</Abstract><Attribution>Environmental Systems Research Institute, Inc. (ESRI)</Attribution><AuthorityURL>www.esri.com</AuthorityURL><MetadataURL/><Style/></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>Rivers</name><Abstract>Rivers were derived from datasets within the ESRIDATA provided with
ESRI's ArcView 3.2. World/Rivers, Canada/Rivers, Mexico/Rivers, USA/Rivers, and Europe/MJRivers
were joined and normalized.</Abstract><Attribution>Environmental Systems Research Institute, Inc. (ESRI)</Attribution><AuthorityURL>www.esri.com</AuthorityURL><MetadataURL/><Style/></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>Cities</name><Abstract>Cities were derived from datasets within the ESRIDATA provided with
ESRI's ArcView 3.2. World/Cities, Canada/Cities, Mexico/Cities, Europe/Cities, and USA/Cities
were joined and normalized.</Abstract><Attribution>Environmental Systems Research Institute, Inc. (ESRI)</Attribution><AuthorityURL>www.esri.com</AuthorityURL><MetadataURL/><Style/></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>Species Distribution Models</name><Abstract>Species Distribution Models were created from museum specimen data points, environmental
data, and the GARP (Genetic Algorithm for Ruleset Prediction) algorithm created by David Stockwell,
currently at the San Diego Supercomputer Center (SDCC). Models are displayed with 3 levels of gray,
corresponding to the following probabilities of presence: 36-55%, 56-75%, and 76-100%. More information
on the inputs and process is available at the How Lifemapper Works tab at the Lifemapper web site.</Abstract><Attribution>The University of Kansas Biodiversity Research Center</Attribution><AuthorityURL>http://www.lifemapper.org</AuthorityURL><MetadataURL>http://www.lifemapper.org</MetadataURL><Style/></Layer><Layer opaque="0" queryable="0" noSubsets="0"><name>Species Data Points</name><Abstract>Species Data Points are cached copies of data points provided by various institutions through
The Species Analyst Network and representing specimens housed at each institution. Institutions and contact
information are available from the Data Sources link of the Partners tab at the Lifemapper web site.</Abstract><Attribution>various</Attribution><AuthorityURL/><MetadataURL>http://www.lifemapper.org</MetadataURL><Style/></Layer></Layer></Capability></WMT_MS_Capabilities>