<?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; programming</title>
	<atom:link href="http://blog.grassfield.org/category/programming/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>a different object with the same identifier value was already associated with the session</title>
		<link>http://blog.grassfield.org/2010/05/14/a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session/</link>
		<comments>http://blog.grassfield.org/2010/05/14/a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session/#comments</comments>
		<pubDate>Fri, 14 May 2010 15:18:54 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[hibernate]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=316</guid>
		<description><![CDATA[This is purely a Hibernate problem. I have one to many relationship between tables. Mapping table c contains the relations between table a and table b. When I try to save a new object in a, which has a set of b objects (All those b objects are already existing), I got an Hibernate exception [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/05/14/a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session/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>JDBCExceptionReporter:77 &#8211; SQL Error: 0, SQLState: 08S01</title>
		<link>http://blog.grassfield.org/2010/05/11/jdbcexceptionreporter77-sql-error-0-sqlstate-08s01/</link>
		<comments>http://blog.grassfield.org/2010/05/11/jdbcexceptionreporter77-sql-error-0-sqlstate-08s01/#comments</comments>
		<pubDate>Tue, 11 May 2010 07:42:07 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[Software caused connection abort: socket write error]]></category>
		<category><![CDATA[SQLState: 08S01]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=309</guid>
		<description><![CDATA[I have a scheduled job running with spring beans. It is scheduled such that it will run once in a day. Whenever I restart the webapp, it is running for the first day. but on the second day onwards, it is not running &#8211; quits with the below exception   Seems to be an [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/05/11/jdbcexceptionreporter77-sql-error-0-sqlstate-08s01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buildclient and CC &#8211; Cannot execute C compiler cc</title>
		<link>http://blog.grassfield.org/2010/05/05/buildclient-and-cc-cannot-execute-c-compiler-cc/</link>
		<comments>http://blog.grassfield.org/2010/05/05/buildclient-and-cc-cannot-execute-c-compiler-cc/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:31:40 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[cc]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[tuxedo]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=298</guid>
		<description><![CDATA[I am trying to compile a few .C files with tuxedo&#8217;s buildclient command. I have gcc in my path.
# which gcc
/bin/gcc
when I try to issue the buildclient command it returns
sh: cc: not found
CMDTUX_CAT:512: ERROR: Cannot execute C compiler cc -I$TUXDIR/include -o ....
it goes on!
Is there any compulsion to use only CC? Still working on it [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/05/05/buildclient-and-cc-cannot-execute-c-compiler-cc/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>Connecting to MySQL across Domain and workgroup</title>
		<link>http://blog.grassfield.org/2010/04/06/connecting-to-mysql-across-domain-and-workgroup/</link>
		<comments>http://blog.grassfield.org/2010/04/06/connecting-to-mysql-across-domain-and-workgroup/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 11:15:58 +0000</pubDate>
		<dc:creator>Pandian R</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[Error Code: 1045]]></category>
		<category><![CDATA[workgroup]]></category>

		<guid isPermaLink="false">http://blog.grassfield.org/?p=274</guid>
		<description><![CDATA[I have a mysql running in a box connected to a domain. I tried to connect it from a laptop not connected to the same domain. It is running as a workgroup. Though the parameters are correct, I got an error &#8216;Error Code: 1045&#8242;
An error occured while establishing the connection.
 Type: java.sql.SQLException   Error [...]]]></description>
		<wfw:commentRss>http://blog.grassfield.org/2010/04/06/connecting-to-mysql-across-domain-and-workgroup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
