Hello,
I'm working on GeoServer and I am trying to add a new store via "New WMS
Connection".
When I submit the form, I get the following error.
Connection test failed: For input string: "4.227359329868297"
When I try to add a map server in a simple java test, I get the same error.
Below you will find an example of a simple test with the WMS who seems
problematic.
Do you have any idea about the cause of this problem?
Thank you in advance
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import org.geotools.data.wms.WebMapServer;
import org.geotools.ows.ServiceException;
import org.xml.sax.SAXException;
public class Test {
public static void main(String[] args) {
URL url = null;
try {
url = new
URL("http://gis.irisnetlab.be/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities");
} catch (MalformedURLException e) {
//will not happen
}
WebMapServer wms = null;
try {
wms = new WebMapServer(url);
} catch (IOException e) {
//There was an error communicating with the server
//For example, the server is down
} catch (ServiceException e) {
//The server returned a ServiceException (unusual in this
case)
} catch (SAXException e) {
//Unable to parse the response from the server
//For example, the capabilities it returned was not valid
}
}
}
[cid:cirbbc6a29]
Nicolas Gillard
Analyst Programmer
Projects - IS
Avenue des Arts 21, 1000 Bruxelles -
www.cirb.irisnet.be<http://www.cirb.irisnet.be> -
disclaimer<http://www.cirb.irisnet.be/disclaimer-1>
T +32 2 600 43 13 | G +32 479 57 92 04 | Helpdesk +32 2 801 00 00
Be green, leave it on the screen !
[cid:ln46ac5b] <http://www.linkedin.com/company/cirb_cibg>
[cid:twd4a360] <https://twitter.com/CIRB_CIBG>
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users