Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Unable to find the ColdFusion Data Management Service

Avatar

Level 2


Hi, I am trying to get my frirs FDS app to work with TOMCAT.
The app is the Contact Manager sample app 're-engineered' to work
in it's own folder under TOMCAT's server folder.



Anyway, I seem to be having some problems getting FLEX to
Communication with CF using TOMCAT. Below is a log extract.



Can some one tell me why I am getting: "Unable to find the
ColdFusion Data Management Service in RMI registry on 'localhost'.
Flex Data Management support may not be enabled."



The swf appears able to make a netconnection but then faults.




I am running CFMX 7.0.2 with 'Enable Flex Data Management
support' checked.



------------------ Log Starts Here
-----------------------------

10/06 18:46:43 INFO Loading configuration file
C:\apache\Tomcat\server\webapps\contactmgr\WEB-INF\flex\flex-webtier-config.xml

10/06 18:46:43 INFO Loading configuration file
C:\apache\Tomcat\server\webapps\contactmgr\WEB-INF\flex\flex-config.xml

[Flex] Starting Adobe Flex Data Services 2 Express

[Flex] Adobe Flex Data Services Build: 143451

[Flex] Endpoint my-amf created with security: None

at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/amf

[Flex] Endpoint my-polling-amf created with security: None

at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling

[Flex] Endpoint my-http created with security: None

at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/http

[Flex] Endpoint my-secure-amf created with security: None

at URI:
https://{server.name}:9100/{context.root}/messagebroker/amfsecure

[Flex] Endpoint cf-polling-amf created with security: None

at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling

[Flex] Endpoint cf-dataservice-rtmp created with security:
None

at URI: rtmp://{server.name}:2048

[Flex] Endpoint my-secure-http created with security: None

at URI:
https://{server.name}:9100/{context.root}/messagebroker/httpsecure

[Flex] [CFDataServicesAdapter] Configuring CFC adapter for
destination cfemployee

[Flex] [CFDataServicesAdapter] Configuring CFC adapter for
destination cfcontact

[Flex] [CFDataServicesAdapter] Configuring CFC adapter for
destination cfcompany

[Flex] RTMP-Server listening on port:2048

[Flex] Created worker thread: RTMP-Worker-0

[Flex] Created worker thread: RTMP-Worker-1

[Flex] Created worker thread: RTMP-Worker-2

[Flex] Created worker thread: RTMP-Worker-3

[Flex] Created worker thread: RTMP-Worker-4

[Flex] Created worker thread: RTMP-Worker-5

[Flex] Deserializing AMF/RTMP request

Version: 0

(Command method=connect (2) trxId=1.0)

(Object #0)

app = ""

flashVer = "WIN 9,0,16,0"

swfUrl = "
http://localhost:8080/contactmgr/bin/contactmgr.swf"

tcUrl = "rtmp://localhost:2048"

fpad = false

audioCodecs = 615.0

videoCodecs = 76.0

pageUrl = "
http://localhost:8080/contactmgr/bin/contactmgr.html"

objectEncoding = 3.0



[Flex] Serializing AMF/RTMP response

Version: 0

(Command method=_result (0) trxId=1)

(Object #0)

code = "NetConnection.Connect.Success"

level = "status"

details = null

description = "Connection succeeded."

objectEncoding = 3.0



[Flex] Deserializing AMF/RTMP request

Version: 3

(Command method=null (0) trxId=2.0)

null

(Typed Object #0 'flex.messaging.messages.CommandMessage')

operation = 0

messageRefType = "flex.data.messages.DataMessage"

correlationId = ""

headers = (Object #1)

DSEndpoint = "cf-dataservice-rtmp"

timestamp = 0

messageId = "C3E51C75-4638-09D3-C743-200DD1D93250"

destination = "cfcontact"

body = (Object #2)

clientId = "A9A972E3-7365-BAC5-3C11-200DD1D922DF"

timeToLive = 0



[Flex] Serializing AMF/RTMP response

Version: 3

(Command method=_result (0) trxId=2)

(Typed Object #0
'flex.messaging.messages.AcknowledgeMessage')

destination = null

headers = (Object #1)

correlationId = "C3E51C75-4638-09D3-C743-200DD1D93250"

messageId = "7C41BEA8-9519-4554-3663-975E6127412F"

timestamp = 1.160178946661E12

clientId = "A9A972E3-7365-BAC5-3C11-200DD1D922DF"

timeToLive = 0.0

body = null



[Flex] Deserializing AMF/RTMP request

Version: 3

(Command method=null (0) trxId=3.0)

null

(Typed Object #0 'flex.data.messages.DataMessage')

identity = null

body = (Array #1)

operation = 1

correlationId = ""

headers = (Object #2)

DSEndpoint = "cf-dataservice-rtmp"

timestamp = 0

messageId = "510B518A-5744-B463-6D89-200DD1E85359"

destination = "cfcontact"

body = (Ref #1)

clientId = "A9A972E3-7365-BAC5-3C11-200DD1D922DF"

timeToLive = 0



[Flex] [CFDataServicesAdapter] destination: cfcontact
invoking Fill method...

[Flex] Serializing AMF/RTMP response

Version: 3

(Command method=_error (0) trxId=3)

(Typed Object #0 'flex.messaging.messages.ErrorMessage')

rootCause = null

destination = "cfcontact"

headers = (Object #1)

correlationId = "510B518A-5744-B463-6D89-200DD1E85359"

faultString = "Unable to find the ColdFusion Data Management
Service in RMI registry on 'localhost'. Flex Data Management
support may not be enabled."

messageId = "7C41BECF-A50F-1783-0421-E6715C00A685"

faultCode = "Server.Processing"

timeToLive = 0.0

extendedData = null

faultDetail = null

clientId = null

timestamp = 1.160178946677E12

body = null



6 Replies

Avatar

Level 2
Thanks again, Pete.



I visited the site you referenced in your reply. I did find
the beta flexassemblerservice.jar and deleteed it.

but I am still experiencing the fault.



Bummer.



pwp

Avatar

Level 2
After deleting the jar file and restarting Coldfusion I am
still getting 'Service: Flex 1.5 CF Edition enabled' in the CF log.




I would expect to see 'Flex 2.0' and not 'Flex 1.5'



Thouughts?



pwp

Avatar

Level 2
I double checked to make sure JOTM is installed and working.
It is.



Do I need to use Coldfuson's services-config.xml or Flex's as
the app's root?



I read someone's solution was to use Coldfusion's but this
was during beta many months ago.



I have done everything I can think of to get this to work.



How can I debug it more precisely? Is there a way setting
Coldfusion's and FDS's logging to log the entire 'conversation'?



pwp

Avatar

Level 2
I wanted to make sure Flex can communicate with CF so I
created the helloWorld_ro app:
http://www.adobe.com/devnet/flex/articles/helloworld.html



It worked as designed. So Flex/Flash Player 9 can communicate
directly to CF.



My problem with FDS must be within Tomcat or the flex
adapter(s) employed.



I get output in Tomcat's log but not in CF's logs. The
breakdown must be between TOmcat and CF.



Can someone shed some light on the processes that happen
between Tomcat and CF during an FDS session?



pwp

Avatar

Level 2
I tried Mike Nimers Remote Object conversion to FDS app
http://www.mikenimer.com/index.cfm?mode=cat&catid=B6F726D0-4E22-1671-5765E6C3FE1D2862

and am still experiencing the same problem.



Anyone with any ideas what my problem may be?



pwp