Remote types with inheritance is not converted properly

Hello

I've been struggling with this for about a week now, so a friend suggested that I have post on the forums. Basically, I use BlazeDS to call a remote method on a Java service that interacts with some EJB on our server. This method returns an ArrayList, consisting of objects 'GamePlayer '. Flex includes the ActionScript mapped 'GamePlayer.as' class and everything works fine.

So, I have a subclass of GamePlayer, "PentePlayer", which is returned in the array of this method in some cases. This class is converted by Flex and correctly mapped to its class AS free "PentePlayer.as". So far so good.

However, when I have the extension "PentePlayer" in a class of third, "StrategyPlayer", things do not work so well. (I wrote a class who GOT maps the two new fields that uses Java class, extended "PentePlayer.as" and the meta tag "remotely" to correctly point to the class Java, "StrategyPlayer"). When I call to my referral service of a list that mixes PentePlayers with StrategyPlayers, I only get PentePlayer.as objects. All instances of "StrategyPlayer" are mapped as ASObjects, each containing all the fields having a PentePlayer.as, but no indication of the legacy, and yet one time, no mapping on the ActionScript type (StrategyPlayer.as).

I have pulled down of the BlazeDS source and can browse code seeing the result to get returned successfully by my service (as an array of objects PentePlayer and StrategyPlayer Java), but I can't seem to find where the ASObjects conversion occurs. It seems that this is done on the client side, after receiving the acknowledgement message sent by the server (the result seems to be crammed into this Ack message), but I can't find where in the code of BlazeDS.

My questions are:

1 has anyone seen these kinds of problems with a remote as a class on a string of front legacy?
2 - does anyone know where I can watch the conversions of distant as Java objects in the source code of BlazeDS?
3. can I manage the type conversion process? Or push some type of advice in Blaze, so this allows you to convert correctly?

Other comments, opinion, could be received warmly.

Hello

Thank you for your response and thoughts towards the resolution of this problem.

My friend who I have suggested that I have post on the forums solved my problem this morning; apparently the class Java, "StrategyPlayer" was not compiled in the .swf file. He wrote:

Quote:


Problem solved. StrategyPlayer was not get compiled into the swf file. Took me awhile to do this, but no work was beneficial to learn a little more about the functioning of blazeds. You were right, all java objects are serialized in an AMF binary stream without checking the presence of their equivalent actionscript objects. There are no relations between objects table actionscript and java. It is normal when you think of it as the side java server code has no awareness of the clientside swf and even if that were the case it should be able to read the swf compiled classes to get information on their remote mappings. You have probably already found it but serialization of java objects into the AMF binary stream enters at flex.messaging.io.amf.Amf3Output.java, specifically the writePropertyProxy (line 525) method. So all the java objects are serialized and sent to the client. I imagine that when they enter the customer flashplayer deserializes as actionscript objects. It's Flash Player so that has distance mappings table, and for each object it deserializes it must find a shutoff and if it does not instantiate an object as generic flex. In the case of StrategyPlayer since it was not get compiled into the swf flashplayer had no way of mapping or instantiate, where our problem. I don't know if there are ways to get flashplayer to connect its deserialization so that we can detect these problems. I'll look into it. Why, you may ask, was StrategyPlayer not get compiled into the swf? It's the bit that I do not have much. The flex compiler starts the main application class (in our case src/main/flex/main.mxml) and compiles its dependencies recursively. OK, all very well, in RegistrationWindow.mxml had imported you StrategyPlayer so it should thus get compiled into the swf? But it is the odd bit, import the file is not enough, for the compiler to consider the class a dependency must be 'used' in the class. This seems to be a strange behavior for me, but I guess it is a measure taken to optimize the size of the compiled swf file and remove unnecessary imports? So if you do not really need a class in your code, but you need the information how can you force the compiler to consider you "use" the class. Well, the most clean way, that I found is simply to write the name of the class somewhere in a method. I did it is the method of updatePlayers of PenteGameController, but you can move it elsewhere if you wish.

The behavior that describes my friend looks like it exposes a bug in Flash player, regarding how the conversion of Java is managed and as in the case of inheritance. Flash/Flex should recognize our serialized object "StrategyPlayer" as a member of the family 'GamePlayer '. We could expect all subclasses that are not explicitly referenced in the application to be instantiated as a member of this family of types depending on whether the customer is informed, not just instantiated as cru "ASObjects. It seems that Flex should include all the subclasses of Java types that are mapped to ActionScript classes, or some information of legacy that applies to the type should be included in the serialization stream in order to manipulate objects on the inheritance tree, that are not referenced in the concrete, local classes.

We plan to post a bug on the issue, because it is a little difficult. Thrilled to hear what other Flex developers!

Tags: Flex

Similar Questions

  • Colors do not convert properly to HAVE in Photoshop

    Using Adobe Creative Cloud... When you import an .ai file in Photoshop, colors are not important in exactly... particularly gray.

    Source .ai file is in RGB color space. Problem persists without worrying so important in sRBG or RGB color in Photoshop...

    The example below is only the shades of gray, but the file is RGB color... for some reason, don't seem to have this problem with other tones of colors, just grey in color space.

    After the attachment is a screenshot since Illustrator > >

    Screen Shot 2016-02-21 at 7.03.20 PM.png

    After fixing, that's what it looks like an imported/rasterized in Photoshop > >

    Screen Shot 2016-02-21 at 7.05.18 PM.png

    What happens here? Clearly these gray are not translated correctly, and again, it should be the same hex code.

    I had this problem for over a year with various designs... If it was a temporary problem with some version of the Adobe Creative Cloud, I guess it would have been fixed now

    What the OP wrong, is define the nuances as a value of K, that is in grayscale.

    Turns on AI does not manage to properly color to grayscale, where shifting gray values when you go to Photoshop, what color is manage grayscale. RGB and CMYK, both work fine.

    Basically, that's all.

    So this is a problem of Illustrator; not a problem in Photoshop. Maybe the team thought the color management was unnecessary with shades of gray, since there is no color in it...

  • Div with background will not make properly

    Hello

    I hope you can help out me.  I'm a newbie, but I appreciate learning Dreamweaver and learning * with * DW as well.  I have successfully set up a site with DW, but a second has me baffled.  With this site, I try to use a photo as the background for a main div.  I was experimenting with different looks, and when I removed the #main height/width and then pasted in the height/width of the div, the div will not return to the old height/width front.  I tried all sorts of changes to see what else could have changed, but I don't know that this css is exactly the same than when made correctly.

    My goal is to create a page with a sidebar on the left and a main div with the background of the photo and a title on the page and a footer at the bottom.

    Here's the URL: www.learningtreefarm.org/mainindex.html

    Here's the CSS:


    {body
    margin: 0;
    padding: 0;
    text-align: center;
    }

    #container {}
    Width: 80%;
    background-color: # 9-9;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
    }

    #sidebar {}
    Width: 13em;
    do-family: Calibri, Arial, without serif.
    float: left
    padding-top: 15px;
    padding-right: 0;
    padding-bottom: 15px;
    padding-left: 0;
    }

    #main {}
    background-image: url (.. / images/webLTFbankbarnandpasture.jpg);
    height: 575 px;
    Width: 773 px;
    float: right;
    background-repeat: no-repeat;
    do-family: "Monotype Corsiva";
    font size: 350%;
    color: #FFF;
    text-align: left;
    margin: 0px;
    padding: 0px;
    }

    #container #sidebar img {}
    padding-top: 15px;
    padding-right: 20px;
    padding-bottom: 5px;
    padding-left: 30px;
    }
    #container #sidebar ul {}
    padding-left: 40px;
    }
    #footer {}
    height: 100px;
    do-family: Calibri, Arial, without serif.
    text-align: center;
    Clear: both;
    padding: 0px;
    border-top-width: thin;
    border-top-style: solid;
    border-bottom-color: #000;
    }
    #container #footer HR {}
    Color: #000;
    padding-top: 15px;
    }

    Hope that gives you enough information to see my problem.

    annbdavis wrote:

    Thank you, Osgood, but I don't want the background through the entire site, just to the main div.  The sidebar and the footer

    will be part of a model for future pages, but this is the first page of the site. I'm sure I know how to maintain the size of the div with just the background and the text line.  My confusion is why, when I removed the size properties and then glued hide them, did not the div return to what it was before?

    abdavis4

    Your main

    is not picking up the width and the height because you have a space so that is the unit of measure and px. (see below)

    #main {}
    background-image: url (.. / images/webLTFbankbarnandpasture.jpg);
    height: 575 px;
    Width: 773 px;
    float: right;
    background-repeat: no-repeat;
    do-family: "Monotype Corsiva";
    font size: 350%;
    color: #FFF;
    text-align: left;
    margin: 0px;
    padding: 0px;
    }

  • Request for refund for the PDF pack because my PDF has not converted correctly to Word doc

    I feel like I'm in the wrong place to ask for a refund, but I tried to solve this problem for some time and this is where I have been guided so I hope that I am using the appropriate channel. Please can you help me ask the refund of my purchase of the PDF package? (order No.. AD015935750). I've been going in circles for months, literally, to cancel my subscription. I need to convert a PDF file to a Word doc and thought it would be something I could use for school, so I downloaded the PDF package for $89 on 5 March, 15. But my account has not converted correctly, so I tried to cancel but just keep in curls, so I responded to an email asking to cancel the subscription of 3-25, which was within 30 days. I do not have a "kick back", so I assumed that the email has passed through. I was check my account for the refund and he was never treated so I looked at my mailbox and to see that I had a bounce email, specifying that the email does not, but the rejection was delayed while I haven't noticed. I've never used except that once so can I please get a full refund? I am a student who was struggling with a very fixed budget and was unable to use the PDF pack because my first document would not convert properly. Below a screenshot shows that I started the process within 30 days of the purchase. Please let me know how to proceed. Thanks in advance for your time.

    Hi kristinad36324104,

    I recommend you visit the following link and contact the customer about your question: cancel your subscription or membership. Acrobat, services Cloud of Document PDF

    Kind regards
    Rahul

  • The problem with IMP-00038 IMP: could not convert to character set environment handle

    The export was made under linux.  I am told that their settings are: (I can't check)

    AL32UTF8 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    export of the version

    Export: Release 11.2.0.3.0

    I'm trying to import into an empty database in windows with the Release 11.2.0.1.0 version (a few levels below patch)

    AL32UTF8 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    Select userenv ('LANGUAGE') of double

    AMERICAN_AMERICA. AL32UTF8

    my var environment NLS_LANG = AMERICAN_AMERICA. AL32UTF8

    The value of KEY_HKLM\Software\oracle\OraDb11g_home1\NLS_LANG is also set to AMERICAN_AMERICA. AL32UTF8

    IMP prod_user/password@instacnename file = exportfile.dmp see the = y

    WITH JUST SHOW = Y ON... (even with him in the distance)

    Import: Free 11.2.0.1.0 - Production Fri Nov 14 11:09:51 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit

    Production

    With the partitioning option

    IMP-00038: could not convert to character set environment handle

    IMP-00000: Import terminated unsuccessfully

    NO idea how to solve this problem?  I broadcast the gziped file and a new... to be sure of the xfer wasn't the question...

    I'm stumped... I searched the Forum and the web and tried most of what I found.

    Thanks in advance

    -Ken

    Hello

    I think that there is a single cause - see the example below

    expdp / schemas = bob

    Export: Release 11.2.0.3.0 - Production on Fri Nov 15 18:04:46 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    With the partitioning option
    Departure "OPS$ ORACLE." ' SYS_EXPORT_SCHEMA_06 ': / * schemas = bob.
    Current estimation using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Object type SCHEMA_EXPORT/TABLE/TABLE processing
    Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
    . . exported "BOB." » EMP"                                     0 KB       0 rows
    . . exported "BOB." "" EMP2 "0Ko 0 rows
    Main table "OPS$ ORACLE." "' SYS_EXPORT_SCHEMA_06 ' properly load/unloaded
    ******************************************************************************
    Empty the files together for OPS$ ORACLE. SYS_EXPORT_SCHEMA_06 is:
    /Oracle/11.2.0.3.0.DB/RDBMS/log/expdat.dmp
    Job ' OPS$ ORACLE. " "" SYS_EXPORT_SCHEMA_06 "led to 18:05:19

    [oracle@]:EMZA3:[~]# imp / file=/oracle/11.2.0.3.0.DB/rdbms/log/expdat.dmp]

    Import: Release 11.2.0.3.0 - Production on Fri 15 Nov 18:06:02 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    With the partitioning option

    IMP-00038: could not convert to character set environment handle
    IMP-00000: Import terminated unsuccessfully
    [oracle@]:EMZA3:[~]#

    Spot the problem?

    The original dump was expdp, we seek to import with IMP...

    If it is conversely impdp flags it is an exp file - but this round way you get just this random error!

    See you soon,.

    Harry

  • My Apple TV remote 3rd generation A1294 doesn't aluminum A1394 does not work properly, the battery is and I have tried all the resets including factory reset.

    My Apple TV remote 3rd generation A1294 aluminium does not work properly, battery is good, and I tried all the resets including factory reset. the battery compartment is clean.

    You don't say what you mean by not working not properly, however...

    Your Apple TV can become affiliated with another remote control. Hold the remote control close to and pointed on the Apple TV, press and hold the menu and rewind buttons together for 6 seconds or until you see an icon of the chain broken on screen.

  • I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    Abdel,

    What font you vectorize?

    Or is happening with all your fonts?

  • My speed has decreased between the router and the modem is not working properly, what can I do to increase the download speed with my Time Capsule 802.11n

    My speed has decreased between the router and the modem is not working properly, what can I do to increase the download speed with my Time Capsule 802.11n

    A variety of phenomena can affect the performance of its wireless network. You may be able to mitigate some negative effects.

    Solutions to any factors that may have an impact on your wireless network, read use the Diagnostics wireless for you help to solve the problems of Wi-Fi on your Mac - Apple Support.

  • I downloaded Multi Access Tool from Mcafee with Firefox Mozilla, how do I reinstall if it does not work properly?

    I downloaded Multi Access Tool from Mcafee with Firefox Mozilla, how do I reinstall if it does not work properly?

    My sincere apologies, my Mcafee came via the Optimum/Cablevision, not Mozilla. I now managed to solve my problem and appreciate the 2 above responses. Thank you.

  • I think Firefox is getting worse, because there are many Web sites that does not work properly with it, while my other browser Google Chrome can.

    There are many sites, but I will say only 1 site because I have very bad memory, so here's the problem, Web site Furaffinity.net, search for his website may not work properly with Firefox, its advanced research, help and toggle the button description can be click but nothing happened after a click. However, my other browsers, Google Chrome and INTERNET EXPLORER horrible can work properly. I tried to fix it by resetting Firefox but it doesn't work.

    Thank you, and I take back what I said about Firefox getting worse.

  • GasBuddy web site not working properly with firefox, but works very well with Explorer

    I noticed when I load the site gasbuddy.comweb, it does not work properly. It does not load, simply do not perform as it should. When I try to use gasbuddy.com to explore 9, it works very well. I already tried to work in safe mode and it does not solve the problem with gasbudy.com. Any suggestions on how to solve the problem? I made a discovery, and I'm very careful about deleting my cookies. It seems that when I do the procedure, I'm losing too much info on some web sites - weather.comweatherunderground, etc.. Just do not know how to delete cookies for a problem with the cause of other problems? Thank you.

    Could check you your zoom here:

    ALT + v (open the menu Classic view) > Zoom > Zoom text only

    If I have this on (checked) then the middle column moves to the right and superimposed on the right column. If I have that turned off, then the page zoom correctly.

  • On Firefox only, I get problems with a few Joomla sites using the JA_purity template. Error: has not been loaded because its MIME type "text/html", is not "text /".

    Hello

    I updated Firefox on my computer for 13.01. Now, he struggles to read about 2 sites - both are Joomla and based on the model of JA-purity. What happens is that it fails to load the CSS files to do with the side and the top of the Joomla site menus. The file comes up with this:

    because its MIME type "text/html", is not "text/css".
    Source file: http://extensions.joomla.org/
    Line: 0

    This error does not appear with other browsers and it displays perfectly in fact in all other browsers.

    I'm new on this but I read the following article and think it could be my problem

    https://developer.Mozilla.org/en/Incorrect_MIME_Type_for_CSS_Files

    Where Im stuck, it's that I did not fully understand what to make of this article, if I could get a step by step guide to fix this problem that would be greatly appreciated.

    I apologize in advance if the answer lies somewhere here - I have had a look and couldn't get out.

    Thank you
    Alex

    I don't see that the error and all style sheets seem to load.

    Reload Web pages, and ignore the cache.

    • Hold SHIFT and click reload.
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Cmd + Shift + R' (MAC)

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • How can I repair my windows installer, continues to come up with an error message that windows installer is not installed properly

    what I tried to do is to install the latest version of windows messanger (msn) ive, but im not able to make my windows installer comes back with an error message saying that the windows installer is not installed properly, please some help this starting to do my head in

    http://support.Microsoft.com/kb/2438651#reso1

    See the above article, I suggest you use not Fixit, but it's your choice.

    For manually fixit it you follow the steps in the resolution.

    fyip

  • Media Center won't play by video converter USB error ""files needed to display video are not installed or not working properly. " Restart the computer or Media center.

    I use USB to HDMI. TV, it is attached to works very well with the screen of the PC, but not with windows media center. Get the error message "the files needed to display video are not installed or do not work properly. "Restart Media center or computer" whenever I have to plug the usb device and you try to play a video in wmv recordedTV. Otherwise, it works fine on the PC monitor. What is the problem? Can it be fixed? I use questions cable 'Câble questions SuperSpeed USB 3.0/2.0 to HDMI/DVI for Windows and Mac up to 2048 x 1152/1920 x 1200' with windows 7. Is there another brand and model that works?

    On Wednesday, September 3, 2014 13:19:09 + 0000, CharlesHickox wrote:
     
    > I use USB to HDMI. TV, it is attached to works very well with the screen of the PC, but not with windows media center. Get the error message "the files needed to display video are not installed or do not work properly. "Restart Media center or computer" whenever I have to plug the usb device and you try to play a video in wmv recordedTV. Otherwise, it works fine on the PC monitor.
     
    I assume you mean WTV and not the WMV files? Likely the reason is that the adapter
    questions of cable is not HDCP compatible. (Rules of DRM Media Center
    apply).
     
     
     
    __________________________________________________________________________________________________
    Barb
    MVP Windows Entertainment and connected home
     
    Please mark as answer if that answers your question
     
     
     
  • Problem with Windows Media Player: "Server execution failed" and "files needed to display video are not installed or do not work properly.

    I have a problem with Windows Media Player on laptop Lenovo G780. My laptop is under warranty (bought a month ago), but technical support Lenovo told me that the Windows Media Player program is not covered by the warranty.

    And this is a problem:

    When I click on Windows Media Player - to about 0.1 sec I see it opens and closes the window and nothing happens.

    When I select a mp3 or wmv file and right-click with the option open with Windows Media Player - I get a message: "Server execution failed" - I checked that all services with 'Media' in the name are running.

    When I select a mp3 or wmv file and right-click with the open option with Windows Media Center - Windows Media Center opens with the message: "the files needed to display video are not installed or do not work properly.

    When I select a file mp3 or wmv and right-click with option open with Windows Movie Maker life - see the video

    I tried to turn / WMP and WMC - did not help
    Tried to run as administrator - did not help
    I don't see something suspicious under events

    What can I do else?

    Thank you

    Zarek

    I had the same problem and then by chance, I tried a video on YouTube and it worked for me. Here's how I went on this issue and solved my problem:

    1. go to the computer, then OS (C).
    2. you will need to open Program Files (x 86) and Program Files.
    3. go to Windows Media Player in Program Files (x 86) and open the folder.  Then, remove the wmplayer file.  You may need to work around the error TrustedInstaller.  I'll tell you that, in a moment.
    4. in Program Files, go to the same folder for Windows Media Player and select the same file again. Wmplayer.  Copy the file in another window open.  Copy ensures that if the question comes up again you can at least try to fix it again.
    This should be the end of your problem.  If you need to circumvent the TrustedInstaller question is how:
    1. right click on wmplayer and select Properties > Security > advanced > owner > Edit > other users and groups.
    2. Enter your username and then click on check names.  Click OK.
    3. close the dialog boxes as he has requested.
    4. open again the properties and click Security.  Select your username from the list and click on edit.  From there, select full control.
    This should give you full control over the removal of the original file for WMP and easily allow you to copy the other files (x 86) programs.
    Please let me know how it goes for your problem.

Maybe you are looking for

  • Repeatedly questioned for password for mail.

    I changed my email password with my provider. I used the same password for the outgoing and incoming on Apple Mail mail (and 'saved', etc.) - in other words, I followed all the requirements and instructions. However, I still can't receive mail (pop3.

  • Apps will not all download

    I just bought an Apple TV. I am trying to download applications, and no download. I am connected to the internet, and everything is good. I click on install and it runs for awhile and then the button install comes back and it is not downloaded. I try

  • Drab draws with Pro - 100

    Earlier this week, I bought a Pixma Pro-100 to replace my i9900 printer.  My main motivation was to be able to print more quickly, because I was very satisfied of the quality of the prints the i9900 produced. Yesterday, after I installed the Pro-100,

  • How can I access Directory Access Denied?

    My computer crashed, system32\system file is corrupt. I tried to repair it with the Windows XP CD but failed. RELOADED Windows over the old system, leaving intact files.  Now I can't find my old documents and cannot access the directory of the user t

  • Outlook Express was suddenly more accessible!

    We used MSN and Outlook Express as our default email for many years.  Suddenly, we can access more is she!  When you click the icon, the Outlook Express 6 window opens and then the computer crashes.  We have access to our list of contacts and have ac