<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Java Exception:  Please add a username"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Java Exception:  Please add a username"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Java Exception:  Please add a username</title>
				<description><![CDATA[ Hi, 

I'm using the latest jar 1.1.2 and I'm receiving an exception to include my username.  I have included this in my code and do not know why it is suddenly not working when it just worked.  Are there issues with the servers?  

Below is a snippet of the code I'm using for the calls. 

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
ToponymSearchCriteria searchCriteria = new ToponymSearchCriteria&#40;&#41;;
searchCriteria.setStyle&#40;Style.FULL&#41;;
searchCriteria.setQ&#40;loc.replaceAll&#40;"_", " "&#41;&#41;;
searchCriteria.setMaxRows&#40;1&#41;;
WebService.setUserName&#40;username&#41;;			
ToponymSearchResult searchResult = WebService
						.search&#40;searchCriteria&#41;;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3036.page#10251</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3036.page#10251</link>
				<pubDate><![CDATA[Tue, 2 Aug 2011 19:03:26]]> GMT</pubDate>
				<author><![CDATA[ fkunkel]]></author>
			</item>
			<item>
				<title>Re:Java Exception:  Please add a username</title>
				<description><![CDATA[ I tested my code with the 1.1.1 jar and the code works fine.  Is there something different in the 1.1.2 jar that would cause the username not to be passed along?  ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3036.page#10256</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3036.page#10256</link>
				<pubDate><![CDATA[Thu, 4 Aug 2011 20:17:40]]> GMT</pubDate>
				<author><![CDATA[ fkunkel]]></author>
			</item>
			<item>
				<title>Re:Java Exception:  Please add a username</title>
				<description><![CDATA[ I figured it out.  My countryBias had a space in it which was causing the problem.  I added the URLEncoder to it and everything works fine now.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3036.page#10262</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3036.page#10262</link>
				<pubDate><![CDATA[Fri, 5 Aug 2011 23:05:36]]> GMT</pubDate>
				<author><![CDATA[ fkunkel]]></author>
			</item>
	</channel>
</rss>