<?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>LogikDevelopment &#187; JExcelAPI</title>
	<atom:link href="http://www.logikdev.com/tag/jexcelapi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logikdev.com</link>
	<description>&#34;Il n&#039;y a pas de problème, il n&#039;y a que des solutions. L&#039;esprit de l&#039;homme invente ensuite le problème.&#34; André Gide</description>
	<lastBuildDate>Fri, 27 Aug 2010 08:54:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WritableFont doesn&#8217;t like to be static!</title>
		<link>http://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/</link>
		<comments>http://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 18:24:21 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[ArrayIndexOutOfBoundsException]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[JExcelAPI]]></category>
		<category><![CDATA[JXL]]></category>
		<category><![CDATA[WritableFont]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=265</guid>
		<description><![CDATA[While using the tool JExcelAPI within my Java application to generate Excel spreadsheets, I got the following exception: java.lang.ArrayIndexOutOfBoundsException: 5 at jxl.biff.IndexMapping.getNewIndex(IndexMapping.java:68) at jxl.biff.FormattingRecords.rationalize(FormattingRecords.java:388) at jxl.write.biff.WritableWorkbookImpl.rationalize(WritableWorkbookImpl.java:988) at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:692) ... It appears that this exception occurs only when you try to generate more than one Excel spreadsheet! How strange is that! After a bit of investigation, [...]]]></description>
			<content:encoded><![CDATA[<p>While using the tool <a href="http://jexcelapi.sourceforge.net/"><strong>JExcelAPI</strong></a> within my Java application to generate Excel spreadsheets, I got the following exception:</p>
<pre>java.lang.ArrayIndexOutOfBoundsException: 5
	at jxl.biff.IndexMapping.getNewIndex(IndexMapping.java:68)
	at jxl.biff.FormattingRecords.rationalize(FormattingRecords.java:388)
	at jxl.write.biff.WritableWorkbookImpl.rationalize(WritableWorkbookImpl.java:988)
	at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:692)
	...</pre>
<p><br/>It appears that this exception occurs only when you try to generate more than one Excel spreadsheet!  How strange is that! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_eek.gif' alt='8-O' class='wp-smiley' /><br />
After a bit of investigation, it seems that the problem comes from the use of the static modifier with a <code>jxl.write.WritableFont</code> variable.</p>
<p>I unfortunately don&#8217;t have the time to check the JExcelAPI code source to understand the root cause.<br />
So my advice would be: &#8220;if you get EXACTLY the same stack trace, simply delete any static modifier you used with the <code>WritableFont</code> variables&#8221;. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
