<?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>JExcelAPI | LogikDevelopment</title>
	<atom:link href="https://www.logikdev.com/tag/jexcelapi/feed/" rel="self" type="application/rss+xml" />
	<link>https://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>Tue, 25 Apr 2017 13:57:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>WritableFont doesn&#8217;t like to be static!</title>
		<link>https://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/</link>
					<comments>https://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Mon, 18 Jan 2010 18:24:21 +0000</pubDate>
				<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">https://www.logikdev.com/?p=265</guid>

					<description><![CDATA[<p>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 [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/">WritableFont doesn’t like to be static!</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></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>It appears that this exception occurs only when you try to generate more than one Excel spreadsheet!  How strange is that! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f62f.png" alt="😯" class="wp-smiley" style="height: 1em; max-height: 1em;" /><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="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p><p>The post <a href="https://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/">WritableFont doesn’t like to be static!</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2010/01/18/writablefont-doesnt-like-to-be-static/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
	</channel>
</rss>
