Mach II 1.9 hangs on CF9.0.1 (w/HF2) on OS X 10.7 (Lion)

25 views
Skip to first unread message

Tony G

unread,
Sep 18, 2011, 1:32:34 PM9/18/11
to Mach-II for CFML
Hello,
I just received a new Macbook Pro at work which came with Mac OX 10.7
(Lion) pre-installed. I was a bit concerned because I'd already heard
that people were running into issues running CF9.0.1 on Lion. However,
just yesterday, a hotfix came out to address those issues:

http://blogs.adobe.com/coldfusion/2011/09/17/osx-lion-is-now-supported-with-the-release-of-chf2-for-9-0-1/

In the comments of the post, though, it can be seen that some issues
still remain. I'm pretty sure I've found another one specific to Mach-
II (or maybe related to the other remaining bugs) but I'm not sure
what's causing it.
I'm running CF9.0.1 (with all the hotfixes) on Lion in mutiserver
configuration and any time I try to run any Mach-II 1.9 application it
just hangs and doesn't load the app. I've got some FW/1 and ColdBox
apps as well and those seem to be running fine. I've tried just
running the Mach-II skeleton app and still no go (just hangs). I'm not
seeing any errors in the logs and the MACHII_ONLOAD_REQUEST_TIMEOUT
setting seems to be ignored. The browser just keeps trying to load the
app. A couple of times I just let it go and eventually all of my local
CF sites became unresponsive and the CF administrator is just a blank
page and I need to restart CF.
Has anyone else run into this and/or have any suggestions?

thanks,
Tony

Sumit Verma

unread,
Sep 18, 2011, 11:54:51 PM9/18/11
to mach-ii-for...@googlegroups.com
Looks like the solution is pretty simple. You need to install Java. Lion doen't come with Java preinstalled.



Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria



--
To post to this group, send email to mach-ii-for...@googlegroups.com
For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Brian Klaas

unread,
Sep 19, 2011, 9:10:19 AM9/19/11
to mach-ii-for...@googlegroups.com
I don't think that's the solution. Tony mentioned that he has other sites that use FW/1 and ColdBox working locally when running CF 9.0.1 HF2 under Lion. 

Matthew Woodward

unread,
Sep 19, 2011, 10:45:38 AM9/19/11
to mach-ii-for...@googlegroups.com
On Mon, Sep 19, 2011 at 6:10 AM, Brian Klaas <brian...@gmail.com> wrote:
I don't think that's the solution. Tony mentioned that he has other sites that use FW/1 and ColdBox working locally when running CF 9.0.1 HF2 under Lion. 

That was my understanding as well.

Unfortunately I don't run a Mac but hopefully someone else on the list who has Lion can jump in and help.

--
Matthew Woodward
ma...@mattwoodward.com
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

Tony G

unread,
Sep 19, 2011, 11:31:06 AM9/19/11
to Mach-II for CFML
Hey Guys,
Sumit -- I saw that post by Sargas, but my problem was a bit
different. It seems like he saw the spinning beach ball and in my case
the browser just hung. Also, it seems like he upgraded to Lion and was
still using his pre-Lion java. Since the new Mac notebooks don't
include java, one of the first things I had to do was install the Lion
version of java that he was talking about.
However, his blog post did suggest that it is possible to run Mach-II
on CF9 in Lion. It's possible that he was running CF in the "Server
configuration". From what I've been reading, most of the CF9-Lion bugs
have affected people trying to run it in multi-server mode (as I am).
So what I ended up doing is installing MAMP to run another "instance"
of Apache on a different port and installed CF9 on that in single
server mode and whallah -- my MachII app loaded up!
Hopefully the remaining CF9 compatibility bugs will be ironed out soon
so I don't have to run a separate instance of CF on my laptop just for
my Mach-II apps. But for now this will have to do.

Thanks to everyone for their feedback.
-Tony

On Sep 19, 10:45 am, Matthew Woodward <m...@mattwoodward.com> wrote:
> On Mon, Sep 19, 2011 at 6:10 AM, Brian Klaas <brian.kl...@gmail.com> wrote:
> > I don't think that's the solution. Tony mentioned that he has other sites
> > that use FW/1 and ColdBox working locally when running CF 9.0.1 HF2 under
> > Lion.
>
> That was my understanding as well.
>
> Unfortunately I don't run a Mac but hopefully someone else on the list who
> has Lion can jump in and help.
>
> --
> Matthew Woodward
> m...@mattwoodward.comhttp://blog.mattwoodward.com

Matthew Woodward

unread,
Sep 19, 2011, 11:33:24 AM9/19/11
to mach-ii-for...@googlegroups.com
On Mon, Sep 19, 2011 at 8:31 AM, Tony G <tny...@gmail.com> wrote:
Hopefully the remaining CF9 compatibility bugs will be ironed out soon
so I don't have to run a separate instance of CF on my laptop just for
my Mach-II apps. But for now this will have to do.

Thanks for the additional info--keep us posted. It's very bizarre to me that there would be issues with CF 9 on Lion specifically since under the hood it's all Java, so there must be some issue with the Apple version of Java and JRun that's causing the problem. Interesting.
-- 
Matthew Woodward
ma...@mattwoodward.com

Sumit Verma

unread,
Sep 19, 2011, 12:01:56 PM9/19/11
to mach-ii-for...@googlegroups.com
Well, What's really interesting is why it works on the standard install and not in Multi-server (J2EE) install...


Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria


--

Kurt Wiersma

unread,
Sep 19, 2011, 12:25:30 PM9/19/11
to mach-ii-for...@googlegroups.com
I am running Mach II 1.9 BER apps using OS X Lion and have not seen
this issue. I have seen several other issues with ACF on Lion. Namely
cfdocument hangs and the server settings page hangs well. I understand
that Adobe engineers are already aware of those issues. I have had to
restart my local CF instance several times for other hangs so I don't
think this is a Mach II issue.

--Kurt

Tony G

unread,
Sep 19, 2011, 1:14:12 PM9/19/11
to Mach-II for CFML
Kurt -
I agree -- the things I've been seeing are definitely CF9/Lion
related. On my Mac Pro at home I'm running CF9 on Snow Leopard an I'm
not having any issues with Mach-II or any other CFML app. So you're
running CF9.0.1 in multi-server mode on Lion and not seeing these
issues with hanging on Mach-II apps?

-Tony

On Sep 19, 12:25 pm, Kurt Wiersma <kwier...@gmail.com> wrote:
> I am running Mach II 1.9 BER apps using OS X Lion and have not seen
> this issue. I have seen several other issues with ACF on Lion. Namely
> cfdocument hangs and the server settings page hangs well. I understand
> that Adobe engineers are already aware of those issues. I have had to
> restart my local CF instance several times for other hangs so I don't
> think this is a Mach II issue.
>
> --Kurt
>
>
>
>
>
>
>
> On Mon, Sep 19, 2011 at 11:01 AM, Sumit Verma <su...@blogonria.com> wrote:
> > Well, What's really interesting is why it works on the standard install and
> > not in Multi-server (J2EE) install...
>
> > Sumit Verma
> > Partner / Vice President | ten24, LLC
> > office: 877.886.5806 x 103 | mobile: 617.290.8214
> >www.ten24web.com|www.linkedin.com/in/sverma| twitter: blogonria
>
> > On Mon, Sep 19, 2011 at 11:33 AM, Matthew Woodward <m...@mattwoodward.com>
> > wrote:
>
> >> On Mon, Sep 19, 2011 at 8:31 AM, Tony G <tnyr...@gmail.com> wrote:
>
> >>> Hopefully the remaining CF9 compatibility bugs will be ironed out soon
> >>> so I don't have to run a separate instance of CF on my laptop just for
> >>> my Mach-II apps. But for now this will have to do.
>
> >> Thanks for the additional info--keep us posted. It's very bizarre to me
> >> that there would be issues with CF 9 on Lion specifically since under the
> >> hood it's all Java, so there must be some issue with the Apple version of
> >> Java and JRun that's causing the problem. Interesting.
> >> --
> >> Matthew Woodward
> >> m...@mattwoodward.com

Kurt Wiersma

unread,
Sep 19, 2011, 2:12:34 PM9/19/11
to mach-ii-for...@googlegroups.com
> So you're running CF9.0.1 in multi-server mode on Lion and not seeing these
> issues with hanging on Mach-II apps?

Correct, I have only seen hanging when I do something like cfdocument.

If you think it might be related to the new friendly app start screen
then try running under Mach II 1.8.1 final and see if that helps.

--Kurt

Tony G

unread,
Sep 19, 2011, 8:59:48 PM9/19/11
to Mach-II for CFML
Thanks for the info Kurt. I'll report back if I find anything.

-T
> > For more options and to unsubscribe, visit this group athttp://groups.google.com/group/mach-ii-for-coldfusion?hl=en

Sumit Verma

unread,
Jan 19, 2012, 2:53:51 AM1/19/12
to mach-ii-for...@googlegroups.com
Ok, so since I got an new MAC with Lion on it, this needed to be resolved. I suspected it to be a Java issue and it sure was.

Removing this line from HTMLHelperProperty fixes the issue:

<cfset variables.AWT_TOOLKIT = CreateObject("java", "java.awt.Toolkit").getDefaultToolkit() />


Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria


Tony G

unread,
Jan 19, 2012, 1:09:59 PM1/19/12
to Mach-II for CFML
Thanks Sumit. That fixed it. I'm sure glad I don't need to run my Mach-
II apps on a separate CF instance anymore!

-Tony

On Jan 19, 2:53 am, Sumit Verma <su...@blogonria.com> wrote:
> Ok, so since I got an new MAC with Lion on it, this needed to be resolved.
> I suspected it to be a Java issue and it sure was.
>
> Removing this line from HTMLHelperProperty fixes the issue:
>
> <cfset variables.AWT_TOOLKIT = CreateObject("java",
> "java.awt.Toolkit").getDefaultToolkit() />
>
> Sumit Verma
> Partner / Vice President | ten24, LLC
> office: 877.886.5806 x 103 | mobile: 617.290.8214www.ten24web.com|www.linkedin.com/in/sverma| twitter: blogonria
>
>
>
>
>
>
>
> On Mon, Sep 19, 2011 at 2:12 PM, Kurt Wiersma <kwier...@gmail.com> wrote:
> > > So you're running CF9.0.1 in multi-server mode on Lion and not seeing
> > these
> > > issues with hanging on Mach-II apps?
>
> > Correct, I have only seen hanging when I do something like cfdocument.
>
> > If you think it might be related to the new friendly app start screen
> > then try running under Mach II 1.8.1 final and see if that helps.
>
> > --Kurt
>

Peter J. Farrell

unread,
Jan 19, 2012, 1:14:03 PM1/19/12
to mach-ii-for...@googlegroups.com
Sumit Verma said the following on 01/19/2012 01:53 AM:

> Ok, so since I got an new MAC with Lion on it, this needed to be
> resolved. I suspected it to be a Java issue and it sure was.
>
> Removing this line from HTMLHelperProperty fixes the issue:
>
> <cfset variables.AWT_TOOLKIT = CreateObject("java",
> "java.awt.Toolkit").getDefaultToolkit() />
>
* This seems very odd - what JVM are you using?
* There are some major problems with Java7 on Mac - are you running that?
* Are you using the official one or something like JRocket?
* Are you running with headless=true in your JVM config?

More than likely it's related to this bug on the Apple forums:

http://lists.apple.com/archives/java-dev/2011/Aug/msg00061.html

.pjf

--
Peter J. Farrell
pe...@mach-ii.com
p...@maestropublishing.com
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

Peter J. Farrell

unread,
Jan 19, 2012, 1:15:09 PM1/19/12
to mach-ii-for...@googlegroups.com
Tony G said the following on 01/19/2012 12:09 PM:

> Thanks Sumit. That fixed it. I'm sure glad I don't need to run my Mach-
> II apps on a separate CF instance anymore
Tony, are you running on a MAC too? What JVM version are you using?

Sumit Verma

unread,
Jan 19, 2012, 1:23:48 PM1/19/12
to mach-ii-for...@googlegroups.com
Vanilla CF 9.0.1 Mulit-server install (JVM 1.6). It does install with headless=true in JVM.


Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria




--
To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com

Peter J. Farrell

unread,
Jan 19, 2012, 1:30:07 PM1/19/12
to mach-ii-for...@googlegroups.com
Sumit Verma said the following on 01/19/2012 12:23 PM:

> Vanilla CF 9.0.1 Mulit-server install (JVM 1.6). It does install with
> headless=true in JVM.
Hrm.... there is a bug with AWT on Mac:

http://holistictendencies.wordpress.com/2011/10/13/truly-headless-awt-operation-on-macos-x/

-Djava.awt.headless=true
-Dawt.toolkit=sun.awt.HToolkit

You need to change to use "sun.awt.HToolkit" directive. The
"apple.awt.CToolkit" has bugs in it.

Can you try adding that additional directive and adding that AWT code
back in? I don't have a MAC so I need your help testing out the fix
that we need to add to the documentation.

Thanks for your help in advance!

.Peter

Sumit Verma

unread,
Jan 19, 2012, 1:53:58 PM1/19/12
to mach-ii-for...@googlegroups.com
Yup, That does it!!! It actually fixes other issues CF 9 has on OSX Lion. Like I can now click on the info Icon in CF admin to pull up setting summary. It makes sense because setting summary uses awt to list printers.

Thanks Peter.

Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria


Peter J. Farrell

unread,
Jan 19, 2012, 1:56:58 PM1/19/12
to mach-ii-for...@googlegroups.com
Sumit Verma said the following on 01/19/2012 12:53 PM:

> Yup, That does it!!! It actually fixes other issues CF 9 has on OSX
> Lion. Like I can now click on the info Icon in CF admin to pull up
> setting summary. It makes sense because setting summary uses awt to
> list printers.
Awesome! I will update the Mach-II documentation to reflect this and I
will blog about it.

Could you file this as a suggestion on ACF bug tracker as well? If you
post a link, I will vote for it.

.pjf

Sumit Verma

unread,
Jan 19, 2012, 2:12:54 PM1/19/12
to mach-ii-for...@googlegroups.com
Logging the bug for ACF won't matter. Read this:



Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria


Kurt Wiersma

unread,
Jan 19, 2012, 2:56:48 PM1/19/12
to mach-ii-for...@googlegroups.com
Nice find! This jvm config change also allowed me to finally see the
CF Admin info page working on OS X 10.7.

--Kurt

>> mach-ii-for...@googlegroups.com


>> For more options and to unsubscribe, visit this group at
>> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>>
>> SVN: http://svn.mach-ii.com/machii/
>> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
>
>

> --
> To post to this group, send email to mach-ii-for...@googlegroups.com

Peter J. Farrell

unread,
Jan 19, 2012, 2:58:29 PM1/19/12
to mach-ii-for...@googlegroups.com
Kurt Wiersma said the following on 01/19/2012 01:56 PM:

> Nice find! This jvm config change also allowed me to finally see the
> CF Admin info page working on OS X 10.7.
http://blog.maestropublishing.com/adobe-coldfusion-9-on-mac-lion-fix-for-hangin

Blogged. Any other features that weren't working that now work?

Kurt Wiersma

unread,
Jan 19, 2012, 3:06:02 PM1/19/12
to mach-ii-for...@googlegroups.com
More good news this also allowed me to use cfdocument again for
generating PDFs which was the only other issue I was running into on
Lion!

--Kurt

Peter J. Farrell

unread,
Jan 19, 2012, 3:09:40 PM1/19/12
to mach-ii-for...@googlegroups.com
Kurt Wiersma said the following on 01/19/2012 02:06 PM:

> More good news this also allowed me to use cfdocument again for
> generating PDFs which was the only other issue I was running into on
> Lion!
1+++++!

Sumit Verma

unread,
Jan 19, 2012, 3:31:39 PM1/19/12
to mach-ii-for...@googlegroups.com
Yes! Peter looks like you found the holy grail (atleast for CF OSX Lion users) :-)

It took me 4 hrs last night to nail it down to that line of code, but now I can say it was worth it!

Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria


--
To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com

Peter J. Farrell

unread,
Jan 19, 2012, 3:47:36 PM1/19/12
to mach-ii-for...@googlegroups.com
Sumit Verma said the following on 01/19/2012 02:31 PM:

> Yes! Peter looks like you found the holy grail (atleast for CF OSX
> Lion users) :-)
>
> It took me 4 hrs last night to nail it down to that line of code, but
> now I can say it was worth it!
>
Great! Due credit is due... I updated my blog post thanking you for
tracking the offending AWT line of code.

.pjf

Reply all
Reply to author
Forward
0 new messages