AbstractRequest.init throws ArrayIndexOutOfBounds exception 
------------------------------------------------------------

                 Key: GEOT-946
                 URL: http://jira.codehaus.org/browse/GEOT-946
             Project: GeoTools
          Issue Type: Bug
          Components: ext wms
    Affects Versions: 2.2.0
            Reporter: Richard Gould
         Assigned To: Richard Gould
             Fix For: 2.2.1


WebMapServer wms = new WebMapServer( new URL(

"http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/teste/Example1-1.map&"; ) );

WMSCapabilities capabilities = wms.getCapabilities();

GetMapRequest request = wms.createGetMapRequest(); **

...

 

and get this exception when the code reach ** :

java.lang.ArrayIndexOutOfBoundsException: 1

at org.geotools.data.ows.AbstractRequest.<init>(AbstractRequest.java:100)

at 
org.geotools.data.wms.request.AbstractWMSRequest.<init>(AbstractWMSRequest.java:10)

at 
org.geotools.data.wms.request.AbstractGetMapRequest.<init>(AbstractGetMapRequest.java:42)

at org.geotools.data.wms.WMS1_0_0$GetMapRequest.<init>(WMS1_0_0.java:233)

at org.geotools.data.wms.WMS1_1_0$GetMapRequest.<init>(WMS1_1_0.java:132)

at org.geotools.data.wms.WMS1_1_1$GetMapRequest.<init>(WMS1_1_1.java:69)

at org.geotools.data.wms.WMS1_1_1.createGetMapRequest(WMS1_1_1.java:89)

at org.geotools.data.wms.WebMapServer.createGetMapRequest(WebMapServer.java:162)

at gov.imbel.gui.MainFrame.loadWMS(MainFrame.java:657)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to