Could anybody help me figuring out the reason for this type conversion
error in my CRM-appl. I'm pasting below the flex-console output after
I clicked the Trash-Icon on an Employee. In contrast the Deletion of
an Company's Object WORKS GREAT and so the usage of java-dao version
of this sample !!

First an assay of what I already wrote to Bill Sahlas regarding my dev
environment:

1.) Q: What OS is CF and Flex installed on?
      A: MBP OSX INTEL  (CFusionMX7.0.2 installed as a multiserver)

2.) Q: What driver did you choose?
      A: MySQL 5 (testing it in the CF Admin data source tab, results
in 'OK' )

3.) Q: Did you also install FDS Beta 3 from the labs...?
      A: I installed FDServices Express

4.) What Java Version is installed ?
             My Java version for flex server (flex is running as an
instance within Coldfusion - on Port 8301)
             ColdFusion itself runs on Java version 1.4.2 (may be this
could be important)

------------------

the console output:

cds-producer-cfemployee-null Queuing message for server:
(mx.data.messages.DataMessage)
  messageId='AE5F96D5-1075-CD2A-D9F3-6192D718C42E'
  operation=delete
  identity=(Object)#0
  employeeId = 38
 body=(samples.crm::Employee)#0
  company = (samples.crm::Company)#1
    address = "testAddress"
    city = "testCity"
    companyId = 9
    industry = "Computers"
    name = "testCompanyName"
    state = "testState"
    zip = "77777"
  email = "[EMAIL PROTECTED]"
  employeeId = 38
  firstName = "Axel"
  lastName = "Nitzschner"
  phone = "999-999"
  title = ""
'cf-dataservice-rtmp' channel requesting queued messages.
'cf-dataservice-rtmp' channel sending poll message
(mx.messaging.messages::CommandMessage)
  body=(Object)#0
  clientId="AD26AC71-553E-39AB-5A13-619093EE2795"
  correlationId=""
  destination="cfcompany"
  headers=(Object)#0
  messageId="5BD5DDD1-B3A9-331C-5E32-6192D7199416"
  messageRefType="flex.data.messages.DataMessage"
  operation="poll"
  timeToLive=0
  timestamp=1174163006672

'cf-dataservice-rtmp' channel sending poll message
(mx.messaging.messages::CommandMessage)
  body=(Object)#0
  clientId="3C829656-4875-DE0B-C1BC-619093FA9E81"
  correlationId=""
  destination="cfemployee"
  headers=(Object)#0
  messageId="38F29A3E-1B31-B709-8C2A-6192D71B3818"
  messageRefType="flex.data.messages.DataMessage"
  operation="poll"
  timeToLive=0
  timestamp=1174163051497

'ds-producer-cfemployee' producer sending message
'5F124B3E-5467-C385-C6CB-6192D719B408'
'cf-dataservice-rtmp' channel sending message:
(mx.data.messages.DataMessage)
  messageId='5F124B3E-5467-C385-C6CB-6192D719B408'
  operation=transacted
  identity=(null)
 body=(Array)#0
  [0] (mx.data.messages::DataMessage)#1
    body = (samples.crm::Employee)#2
      company = (samples.crm::Company)#3
        address = "testAddress"
        city = "testCity"
        companyId = 9
        industry = "Computers"
        name = "testCompanyName"
        state = "testState"
        zip = "77777"
      email = "[EMAIL PROTECTED]"
      employeeId = 38
      firstName = "Axel"
      lastName = "Nitzschner"
      phone = "999-999"
      title = ""
    clientId = "3C829656-4875-DE0B-C1BC-619093FA9E81"
    correlationId = "5F124B3E-5467-C385-C6CB-6192D719B408"
    destination = "cfemployee"
    headers = (Object)#4
    identity = (Object)#5
      employeeId = 38
    messageId = "AE5F96D5-1075-CD2A-D9F3-6192D718C42E"
    operation = 4
    timestamp = 0
    timeToLive = 0
  [1] (mx.data.messages::UpdateCollectionMessage)#6
    body = (Array)#7
      [0] (mx.data::UpdateCollectionRange)#8
        identities = (Array)#9
          [0] (Object)#10
            employeeId = 38
        position = 0
        updateType = 1
    clientId = "6F34EEC3-CF0F-59B4-D37C-4BAF8ED1A32C"
    collectionId = (Array)#11
      [0] "byCompany"
      [1] 9
    correlationId = "5F124B3E-5467-C385-C6CB-6192D719B408"
    destination = "cfemployee"
    headers = (Object)#12
    identity = (null)
    messageId = "C9277FCC-D962-7CAF-E22B-6192D7177C6C"
    operation = 17
    replace = false
    timestamp = 0
    timeToLive = 0
    updateMode = 0
TypeError: Error #1034: Typ conversion error: "" can not be converted
to samples.crm.Company 
'ds-producer-cfemployee' producer acknowledge of
'5F124B3E-5467-C385-C6CB-6192D719B408'.
DataStore received commit response:
(mx.messaging.messages::AcknowledgeMessage)#0
  body = (Array)#1
    [0] (mx.data.messages::DataErrorMessage)#2
      body = (null)
      cause = (mx.data.messages::DataMessage)#3
        body = (samples.crm::Employee)#4
          company = (samples.crm::Company)#5
            address = "testAddress"
            city = "testCity"
            companyId = 9
            industry = "Computers"
            name = "testCompanyName"
            state = "testState"
            zip = "77777"
          email = "[EMAIL PROTECTED]"
          employeeId = 38
          firstName = "Axel"
          lastName = "Nitzschner"
          phone = "999-999"
          title = ""
        clientId = "3C829656-4875-DE0B-C1BC-619093FA9E81"
        correlationId = "5F124B3E-5467-C385-C6CB-6192D719B408"
        destination = "cfemployee"
        headers = (Object)#6
          DSEndpoint = "cf-dataservice-rtmp"
        identity = (Object)#7
          employeeId = 38
        messageId = "AE5F96D5-1075-CD2A-D9F3-6192D718C42E"
        operation = 4
        timestamp = 1174163085089
        timeToLive = 0
      clientId = (null)
      correlationId = "AE5F96D5-1075-CD2A-D9F3-6192D718C42E"
      destination = "cfemployee"
      extendedData = (null)
      faultCode = (null)
      faultDetail = (null)
      faultString = (null)
      headers = (Object)#8
      messageId = "6F377FF5-FF0F-415F-EF42-699F05A6FE02"
      propertyNames = (Array)#9
        [0] "phone"
        [1] "email"
        [2] "employeeId"
        [3] "firstName"
        [4] "lastName"
        [5] "company"
      rootCause = (null)
      serverObject = (samples.crm::Employee)#10
        company = (null)
        email = ""
        employeeId = 0
        firstName = ""
        lastName = ""
        phone = ""
        title = ""
      timestamp = 1174163085167
      timeToLive = 0
  clientId = "6F34EEC3-CF0F-59B4-D37C-4BAF8ED1A32C"
  correlationId = "5F124B3E-5467-C385-C6CB-6192D719B408"
  destination = (null)
  headers = (Object)#11
  messageId = "6F377FF8-7009-909C-EAA6-B5C778EB93A8"
  timestamp = 1174163085168
  timeToLive = 0
Conflict detected: destination=cfemployee, id=38,
properties=phone,email,employeeId,firstName,lastName,company
cause
4
clientObject(null)
originalObject:
(samples.crm::Employee)#0
  company = (samples.crm::Company)#1
    address = "testAddress"
    city = "testCity"
    companyId = 9
    industry = "Computers"
    name = "testCompanyName"
    state = "testState"
    zip = "77777"
  email = "[EMAIL PROTECTED]"
  employeeId = 38
  firstName = "Axel"
  lastName = "Nitzschner"
  phone = "999-999"
  title = ""
serverObject:
(samples.crm::Employee)#0
  company = (null)
  email = ""
  employeeId = 0
  firstName = ""
  lastName = ""
  phone = ""
  title = ""
After commit response dataStore: uncommitted=1, outstandingBatches=0,
conflicts=1, toMerge=0

Any help is higly appreciated
Thanks a lot
Axel



Reply via email to