3 Replies Latest reply on Nov 2, 2006 10:11 AM by pwp69

    Problem with remoteObject...

    pwp69 Level 1

      Hi, I am working the the HelloWorld_ro and HelloWorld_ws apps. I can get the ws app to work, however, when I try the remoteObject app I get the following error thrown:

      (mx.rpc::Fault)#0
      errorID = 0
      faultCode = "Client.Error.MessageSend"
      faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed"
      faultString = "Send failed"
      message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed'"
      name = "Error"
      rootCause = (Object)#1
      code = "NetConnection.Call.Failed"
      description = "HTTP: Failed"
      details = " http://websrvr01/flex2gateway/"
      level = "error"

      I am running CFMX 7.02 on Tomcat 5.5 and see the following in the log:

      [Flex] 14:34:20.359 [INFO] [Configuration] Starting Adobe Flex Data Services 2 Express
      [Flex] 14:34:20.359 [INFO] [Configuration] Adobe Flex Data Services Build: 142467
      [Flex] 14:34:20.421 [INFO] [Configuration] Endpoint my-cfamf created with security: None
      at URI: http://{server.name}:{server.port}{context.root}/flex2gateway/

      I compile the app with: -services "C:\webapps\cfusion\WEB-INF\flex\services-config.xml" -locale en_US

      my services-config.xml looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <services-config>

      <services>
      <service id="coldfusion-flashremoting-service"
      class="flex.messaging.services.RemotingService"
      messageTypes="flex.messaging.messages.RemotingMessage">

      <adapters>
      <adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
      </adapters>

      <destination id="ColdFusion">
      <channels>
      <channel ref="my-cfamf"/>
      </channels>
      <properties>
      <source>*</source>
      <!-- define the resolution rules and access level of the cfc being invoked -->
      <access>
      <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
      <use-mappings>false</use-mappings>
      <!-- allow "public and remote" or just "remote" methods to be invoked -->
      <method-access-level>remote</method-access-level>
      </access>

      <property-case>
      <!-- cfc property names -->
      <force-cfc-lowercase>false</force-cfc-lowercase>
      <!-- Query column names -->
      <force-query-lowercase>false</force-query-lowercase>
      <!-- struct keys -->
      <force-struct-lowercase>false</force-struct-lowercase>
      </property-case>
      </properties>
      </destination>

      </service>
      </services>

      <channels>
      <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
      <endpoint uri=" http://{server.name}:{server.port}{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
      <properties>
      <polling-enabled>false</polling-enabled>
      <serialization>
      <instantiate-types>false</instantiate-types>
      </serialization>
      </properties>
      </channel-definition>
      </channels>

      <logging>
      <target class="flex.messaging.log.ConsoleTarget" level="All">
      <properties>
      <prefix>[Flex] </prefix>
      <includeDate>false</includeDate>
      <includeTime>true</includeTime>
      <includeLevel>true</includeLevel>
      <includeCategory>true</includeCategory>
      </properties>
      <!--
      possible values:
      DataService.General
      DataService.Transaction
      DataService.Hibernate
      DataService.coldfusion
      Message.*
      Message.General
      Message.Data.*
      Message.Data.(operation-name)
      where operation-name is one of create, fill, get, update, delete, batched,
      multi_batch, transacted, page, count, get_or_create, create_and_sequence, get_sequence_id,
      association_add, association_remove, fillids, refresh_fill, update_collection
      Message.Command.*
      Message.Command.(operation-name)
      where operation-name is one of subscribe, unsubscribe, poll, poll_interval, client_sync,
      server_ping, client_ping, cluster_request, login, logout
      Message.RPC
      Message.coldfusion
      Service.*
      Service.Cluster
      Service.HTTP
      Service.Message
      Service.Remoting
      Endpoint.*
      Endpoint.General
      Endpoint.Deserialization
      Endpoint.AMF
      Endpoint.HTTP
      Endpoint.RTMP
      Security
      MessageSelector
      Configuration
      Resource
      -->

      <filters>
      <pattern>Endpoint.*</pattern>
      <pattern>Service.*</pattern>
      <pattern>Configuration</pattern>
      <pattern>Message.*</pattern>
      </filters>
      </target>
      </logging>

      <system>
      </system>

      </services-config>


      Any idea why I get: Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed'"?

      Thanks in advance