<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GrassField &#187; java</title>
	<atom:link href="http://blog.grassfield.org/category/programming/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.grassfield.org</link>
	<description>Classroom notes on Java SE, EE &#38; ME</description>
	<lastBuildDate>Fri, 02 Jul 2010 06:29:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Opening a URL connection in your mobile phone</title>
		<link>http://blog.grassfield.org/2010/06/15/opening-a-url-connection-in-your-mobile-phone/</link>
		<comments>http://blog.grassfield.org/2010/06/15/opening-a-url-connection-in-your-mobile-phone/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 04:05:12 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[J2ME]]></category>
		<category><![CDATA[HTTPConnection]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=320</guid>
		<description><![CDATA[Streams can be opened in several ways
1. HTTP communication:
Connection hc = Connector.open("http://www.wirelessdevnet.com");
2. Stream-based Socket communication:
Connection sc = Connector.open("socket://localhost:9000");
3. Datagram-based socket communication:
Connection dc = Connector.open("datagram://:9000");
4. Serial port communication:
Connection cc = Connector.open("comm:0;baudrate=9000");
5. File I/O
Connection fc = Connector.open("file://foo.dat");
I have used the HTTP communication.
HttpConnection c = (HttpConnection) Connector.open(url.getString());
this.responseCode = c.getResponseCode();
c.close();
While running, I got a warning in the log says&#8230;
Warning: [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/06/15/opening-a-url-connection-in-your-mobile-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expression eKey is undefined on line 71, column 63 in template/simple/fielderror.ftl</title>
		<link>http://blog.grassfield.org/2010/05/12/expression-ekey-is-undefined-on-line-71-column-63-in-templatesimplefielderror-ftl/</link>
		<comments>http://blog.grassfield.org/2010/05/12/expression-ekey-is-undefined-on-line-71-column-63-in-templatesimplefielderror-ftl/#comments</comments>
		<pubDate>Wed, 12 May 2010 10:10:07 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[struts]]></category>
		<category><![CDATA[fielderror]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=311</guid>
		<description><![CDATA[This is one nasty exception occured due to carelessness.  I have added one field error in my action.
super.addFieldError("userName", "User name is null");
Instead of the field name &#8220;userName&#8221;, I have given the variable itself  
super.addFieldError(userName, "User name is null");
Replacing this removed this error.
10:40:24,859        ERROR runtime:96 -
Expression eKey is undefined on line 71, column 63 in [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/05/12/expression-ekey-is-undefined-on-line-71-column-63-in-templatesimplefielderror-ftl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>exec &#8211; IllegalThreadStateException: process has not exited</title>
		<link>http://blog.grassfield.org/2010/04/29/exec-illegalthreadstateexception-process-has-not-exited/</link>
		<comments>http://blog.grassfield.org/2010/04/29/exec-illegalthreadstateexception-process-has-not-exited/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 18:13:22 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[thread]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=291</guid>
		<description><![CDATA[This is one nasty exception I experienced today.
I execute one .executable file from java. Reading the inputstream and the error stream with two different threads (why). I wait till &#8216;join&#8217;ing the thread then I took the process exit value.
processLogThread.join();
errorLogThread.join();
 try {
 logger.info("Thread status:"+processLogThread.isAlive()+" "+errorLogThread.isAlive());
 logger.info("Process exit value:"+p.exitValue());
 } catch (Exception e) {
 logger.error("Error while reading [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/04/29/exec-illegalthreadstateexception-process-has-not-exited/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JVM Monitoring</title>
		<link>http://blog.grassfield.org/2010/04/29/jvm-monitoring/</link>
		<comments>http://blog.grassfield.org/2010/04/29/jvm-monitoring/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 11:53:26 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=286</guid>
		<description><![CDATA[http://blogs.sun.com/alanb/entry/heap_dumps_are_back_with
Will write in detail soon!
]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/04/29/jvm-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clojure&#8217;s Approach to Polymorphism: Method Dispatch</title>
		<link>http://blog.grassfield.org/2010/04/27/clojures-approach-to-polymorphism-method-dispatch/</link>
		<comments>http://blog.grassfield.org/2010/04/27/clojures-approach-to-polymorphism-method-dispatch/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 14:46:26 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[method dispatch]]></category>
		<category><![CDATA[patterns]]></category>
		<category><![CDATA[polymorphism]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=282</guid>
		<description><![CDATA[I came across the following article on Clojure&#8217;s Approach to Polymorphism: Method Dispatch. Still I couldn&#8217;t understand how it is more advantageous against single dispatch in terms of complexity, resource consumption!!!
http://www.developer.com/lang/other/article.php/10942_3878656_1/Clojures-Approach-to-Polymorphism-Method-Dispatch.htm
Still I feel adding more rules will consume similar man hours! any comments?

Clojure&#8217;s Approach to Polymorphism: Method Dispatch

]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/04/27/clojures-approach-to-polymorphism-method-dispatch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem with multiple tiles configuration files</title>
		<link>http://blog.grassfield.org/2010/04/27/problem-with-multiple-tiles-configuration-files/</link>
		<comments>http://blog.grassfield.org/2010/04/27/problem-with-multiple-tiles-configuration-files/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 11:52:55 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[struts]]></category>
		<category><![CDATA[struts 2]]></category>
		<category><![CDATA[tiles]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=280</guid>
		<description><![CDATA[This is an interesting problem for this newbie. I have one common tiles configuration file tiles.xml. I decided to split it into pieces based on modules. The syntax allows me to do it. the web.xml entry changed from
&#60;context-param&#62;
 &#60;param-name&#62;org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG&#60;/param-name&#62;
 &#60;param-value&#62;/WEB-INF/tiles.xml&#60;/param-value&#62;
 &#60;/context-param&#62;
to
&#60;context-param&#62;
 &#60;param-name&#62;org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG&#60;/param-name&#62;
 &#60;param-value&#62;/WEB-INF/tiles-license.xml,/WEB-INF/tiles-common.xml&#60;/param-value&#62;
 &#60;/context-param&#62;
Fortunately/Unfortunately, I declared all my basic templates in tiles-common.xml which is reused [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/04/27/problem-with-multiple-tiles-configuration-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.net.ProtocolException: Server redirected too many times</title>
		<link>http://blog.grassfield.org/2009/04/02/javanetprotocolexception-server-redirected-too-many-times/</link>
		<comments>http://blog.grassfield.org/2009/04/02/javanetprotocolexception-server-redirected-too-many-times/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 16:57:32 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/2009/04/02/javanetprotocolexception-server-redirected-too-many-times/</guid>
		<description><![CDATA[This is another nasty exception I came across today. I was developing a core java application that connects to internet via proxy. It was working fine with hardcoded values for username (domain\\myname as username and secret as password). When I accepted the same strings as command line arguments, the process did quit with this.
java.net.ProtocolException: Server [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2009/04/02/javanetprotocolexception-server-redirected-too-many-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting Sony Ericsson W810i to Mandriva and executing AT commands with Java</title>
		<link>http://blog.grassfield.org/2009/02/23/connecting-sony-ericcson-w810i-to-mandriva-and-executing-at-commands-with-java/</link>
		<comments>http://blog.grassfield.org/2009/02/23/connecting-sony-ericcson-w810i-to-mandriva-and-executing-at-commands-with-java/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 00:39:09 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Sony Ericsson]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/2009/02/23/connecting-sony-ericcson-w810i-to-mandriva-and-executing-at-commands-with-java/</guid>
		<description><![CDATA[
Hi,
This post is to document the steps I overcome to connect my sony ericsson W810 as a serial modem with windows and linux and passing AT commands to it. My ultimate aim is to operate the phone in command line.
My Windows experience is sour, since sun doesnt offer its javax.comm version of jar for windows. [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2009/02/23/connecting-sony-ericcson-w810i-to-mandriva-and-executing-at-commands-with-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filename in response</title>
		<link>http://blog.grassfield.org/2008/12/30/filename-in-response/</link>
		<comments>http://blog.grassfield.org/2008/12/30/filename-in-response/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 15:38:07 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[servlet]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/2008/12/30/filename-in-response/</guid>
		<description><![CDATA[

I was writing a servlet whose response is PDF, CSV, XLS etc. This works fine, but when I tried to save it HDD the url is given as the filename. I was wondering how to explicitly specify the filename. Here is the solution.

response.setHeader("Content-Disposition", "inline; filename=xyz.pdf" );

When we set this header property in the response, The [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2008/12/30/filename-in-response/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Live internet radio stream extractor</title>
		<link>http://blog.grassfield.org/2008/12/07/live-internet-radio-stream-extractor/</link>
		<comments>http://blog.grassfield.org/2008/12/07/live-internet-radio-stream-extractor/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 00:35:17 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[core java]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/2008/12/07/live-internet-radio-stream-extractor/</guid>
		<description><![CDATA[

Friends,
This is to give you a code pack I wrote today. I was listening to one of the internet radios in Tamil. I want to store it on my hdd, the tools I searched dint helped me much. I want a simple tool, that saves my time. And It should be able to work in [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2008/12/07/live-internet-radio-stream-extractor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
