Hi Fredrico, I think the last "&" in the request is throwing things off because another key value pair is being expected but not found. What happens if you take that last "&" off?
However I still think the url parsing code should handle this, feel free to file it has a bug in jira. -Justin Frederico wrote: > Hi all, > im trying to use WMS with geotools and i got an exception.. > Can soemone help me? > Thx, Fred. > > > ive done this: > > > 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_) > > ... > > !DSPAM:1004,450eeef1256076309890654! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > > !DSPAM:1004,450eeef1256076309890654! > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > !DSPAM:1004,450eeef1256076309890654! -- Justin Deoliveira [EMAIL PROTECTED] The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- 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-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
