<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>TechPitcher</title>
	
	<link>http://www.techpitcher.com</link>
	<description />
	<lastBuildDate>Sat, 29 May 2010 13:50:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Techpitcher" /><feedburner:info uri="techpitcher" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Techpitcher</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Starting tomcat in debug mode – Linux</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/EMwlb9pzSPs/starting-tomcat-in-debug-mode-linux.html</link>
		<comments>http://www.techpitcher.com/starting-tomcat-in-debug-mode-linux.html#comments</comments>
		<pubDate>Sat, 29 May 2010 13:50:19 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[J2ee]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techpitcher.com/?p=224</guid>
		<description><![CDATA[To start tomcat in debug mode, you need to set JPDA_TRANSPORT=dt_socket and JPDA_ADDRESS=9000 environment variable.  To set these variable for a session only, open command prompt and run following commands

export CATALINA_HOME=/home/xyz/opt/tomcat
export JPDA_TRANSPORT=dt_socket
export JPDA_ADDRESS=9000

now start tomcat using following command

$ %CATALINA_HOME%/bin/catalina.sh jpda start

Setting this variable in your personal ~/.bashrc file has the advantage that it will [...]]]></description>
			<content:encoded><![CDATA[<p>To start <a href="http://www.techpitcher.com/installing-tomcat-in-ubuntulinux.html">tomcat</a> in debug mode, you need to set JPDA_TRANSPORT=dt_socket and JPDA_ADDRESS=9000 environment variable.  To set these variable for a session only, open command prompt and run following commands</p>
<pre class="brush: xml;">
export CATALINA_HOME=/home/xyz/opt/tomcat
export JPDA_TRANSPORT=dt_socket
export JPDA_ADDRESS=9000
</pre>
<p>now start tomcat using following command<br />
<code><br />
$ %CATALINA_HOME%/bin/catalina.sh jpda start<br />
</code></p>
<p>Setting this variable in your personal ~/.bashrc file has the advantage that it will always be set (for you, as a user) each time you log in or reboot the system. To do so, open ~/.bashrc in a text editor (or create the file if it doesn&#8217;t already exist) and insert the following line anywhere in the file</p>
<pre class="brush: xml;">
export CATALINA_HOME=/home/xyz/opt/tomcat
export JPDA_TRANSPORT=dt_socket
export JPDA_ADDRESS=9000
</pre>
<p>Save and close .bashrc.<br />
You must logout and login again to  make your change take effect. or source your .bashrc file to make your change take effect for the current session<br />
<code><br />
$ source ~/.bashrc<br />
</code></p>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/EMwlb9pzSPs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/starting-tomcat-in-debug-mode-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/starting-tomcat-in-debug-mode-linux.html</feedburner:origLink></item>
		<item>
		<title>Start tomcat6 (installed as a windows service) debug mode using eclipse remote debugging</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/HUVacBNfl3I/start-tomcat6-installed-as-a-windows-service-debug-mode-using-eclipse-remote-debugging.html</link>
		<comments>http://www.techpitcher.com/start-tomcat6-installed-as-a-windows-service-debug-mode-using-eclipse-remote-debugging.html#comments</comments>
		<pubDate>Wed, 19 May 2010 03:26:09 +0000</pubDate>
		<dc:creator>Srini</dc:creator>
				<category><![CDATA[J2ee]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techpitcher.com/?p=219</guid>
		<description><![CDATA[I have spent around 5 hrs in google to know how to start tomcat6 (installed as a windows service) debug mode using eclipse remote debugging. Here are the steps.
1) Go to your catalina_home/bin.
2) You will find a file called tomcat6w.exe
3) double click on the file and a window will be opened.
4) In the opened window, [...]]]></description>
			<content:encoded><![CDATA[<p>I have spent around 5 hrs in google to know how to start tomcat6 (installed as a windows service) debug mode using eclipse remote debugging. Here are the steps.</p>
<p>1) Go to your catalina_home/bin.<br />
2) You will find a file called tomcat6w.exe<br />
3) double click on the file and a window will be opened.<br />
4) In the opened window, go to &#8220;java&#8221; tab.You will find a &#8220;text area box&#8221; with label as &#8220;Java Options&#8221;</p>
<p>5) Add the following lines of the code at the the beginning of the text area. (I mean above the first -D&#8230;)</p>
<p>6) The below are the lines which you need to add.<br />
 -Xdebug -Xnoagent -Djava.compiler=NONE<br />
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</p>
<p>7) Once you have added go to your eclipse and go to Debug&#8211;&gt;Debug Configurations and create a new configuration for your project with the port as 5005 (as given above) and save it.</p>
<p> <img src='http://www.techpitcher.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Now start your tomcat service. You&#8217;ll observe at the middle of starting of your service it will become very slow and not responsive. At that time start your already configured debugger. Now you see your server started successfully in debug mode. Remember that as i mention above, if when your service start up is slow and you have not started  your eclipse debugger at that time, then your server won&#8217;t start and you&#8217;ll get some error.</p>
<p>I have spent a lot of time on this and so i am posting it so that, the people who sees this can continue their work from here easily&#8230;.</p>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/HUVacBNfl3I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/start-tomcat6-installed-as-a-windows-service-debug-mode-using-eclipse-remote-debugging.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/start-tomcat6-installed-as-a-windows-service-debug-mode-using-eclipse-remote-debugging.html</feedburner:origLink></item>
		<item>
		<title>Changing project type form general to java in eclipse</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/sgfYiXzNOaA/changing-project-type-form-general-to-java-in-eclipse.html</link>
		<comments>http://www.techpitcher.com/changing-project-type-form-general-to-java-in-eclipse.html#comments</comments>
		<pubDate>Sun, 16 May 2010 07:26:16 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.techpitcher.com/?p=214</guid>
		<description><![CDATA[You have a project, which is basically a java project but during checking out the project or creating a new project, you didn&#8217;t selected type of project as java. You are stuck now as there is no option to change it to java type in eclipse UI.
You can change type of project by modifying.projectfile, located [...]]]></description>
			<content:encoded><![CDATA[<p>You have a project, which is basically a java project but during checking out the project or creating a new project, you didn&#8217;t selected type of project as java. You are stuck now as there is no option to change it to java type in eclipse UI.<br />
You can change type of project by modifying<code>.project</code>file, located in the root directory of your project. Open .project file in any text editor and search for text &#8220;natures&#8221;. You&#8217;ll see an empty <code>natures</code> node.</p>
<pre class="brush: xml;">
&lt;natures&gt;
&lt;/natures&gt;
</pre>
<p>Change this value to </p>
<pre class="brush: xml;">
&lt;natures&gt;
        &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt;
&lt;/natures&gt;
</pre>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/sgfYiXzNOaA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/changing-project-type-form-general-to-java-in-eclipse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/changing-project-type-form-general-to-java-in-eclipse.html</feedburner:origLink></item>
		<item>
		<title>See Servlet Spec 2.3, section 9.7.2</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/UiZaMHilkHo/see-servlet-specification-version-2-3-section-9-7-2.html</link>
		<comments>http://www.techpitcher.com/see-servlet-specification-version-2-3-section-9-7-2.html#comments</comments>
		<pubDate>Wed, 31 Mar 2010 03:29:45 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Exception]]></category>
		<category><![CDATA[J2ee]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techpitcher.com/?p=194</guid>
		<description><![CDATA[If you are getting warnings or errors related with Servlet Specification, version 2.3, section 9.7.2. It means that you are trying to override web container&#8217;s implementation classes from your applications classes.
Servlet specification 2.3 section 9.7.2 says this clearly

	The classloader that a container uses to load a servlet in a WAR must allow the developer to [...]]]></description>
			<content:encoded><![CDATA[<p>If you are getting warnings or errors related with Servlet Specification, version 2.3, section 9.7.2. It means that you are trying to override web container&#8217;s implementation classes from your applications classes.<br />
Servlet specification 2.3 section 9.7.2 says this clearly<br />
<code><br />
	The classloader that a container uses to load a servlet in a WAR must allow the developer to load any  resources contained in library JARs within the WAR following normal J2SE semantics using getResource. It must not allow theWAR to override J2SE or Java servlet API classes. It is further recommended that the loader not allow servlets in theWAR access to the web container’s implementation classes. It is recommended also that the application class loader be implemented so that classes and resources packaged within the WAR are loaded in preference to classes and resources residing in container-wide library JARs.<br />
</code></p>
<p>You can get away from these warnings by doing one of the following</p>
<p>1. server-api.jar is needed to compile an application and is not required in application war to run application as container already have this file. You must remove this file from WEB-INF/lib.</p>
<p>2. It can be because of other jar files that are bundled with container. e.g. j2ee.jar. You need to remove this file from your application&#8217;s lib directory.</p>
<p>In tomcat 6, $CATALINA_HOME/lib/ contains all the jar file which one should not override with those of application&#8217;s jar. tomcat 5 has these jars in $CATALINA_HOME/common/lib folder. </p>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/UiZaMHilkHo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/see-servlet-specification-version-2-3-section-9-7-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/see-servlet-specification-version-2-3-section-9-7-2.html</feedburner:origLink></item>
		<item>
		<title>Running a process in background/foreground in linux</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/SQMKVRe1rK8/running-a-process-in-backgroundforeground-in-linux.html</link>
		<comments>http://www.techpitcher.com/running-a-process-in-backgroundforeground-in-linux.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 07:18:51 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[disown]]></category>
		<category><![CDATA[foreground]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[top]]></category>

		<guid isPermaLink="false">http://www.techpitcher.com/?p=180</guid>
		<description><![CDATA[Run process in background
To run a command in background, you can use following command at command prompt

$ command &#38;

Above command will make your process run in background. You need to make sure that process is finished before logging off. A process run by above command will be terminated as soon as you logout.
If you want [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Run process in background</strong><br />
To run a command in background, you can use following command at command prompt</p>
<div class="terminal">
$ command &amp;
</div>
<p>Above command will make your process run in background. You need to make sure that process is finished before logging off. A process run by above command will be terminated as soon as you logout.<br />
If you want to run a command in background even after you logout then you can use following command</p>
<div class="terminal">
$ nohup command &amp;
</div>
<p><em>nohup</em><strong> </strong> Run a command immune to hang ups, with output to a non-tty.<br />
This command will run your process in background even if you logs out.</p>
<p><strong>Making current process to run in background</strong><br />
You can make current process as a background process by issuing following commands.</p>
<div class="terminal">
$ [ctrl] + z<br />
$ bg
</div>
<p>You need to remember that the process is running in background, if you logs out then process will be terminated. You can <em>disown</em> to avoid killing the process after you close the terminal. </p>
<div class="terminal">
$ [ctrl] + z<br />
$ bg<br />
$ disown
</div>
<p>Execute following command to run any process in background</p>
<div class="terminal">
$ bg process_id
</div>
<p>You can find process id by issues <em>ps</em> command. It displays the list of currently running process and their process ids. Use <em>ps aux</em> to see all the process currently running on your system including from other users. Use <em>top</em> to get updated list of all the processes running currently.</p>
<p>Run a process in foreground</p>
<div class="terminal">
$ fg process_id
</div>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/SQMKVRe1rK8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/running-a-process-in-backgroundforeground-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/running-a-process-in-backgroundforeground-in-linux.html</feedburner:origLink></item>
		<item>
		<title>java.util.regex.PatternSyntaxException: Unclosed character class</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/DwQrLO38kZc/javautilregexpatternsyntaxexception-unclosed-character-class.html</link>
		<comments>http://www.techpitcher.com/javautilregexpatternsyntaxexception-unclosed-character-class.html#comments</comments>
		<pubDate>Sun, 24 Jan 2010 07:42:04 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[delimiter]]></category>
		<category><![CDATA[PatternSyntaxException]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=175</guid>
		<description><![CDATA[
Exception in thread &#34;main&#34; java.util.regex.PatternSyntaxException:
Unclosed character class near index 1 $[ ^ at java.util.regex.Pattern.error (Pattern.java:1503) at
java.util.regex.Pattern.clazz(Pattern.java:2016) at java.util.regex.Pattern.sequence(Pattern.java:1560)
at java.util.regex.Pattern.expr(Pattern.java:1520) at java.util.regex.Pattern.compile (Pattern.java:1288)
at java.util.regex.Pattern.&#38;lt;init&#38;gt;(Pattern.java:1044)  encountered while splitting the string
using a delimiter which contains &#34;[&#34;

]]></description>
			<content:encoded><![CDATA[<pre class="brush: java;">
Exception in thread &quot;main&quot; java.util.regex.PatternSyntaxException:
Unclosed character class near index 1 $[ ^ at java.util.regex.Pattern.error (Pattern.java:1503) at
java.util.regex.Pattern.clazz(Pattern.java:2016) at java.util.regex.Pattern.sequence(Pattern.java:1560)
at java.util.regex.Pattern.expr(Pattern.java:1520) at java.util.regex.Pattern.compile (Pattern.java:1288)
at java.util.regex.Pattern.&amp;lt;init&amp;gt;(Pattern.java:1044)  encountered while splitting the string
using a delimiter which contains &quot;[&quot;
</pre>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/DwQrLO38kZc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/javautilregexpatternsyntaxexception-unclosed-character-class.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/javautilregexpatternsyntaxexception-unclosed-character-class.html</feedburner:origLink></item>
		<item>
		<title>NoClassDefFoundError: com/lowagie/text/DocumentException</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/AQgXo3bwnF8/noclassdeffounderror-comlowagietextdocumentexception.html</link>
		<comments>http://www.techpitcher.com/noclassdeffounderror-comlowagietextdocumentexception.html#comments</comments>
		<pubDate>Mon, 26 Oct 2009 17:37:52 +0000</pubDate>
		<dc:creator>Pal</dc:creator>
				<category><![CDATA[Jasper]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[jasper report]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=173</guid>
		<description><![CDATA[I am get following exception. 

Exception in thread &#34;main&#34; java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:183) at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:305)  at Report.main(Report.java:45)

Help me asap.
]]></description>
			<content:encoded><![CDATA[<p>I am get following exception. </p>
<pre class="brush: xml;">
Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:183) at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:305)  at Report.main(Report.java:45)
</pre>
<p>Help me asap.</p>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/AQgXo3bwnF8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/noclassdeffounderror-comlowagietextdocumentexception.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/noclassdeffounderror-comlowagietextdocumentexception.html</feedburner:origLink></item>
		<item>
		<title>JSON communication between server and client Part1</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/ohEfeFfuB_w/json-communication-between-server-and-client-part1.html</link>
		<comments>http://www.techpitcher.com/json-communication-between-server-and-client-part1.html#comments</comments>
		<pubDate>Wed, 26 Aug 2009 15:35:33 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=170</guid>
		<description><![CDATA[JSON (JavaScript Object Notation) provides lightweight data exchange between server and client. It is human readable.
Sending data in JSON format from server to client:
There are APIs present for many languages (Java, ASP, Flex, C, C++ etc). With the help of these APIs, we can get JSON representation for data or objects. This data can be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.json.org/" target="_blank">JSON</a> (JavaScript Object Notation) provides lightweight data exchange between server and client. It is human readable.<br />
Sending data in JSON format from server to client:<br />
There are APIs present for many languages (Java, ASP, Flex, C, C++ etc). With the help of these APIs, we can get JSON representation for data or objects. This data can be send to client just like some other data.<br />
On the client side browser can handle this format and one can retrieve the information send from server.<br />
I am writing code sample for spring framework</p>
<pre class="brush: java;">
public void getJSONInfo(HttpServletRequest request, HttpServletResponse response) throws Exception {
    JSONObject result = new JSONObject();
    try {
        Object obj = new Object();
        // To get JSON data from obj
       JSONObject jsonObj = JSONObject.fromObject(obj);
       result.put(&quot;result&quot;, &quot;success&quot;);
       result.put(&quot;jsonInfo&quot;, jsonObj);
   } catch (Exception e) {
       result.put(&quot;result&quot;, &quot;error&quot;);
  } finally {
      // Write this jsonObj in HttpServletResponse
      response.getWriter().print(result);
      response.flushBuffer();
   }
}
</pre>
<p>While on the client side, I am using <a href="http://jquery.com/" target="_blank">jquery</a> to make AJAX request,</p>
<pre class="brush: jscript;">
function getJSONInfo() {
    $.ajax({
       url: '../location?q=getJSONInfo',
       type: &quot;POST&quot;,
       cache: false,
       dataType: &quot;json&quot;,
       success: function(response){
           alert(response.jsonInfo);
       },
       error: function(msg){
       }
    });
}
</pre>
<p>As we can see from the example, an ajax request is made to get JSONInfo and result is displayed in popup window.</p>
<p>Sending data in JSON format from client to server will be covered in part2</p>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/ohEfeFfuB_w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/json-communication-between-server-and-client-part1.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/json-communication-between-server-and-client-part1.html</feedburner:origLink></item>
		<item>
		<title>java.util.ConCurrentModificationException</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/_eYoglBOP6k/javautilconcurrentmodificationexception.html</link>
		<comments>http://www.techpitcher.com/javautilconcurrentmodificationexception.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 05:23:26 +0000</pubDate>
		<dc:creator>Shaili</dc:creator>
				<category><![CDATA[Exception]]></category>
		<category><![CDATA[concurrentmodificationexception]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=168</guid>
		<description><![CDATA[I tried to execute following code

ListIterator iterator = i.listIterator();
while(iterator.hasNext()) {
      System.out.println(iterator.next());
      Object obj=((Integer)iterator.next()).intValue();
      if(obj.equals(i.get(1))) {
           i.add(10);
      }
}

ant it throws following exception

Exception in thread &#34;main&#34; java.util.ConcurrentModificationException
at [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to execute following code</p>
<pre class="brush: java;">
ListIterator iterator = i.listIterator();
while(iterator.hasNext()) {
      System.out.println(iterator.next());
      Object obj=((Integer)iterator.next()).intValue();
      if(obj.equals(i.get(1))) {
           i.add(10);
      }
}
</pre>
<p>ant it throws following exception</p>
<pre class="brush: xml;">
Exception in thread &quot;main&quot; java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
</pre>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/_eYoglBOP6k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/javautilconcurrentmodificationexception.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/javautilconcurrentmodificationexception.html</feedburner:origLink></item>
		<item>
		<title>More than one value of type [net.sf.jasperreports.engine.JRDataSource] found</title>
		<link>http://feedproxy.google.com/~r/Techpitcher/~3/p-W343yjGlE/more-than-one-value-of-type-netsfjasperreportsenginejrdatasource-found.html</link>
		<comments>http://www.techpitcher.com/more-than-one-value-of-type-netsfjasperreportsenginejrdatasource-found.html#comments</comments>
		<pubDate>Tue, 28 Jul 2009 13:32:14 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Exception]]></category>
		<category><![CDATA[J2ee]]></category>
		<category><![CDATA[jasper report]]></category>
		<category><![CDATA[Spring]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=166</guid>
		<description><![CDATA[I getting this exception while using a subreport in my jasper report and trying to pass a datasource for my subreport. Datasource for report is ‘datasource’ and datasource for subreport is ‘pardatasource’.

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: More than one value of type [net.sf.jasperreports.engine.JRDataSource] found
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:488)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
com.ccclogic.core.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:127)

]]></description>
			<content:encoded><![CDATA[<p>I getting this exception while using a subreport in my jasper report and trying to pass a datasource for my subreport. Datasource for report is ‘datasource’ and datasource for subreport is ‘pardatasource’.</p>
<pre class="brush: xml;">
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: More than one value of type [net.sf.jasperreports.engine.JRDataSource] found
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:488)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
com.ccclogic.core.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:127)
</pre>
<img src="http://feeds.feedburner.com/~r/Techpitcher/~4/p-W343yjGlE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/more-than-one-value-of-type-netsfjasperreportsenginejrdatasource-found.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.techpitcher.com/more-than-one-value-of-type-netsfjasperreportsenginejrdatasource-found.html</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.615 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-07 19:16:58 -->
