New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RemoteObject Calls FaultHandler in Some Cases Need Help #404
Comments
Does the fault handler report an error? I think there should be additional information in the error. You could try examining the bits on the wire with a network monitor and see what is different. Is the function you are concerned about called "fn_GetCompListDP"? Make sure it is being called properly. Looking quickly it appeared there were more references to that function than I would expect. |
I was trying through commenting some portion of code and compile it again and again but it always calls faultHandler.. import com.shm.VO.Common.shmCompanySetupVO; [Bindable] private var voCompany:Object = new shmCompanySetupVO(); dgCompData.selectedItem == null ? fn_ResetPage() : shmUtil.setForm(arrFormItems, voCompany as Object, org.apache.royale.reflection.describeType(shmCompanySetupVO) as XML I comment out these lines From my mxml file and it works. Why? |
What error is reported in the faultHandler? I want to make sure you know how to see the error reported or determine that no error is being reported. I suspect you are getting an error in the AMF code trying to deserialize the server response into your VOs. Can you confirm you are on the latest version that has @greg-dove improvements? Then it would be in your interest to learn how to debug that code or maybe @greg-dove will have time to help you. |
Just adding a quick comment for now: Based on descriptions provided ('works in isolated code'), it does not sound like deserialization errors. |
We have a method: We have tried it using TypeDefinition Instead of XML. Still the method is not working as before. |
When we have changed XML to TypeDefinition in method setForm(...aValueObjInfo:TypeDefinition){..... I got a compile time Error as ..variable property not exist in TypeDefinition: Access of possibly undefined property variable through a reference with static type TypeDefinition. Kindly Help us to Port this method. As we are using this method in our whole Application in every file. Thanks in Advance |
Created a separate issue for Unable to port a flex method: #438 |
I am calling many java side function with remoteObject in my .as and .mxml files they all work fine.
ShmCompanySetup is my module, From where I am calling 7 or 8 Java Methods with Multiple RO's.
In that File first RO is calling faultHandler and all other RO's calling resultHandler.
My Application File: https://paste.apache.org/t3zP
In another project, I have created the same RO with the same function and it calls resultHandler: https://paste.apache.org/uyuX
In my application, I have created this RO in my parent application File shmApplication.as
and set its dataprovider in my module file's advancedDataGrid and it works fine.
I have tried much more to make this RO working by
but it always calls fault handler
This RO is for setting the values of AdvancedDataGrid,
In my Another Module file same Problem is happening with RO which is setting AdvancedDataGrid values
The text was updated successfully, but these errors were encountered: