<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>newschuyl - Java</title>
			<link>http://www.mischefamily.com/nathan/index.cfm</link>
			<description>a blog by nathan mische</description>
			<language>en-us</language>
			<pubDate>Mon, 06 Sep 2010 20:19:22-0400</pubDate>
			<lastBuildDate>Fri, 13 Aug 2010 11:28:00-0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>nmische@gmail.com</managingEditor>
			<webMaster>nmische@gmail.com</webMaster>
			
			<item>
				<title>ImageCrop: The rectangular crop area must not be outside the image</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2010/8/13/ImageCrop-The-rectangular-crop-area-must-not-be-outside-the-image</link>
				<description>
				
				Today I was resizing and cropping some images with ColdFusion when I ran into the following issue. After resizing the image using ImageScaleToFit(), ImageCrop() would throw an error stating that &quot;The rectangular crop area must not be outside the image.&quot; I was able to confirm that the crop area was not outside of the image, so I was a little perplexed. Then I found the following listed as a &lt;a href=&quot;http://java.sun.com/products/java-media/jai/jai-bugs.html&quot;&gt;known JAI bug&lt;/a&gt;:  [More]
				</description>
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Fri, 13 Aug 2010 11:28:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2010/8/13/ImageCrop-The-rectangular-crop-area-must-not-be-outside-the-image</guid>
				
			</item>
			
			<item>
				<title>OpenID4CF Updated To Fix Potential Security Issue</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2010/7/18/OpenID4CF-Updated-To-Fix-Potential-Security-Issue</link>
				<description>
				
				Last week I gave a 30 minute introduction to &lt;a href=&quot;http://openid.net&quot;&gt;OpenID&lt;/a&gt; at our monthly developer tech talk lunch. Soon after the talk my co-worker &lt;a href=&quot;http://www.peregrinesalon.com/&quot;&gt;Tim Allen&lt;/a&gt; sent me &lt;a href=&quot;http://www.computerworld.com/s/article/9179224/Researchers_Authentication_crack_could_affect_millions&quot;&gt;this article&lt;/a&gt; on a recently discovered security vulnerability in most open source OpenID implementations.

I was particularly interested because I maintain &lt;a href=&quot;http://openid4cf.riaforge.org/&quot;&gt;OpenID4CF&lt;/a&gt;, which is based on the &lt;a href=&quot;http://code.google.com/p/openid4java/&quot;&gt;OpenID4Java&lt;/a&gt; library. So I did a little more research into the issue and asked about it on the OpenID4Java mailing list. As it turns out OpenID4Java is potentially vulnerable to this attack, but a user on the list was able to give some advice on how to patch the library based on a fix committed to &lt;a href=&quot;http://code.google.com/p/jopenid/&quot;&gt;JOpenID&lt;/a&gt;. 

Now I don&apos;t really know how exploitable this vulnerability is, but given how simple the fix was I went ahead and &lt;a href=&quot;http://openid4cf.riaforge.org/index.cfm?event=page.svnchangelist&amp;revision=7&quot;&gt;patched&lt;/a&gt; the fork of OpenID4Java I package for OpenID4CF and posted it to RIAForge. Hopefully OpenID4Java will be patched shortly, but in the meantime you can use the version I include with OpenID4CF if you want to protect against this potential vulnerability. 
				</description>
				
				<category>Security</category>				
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Sun, 18 Jul 2010 13:36:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2010/7/18/OpenID4CF-Updated-To-Fix-Potential-Security-Issue</guid>
				
			</item>
			
			<item>
				<title>OpenID And ColdFusion</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2010/4/16/OpenID-And-ColdFusion</link>
				<description>
				
				Recently I wanted to investigate building an OpenID identity provider in ColdFusion. While there are a few OpenID consumer libraries out there, I didn&apos;t really find any ColdFusion implementations for an OpenID server. Plus, given that OpenID is an authentication protocol there are heightened security considerations, so I wanted something that was well tested and widely used. This lead me to the &lt;a href=&quot;http://code.google.com/p/openid4java/&quot;&gt;OpenID4Java&lt;/a&gt; project. Looking at the documentation and source for the project there appeared to be pretty straight forward implementations for both an OpenID provider and consumer via the ServerManager and ConsumerManager classes so I began to port the sample JSP applications over to ColdFusion. That is were my problems began.  [More]
				</description>
				
				<category>Security</category>				
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Fri, 16 Apr 2010 12:46:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2010/4/16/OpenID-And-ColdFusion</guid>
				
			</item>
			
			<item>
				<title>Cell Style Caching Issue With POIUtility</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2008/9/17/Cell-Style-Caching-Issue-With-POIUtility</link>
				<description>
				
				I&apos;ve been using Ben Nadel&apos;s &lt;a href=&quot;http://www.bennadel.com/projects/poi-utility.htm&quot; target=&quot;_blank&quot;&gt;POIUtilty&lt;/a&gt; for a while now. I really like the custom tag library he has built for building Excel spreadsheets, particularly the way he has abstracted the POI cell formatting options out to CSS. Last week however, I ran into a strange issue while running the latest release on CFMX 7. Cell styles were not being properly applied and it seemed to be related to the CSS style caching functionality. What was even more strange was that the code ran fine on CF 8. Below are samples of the correctly styled spreadsheet genrated by CF 8 and the incorrectly formatted spreadsheet generated by CF 7.  [More]
				</description>
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Wed, 17 Sep 2008 12:57:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2008/9/17/Cell-Style-Caching-Issue-With-POIUtility</guid>
				
			</item>
			
			<item>
				<title>Google to Add Presentations</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2007/4/17/Google-to-Add-Presentations</link>
				<description>
				
				A while ago I &lt;a href=&quot;http://www.mischefamily.com/nathan/index.cfm/2006/5/7/Java-Libraries-for-PowerPoint-Automation-in-ColdFusion&quot;&gt;posted&lt;/a&gt; about a couple of Java libraries for working with Powerpoint presentations. Looks like Google has acquired  one of the companies I mentioned, &lt;a href=&quot;http://www.tonicsystems.com/&quot; target=&quot;_blank&quot;&gt;Tonic Systems&lt;/a&gt;, and will be &lt;a href=&quot;http://googleblog.blogspot.com/2007/04/were-expecting.html&quot; target=&quot;_blank&quot;&gt;adding presentations to their Docs &amp; Spreadsheets offerings&lt;/a&gt;. I think Google has done a great job with their Docs &amp; Spreadsheets. Given the power of the Tonic software I have no doubt Google will come up with another awesome application. 
				</description>
				
				<category>Misc</category>				
				
				<category>Java</category>				
				
				<pubDate>Tue, 17 Apr 2007 21:28:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2007/4/17/Google-to-Add-Presentations</guid>
				
			</item>
			
			<item>
				<title>Daylight Saving Time Revisited</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2007/4/11/Daylight-Saving-Time-Revisited</link>
				<description>
				
				I&apos;ve posted about DST issues in the past, but we recently had an issue at work so I thought I&apos;d share my findings again. According to the Adobe Technote &lt;a href=&quot;http://www.adobe.com/go/tn_18310&quot; target=&quot;_blank&quot;&gt;&quot;Working with daylight savings [&lt;i&gt;sic&lt;/i&gt;] time in ColdFusion MX&quot;&lt;/a&gt;: 

&lt;blockquote&gt; 
The current time is calculated correctly in Macromedia ColdFusion MX and higher, regardless of whether the Automatically Adjust Clock for Daylight Saving Changes
option is enabled or disabled in the computer&apos;s Control panel Date/Time Properties. In previous versions of ColdFusion, the current time would be offset
by one hour when this option was disabled. &lt;/blockquote&gt;  [More]
				</description>
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Wed, 11 Apr 2007 21:49:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2007/4/11/Daylight-Saving-Time-Revisited</guid>
				
			</item>
			
			<item>
				<title>My First  SWT Application</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2007/3/21/My-First--SWT-Application</link>
				<description>
				
				Here at work we have a process which indexes content into a special database for concept searching. This process was originally built as a ColdFusion Java CFX using the vendor&apos;s Java API. However due to the large amount of data we now need to index the job was taking forever and bringing down our ColdFusion server in the process. So I was asked to take a look and see what could be done. I quickly determined that there was absolutely no reason we needed to run this job in ColdFuision (on our production servers nonetheless) so I decided to build a little desktop utility to handle it. And since I have been messing around with Eclipse plugins I decided to build it in Java using SWT. (SWT is a Java toolkit from Eclipse that lets you access the OS&apos;s native UI. It is also what makes Eclipse look and run so much better than most other desktop Java applications written using Swing.)  [More]
				</description>
				
				<category>Java</category>				
				
				<pubDate>Wed, 21 Mar 2007 17:32:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2007/3/21/My-First--SWT-Application</guid>
				
			</item>
			
			<item>
				<title>WSDL2Java Batch File</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2007/2/13/WSDL2Java-Batch-File</link>
				<description>
				
				The other day I posted about the WSDL2Java utility. Well, here is the code for a Windows batch file which will set up the proper classpath to run the Axis WSDL2Java utility.

&lt;pre&gt;
&lt;code&gt;

@echo off

SET TMPCLASSPATH=%CLASSPATH%

SET CFROOT=C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\

SET CLASSPATH=.

SET CLASSPATH=%CLASSPATH%;%CFROOT%axis.jar

SET CLASSPATH=%CLASSPATH%;%CFROOT%jaxrpc.jar

SET CLASSPATH=%CLASSPATH%;%CFROOT%saaj.jar

SET CLASSPATH=%CLASSPATH%;%CFROOT%commons-logging-1.0.2.jar

SET CLASSPATH=%CLASSPATH%;%CFROOT%commons-discovery-0.2.jar

SET CLASSPATH=%CLASSPATH%;%CFROOT%wsdl4j- 1.5.1.jar

SET CLASSPATH=%CLASSPATH%;%CFROOT%xercesImpl.jar

SET CLASSPATH=%CLASSPATH%;%CFROOT%log4j.jar

cls

java org.apache.axis.wsdl.WSDL2Java -v -o %1 %2

SET CLASSPATH=%TMPCLASSPATH%

&lt;/code&gt;
&lt;/pre&gt;

To use just pass in an output directory and the WSDL URL.

&lt;pre&gt;

WSDL2Java C:\output http://www.somesite.com/service.asmx?wsdl

&lt;/pre&gt;

It is based on one I saw &lt;a href=&quot;http://mail-archives.apache.org/mod_mbox/ws-axis-user/200211.mbox/%3C20021118150408.25524.qmail@web11404.mail.yahoo.com%3E&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;. You may need to change the CFROOT variable depending on your ColdFusion installation.

&lt;h3&gt;Update&lt;/h3&gt;

Adobe has a couple of TechNotes on this subject with specific instructions for various CFMX versions and installations:

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=eaf0396&quot;&gt; Creating webservice stubs with wsdl2java in ColdFusion MX 7&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=ea87b65&quot;&gt; Creating webservice stubs with wsdl2java in ColdFusion MX 6.1&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt; 
				</description>
				
				<category>Java</category>				
				
				<pubDate>Tue, 13 Feb 2007 21:27:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2007/2/13/WSDL2Java-Batch-File</guid>
				
			</item>
			
			<item>
				<title>DST Confusion</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2006/11/8/DST-Confusion</link>
				<description>
				
				Last week I posted about some Java alternatives to CFDIRECTORY and ConvertDate. I posted a snippet of code which attempted to show how to get the DateLastModified information for files using Java API calls. One of my readers pointed out that the code I posted may not return the correct time given that I was applying the current DST offset to the lastModified value and not the DST offset in effect when the file was written. 

I quickly updated my post to attempt to use the DST offset in effect when the file was modified. However after testing I found that this snippet was not returning the correct lastModified time.  [More]
				</description>
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Wed, 08 Nov 2006 20:22:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2006/11/8/DST-Confusion</guid>
				
			</item>
			
			<item>
				<title>Java Alternatives to CFDIRECTORY and ConvertDate</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2006/11/2/Java-Alternatives-to-CFDIRECTORY-and-ConvertDate</link>
				<description>
				
				On Tuesday I was having a discussion with a coworker and somehow it came up that he was having issues using cfdirectory on a rather large directory of log files. I pointed him to Mark Kruger&apos;s &lt;a href=&quot;http://www.coldfusionmuse.com/index.cfm/2006/10/26/Java.directory.list&quot;&gt;Java Based Directory List&lt;/a&gt; blog post which I had just read last week. He took a look and sent back the following snippet:  [More]
				</description>
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Thu, 02 Nov 2006 23:09:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2006/11/2/Java-Alternatives-to-CFDIRECTORY-and-ConvertDate</guid>
				
			</item>
			
			<item>
				<title>Java Libraries for PowerPoint Automation in ColdFusion</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2006/5/7/Java-Libraries-for-PowerPoint-Automation-in-ColdFusion</link>
				<description>
				
				&lt;p&gt;A client of mine recently asked me to take a look at a Java library they are planning to use for PowerPoint automation. I&apos;ve done PowerPoint automation projects in CF in the past using COM, &lt;a href=&quot;http://support.microsoft.com/?kbid=257757&quot;&gt;even thought Microsoft doesn&apos;t recommend it&lt;/a&gt;, but I had never heard of using Java for Office automation.&lt;/p&gt;

&lt;p&gt;The library the my client is currently evaluating is called &lt;a href=&quot;http://www.aspose.com/Products/Aspose.Slides/Default.aspx&quot;&gt;Aspose.Slides&lt;/a&gt; from Aspose Pty Ltd. Aspose seems to make an entire suite of products for Office automation for both Java and .Net which, depending on how well the Slides product works, may be a good thing to know.&lt;/p&gt;

&lt;p&gt;However, it turns out that Aspose.Slides isn&apos;t the only commercial Java library for PowerPoint automation. A google search lead me to another company, &lt;a href=&quot;http://tonicsystems.com/&quot;&gt;Tonic Systems&lt;/a&gt;, which makes several products under the TonicPoint line for performing various PowerPoint related tasks via Java. They bill themselves as Java PowerPoint Specialists so this may be another library to keep in mind if you find you have to do PowerPoint work via ColdFusion.&lt;/p&gt;

&lt;p&gt;I&apos;ll try to post more on both of these libraries if and when I get a chance to work with them.&lt;/p&gt; 
				</description>
				
				<category>ColdFusion</category>				
				
				<category>Java</category>				
				
				<pubDate>Sun, 07 May 2006 22:28:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2006/5/7/Java-Libraries-for-PowerPoint-Automation-in-ColdFusion</guid>
				
			</item>
			</channel></rss>