<?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>TechPitcher &#187; Exception</title>
	<atom:link href="http://www.techpitcher.com/category/exception/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techpitcher.com</link>
	<description></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>
			<item>
		<title>See Servlet Spec 2.3, section 9.7.2</title>
		<link>http://www.techpitcher.com/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>
]]></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>
		</item>
		<item>
		<title>java.util.ConCurrentModificationException</title>
		<link>http://www.techpitcher.com/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>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/javautilconcurrentmodificationexception.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>More than one value of type [net.sf.jasperreports.engine.JRDataSource] found</title>
		<link>http://www.techpitcher.com/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>
]]></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>
		</item>
		<item>
		<title>javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS</title>
		<link>http://www.techpitcher.com/javaxmailmessagingexception-530-570-must-issue-a-starttls.html</link>
		<comments>http://www.techpitcher.com/javaxmailmessagingexception-530-570-must-issue-a-starttls.html#comments</comments>
		<pubDate>Wed, 20 May 2009 15:15:32 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Exception]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[javax mail]]></category>
		<category><![CDATA[mail smtp]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=160</guid>
		<description><![CDATA[I am getting exception while sending mail using JavaMail APIs. Mail properties are as 

	mail.transport.protocol = smtp
	mail.smtp.host = mailHost
	mail.smtp.port = 25
	mail.smtp.auth = true

The exception I am getting while sending email

Exception in thread &#34;main&#34; javax.mail.SendFailedException: Sending failed;
        nested exception is:
	javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first m1sm949464nzf
 [...]]]></description>
			<content:encoded><![CDATA[<p>I am getting exception while sending mail using JavaMail APIs. Mail properties are as </p>
<pre class="brush: xml;">
	mail.transport.protocol = smtp
	mail.smtp.host = mailHost
	mail.smtp.port = 25
	mail.smtp.auth = true
</pre>
<p>The exception I am getting while sending email</p>
<pre class="brush: java;">
Exception in thread &quot;main&quot; javax.mail.SendFailedException: Sending failed;
        nested exception is:
	javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first m1sm949464nzf
 	at javax.mail.Transport.send0(Transport.java:219)
	at javax.mail.Transport.send(Transport.java:81)
	at example.SendMailUsingAuthentication.postMail(SendMailUsingAuthentication.java:77)
	at example.SendMailUsingAuthentication.main(SendMailUsingAuthentication.java:35)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/javaxmailmessagingexception-530-570-must-issue-a-starttls.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>java.sql.SQLException: Closed Connection</title>
		<link>http://www.techpitcher.com/javasqlsqlexception-closed-connection.html</link>
		<comments>http://www.techpitcher.com/javasqlsqlexception-closed-connection.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 05:22:05 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Exception]]></category>
		<category><![CDATA[J2ee]]></category>
		<category><![CDATA[java sql]]></category>
		<category><![CDATA[java util]]></category>
		<category><![CDATA[sqlexception]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://techpitcher.com/?p=155</guid>
		<description><![CDATA[
Caused by: java.sql.SQLException: Closed Connection: next at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:185) at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:610)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:584)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:101)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:78)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

]]></description>
			<content:encoded><![CDATA[<pre class="brush: java;">
Caused by: java.sql.SQLException: Closed Connection: next at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:185) at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:610)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:584)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:101)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:78)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techpitcher.com/javasqlsqlexception-closed-connection.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
