tracker issue : CF-3037956

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 76087:[JFERNANDES] AMF Gateway is unable to send discriminated entities to be sent over the wire to flex applications

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): João Fernandes / João Fernandes (Joao Fernandes)

Created: 03/19/2009

Components: Flex/Flash, Flex remoting

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 233921

Priority/Frequency: Major / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

[JFERNANDES] AMF Gateway is unable to send discriminated entities to be sent over the wire to flex applications.


Method:

Create this 2 entities

<cfcomponent persistent="true" table="equipa" entityname="equipa" discriminatorColumn="sexo_id">

        <cfproperty name="id" column="id" fieldtype="id" generator="identity" length="10"  />
        <cfproperty name="nome" column="nome"  length="100"  />

</cfcomponent>

discriminator
<cfcomponent entityname="equipaMasculina"  table="equipa" extends="equipa" persistent="true" discriminatorValue="1" output="false">

</cfcomponent>

and call a remote object using <cfreturn entityLoad('equipa')>

Result:

[Flex] Serializing AMF/HTTP response
Version: 3
  (Header #0 name=AppendToGatewayUrl, mustUnderstand=false)
    ";jsessionid=4a302e6faa624a0641ab2e51441759404380"

  (Message #0 targetURI=/0/onResult, responseURI=)
    (Typed Object #0 ’flex.messaging.messages.AcknowledgeMessage’)
      timestamp = 1.237461679625E12
      headers = (Object #1)
        debug = (Object #2)
          Exception = (Array #3)
          SCOPES = (Object #4)
            ClientVar = (Object #5)
            CGIVar = (Object #6)
              HTTP_USER_AGENT = "Java/1.5.0_11"
              WEB_SERVER_API = ""
              PATH_TRANSLATED = "C:\Inetpub\cftesting\cftesting\flex2gateway"
              CONTENT_TYPE = "application/x-www-form-urlencoded"
              HTTP_ACCEPT_LANGUAGE = ""
              HTTP_REFERER = ""
              HTTP_ACCEPT = "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.
2"
              CERT_SERVER_ISSUER = ""
              CERT_SERVER_SUBJECT = ""
              HTTP_ACCEPT_ENCODING = ""
              SERVER_SOFTWARE = "Microsoft-IIS/5.1"
              SERVER_NAME = "localhost"
              CF_TEMPLATE_PATH = "C:\Inetpub\cftesting\cftesting\flex2gateway"
              CERT_FLAGS = ""
              HTTPS_SERVER_ISSUER = ""
              CONTEXT_PATH = ""
              HTTP_COOKIE = ""
              SERVER_PROTOCOL = "HTTP/1.1"
              CERT_SECRETKEYSIZE = ""
              REQUEST_METHOD = "POST"
              HTTPS_SECRETKEYSIZE = ""
              AUTH_PASSWORD = ""
              HTTPS = "off"
              CERT_SERIALNUMBER = ""
              CERT_SUBJECT = ""
              SERVER_PORT = "80"
              CERT_KEYSIZE = ""
              SCRIPT_NAME = "/flex2gateway"
              REMOTE_ADDR = "127.0.0.1"
              SERVER_PORT_SECURE = "0"
              REMOTE_HOST = "127.0.0.1"
              HTTPS_KEYSIZE = ""
              HTTP_HOST = "localhost"
              HTTP_CONNECTION = "keep-alive"
              AUTH_USER = ""
              REMOTE_USER = ""
              PATH_INFO = "/"
              QUERY_STRING = ""
              CERT_ISSUER = ""
              CERT_COOKIE = ""
              HTTPS_SERVER_SUBJECT = ""
              GATEWAY_INTERFACE = "CGI/1.1"
              AUTH_TYPE = ""
              CONTENT_LENGTH = "324"
            FormVar = (Object #7)
            CookieVar = (Object #8)
            URLVar = (Object #9)
            SessionVar = (Object #10)
          SqlQuery = (Array #11)
          Trace = (Array #12)
          Template = (Array #13)
            [0] = (Object #14)
              endtime = 1.237461679609E12
              timestamp = Thu Mar 19 11:21:19 GMT 2009
              template = "CFC[ C:\Inetpub\cftesting\cftesting\Application.cfc |
onRequestStart(/flex2gateway) ] from C:\Inetpub\cftesting\cftesting\Application.
cfc"
              starttime = 1.237461679609E12
              Template = "CFC[ C:\Inetpub\cftesting\cftesting\Application.cfc |
onRequestStart(/flex2gateway) ] from C:\Inetpub\cftesting\cftesting\Application.
cfc"
              parent = ""
              line = -1
              stacktrace = (Typed Object #16 ’java.lang.Exception’)
                message = null
                localizedMessage = null
                cause = null
            [1] = (Object #17)
              endtime = 1.237461679625E12
              timestamp = Thu Mar 19 11:21:19 GMT 2009
              template = "CFC[ C:\Inetpub\cftesting\cftesting\pt\cofina\foot\ser
vice\EpocaCompeticaoService.cfc | getEquipa() ] from C:\Inetpub\cftesting\cftest
ing\pt\cofina\foot\service\EpocaCompeticaoService.cfc"
              starttime = 1.237461679609E12
              Template = "CFC[ C:\Inetpub\cftesting\cftesting\pt\cofina\foot\ser
vice\EpocaCompeticaoService.cfc | getEquipa() ] from C:\Inetpub\cftesting\cftest
ing\pt\cofina\foot\service\EpocaCompeticaoService.cfc"
              parent = ""
              line = -1
              stacktrace = (Typed Object #19 ’java.lang.Exception’)
                message = null
                localizedMessage = null
                cause = null
          UserDefined = (Array #20)
          ObjectQuery = (Array #21)
          Http = (Array #22)
          StoredProcedure = (Array #23)
          ExecutionTime = (Array #24)
            [0] = (Object #25)
              endtime = 1.237461679625E12
              timestamp = Thu Mar 19 11:21:19 GMT 2009
              template = ""
              starttime = 1.237461679609E12
              line = -1
              stacktrace = (Array #27)
          CFTimer = (Array #28)
      body = (Array #29)
        [0] = (Typed Object #30 ’pt.cofina.foot.entity.equipa.EquipaMasculina’)
      correlationId = "6A5FE5CC-E909-5B61-0B98-A96BC891DFC2"
      messageId = "6A5FE5F3-F908-3767-050C-684979C52DC1"
      timeToLive = 0.0
      clientId = "6A5FE5CC-E909-08FC-D17A-415FC0B4F17B"
      destination = null

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3037956

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: João Fernandes
External Customer Email: 4E9A42C244586146992015D5
External Test Config: 03/19/2009

Attachments:

Comments: