> Massimo! You're beautiful! It works perfectly.

Glad to hear this. Thanks for testing it out



> Just curious, what did you change?

Well, first of all I have to give credit to Otoniel Rojas. He was using the
CFC and facing the same problem with an headless server. He found the
solution and send it to me some time ago.

The change is just a single line, from:
<cfreturn createObject("java","java.awt.Button").init()>

To:
<cfreturn createObject("java","java.awt.Container").init()>

My code required a Java object that implement the ImageObserver interface.
So I used java.awt.Button. This was the bit causing problems on headless
servers. By using java.awt.Container instead, the problem is solved (at
least it seems).  java.awt.Container implement the ImageObserver interface
as well, but it's an abstract class.

----------------------------
Massimo Foti
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
----------------------------








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221609
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to