<?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>REVERT TO CONSOLE &#187; Exceptions</title>
	<atom:link href="http://www.reverttoconsole.com/blog/category/exceptions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reverttoconsole.com</link>
	<description>for f in *;do echo &#124; sed 'i\rtc' &#62;&#62; $f;done;</description>
	<lastBuildDate>Sat, 10 Jul 2010 12:40:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Understanding org.hibernate.TransientObjectException: object references an unsaved transient instance &#8211; save the transient instance before flushing:</title>
		<link>http://www.reverttoconsole.com/blog/exceptions/understanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing/</link>
		<comments>http://www.reverttoconsole.com/blog/exceptions/understanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 19:25:42 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[Exceptions]]></category>
		<category><![CDATA[Hibernate]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/?p=217</guid>
		<description><![CDATA[Debugging Hibernate exceptions for users not so familiar with Hibernate can be frustrating. The following exception is a common source of error:- Lets try to understand the error with a use case first. The most common scenario when this exception occurs is while trying to save a collection object (but calling save/persist on parent) Consider [...]]]></description>
			<content:encoded><![CDATA[<p>Debugging Hibernate exceptions for users not so familiar with Hibernate can be frustrating. The following exception is a common source of error:-</p>
<p>Lets try to understand the error with a use case first. The most common scenario when this exception occurs is while trying to save a collection object (but calling save/persist on parent)</p>
<p>Consider the objects Foo has a OneToMany Bars</p>
<p>Foo.java</p>
<pre class="brush: java">
class Foo {
   List bars = new ArrayList();

  @OneToMany (mappedBy=&quot;foo&quot;)
   public List&lt;bar&gt; getBars() {
	return bars;
   }

   addBar(Bar bar) {
       bars.add(bar)
       bar.setFoo(this);
    }
}
</pre>
<p>Bar.java</p>
<pre class="brush: java">
class Bar {

   Foo foo;

   @ManyToOne(fetch=FetchType.LAZY)
   @JoinColumn (nullable=false)
   public Fund getFoo() {
	return this.foo;
   }
}
</pre>
<p>The mapping seems fine and one would expect after adding Bars via addBar (lets say a snappy ui datatable where rows need to be adding dynamically). One could think of adding via addBar() many times and once user is complete and hits on &#8220;save&#8221;, we could call<br />
entityManager.persist() or hibSession.save() and you are surprised why you got</p>
<p>org.hibernate.TransientObjectException: object references an unsaved transient instance &#8211; save the transient instance before flushing:</p>
<p>You curse Hibernate and you expect it to save all the children but it didn&#8217;t. The solution is, add a cascade to the parent. (unless you want to fire a save every time user adds a row, in which case you should save the bar first)</p>
<pre class="brush: java">
@OneToMany (mappedBy=&quot;foo&quot; cascade=cascade=CascadeType.ALL)
public List&lt;bar&gt; getBars() {
	return bars;
}
</pre>
<p>That&#8217;s it. You can now expect hibernate to cascade all persistent operations to it&#8217;s children without individually saving each</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F&amp;title=Understanding+org.hibernate.TransientObjectException%3A+object+references+an+unsaved+transient+instance+%26%238211%3B+save+the+transient+instance+before+flushing%3A" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F&amp;title=Understanding+org.hibernate.TransientObjectException%3A+object+references+an+unsaved+transient+instance+%26%238211%3B+save+the+transient+instance+before+flushing%3A" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F&amp;title=Understanding+org.hibernate.TransientObjectException%3A+object+references+an+unsaved+transient+instance+%26%238211%3B+save+the+transient+instance+before+flushing%3A" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F&amp;title=Understanding+org.hibernate.TransientObjectException%3A+object+references+an+unsaved+transient+instance+%26%238211%3B+save+the+transient+instance+before+flushing%3A" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F&amp;title=Understanding+org.hibernate.TransientObjectException%3A+object+references+an+unsaved+transient+instance+%26%238211%3B+save+the+transient+instance+before+flushing%3A', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F&amp;title=Understanding+org.hibernate.TransientObjectException%3A+object+references+an+unsaved+transient+instance+%26%238211%3B+save+the+transient+instance+before+flushing%3A" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing%2F&amp;title=Understanding+org.hibernate.TransientObjectException%3A+object+references+an+unsaved+transient+instance+%26%238211%3B+save+the+transient+instance+before+flushing%3A" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/exceptions/understanding-orghibernatetransientobjectexception-object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding java.lang.OutOfMemoryError: PermGen space</title>
		<link>http://www.reverttoconsole.com/blog/exceptions/understanding-javalangoutofmemoryerror-permgen-space/</link>
		<comments>http://www.reverttoconsole.com/blog/exceptions/understanding-javalangoutofmemoryerror-permgen-space/#comments</comments>
		<pubDate>Thu, 08 May 2008 03:30:25 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[Exceptions]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/archives/178</guid>
		<description><![CDATA[This error has been floated on every other forum. They say, it&#8217;s an incomplete garbage collection sweep where resources are not properly released upon unload/restart. The ubiquitous solution &#8220;seems&#8221; to be &#8211; Increase your heap size! I started reading more about it and this is what I gather from a lot of forums and articles: [...]]]></description>
			<content:encoded><![CDATA[<p>This error has been floated on every other forum. They say, it&#8217;s an incomplete garbage collection sweep where resources are not properly released upon unload/restart. The ubiquitous solution &#8220;seems&#8221; to be  &#8211; Increase your heap size! I started reading more about it and this is what I gather from a lot of forums and articles: -</p>
<p>So you increase the heap size in your eclipse or server run.bat with something like this: -<code><br />
-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512<br />
</code></p>
<p class="wikiPara">It does help prevent for <em>sometime</em>. But you got it again. Now, who&#8217;s the SonOfAGun, who suggested you to change the heap size?</p>
<p class="wikiPara">But think for yourself. Do you think that solves the problem? It&#8217;s like telling your girlfriend &#8211; &#8220;Increase the credit limit of your credit card,&#8221; to cope up with her shopping debts. The above solution is <em>exactly</em>, what it is. The problem is not with increasing the credit limit, but by telling your gf to clear off your bills in time or even better,<em> find a source of income that automatically pays of the debts. </em></p>
<p class="wikiPara">The Sun JVM uses the permanent generation to store class files, but the permanent generation is <em>not</em> sweeped by the garbage collector. Say, each time you redeploy your app, the permanant generation gets bigger and eventually it bursts, regardless of how big you make it. A bigger size just prolongs the inevitable.</p>
<p>You have two options. You can enable sweeping of the permanent generation.<br />
<code>-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled<br />
</code></p>
<p class="wikiPara">OR, you can switch to a JVM that does not use a permanent generation (or doesn&#8217;t use it to store class files) like the IBM JVM. It seems, you can run the IBM JVM in production for 2 years and never get an out of memory error. The problem is <em>not</em> with Tomcat or JBoss AS or Spring or Hibernate. The problem is with the garbage collector strategy not aligning with how web applications are redeployed.</p>
<p class="wikiPara">For a technical overview &#8211; Frank Kieviet explains <a href="http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java" target="_blank">quite remarkably</a> on the root cause of this error, from a class loader point of view. I recommend you read it before you have any further assumptions.</p>
<p><strong>How can you avoid it?</strong></p>
<ul>
<li>For development modes, try <em>not</em> to redeploy your war/ear frequently without stopping the server &#8212; quick and dirty. (actually this would be bad, as you&#8217;ll never find that there is a leak in your code).</li>
<li>If you really want to get to the core (<em>of your gf&#8217;s spending habits</em>), follow Frank&#8217;s blog to detect a <a href="http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java" target="_blank">classloader leak.</a></li>
<li>Switch to <a href="http://dev2dev.bea.com/jrockit/" target="_blank">JRockIt</a>, BEA&#8217;s JVM implementation, that virtually eliminates this error. (Yeah, I know you must be saying &#8212; &#8220;It&#8217;s easier to convince my gf than your Dev Manager to switch JVM&#8217;s altogether!&#8221;)</li>
<li>The most common thing in the permanent generation is classes, so one cause of OOM in permgen is that new classes get added, and old ones aren&#8217;t getting GCed. Since JProbe can show you instances of classes, and references to them, it can be helpful in finding out why they aren&#8217;t being GCed. It can be very tricky to follow all the references, though.</li>
<li>Using command-line Java options to investigate<br />
- Make sure you&#8217;re <strong>not</strong> using -Xnoclassgc or classes won&#8217;t get GCed at all<br />
- Use -XX:-UseSharedSpaces since that partitions the permgen for class sharing, and it might be simpler to track if you&#8217;re just using a single space.<br />
- Add -verbose:class -XX:+PrintGCDetails which should show both class loading and unloading, as well as the size of the permgen at GC. That may help you understand what it&#8217;s filling up with.</li>
<li>JProbe &#8211; Run your app server under JProbe, and take a heap snapshot before the OOM (which will happen sooner than normal; JProbe uses some extra permgen space since it instruments classes). From the Instances view, double-click the java.lang.Class row to bring you to the Instance Detail View. Now the painful part: look for classes you would have expected to have been GCed, and use the referrer tree, reference graph, or Leak Doctor to try to figure out why it&#8217;s still there.The bottomline is, you&#8217;ll really need to find out why <strong>that</strong> object is still around, as it&#8217;s referenced <strong><em>somewhere</em></strong>.</li>
</ul>
<p class="wikiPara">It&#8217;s not going to be easy &#8230; and if still no luck, I&#8217;d say, dump the btich and find a new gf</p>
<p class="wikiPara"><strong>Relatd Blogs: </strong></p>
<p class="wikiPara"><a href="http://www.eclipsezone.com/eclipse/forums/t77021.html" target="_blank">eclipsezone</a><br />
<a href="http://blogs.sun.com/jonthecollector/entry/presenting_the_permanent_generation" target="_blank">explaining OutOfMemoryError<br />
Jon Masamitsu&#8217;s tutorial<br />
</a></p>
<p class="wikiPara"><strong>Reference Tools</strong><br />
<a href="http://java.sun.com/performance/jvmstat/" target="_blank">jvmstat</a><strong><br />
</strong><a href="http://www.quest.com/jprobe/" target="_blank">JProbe Analyzer</a><br />
<a href="http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/17/the-unknown-generation-perm/" target="_blank">Memory Analyzer using Eclipse</a></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F&amp;title=Understanding+java.lang.OutOfMemoryError%3A+PermGen+space" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F&amp;title=Understanding+java.lang.OutOfMemoryError%3A+PermGen+space" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F&amp;title=Understanding+java.lang.OutOfMemoryError%3A+PermGen+space" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F&amp;title=Understanding+java.lang.OutOfMemoryError%3A+PermGen+space" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F&amp;title=Understanding+java.lang.OutOfMemoryError%3A+PermGen+space', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F&amp;title=Understanding+java.lang.OutOfMemoryError%3A+PermGen+space" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funderstanding-javalangoutofmemoryerror-permgen-space%2F&amp;title=Understanding+java.lang.OutOfMemoryError%3A+PermGen+space" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/exceptions/understanding-javalangoutofmemoryerror-permgen-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging java.sql.BatchUpdateException</title>
		<link>http://www.reverttoconsole.com/blog/exceptions/debugging-javasqlbatchupdateexception/</link>
		<comments>http://www.reverttoconsole.com/blog/exceptions/debugging-javasqlbatchupdateexception/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 03:24:19 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[Exceptions]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/archives/129</guid>
		<description><![CDATA[If you ever encountered a BatchUpdateException, you probably realized how frustrating it is to debug the same. Unlike a jdbc exception where the stacktrace is fine grained to database errors, Batch exceptions encapsulate all the errors within and throw this rather &#8220;useless&#8221; message. There is nothing you can do about it unless you want to [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever encountered a <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/sql/BatchUpdateException.html">BatchUpdateException</a>, you probably realized how frustrating it is to debug the same. Unlike a jdbc exception where the stacktrace is fine grained to database errors, Batch exceptions encapsulate all the errors within and throw this rather &#8220;useless&#8221; message. There is nothing you can do about it unless you want to write a Custom Exception handler (not to mention the intricacies of how a batch gets executed)</p>
<p>However if you happen to have access to the sourcecode where this piece of code gets executed, there is one simple suggestion</p>
<p>Make the batch_size = 1 and see how the same app throws up the stack trace, this time around with the actual db error</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F&amp;title=Debugging+java.sql.BatchUpdateException" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F&amp;title=Debugging+java.sql.BatchUpdateException" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F&amp;title=Debugging+java.sql.BatchUpdateException" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F&amp;title=Debugging+java.sql.BatchUpdateException" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F&amp;title=Debugging+java.sql.BatchUpdateException', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F&amp;title=Debugging+java.sql.BatchUpdateException" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Fdebugging-javasqlbatchupdateexception%2F&amp;title=Debugging+java.sql.BatchUpdateException" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/exceptions/debugging-javasqlbatchupdateexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to install breakpoint due to missing line numbers</title>
		<link>http://www.reverttoconsole.com/blog/exceptions/unable-to-install-breakpoint-due-to-missing-line-numbers/</link>
		<comments>http://www.reverttoconsole.com/blog/exceptions/unable-to-install-breakpoint-due-to-missing-line-numbers/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 23:10:40 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[Exceptions]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/archives/123</guid>
		<description><![CDATA[I came across the most bizarre error today which wasted 2 hrs of my time. While debugging the webapp via eclipse, whenever I try to set a breakpoint, I got this error: - &#8220;Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes.&#8221; I tried downloading another [...]]]></description>
			<content:encoded><![CDATA[<p>I came across the most bizarre error today which wasted 2 hrs of my time. While debugging the webapp via eclipse, whenever I try to set a breakpoint, I got this error: -<br />
<em>&#8220;Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes.&#8221; </em></p>
<p>I tried downloading another eclipse IDE, reinstalled the WTP plugin for servers. Nothing worked. Thanks to a little search on google, the solution apparently was that my ant task for compile didn&#8217;t have an option &#8220;debug=&#8221;true&#8221; (my bad!) and ant was not generating enough debug info into the class files. Changed the setting now and it works!</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F&amp;title=Unable+to+install+breakpoint+due+to+missing+line+numbers" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F&amp;title=Unable+to+install+breakpoint+due+to+missing+line+numbers" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F&amp;title=Unable+to+install+breakpoint+due+to+missing+line+numbers" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F&amp;title=Unable+to+install+breakpoint+due+to+missing+line+numbers" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F&amp;title=Unable+to+install+breakpoint+due+to+missing+line+numbers', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F&amp;title=Unable+to+install+breakpoint+due+to+missing+line+numbers" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fexceptions%2Funable-to-install-breakpoint-due-to-missing-line-numbers%2F&amp;title=Unable+to+install+breakpoint+due+to+missing+line+numbers" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/exceptions/unable-to-install-breakpoint-due-to-missing-line-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
