1 Reply Latest reply on Jul 2, 2009 1:56 PM by Eliezer Reis

    Flex JBoss LCDS issues

    Eliezer Reis

      Hi,

       

      Anyone know how can I resolve the follow ClassCastException when I try commit() my dataservice? Stranger because when I call the method dataService.fill() its works fine.

      LCDS]Serializing AMF/RTMP response
      Version: 3
        (Command method=_error (0) trxId=5.0)
          (Typed Object #0 'flex.messaging.messages.ErrorMessage')
            headers = (Object #1)
            rootCause = (Typed Object #2 'java.lang.ClassCastException')
              message = "org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction"
              localizedMessage = "org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction"
              cause = null
            body = null
            correlationId = "9C1ECE50-ACCC-AEB3-C908-36DB5AC5B10D"
            faultDetail = null
            faultString = "Unable to access UserTransaction in DataService."
            clientId = "964D8B45-DEE0-078A-3E2E-36DB40D47C14"
            timeToLive = 0.0
            destination = "usuarioService"
            timestamp = 1.246460861234E12
            extendedData = null
            faultCode = "Server.Processing"
            messageId = "87ED89A5-120B-06FF-DAA1-DEA155D62226"
      

      Tnks

        • 1. Re: Flex JBoss LCDS issues
          Eliezer Reis Level 1

          I fix it putting parameter "use-transactions = false" in destination (data-management-config.xml). Anyone can give me a explanation about this parameter? What is the advantages when I use this parameter? What means this parameter? If I use transactions in my business layer (with spring framework) is necessary use transactions in the client or in middleware of LCDS?