Application modular Flex and BlazeDS serialization problem

Hey there,
I write modular Flex application using BlazeDS to communicate with managed by backend Java spring. I created Java objects on the server side and the relevant ActionScript objects in flex.

I used RemoteClass metatag to serialize objects from flex to java. Everything works perfectly fine, when I work with the objects that first loaded module. I am able to serialize the form of objects as Java. But when I reload module or load another flex module I'm losing the types of objects serialized. I get this error message then:

faultCode:Server.ResourceUnavailable faultString: 'Can't call method "updateProfile".' faultDetail: ' types of expected arguments are (com.konrady.cms.entity.User), but provided types have been (flex.messaging.io.amf.ASObject) and processed (null).

I tried to invesigate this question, and I'm sure this is the problem with loading flex modules. When I insert ModuleA first of all, I am able to serialize the quant to Java objects. But when I load moduleB, I can't serialize objects and more. Loading moduleA again after that ModuleB are also not possible to serialize objects.
When I load moduleB firstly I can serialize objects of it. Reloading flex modules brokes Serialization...

Someone has encountered this problem before? I will be grateful for any piece of advice.

Ouch, I hope that someone with a full understanding of these multi-application configurations will come to your front rescure I spoil completely.

I would like to tell you of a long series of publications dealing with the complexity of such a request in the middle of the AIR [which is my case], but due to the mishandling of the code formatted in this forum tool, which deals as the thread to 'How to Test AIR 1.5' in the developer forum is almost impossible to follow and , at the end of the day, he never gave a "How-to" document as I had hoped.  Under "can someone Open the Black Box" in the Adobe AIR forum, there are some ideas that might be relevant.  To reduce the time of download of network for the scheme - not really reduce congestion of memory - I configured my use of SWFLoader in the AIR application to successfully benefit from the Flex Framework RSL.  I don't think that the possibility of using BlazeDS classes in the scheme is directly related to this difference, but it can be indirectly related.

Following this line of thought, you could get the 'how to debug Actionscript to Java serialization problem' that I posted on the forum Configuration and commissioning, which can help, but it seems that you have found the information of stack trace good to help in your search for failures.

The new information - or at least what I had not detected from your previous post - seems to be this:

Home - or not properly accesses remote objects, I'm not clear.

Load A sub-application successfully access Remote Objects.

Load sub-application B fails when you try to access remote objects.

This seems to make clear that "dumping" is not what is causing the failure.  I think, then, is that your problem has to do with loading, and now I have to expose my ignorance to the world and how it was that I finally managed to get my multi-application to subsequently work issues at stake.  If it helps your big case, or if only it gives off just using one or several of the teams in question Adobe - Flex SDK team, team air, BlazeDS team - then we all benefit.

Somewhere that I can't find now, there is this big PDF file describing the scenarios to pump Flex of MashUps and other environments where a disconnnected development team may have to deal with different versions of RSL - done one or two side-notes on the AIR, it focuses on the Flex.  From there on, I won some glimmer of an idea of the ApplicationDomain class and class related SecurityDomain.  I could not, on a bet, give you a clear statement on the results of the use of the different options.  The code I use to achieve successfully the dynamic loading of my scheme via the SWFLoader is loaded with comments showing that I n "t got a clue.  I tried all combinations; This is what works for me:

var context: LoaderContext = new LoaderContext();

context.allowLoadBytesCodeExcecution = true;

context.applicationDomain = ApplicationDomain.currentDomain;

var swfLoader:SWFLoader = new SWFLoader();

swfLoader.trustContent = true;

swfLoader.loaderContext = context;

swfLoader.source = byteArray;

The byteArray was populated by readBytes() starting from a FileStream.  As I said, my use case is sub-appliciations Flex and/or air base running in an envelope of AIR.  Presumably, you get to the same place in pure Flex using SWFLoader.load () after you have configured the ApplicationDomain or SecurityDomain via the LoaderContext.

All I can hope. After dragging you in all this rubbish is the link of the duration of the BlazeDS code begins to work for you, as it did for me.  In particular, which does not [even though I was debugging problems other than BlazeDS in time] was to set the LoaderContext this way:

context.applicationDomain = new ApplicationDomain (ApplicationDomain.currentDomain);

or was this another incantation:

context.applicationDomain = new ApplicationDomain (null);

These three variants have the world to do with the way the runtime detects and calls methods on classes in the application.  Only the first allows me to work successfully with RemoteObjects in any subsidiary application that happens to need support on the server side.

Tags: Adobe Open Source

Similar Questions

  • LTE application: Signal PSS and EU synchronization problem


    Just as I suspected, samples received on the receiver side are only cross correlated with the PSS sequence (PCI mod 3) = 0, this is the reason why the synchronization does not work when the eNB transmits with a (PCI mod 3) 0. The PSS sequence (PCI mod 3) = 0 is integrated as a time fixed signal of the domain in the FIR filters although (the two who treats I and rated a Q of the received signal handling complex). To change this and to implement a different sequence of PSS, should open the basic FIR blocks Xilinx generator and change the sequence.

    I got some guys from support LabVIEW Communication an updated version of the "LTE Cross Correlation.gcdl" function that implements a selective control for the value (PCI mod 3) and seems to change the PSS sequence within blocks of FIR. I post here if someone has the same problem. Although I have not tried myself yet.

  • Flex and InDesign application WYSIWYG editing

    Hello

    I'm creating an application using Flex and InDesign Server. I am facing an interesting problem with it.

    Flex application renders a model (contain images or text) based on XML. After editing the text content by the user, this XML model will change to InDesign server and will generate PDFS. It works very well. But if I compare the PDF model and model in Flex then I sometimes noticed the problem about text WYSIWYG template.

    I noticed this problem in the content of multiline text.

    Can someone help me?

    Thanks in advance.

    Pierrel

    To do this, create a custom algorithm to map the online composer and InDesign text rendering style line.

  • Applications created using Flex and their response time

    Hello

    I observe that Flex front-end Applications are very slow to be honest same Adobe site itself is slow .

    Please tell me what should be the size of a swf file so that the time which will be at least satisfactory.

    I don't think that every piece of the Flash on the site of Adobe's Flex and there is

    still a lot of HTML code on the site as well.

    You build an application, and the basic principles still apply.  Less

    code runs faster, the modularity allows to make to the code on demand, throw

    things you don't need.  Allows you to run a really small SWF file wrong and really

    bigger may well perform after the start.  It's all in how you write

    it.

  • Upload file multiple with Flex and ColdFusion problem

    Hi all

    I'm trying to resize images after download using the "multiple".
    Upload with Flex and ColdFusion"to

    http://www.Adobe.com/devnet/coldfusion/articles/multifile_upload.html

    In fact, everyone has a script that resizes the images successfully
    After the download of the images with this method?

    The reason why I ask is that I can't work properly, I tried
    all I can think and ended up with the code below. Which
    resizes the images, but does not delete the original file. The error
    who gets dumped is:

    "ColdFusion could not remove the file C:\ColdFusion8\wwwroot.
    \MultiFileUpload\uploadedfiles\0040.jpg for a
    unknown reason. »

    That does not really help. So I try to delete the original files
    manually, but windows will not let me also and wrote its been used by an application.
    If I download files over that I can then delete the original files
    the previous download.

    To me, it seems that the flash drive is not release the file

    Any help would be greatly appretiated.

    Richard


    Do you have applied the latest patches? There was a problem with locked files after using imageResize.

    http://cfsearching.blogspot.com/2008/04/ColdFusion-801-patch-issue-image-files.html
    http://KB.Adobe.com/selfservice/viewContent.do?externalId=kb402604

  • Implement the application has stopped working. A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available. »

    Try to install a CD "the Start-Stop software installation", but whenever I try, I get the following. Implement the application has stopped working. A problem caused the blocking of the program works correctly. Windows will close t he program and notify you if a solution is available. I sent the company and the school several times and have not yet received a response, maybe someone out there could help. Thank you!

    Ok.

    See if they have a patch for it.

    If this isn't the case, you may need to shopping for a similar program.

    Or repost in the Forum of programs on the link I gave you; they can learn more on this subject here.

    See you soon. Mick Murphy - Microsoft partner

  • Hello, I get the beginning of the muse of adobe are the error message that the adobe application manager is damaged or not installed now, I downloaded 2 times and installed the problem persists, however, can me someone here with a rat page

    Hello

    I get the beginning of the muse of adobe, the error that the application manager adobe is damaged or not installed

    Now, I downloaded 2 times and installed the problem remains, however

    can someone here with rat page

    Kindly try to remove Adobe Application Manager to help cleaning tool and remove CC help | Uninstall the creative desktop application Cloud can download and install Adobe Creative Cloud apps.

  • When I download the creative application of cloud and he finished it seems to be a bit of problem the app section, it says something like: the installation no longer works. You must uninstall and reinstall the creative cloud. But I already do that and it

    When I download the creative application of cloud and he finished it seems to be a bit of problem the app section, it says something like: the installation no longer works. You must uninstall and reinstall the creative cloud. But I already do that and it doesn't seem to change anything.

    Hello

    Please remove Creative Cloud app and Adobe Application manager using the-

    Install the cloud creative app - https://helpx.adobe.com/creative-cloud/help/install-apps.html

  • How to develop and test the application mobile flex without the real device?

    I'm trying to read some information about it, but decided to ask also here.

    I have a project that has a company wants to grow me, it's for iPad. That's ok I am with Flex and the framework for web development, but not for mobile. Why? Because I have no idea how to test my application. I know generation ago it sort of the desktop version of the application with the change of the "back" button on the orientation stuff, but how do I know my application will look and work exactly the same (I mean NOT performance here). I mean you know how every android or iOS device have their native keyboard or native video player for example and I have only in the debug version of the application.

    The question is how to develop this application based on the desktop emulator or anything and then hope that my app looks and works on a device, as it should... Of course I can't afford to buy all the devices it is just to be able to test on it if necessary? So, how do you, how to test how my iPad app works on a device without a? I know I should get a licence from iOS dev to be able to package the app for iOS, but it's $ 99 per year or something like that I can handle, but how to test my application without having to buy the darn device? Are there any emulator for iPad or something like that I know what my customers will see when they get the application? One of my friends told me that the mac os x use the developers a tool - cause some kit of dev who has emulators for all iOS devices and you can build and test there immediately and that you can simulate virtually any combination of key for example, and he said he's working and seems to 1:1 as the real device but he didn't know if can I export an AIR application and try it like this, he only knew for app written in native code.

    If someone can just tell me how should I do this? Should I buy a mac os x computer laptop to test because I am a user of windows 7, or perhaps create a mac os x virtual machine and tests out there or maybe the only option is to actually buy the device... that would be terrible for a freelancer...

    I hope someone can save the day here! Thank you.

    F

    Since the AIR for iOS applications are compiled to ARM code you will not be able to run on iOS emulators running on Mac OSX.

    You can do a very simple test with the "Simulator" built into Flash Builder, but it is not much more than a window to AIR with a window size that matches the resolution of the selected iOS device.  When running in the simulator of the application is not compiled to ARM code so it will take a completely different code path than what will be the final release of iOS.

    Ultimately if you are developing for iOS with AIR nothing but for tests on real iOS devices.

  • Problems using rpc between Flex and CF

    Hello
    I have a problem to send objects between Flex and Coldfusion using the gateway of the AUTHORITY of the new Version of Coldfusion.
    The transfer of CFCS to Flex works, but I can't send a complex object to a CFC.

    The Error Message is:
    faultCode:Client.Message.Encoding faultString:' cannot create class of type 'flex. HotlineSystem.bin.cf.Category'. ' faultDetail: 'Type' flex. HotlineSystem.bin.cf.Category' not found. »

    Im going totally nuts... the transfer of CF to Flex works very well, the mapping between category.cfc and category.as work of ist. But if I try to send a Flex object category to my CFC is not.

    I hope someone can help.

    Thank you!

    CFC function:
    < cffunction "insertCategory" access = "public" returntype = name = "Sub" output = "false" >
    < cfargument = "category" type name = 'flex. HotlineSystem.bin.cf.Category"required ="true">

    < cfquery name = "insertCategory" datasource = "hotline_system" >
    INSERT INTO category (category_idCategory, name)
    VALUES (#category.getCategory_IdCategory () #, ' #trim (category.getName ()) #')
    < / cfquery >


    Category.CFC:

    < cfproperty displayname = 'Category' alias = 'flex. Index HotlineSystem.bin.cf.Category"=" I model a single category ">
    < name cfcomponent = "idCategory" type = "numeric" default = "0" >
    < name cfcomponent = "category_idCategory" type = "numeric" default = "0" >
    < name cfcomponent = "name" type = "string" default = "" >

    < cfscript >
    Initialize the SWC with the default property values.
    variables.idCategory = 0;
    variables.category_idCategory = 0;
    variables. Name = "";
    < / cfscript >

    < name cffunction = "init" output = "false" returntype = "flex. HotlineSystem.bin.cf.Category">
    < cfreturn this >
    < / cffunction >

    < name cffunction output = "getIdCategory" = "false" access = "public" returntype = "any" >
    < variable cfreturn. IdCategory >
    < / cffunction >

    < name cffunction output = "setIdCategory" = "false" access = "public" returntype = "Cancel" >
    < name cfargument = "val" required = "true" >
    < cfif (IsNumeric (arguments.val)) or (arguments.val EQ "") >
    < cfset variables. IdCategory = arguments.val >
    < cfelse >
    < cfthrow message = "' #arguments.val #' is not a valid numeric" / >
    < / cfif >
    < / cffunction >

    < name cffunction output = "getCategory_idCategory" = "false" access = "public" returntype = "any" >
    < variable cfreturn. Category_idCategory >
    < / cffunction >

    < name cffunction output = "setCategory_idCategory" = "false" access = "public" returntype = "Cancel" >
    < name cfargument = "val" required = "true" >
    < cfif (IsNumeric (arguments.val)) or (arguments.val EQ "") >
    < cfset variables. Category_idCategory = arguments.val >
    < cfelse >
    < cfthrow message = "' #arguments.val #' is not a valid numeric" / >
    < / cfif >
    < / cffunction >

    < name cffunction = output "getName" = "false" access = "public" returntype = "any" >
    < variable cfreturn. Name >
    < / cffunction >

    < name cffunction = output "setName" = "false" access = "public" returntype = "Cancel" >
    < name cfargument = "val" required = "true" >
    < cfset variables. Name = arguments.val >
    < / cffunction >
    < / cfproperty >

    Category.As:

    package classes
    {
    [Bindable]
    [RemoteClass (alias = "flex. HotlineSystem.bin.cf.Category")]
    dynamic public class
    {
    public var idCategory:int;
    public var category_idCategory:int;
    public var name: String;

    public void category() {}

    }

    public void fill(idCategory:int,_category_idCategory:int,_name:String):void {}
    this.idCategory = idCategory;
    This.category_idCategory = category_idCategory;
    myIdName = name;
    }


    public function getIdCategory (): int {}
    Return this.idCategory;
    }

    public function setIdCategory (): void {}
    this.idCategory = idCategory;
    }

    public function getCategory_IdCategory (): int {}
    Return this.category_idCategory;
    }

    public void setCategory_IdCategory(category_idCategory:int):void {}
    This.category_idCategory = category_idCategory;
    }

    public void setName(name:String):void {}
    myIdName = name;
    }

    public function getName (): String {}
    Return myIdName;
    }
    }
    }

    Problem solved:
    Apparently, it is not possible to transfer an object from a class action script for coldfusion.

    The solution is to encapsulate the object (in my example category) in a table.

    Strange... but it works.

    Best regards

  • AMF3 serialization problems. How to put a BeanProxy custom?

    Hello

    When I serialize to AMF3 a BigDecimal whose value is null on the Flex client side app I get 0 instead of null or NaN.

    What I would like is that when a java variable pointed null is serialized on the client Flex app I get null or NaN (if it's a number on the client side).

    Also, when I serialize NaN flex client I want to it to be deserialized to null on the coast of Java.

    Is it possible to customize the serialization of specific objects?

    I read in some places that mention the use of a custom proxy bean. But I couldn't find how to implement or configure such a thing.

    I use the BalzeDS AMF3 serialization classes.

    Thanks in advance,

    Polaco.

    Hi Polaco,

    Normally you can access the method protected subclasses even in another package.

    The marshaler of type has the advantage of dealing with not only withbeans but also with parameters, you switch to a method call. I guess in your case, it doesn't really matter.

    Concerning the registration against the object class, the issue is in how BlazeDS. BlazeDS is messages, and those messages are of course subclasses of object. And these including Ack messages are serialized in the same way that your items are. That's where can side effect and, more than likely, will have occurred.

    The problem is that you not only customize your own objects, but also used by BlazeDS.

    The best way to understand how this all works is to run your server in debug mode, set breakpoints, and run something.

    Here is how I got it to work:

    When BlazeDS serialize or deserialize something, if it is not a simple type, it will seek a BeanProxy registered in the class of the object. First of all against the actual class, then against the implemented interfaces, then it goes up in the class hierarchy. If it does not find it, it will create one based on the default BeanProxy.

    Then, it will use this BeanProxy for a list of the properties of the class and getValue or setVlaue when it is read or written something on an object.

    There is also a method that handles the creation of the real object.

    I understand the idea behind it, the goal is to have blazeDs using the proxy instead of the real and class objects so it can use caches instead of actually using reflection all the time.

    This article looks at the implementation of a beanProxy to add some features of anotation to BlazeDS http://www.flexpasta.com/index.php/2008/05/19/blazeds-with-annotations-for-remote-objects/

    And it uses this mechanism to provide a way to manage the serialization of enum http://flexblog.faratasystems.com/2007/09/16/adding-enum-support-to-flex-amf-protocol

    Hope this helps,

    Nicolas.

  • Flex and HTML displayed shift in Safari under Mac OS

    When a popup is displayed in Flex app, Flex display gets moved down in Safari under Mac OS only. However, even if the screen is shifted down, orders appear to be in the correct position. For example, to click on a button, the cursor must be a few pixels above illustrated screen. Not only the Flex display moves down. Display of HTML links also moves down with Flex and the links are clickable a few pixels above the screen.

    The problem occurs only when to trigger the display of popup Flex flex long screen. On a screen of Flex in the height of the browser, with the same actionscript and Javacsript code there is no problem.

    It works fine in all other browsers like Safari in windows.

    All the world is facing this scenario? Any help will be much appreciated.

    The following code is used for the popup to display in the center of the viewable area.

    callLater (SMBObjectUtil.changePosition, args);

    In the SMBObjectUtil.as file.

    public static function changePosition (int x, y, obj:UIComponent):void { }

         var yPos:int = ExternalInterface.call("saveglobalscore",score) ("findScrollTop");

         var winHeight:int = ExternalInterface.call("saveglobalscore",score) ("getWindowHeight");

         var appHeight:int = Application.application.height;

         var objectWidth:int = obj.width;

         var objectHeight:int = obj.height;

         var calculatedX:int = 0;

         var calculatedY:int = 0;

    If(Application.application.width > obj.width) { }

              try {

    calculatedX = (Application.application.width - obj.width) / 2;

                   if (yPos < = 0) {}

    calculatedY = ((winHeight-objectHeight)/2-100) > 0? (winHeight-objectHeight) / 2 - 100:50;

    }

    else If(yPos < =(appHeight-winHeight)) {}

    calculatedY = (((winHeight-objectHeight)/2) + yPos-100) > 0? ((winHeight-objectHeight)/2) + yPos - 100:50;

    }

    else If(Posy >(appHeight-winHeight)) {}

    calculatedY = appHeight - objectHeight - (winHeight-objectHeight) / 2;

    }

    }

              catch (error) {}

    }

    }

    else {

    }

    obj.x = calculatedX;

    obj.y = calculatedY;

    }

    Used JavaScript functions are:

    function findScrollTop()
    {
    var ScrollTop = document.body.scrollTop;
    If (ScrollTop == 0)
    {
    If (window.pageYOffset)
    ScrollTop = window.pageYOffset;
    on the other
    ScrollTop = (document.body.parentElement)? document.body.parentElement.scrollTop: 0;
    }
    ScrollTop return;
    }

    function getWindowHeight()
    {
    var y = 0;
    If {(self.innerHeight)
    y = self.innerHeight;
    } Else if (document.documentElement & & document.documentElement.clientHeight) {}
    y = document.documentElement.clientHeight;
    } Else if (document.body) {}
    y = document.body.clientHeight;
    }
    Return y;
    }

    Found a solution for this. CallLater() appeared the problem in Safari. Once I deleted CallLater and directly called my function, the problem has been resolved.

  • What is the difference between the use of PHP and BlazeDS to connect to a service?

    Definition from wikipedia:

    BlazeDS is a server Java remoting and web messaging technology that allows you to connect to back-end distributed data and send data in real time to Adobe Flex and Adobe Integrated Runtime (AIR) Rich Internet applications (RIA). Because of its open licensing, BlazeDS is not forbidden to be used with other client platforms, such as JavaScript/Ajax.

    This means that BlazeDS acts as a server like Apache?

    What is a back-end distributed data?

    Basically, is that you use right PHP, then you do everything yourself, unless you use a framework written in PHP such as AMFPHP.

    So with PHP you use Flex HTTPService control to call your PHP scripts, and the communication is one-way, you call the script and handle the returned data.

    With BlazeDS and AMFPHP, you can use the Flex RemoteObject controls for two-way functionality "server push", as a stock market update automatically without the user do anything if the price of a stock rises.

    Backend distributed data simply means that you have the data elsewhere (not on the user's computer), and it could be distributed (on several servers).

    If this post answers your question or assistance, please mark it as such. Thank you!

    http://www.chikaradev.com
    Adobe Flex development and Support Services

  • Collection ArrayCollection in flex and ArrayList in java




    Salvation of this world don't
    Here I am with my problem with the hope someone can solve it
    I am totally new to flex and I work only for 3 days in flex. and I learned a little more.
    I want to get the values of database that is received from java to flex datagrid object by using the data provider.
    I did quite well in my opinion. But I could not produce the result in the data grid. Since I am very new. I don't know what is happening.

    my code is here, please help me.

    My mxml file: Myadmin.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" >
    < mx:RemoteObject id = "ber" destination = "dock" showBusyCursor = "true" fault = "faultHandler (event)" > "
    < name mx:method = "getBerth" result = "resultHandler (event)" / >
    < / mx:RemoteObject >

    < mx:Panel id = 'Top' title = "MaBase" width = "100%" height = "40%" enabled = "true" >
    < mx:TextArea id = "sql" width = "100%" height="100%"/ >

    < mx:Button label = "Execute" click = "handleSend ()" / >

    < / mx:Panel >

    < mx:Panel id = "bottomPanel" title = "Results" width = "100%" height = "60%" enabled = "true" >
    < mx:DataGrid id = "dg" dataProvider = "{result}" width = "100 percent" height="100%"/ >


    < / mx:Panel >
    < mx:Label id = "resultLabel" text = "Onumae puriyale ulgathulae" / >

    < mx:Script >
    <! [CDATA]

    Mx.rpc.events import. *;
    Import mx.collections. *;
    Mx.controls import. *;
    Import mx.utils.ObjectUtil;




    caching empty ArrayCollection collection so that we don't continue to create
    new

    private var emptyResults:ArrayCollection = new ArrayCollection();

    [Bindable]
    public var result: ArrayCollection collection = emptyResults;







    private void resultHandler(event:ResultEvent):void
    {
    Alert.Show ("event.result table of results", ObjectUtil.toString (event.result as ArrayCollection collection));
    result = ArrayCollection (event.result);
    var myCursor:IViewCursor=result.createCursor();
    var oldLength:int = result.length;

    Alert.Show (oldLength.ToString ());




    }

    private void faultHandler(event:FaultEvent):void
    {
    Alert.Show (event.fault.faultString, "Error");
    }

    private function handleSend (): void
    {


    ber.getBerth ();


    }




    []] >
    < / mx:Script >


    < / mx:Application >

    My java object: Berth.java


    package samples.sqladmin;
    import java.sql. *;
    Import Java.util;
    import java. IO;

    public class Berth

    {
    Public Shared Sub main (String args []) throws exceptions
    {
    List ArrayList = getBerth();
    System.out.println ("the list is =" + list);
    }

    public static ArrayList getBerth () throws Exception {}
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
    ResultSetMetaData rsmd = null;
    List ArrayList = new ArrayList();
    HashMap line = null;
    try {}
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch (ClassNotFoundException nctf) {}
    System.out.println (CNFE.getMessage ());
    }
    try {}
    con = DriverManager.getConnection ("jdbc:odbc:Jurong", "","");
    St = con.createStatement ();
    String sql = "select * berth;
    RS = ST. ExecuteQuery (SQL);
    rsmd = rs.getMetaData ();
    int colCount = rsmd.getColumnCount ();
    While (RS. Next {}
    line = new HashMap();
    for (int i = 1; i < = colCount; i ++) {}
    Row.put (rsmd. GetColumnName (i), rs.getString (i));
    }
    List.Add (Row);
    }

    }
    {} catch (SQLException sqle)
    System.out.println ("enna da yogans eeeeee...");
    System.out.println (sqle.getMessage ());
    }

    If (con! = null)
    con. Close;
    If (st! = null)
    St.Close ();
    back list;

    }

    }

    my remote-config file is:

    < destination id = "dock" >
    Properties of <>
    samples.sqladmin.Berth < source > < / source >
    < / properties >
    < / destination >

    I got the table in flex collection object, but it gives the values received in java

    Please help me.
    Thanks in advance
    yogans.

    Hi my dear friends

    I'm sorry to put you in trouble. I got the result. The problem is
    not with the code. its with my system. The problem is that I have configured
    same name for datesource for system and user DSN DSN name. After that I deleted
    a user DSN data source. I got it working.

    Thank you very much william, thank you much Nelson for your spontaneous response

    Thank you
    Yogans

  • Flex and XML Variables

    Hi, I'm new to Flex and I tried to understand this, but as I can't find many tutorials on the net thought I may as well ask here.

    I currently have a Flex application that connects to a PHP that connects to the MYSQL db, then writes the XML, then it displays it in the data grid.

    Now, it's the problem.

    My XML looks a like that
    <>tiles

    <>tile
    < x >/< x > 1
    < y > 2 / < y >
    < timage > http://www.google.com/intl/en/nav_first.gif < / timage >
    < / slab >

    <>tile
    < x > 2 / < x >
    < y > 3 < /y >
    < timage > http://www.anotherimage.com/image/anotherimage < / timage >
    < / slab >

    < / tiles >

    I am trying to assign each timage to a variable with the url and then get a picture using the source of the url to display. I hope you understand what I'm trying to say that I'm not very good at explaining. The help is much appreciated thanks.

    Maybe I understand, either, but here's my point of view:

    (1) I think you should use TileList, no tile
    (2) set the dataProvider of the TileList on the object that you receive from your xml file

    Here's an example of super fast and dirty I basted together the TileList component example in the documentation:

    http://www.Adobe.com/2006/mxml"initialize ="initData (); ">

    Import mx.controls.Button;
    Import mx.collections. *;
    private var listArray:Array =]
    "" http://www.google.com/intl/en/nav_first.gif ", "
    "" http://www.google.com/intl/en/nav_current.gif ", "
    "" http://www.google.com/intl/en/nav_page.gif ", "
    "" http://www.google.com/intl/en/nav_next.gif " "
    [Bindable]
    public var TileListdp:ArrayCollection;

    private void initData (): void {}
    TileListdp = new ArrayCollection (listArray);
    }
    ]]>


    itemRenderer="mx.controls.Image"/ >

    Al

Maybe you are looking for