hi, i ve taken the last "&" off but it didnt work too.. i saw that the getGetMap() from WMSRequest is returning .. http://localhost/cgi-bin/mapserv.exe?map=&
and when the code reach the constructor AbstractRequest(URL onlineResource, Properties properties) it gets anarray exception on the tokenizer loop. Because it assumes that there is something after the "=". thx, Fred. ----- Original Message ----- From: "Justin Deoliveira" <[EMAIL PROTECTED]> To: "Frederico" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Monday, September 18, 2006 5:38 PM Subject: Re: [Geotools-gt2-users] WMS problem > 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 > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.4/449 - Release Date: 15/9/2006 > > ------------------------------------------------------------------------- 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
