Skip to content
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

Importing VO file in Mxml Calls FaultHandler #435

Closed
pashminakazi opened this issue Jul 22, 2019 · 3 comments
Closed

Importing VO file in Mxml Calls FaultHandler #435

pashminakazi opened this issue Jul 22, 2019 · 3 comments

Comments

@pashminakazi
Copy link
Contributor

When I import shmCompanySetupVO and create its object in shmCompanySetup.mxml, RemoteObject Calls FaultHandler..
If I comment shmCompanySetupVO Import and its object it calls ResultHandler

shmCompanySetup.mxml : https://paste.apache.org/o93i5
shmCompanySetupVO.as : https://paste.apache.org/vi3si

How can i work with VO File?
VO file is part of library

@carlosrovira
Copy link
Contributor

Hi Alina,

use of VOs in Royale is already shown and working in the examples. You can check both Java project in /amf folder and the clients in /mxroyale folder. Don't see any problems in the code you exposed

@yishayw
Copy link
Contributor

yishayw commented Jul 23, 2019

It would be easier to help if you tried to isolate the problem further. Can you provide a simple application that uses shmCompanySetupVO.as and demonstrated the problem?

For example, what happens when you run the following application [1]? Do you get the same error? If so, what happens if you remove line 9 where the object is constructed?

[1] https://paste.apache.org/hp3hb

@aharui
Copy link
Contributor

aharui commented Jul 28, 2019

It looks like your example is a Module. Our Module examples generally build the module in a separate folder, then copy the results into a subfolder in the main app's folder. Please make sure you are building your app in a similar way and then verify whether shmCompanySetupVO.as is also being used in the main application or not, and if so, show us the compiler options that you are using to control duplicate JS files in the module, and also tell us which RemoteObject is being used. Is the RO in the main app or the module?

There is a chance that the VO is being loaded twice or that it isn't loaded in time, or isn't being registered with the decoder. You might want to start with our ModuleExample and get it to include your VO in a similar way you are using it to see if that will produce a simpler test case for analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants