I posted on this thread 

 


From: [email protected] [mailto:[email protected]] On Behalf Of dirtmediaworld
Sent: Thursday, May 18, 2006 10:43 PM
To: [email protected]
Subject: [flexcoders] CF Flex Connectivity : CRM Example

 

Has anyone successfully run any of the CF Flex Connectivity examples? After struggling with the cfcontact example and not being able to resolve it (see this thread ) I've moved on to the CRM Example. Again here I've followed the setup instructions on the Adobe Labs site and all seems to be well until I try to add a new company or employee through the flash interface. When I run the test-company.cfm and test-employee.cfm there is no problem. The cfcrm/companyapp.mxml fills the datagrid just fine. And the Add button actually updates the database, but I get the following Alert box:

Error
"Error occurred completing a transaction"

No errors in the flash player error window.

No errors in my cfusionmx7 console window.

And the flex console window gives me this beast of an output:

[Flex] [DEBUG] Started transaction using jndi name: java:comp/UserTransaction
[Flex] [DEBUG! ] [CFDataServicesAdapter] destination: cfcompany invoking SYNC meth
od, 1 change(s) to process.
[Flex] [DEBUG] Committed transaction
[Flex] [DEBUG] Before manage sequence sequence info for: cfcompany numSequences=
 1 numClients=1 numItems=7 numFills=1 numAssociations=0
[Flex] [DEBUG] [CFDataServicesAdapter] destination: cfcompany invoking FILL-CONT
AINS method...
[Flex] [ERROR] Error while completing transaction: flex.data.adapters.AdapterExc
eption: Error invoking fillContains for destination cfcompany: Error unmarshalin
g return header; nested exception is:
        java.net.SocketException: Software caused connection abort: socket write
 error stacktrace=flex.data.adapters.AdapterException: Error invoking fillContai
ns for destination cfcompany: Error unmarshaling return header; nested exception
 is:
        java.net.SocketException: Software caus! ed connection abort: socket write
 error
 &nbs! p;       at coldfusion.flex.CFDataServicesAdapter.invokeRefreshFillOperation(CFDa
taServicesAdapter.java:304)
        at flex.data.adapters.JavaAdapter.invoke(JavaAdapter.java:199)
        at flex.data.DataServiceTransaction.rebuildSequenceIfNecessary(DataServi
ceTransaction.java:1131)
        at flex.data.SequenceManager.syncAndPushSequenceChanges(SequenceManager.
java:1569)
        at flex.data.SequenceManager.manageSequence(SequenceManager.java:538)
        at flex.data.DataServiceTransaction.syncClients(DataServiceTransaction.j
ava:740)
        at flex.data.DataServiceTransaction.doCommit(DataServiceTransaction.java
:634)
        at flex.data.DataServiceTransaction.complete(DataS! erviceTransaction.java
:664)
        at flex.data.DataService.serviceTransactedMessage(DataService.java:550)
        at flex.data.DataService.serviceMessage(DataService.java:220)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:565)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:298)
        at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(Abst
ractRTMPServer.java:653)
        at flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTM
PConnection.java:650)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.runTask(ThreadPoolExecutor.java:643)
 &n! bsp;      at edu.emory.mathcs.backpor! t.java.u til.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:668)
        at java.lang.Thread.run(Unknown Source)

[Flex] [ERROR] Exception when invoking service: data-service
  with message: Flex Message (flex.data.messages.DataMessage)
    operation = transacted
    id = null
    clientId = 90BC2319-9C0A-E168-21B6-6E90FB88CD97
    correlationId =
    destination = cfcompany
    messageId = CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
    timestamp = 1148005140828
    timeToLive = 0
    body =
    [
      Flex Message (flex.data.messages.DataMessage)
          operation = create
          id = {companyId=null}
 &! nbsp;        clientId = B15C5A2F-FC2F-EDDB-6467-4A6FA2BB41A7
          correlationId = CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
          destination = cfcompany
          messageId = 844A0927-A287-998B-7432-4A7048B0A464
          timestamp = 1148005140921
          timeToLive = 0
          body = {companyId=null, address=Test Address, marketSegments=[], state
=Test State, zip=Test Zip, name=Test Company, city=Test City}
          hdr(DSEndpoint) = cf-dataservice-rtmp,
      Flex Message (flex.data.messages.UpdateCollectionMessage)
        &! nbsp; operation = update_collection
    ! ; & nbsp;    id = null
          clientId = 90BC2319-9C0A-E168-21B6-6E90FB88CD97
          correlationId = CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
          destination = cfcompany
          messageId = 530335FB-AA9A-54F0-742F-4A7048B08298
          timestamp = 1148005140921
          timeToLive = 0
          body =
          [
            [EMAIL PROTECTED]
          ]
          hdr(DSEndpoint) = cf-dataservice-rtmp
  ! ;        collectionId =
            [

            ]
          replace = false
          updateMode = client_update
    ]
    hdr(DSEndpoint) = cf-dataservice-rtmp
  exception: flex.data.DataServiceException: Error occurred completing a transac
tion

[Flex] [DEBUG] Error handling rtmp message: flex.data.DataServiceException: Erro
r occurred completing a transaction
    incomingMessage: Flex Message (flex.data.messages.DataMessage)
    operation = transacted
    id = null
    clientId = 90BC2319-9C0A-E168-21B6-6E90FB88CD97
    correlationId =
    destination = cfcompan! y
    messageId = CA5FDC08-25DA-BAF4-A8E2-4A! 7048B0C4 75
    timestamp = 1148005140828
    timeToLive = 0
    body =
    [
      Flex Message (flex.data.messages.DataMessage)
          operation = create
          id = {companyId=null}
          clientId = B15C5A2F-FC2F-EDDB-6467-4A6FA2BB41A7
          correlationId = CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
          destination = cfcompany
          messageId = 844A0927-A287-998B-7432-4A7048B0A464
          timestamp = 1148005140921
          timeToLive = 0
       &nb! sp;  body = {companyId=null, address=Test Address, marketSegments=[], state
=Test State, zip=Test Zip, name=Test Company, city=Test City}
          hdr(DSEndpoint) = cf-dataservice-rtmp,
      Flex Message (flex.data.messages.UpdateCollectionMessage)
          operation = update_collection
          id = null
          clientId = 90BC2319-9C0A-E168-21B6-6E90FB88CD97
          correlationId = CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
          destination = cfcompany
          messageId = 530335FB-AA9A-54F0-742F-4A7048B08298
          timestamp = 1148005140921
&nbs! p;         timeToLive ! = 0
& nbsp;         body =
          [
            [EMAIL PROTECTED]
          ]
          hdr(DSEndpoint) = cf-dataservice-rtmp
          collectionId =
            [

            ]
          replace = false
          updateMode = client_update
    ]
    hdr(DSEndpoint) = cf-dataservice-rtmp
    errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
    clientId = null
    corre! lationId = CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
    destination = null
    messageId = 90BC2554-E60E-7BC5-B312-E2DCB0CE053A
    timestamp = 1148005141062
    timeToLive = 0
    body = null
    code =  Server.Processing
    message =  Error occurred completing a transaction
    details =  null
    rootCause =  Flex Message (flex.messaging.messages.ErrorMessage)
    clientId = null
    correlationId = null
    destination = null
    messageId = 90BC2554-E61E-66F4-6BEB-342FBC134751
    timestamp = 1148005141062
    timeToLive = 0
    body = null
    code =  Server.Processing
    message =  Error invoking fillContains for destinat! ion cfcompany: Error unma
rshaling return header; nested ex! ception is:
        java.net.SocketException: Software caused connection abort: socket write
 error
    details =  null
    rootCause =  java.rmi.UnmarshalException: Error unmarshaling return header;
nested exception is:
        java.net.SocketException: Software caused connection abort: socket write
 error
    body =  null
    extendedData =  null
    body =  null
    extendedData =  null
[Flex] [DEBUG] cause=flex.data.adapters.AdapterException: Error invoking fillCon
tains for destination cfcompany: Error unmarshaling return header; nested except
ion is:
        java.net.SocketException: Software caused connection abort: socket write
 error type=class flex.data.adapters.AdapterException
flex.dat! a.adapters.AdapterException: Error invoking fillContains for destination
 cfcompany: Error unmarshaling return header; nested exception is:
        java.net.SocketException: Software caused connection abort: socket write
 error
        at coldfusion.flex.CFDataServicesAdapter.invokeRefreshFillOperation(CFDa
taServicesAdapter.java:304)
        at flex.data.adapters.JavaAdapter.invoke(JavaAdapter.java:199)
        at flex.data.DataServiceTransaction.rebuildSequenceIfNecessary(DataServi
ceTransaction.java:1131)
        at flex.data.SequenceManager.syncAndPushSequenceChanges(SequenceManager.
java:1569)
        at flex.data.SequenceManager.manageSequence(SequenceManager.java:538)
        at fl! ex.data.DataServiceTransaction.syncClients(DataServiceTransact! ion.j
ava:740)
        at flex.data.DataServiceTransaction.doCommit(DataServiceTransaction.java
:634)
        at flex.data.DataServiceTransaction.complete(DataServiceTransaction.java
:664)
        at flex.data.DataService.serviceTransactedMessage(DataService.java:550)
        at flex.data.DataService.serviceMessage(DataService.java:220)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:565)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:298)
        at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(Abst
ractRTMPServer.java:653)
        at flex.messaging.endpoints.rtmp.NIORTM! PConnection$RTMPReader.run(NIORTM
PConnection.java:650)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.runTask(ThreadPoolExecutor.java:643)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:668)
        at java.lang.Thread.run(Unknown Source)

[Flex] [DEBUG] Executed command: service=data-service
  commandMessage: Flex Message (flex.messaging.messages.CommandMessage)
    operation = subscribe
    selector = null
    messageRefType = flex.data.messages.DataMessage
    clientId = 46A5A11B-4833-055C-55A5-4A6FA2BB4EC8
    correlationId =
    destination = cfemployee
    messageId = D8DD4DEB-61D6-A0B4-E4B7-4A704AB37FCB    timestamp = 1148005141187
  &! nbsp; ti meToLive = 0
    body = {}
    hdr(DSEndpoint) = cf-dataservice-rtmp
  replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage)
    clientId = 46A5A11B-4833-055C-55A5-4A6FA2BB4EC8
    correlationId = D8DD4DEB-61D6-A0B4-E4B7-4A704AB37FCB
    destination = null
    messageId = 90BC2686-131C-7301-71C7-E3F261FFEFDC
    timestamp = 1148005141187
    timeToLive = 0
    body = null

[Flex] [DEBUG] Before invoke service: data-service
  incomingMessage: Flex Message (flex.data.messages.DataMessage)
    operation = fill
    id = null
    clientId = 46A5A11B-4833-055C-55A5-4A6FA2BB4EC8
    correlationId =
    destination = cfemployee
    messageId = 70CC8638-A26F-91BC-A7FD-4A704AB3C53! 2
    timestamp = 1148005141187
    timeToLive = 0
    body =
    [
      byCompany,
      0
    ]
    hdr(DSEndpoint) = cf-dataservice-rtmp

[Flex] [DEBUG] [CFDataServicesAdapter] destination: cfemployee invoking Fill met
hod...
[Flex] [DEBUG] Before manage sequence sequence info for: cfemployee numSequences
= 0 numClients=0 numItems=0 numFills=0 numAssociations=0
[Flex] [DEBUG] After manage sequence sequence info for: cfemployee numSequences=
 1 numClients=1 numItems=0 numFills=1 numAssociations=0
[Flex] [DEBUG] Committed transaction
[Flex] [DEBUG] After invoke service: data-service
  reply: Flex Message (flex.data.messages.SequencedMessage)
    sequenceId = 0
    sequenceSize = 0
    (no sequence proxies)
 &nb! sp;  clientId = null
    correlationId ! = null    destination = cfemployee
    messageId = 90BC289C-BE29-88B8-EF70-9C5CDE65DF44
    timestamp = 1148005141406
    timeToLive = 0
    body =
    [

    ]


Does anybody know what's going on here?
-Dustin



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to