ColdFusion MX 7.0.2 didn’t play nice with RedHat ES4

Posted on November 10, 2006 | 11 comments

I have been fighting to get ColdFusion MX 7.0.2 on a RedHat ES4 box. I did a typical install straight from the download (coldfusion-702-lin.bin) to the integration with Apache. Everything seemed fine until I started trying to connect with my Flex 2 applications. I received this error messages, which don’t show up any where on the web, except for a reference to a FDS/ColdFusion installation issue.

[Flex] Exception when invoking service: coldfusion-flashremoting-service
with message: Flex Message (flex.messaging.messages.RemotingMessage)
operation = getStatisticsByName
clientId = 34629AE6-CD0E-48A5-BFA8-852FE58DF5AD
destination = ColdFusion
messageId = EA7DE3DE-7499-ACA5-4614-D4564829D4FA
timestamp = 1163203485725
timeToLive = 1163203485725
body = null
hdr(DSEndpoint) = my-cfamf
exception: flex.messaging.MessageException:
flex/messaging/io/amf/UnknownTypeException

[Flex] Error handling message: flex.messaging.MessageException:
flex/messaging/io/amf/UnknownTypeException
incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
operation = getStatisticsByName
clientId = 34629AE6-CD0E-48A5-BFA8-852FE58DF5AD
destination = ColdFusion
messageId = EA7DE3DE-7499-ACA5-4614-D4564829D4FA
timestamp = 1163203485725
timeToLive = 1163203485725
body = null
hdr(DSEndpoint) = my-cfamf
errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
clientId = null
correlationId = EA7DE3DE-7499-ACA5-4614-D4564829D4FA
destination = ColdFusion
messageId = 34629AF3-020B-CBF3-29F7-BBB32E69FF55
timestamp = 1163203485730
timeToLive = 0
body = null
code = Server.Processing
message = flex/messaging/io/amf/UnknownTypeException
details = null
rootCause = java.lang.NoClassDefFoundError:
flex/messaging/io/amf/UnknownTypeException
body = null
extendedData = null

After many attempts of uninstalling and re-installing I got it to work. The method to the madness was that I had to:
1. Install ColdFusion MX 7.0.1 (which you can’t download directly, luckily I had a copy on another server)
2. Then install 7.0.1 updater (coldfusion-70-updater-lin.bin)
3. Then install 7.0.2 updater (coldfusion-70-updater2-lin.bin)

When the server came up using the steps above, it all worked like it should have. This is only my third install of ColdFusion MX 7.0.2 on non-development box and I was shocked I had so much trouble with this one. Hopefully this post will stand as a reminder for me, and a help for other people stuck with the same error message above.

  • http://weblogs.macromedia.com/cantrell Christian Cantrell

    Renaun,

    This is a known bug in CF 7.0.2 and will hopefully be fixed soon. Thanks for posting a work around. I’m sorry you went through so much trouble getting it to work.

    Christian

  • http://www.renaun.com Renaun Erickson

    Do you know what the issues is?

    I couldn’t find anything on it, so where is the list of known bugs that I might be able to check next time…?

  • http://blog.eshangrao.com feiy

    I am having the same problem!!!!!

    u can fixed by :

    wget http://labs.eshangrao.com/flex/2/flex-messaging-patch-byFeiy.jar
    cp flex-messaging-patch-byFeiy.jar\
    $coldfusion/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/

    more info view :http://blog.eshangrao.com/index.php/2006/12/03/303-redhatflash-remotingcfcunknowntypeexception

  • http://blog.eshangrao.com feiy

    bye the way:
    please restart coldfusion server after cp the “flex-messaging-patch-byFeiy.jar”

  • http://www.renaun.com Renaun Erickson

    I forgot to say thanks for posting Christian, at least I know its a CF bug and not something else.

  • http://www.johnwilker.com John Wilker

    Dude! Thanks for posting this. Sounds like the trouble we’re having. one of three prod boxes throws this error! Glad you wrote it up, thanks!

  • http://www.johnwilker.com John Wilker

    This didn’t occur across the board, right? Your previous installations didn’t have trouble?

    Asking since, as I said 1 of our 3 prod boxes is afflicted, the others, not.

    Thanks

  • http://www.renaun.com Renaun Erickson

    Not sure, I didn’t have problems on a Fedora Core box but just with an ES4 one. So not sure what the differences might be, are all 3 of your production boxes the same OS?

  • Ryan

    I am running into this same issue. I don’t have a 7.01 installer, has anyone else solved this problem another way? Or can someone provide me with the 7.01 installer?

  • Tero Pikala

    Thanks for this. Saved my day.

    This solved issue on Fedora Core 5 box which I’m using for development at home.

  • Tom

    Anyone know if a hotfix was ever released to fix this?

    TIA