1 Reply Latest reply on Oct 9, 2008 7:03 AM by Renogade

    error while using Remote object

    Ankur_Rathi
      Badri can you please put the code that we are using
        • 1. Re: error while using Remote object
          Renogade
          The remoting-config.xml code is
          <?xml version="1.0" encoding="UTF-8"?>
          <service id="remoting-service"
          class="flex.messaging.services.RemotingService">
          <adapters>
          <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
          </adapters>
          <default-channels>
          <channel ref="my-amf"/>
          </default-channels>
          <destination id="GISDBChart">
          <properties>
          <source>com.ge.gis.reports.GISDBChart</source>
          <scope>application<scope>
          </properties>
          </destination>
          <destination id="GISDBReport">
          <properties>
          <source>com.ge.gis.reports.GISDBReport</source>
          <scope>application<scope>
          </properties>
          </destination>
          </service>

          The service-config.xml code is
          <?xml version="1.0" encoding="UTF-8"?>
          <services-config>
          <services>
          <service-include file-path="remoting-config.xml" />
          </services>
          <security>
          <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
          <security-constraint id="basic-read-access">
          <auth-method>Basic</auth-method>
          <roles>
          <role>guests</role>
          <role>accountants</role>
          <role>employees</role>
          <role>managers</role>
          </roles>
          </security-constraint>
          </security>
          <channels>
          <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
          <endpoint url=" http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
          <properties>
          <polling-enabled>false</polling-enabled>
          </properties>
          </channel-definition>
          <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
          <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
          <properties>
          <!--HTTPS requests on some browsers do not work when pragma "no-cache" are set-->
          <add-no-cache-headers>false</add-no-cache-headers>
          </properties>
          </channel-definition>
          <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
          <endpoint url=" http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
          <properties>
          <polling-enabled>true</polling-enabled>
          <polling-interval-seconds>8</polling-interval-seconds>
          </properties>
          </channel-definition>
          </channels>
          <logging>
          <target class="flex.messaging.log.ConsoleTarget" level="Error">
          <properties>
          <prefix>[Flex] </prefix>
          <includeDate>false</includeDate>
          <includeTime>false</includeTime>
          <includeLevel>false</includeLevel>
          <includeCategory>false</includeCategory>
          </properties>
          <filters>
          <pattern>Endpoint.*</pattern>
          <pattern>Service.*</pattern>
          <pattern>Configuration</pattern>
          </filters>
          </target>
          </logging>
          <system>
          <redeploy>
          <enabled>true</enabled>
          <watch-interval>20</watch-interval>
          <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
          <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
          </redeploy>
          </system>
          </services-config>

          The Error is

          getFaultHandler: [FaultEvent fault=[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 503: url: ' http://alpigedv4275.corporate.ge.com/portal/messagebroker/amf'" messageId="06F0E133-07D6-FBCE-037C-DD26A718AE9D" type="fault" bubbles=false cancelable=true eventPhase=2]

          Please Guide me with this problem.... Its Urgentttttt