Offline synchronization using AIR and Blazeds

hi freinds how we do offline synchronizaton in AIR application using Blazeds ...
can u please guide me..
thanks in advance
Prajnith.

Basically, is you use straight PHP, then you do everything yourself, unless you are using a framework written in PHP like AMFPHP.
So with PHP you typically use Flex HTTPService controls 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 Flex RemoteObject controls for two-way "server push" functionality, like a stock ticker updating automatically without the user doing anything if the price of a stock goes up.
Backend distributed data just means you have the data elsewhere (not on the user's machine), and it could be distributed (on serveral servers).
If this post answers your question or helps, please mark it as such. Thanks!
http://www.chikaradev.com
Adobe Flex Development and Support Services

Similar Messages

  • Debugging Deserialization Errors Between AIR and BlazeDS on ColdFusion using ORM

    Now that I am using CF + ORM for most of my Flex and AIR projects, I've had a much more difficult time with the deserialization of objects from AS to CF. The errors thrown by BlazeDS are not helpful at all, and not indicative of the true issue. cfgatewayadapter.jar is a closed source, and make it even more difficult, because it is the culprit in these issues. These issues can sometimes take a full day or two to resolve because the only way I've seen to debug is to start removing code line by line until the thing works. Huge waste of time.
    The problem stems from the fact that during deserlization CF barfs when something doesnt match. Instead of throwing a useful error, it proclaims the CFC doesnt exist serverside. The developer then has to go through each componenty property-by-property to try to determine where the problem is.
    What we need is something more specific to what the actual problem is. I've not found an adequate way to debug this, and it's causing me to seriously considering changing the backend to Groovy + Granite so I can get the control I need. Really, Adobe just needs to open up the source on cfgatewayadapter or put some time into refining it so that it throws accurate errors.
    Examing the error below, one would think that the CFC does not exist. However, if you run the same examples from CFML and pass it an instance of StreamProvider it works fine.
    [BlazeDS]Error deserializing client message.
    coldfusion.runtime.CfJspPage$NoSuchTemplateException: Could not find the ColdFusion component or interface StreamProvider.
            at coldfusion.flash.messaging.io.ColdFusionPropertyProxy.createInvokable(ColdFusionPropertyP roxy.java:132)
            at coldfusion.flash.messaging.io.ColdFusionPropertyProxy.createInstance(ColdFusionPropertyPr oxy.java:93)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.cfreadScriptObject(CFAMF3Input.java:524)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.readScriptObject(CFAMF3Input.java:250)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.cfreadObjectValue(CFAMF3Input.java:138)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.cfreadObject(CFAMF3Input.java:88)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.cfreadJavaArray(CFAMF3Input.java:748)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.cfreadBodyAsJavaArray(CFAMF3Input.java:110)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.cfreadBodyAsJavaArray(CFAMF3Input.java:102)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.readScriptObjectInternal(CFAMF3Input.java:3 95)
            at coldfusion.flash.messaging.io.amf.CFAMF3Input.readScriptObject(CFAMF3Input.java:246)
            at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
            at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
            at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
            at flex.messaging.io.amf.Amf0Input.readArrayValue(Amf0Input.java:359)
            at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:127)
            at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
            at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
            at flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeserializer.java:206)
            at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:126)
            at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:145)
            at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
            at coldfusion.flash.messaging.CFAMFEndPoint.service(CFAMFEndPoint.java:295)
            at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:353)
            at coldfusion.flex.ColdFusionMessageBrokerServlet.service(ColdFusionMessageBrokerServlet.jav a:114)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
            at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
            at coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:71)
            at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
            at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
            at jrun.servlet.FilterChain.service(FilterChain.java:101)
            at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
            at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
            at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
            at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
            at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
            at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
            at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
            at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
            at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [BlazeDS]Deserializing AMF/HTTP request
    Version: 3
      (Message #0 targetURI=null, responseURI=/3)
        (Array #0)
          [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
            source = "com.mediaslurp.remoting.ProviderServiceProxy"
            operation = "savePendingProvider"
            timeToLive = 0
            body = (Array #1)
              [0] =
    [BlazeDS]Serializing AMF/HTTP response
    Version: 3
      (Message #0 targetURI=/3/onStatus, responseURI=)
        (Typed Object #0 'flex.messaging.messages.ErrorMessage')
          headers = (Object #1)
          rootCause = (Typed Object #2 'coldfusion.runtime.CfJspPage$NoSuchTemplateException')
            rootCause = null
            message = "Could not find the ColdFusion component or interface StreamProvider."
            localizedMessage = "Could not find the ColdFusion component or interface StreamProvider."
            detail = "Ensure that the name is correct and that the component or interface exists."
            cause = null
            missingFileName = "StreamProvider"
            type = "Application"
          body = null
          correlationId = null
          faultDetail = null
          faultString = "Error deserializing client message."
          clientId = null
          timeToLive = 0.0
          destination = null
          timestamp = 1.295530026739E12
          extendedData = null
          faultCode = "Client.Packet.Encoding"
          messageId = "6C6E6657-430C-12E6-8B58-E33F7A6D59DC"

    does MySQL work by itself? did you try connecting to your
    databases with
    phpMyAdmin or alike?
    also, make sure you do not have several
    mysql-connector-xxxxxx.***.bin
    (whatever their names are, you know, the jdbc driver files)
    of different
    versions - make sure there is only ONE, preferably the latest
    one,
    anywhere on your server. remove any other ones.
    if i remember correctly, the exception you get in the error
    is usually
    caused by incorrect/old mysql connector drivers...
    Azadi Saryev
    Sabai-dee.com
    Vientiane, Laos
    http://www.sabai-dee.com

  • Help Needed in developing simple Chatting application using flex and blazeds

    Hi,
    I followed this tutorial from adobe http://learn.adobe.com/wiki/display/Flex/Creating+a+BlazeDS+messaging+application+in+Flex+ Builder i installed tomcat server and set the path.I am unable to open server like this http://localhost:8080 but i can able to open that in this way http://127.0.0.1:8080/   .... When i create my new flex project in flash builder 4 i am getting this error
    You do not have write permission for the project output folder. Specify another location.
    can any one help me in how to get rid of this problem.I hope this forum helps me in finishing my flex project..
    Thanks
    Trinethra

    Hi,
    Need to use a scrollable resultset and depending on the need to have a stateful connection or a stateless connection you may need to query the table for every request(for stateless connection) and use the same result set for(stateful connection). and depending on the no of records in a page and the page no do some simple arithmetic and move the resultset. Hope this helps.
    rajesh

  • How to upload images to server using flex and blazeDS

    Hi All,
         Could you some help me, regarding uploading two images while click on the upload button. i am have two browse buttons and two upload buttons. i am able to select the image, while click on the browse button. but i am unable to upload the image, while click on the upload button. like this, i have to do in my application.
    if some help me i will appreciate , its very urgent.
    Thanks
    venkat

    When uploading a file, I use a byte array as a temporary buffer..
    So, you should then be able to store the byte array in the
    database as binary data.
    example>
    //Temporary Buffer To Store File
    byte[] tmpbuffer = new byte[860];
    //Some Code To Upload File...
    //File Should Now Be In Byte Array
    //Get DB Connection and execute Prepared Statement
    Connection con=//GET DB CONNECTION;
    String sql=insert into TABLE(page) values(?);
    PreparedStatement ps=con.prepareStatement(sql);
    ps.setBytes(1,tempbuffer);
    ps.executeUpdate();
    //Close PS and Free DB Connection
    ..... and this method looks like you dont even have
    to store the file in a byte array, you can just give
    it the input stream.
    ps.setBinaryStream(int, inputStream, int);
    You may have to make several attempts at this. I have
    uploaded a file and temporarily stored it in a byte array,
    but have never from there stored it in the DB as binary
    data.. but this looks like it'll work.
    Good Luck!

  • Voip app with air and asterisk

    Hello,
    Does anyone have any knowledge if it would be a possibility to build a simple voip client like teamspeak and ventrilo using AIR and the Asterisk framework?
    Thanks,
    Jeff

    A newer version of AIR seems to have fixed the issue (phew eh!). I was actually still using AIR 3.4 when publishing so I changed to 3.9 (until the full release of AIR 4). Thanks for the help flexercised!

  • How to use remoteobject with blazeDS?

    Hello evebody!
    I have this problem when i build test project use remoteObject and blazeDS.
    It always occurs "send fail" erro.
    I guess that is MessageBrokerServlet.
    How can i fix that?
    This is project:
    http://www.mediafire.com/?cd1zehprmc6lupg
    Thanks!
    [email protected]

    Hi
    I encountered the same problem when I started learning RemoteObject with BlazeDS.
    You need to use the following endpoint url : http://<your_url_goes_here>/messagebroker/amf
    The explanation is as follows
    The <blazeds>\tomcat\webapps\blazeds\web-inf\flex\ folder contains the following .xml - configuration files.
    <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
    <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint" />
    </channel-definition>
    This is a channel definition under the services-config.xml file. This defines that an endpoint url of the above mentioned form should be referred to the AMFEndpoint class. It also provides other channels like secure / polling AMF.
    Hope this helps,
    balakrishnan v

  • Forced to use Air SDK?

    I'm trying to use Flash Builder 4.7 with our current projects. All these projects require Flex SDK 4.1 because we publish for Flash Player 10.
    It's not possible to select Flex SDK 4.1, I'm being forced to use the AIR SDK 3.4. These projects don't even require Adobe air.
    I'd really like to use Flash Builder 4.7 with our projects but this keeps me from using it while developing.

    Im so glad I finally found this thread. I am going to move back to 4.6 if I can find the download. I tried for 2 days to get my projects at work running 4.6 to work on my laptop at home running 4.7. I have multiple library projects and I single action script project with a link to the lib projects and I still can not get it to work on 4.7. I tried making it an action script project but could only use AIR and got tons of errors, a flex project but then ran into run time issues of not being able to find packages. It has really wasted a lot of my time and my companies time. Having the option to choose SDK was a good feature. I still much prefer Flash Develop as it is a simple application but as it is not available for the Mac I am forced to use Flash Builder which I think is bloated, terrible shortcut keys and lacks so many simple features that Flash Builder comes with. Maybe some of those features are in Flash Builder but everything is so hard to find I find myself doing things the slow way just because I refuse to go digging for things for example is there an easy way to get the path to an asset qucikly into my code as an embed path. Any way, Im going off topic. Reverting back to 4.6 if I can find it although I have just spend good money on an Adobe Creative Cloud membership so hopefully I can find a 4.6 download in there but Im not that confident.
    Rant over. 

  • Can macbook air and 24" Imac/Leopard 10.5.2 achieve file synchronization

    To renew my three year old Apple machines, I have chosen to use one macbook air and one 24" Imac. The questions are:
    1. can these two machines be set up to harmonically synchronize and keep all document files (mostly text) between them up-to-date when next to each other again?
    2. can all email folders (received and sent) be synchronized as above
    My work requires that the macbook air should be traveling with me and I would need to fully synch both machines upon returning to base.
    I am requesting any possible/feasible well tried/applied solution with Apple and Mac products.
    All advice will be appreciated. Thank you.

    Welcome to the Apple forums:
    You might try DiskWarrior as another tool.
    I would personally shy away from using FileVault. It turns your user folder into a huge single file and TM only backs it up after you log out. And each backup is a full backup (not incremental) because any change to any item in your user folder means that the entire FileVaulted folder has changed. So TM quickly fills up your backup HD.
    If you have the need for security, I suggest using a FlashDrive for the data. There is no reason to encrypt all the apps, AFAIK, but only the data.
    Some have had good luck using Ubuntu. Create a bootable system DVD or CD and copy your HD contents to a backup drive and work from there. But with FV, that may not be very helpful.

  • I have a new MAcBook Air and my photos don't fit on the internal hard drive.  I want to store my photos on an external hard drive which I will connect to my Air when using Iphoto.  How do I set an external hard drive as the default drive?

    I have a new MAcBook Air and my photos don't fit on the internal hard drive.  I want to store my photos on an external hard drive which I will connect to my Air when using Iphoto.  How do I set an external hard drive as the default drive in Iphoto?

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • I have a new iPad that uses the Cloud.  But my iMac, my MacBook Air, and my iPhone are all older.  How can I link my mail accounts that aren't on the cloud withntiPhone

    Does anyone know how to sync my email account which is on my iMac, my MacBook Air, and my iPhone with my new iPad that uses the Cloud.  none of my other Apple devices can use the cloud.   Please Help me use the same email account on my iPad!

    I have a MacBook Air, bought in 2010 or 2011.  It is running OS 10.6.8.
    I have an iMac that is the same age as my MacBook Air.  My iPhone is 2nd or 3rd generation.
    None can support "the Cloud".  I use gmail and my iPhone and both computers are all synced.
    I can't get email on my new iPad that does use "The Cloud".
    Please help.

  • Using the mini hdmi cord to connect the macbook air and my tv I cannot seem to have anything appear or be heard on my tv.. the MacBook air will flash blue like it is connecting but nothing will seem to work Any advice?

    Using the mini hdmi cord to connect the macbook air and my tv I cannot seem to have anything appear or be heard on my tv.. the MacBook air will flash blue like it is connecting but nothing will seem to work Any advice?

    Hi kxh3011,
    Thank you for using Apple Support Communities.
    This feature is called closed clamshell mode.  To learn more about using closed clamshell mode with an external display and how to set it up, please take a look at the article below.
    Mac notebooks: How to use your computer in closed clamshell (display closed) mode with an external display
    Cheers,
    Alex H.

  • Can I use a memory stick to back up my MacBook Air and what size do I need?

    i Have a MacBook air , processor 1.3 Ghz Intel core i5, 4GB 1600 MHz DDR3 memory. Operating on OS X Yosemite Version 10.10.1.
    it will not open up Safari, it crashed out of Safari with an error message and will not ooen it up now however many times I try.  I was reading Daily Mail on line at the time.  I can get onto the Internet by using Chrome but it feels as if Chrome is in charge of me rather than the other way round.  when I type in an address it just takes me where it wants to go rather than the website I want to to.  I now want to back up my data but left my drive in UK (I am in USA at the moment.) so wondered if I can back all my data (very important data) on to a memory stick so I can wipe my computer and start again.  I have an appointment with a techie at the Apple shop on Saturday but need to back up my data before the appointment, so not sure what to do.
    ALso my IPad is very unstable after using the Daily Mail site, it has always seemed to be fine before but this weekend seems to have created problems for both my MacBook Air and IPad Mini...

    You'd probably be better served to use a conventional external USB:
    http://eshop.macsales.com/shop/firewire/
    Easier to use, harder to lose and more dependable.
    http://www.tomshardware.com/answers/id-1772735/usb-flash-drives-reliable-externa l-hdds.html
    "generally speaking, a HDD (or SSD) is always going to be more reliable than a flash drive. USB flash drives are made to TRANSFER files, not to store them. Still, you get what you pay for, and I have had a few flash drives that have lasted a very long time"

  • I have a mac air and an iMac and both have Pages. I use Pages on my air and save all documents to iCloud. I can see them on my iMac but it won't open with Pages. It becomes visible if I change it to open with preview but I can't interact with it.

    I have an mac air and an iMac 5k - pages runs on both.  I use pages on my air and save all my documents to iCloud drive. I can see the documents on my iMac but some won't open in pages which is bizarre? They will open if I change it to open with preview but then all I can do is read it  - I can't add to the document - All I want is to be able to see all my documents on all my devices and to be able to have them sync so I can add to the documents from  any of my devices. I also have an iPhone 6 and an iPadair2 but I would be happy just to have the iMac and macair sync for starters. I have folders within folders in my documents,. The folders which contain pdf's and individual files open OK . The one I am having difficulty with is the file which I use for ongoing correspondence - in other words it is quite long - I keep adding to it  ( by copying letters in and letters out so I can see a sequential history of what has been going on by scrolling down ) in date order so that it could be 1 - 100 pages long - but I don't think the size is a problem. I don't understand why some folders can open and others not . Has anyone any suggestions please. I have been trying to get this to work for months since iCloud drive came in. It has got much better but it is still not good enough  - or maybe it's me?

    All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.

  • I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphon

    I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphone 5.  I can get connected to other wifi on these features but not with my jetpack.  Please help, I need to use this feature soon.  Thank you so much

    Chances are you mis-typed a character in the Wifi password and the devices saved that information.  Now whenever you try to connect the device refers to the wrong password and the Jetpack does not accept your connection.  Tell your devices to forget the wireless connection and start over.
    Once you enter the proper WiFi credentials the Jetpack will allow you to connect.

  • Can't get playlists from one one computer to another.  Confident Home Sharing is turned on correctly.  Have imac and macbook Air and Lion.  Using smart lists.

    Can't get playlists from one one computer to another.  Confident Home Sharing is turned on correctly.  Have imac and macbook Air and Lion.  Using smart lists.

    Using Ethernet, I am attempting to stream the movies on my computer to my girlfriends computer through iTunes home sharing. I want to watch the movies that are on one computer on another.

Maybe you are looking for

  • [SOLVED]How can I set GRUB timeout to 0 s ?

    First of all I'm neither dual-booting nor using multiple kernels. What I want to do is to save 5 seconds on every boot by skipping the GRUB menu automatically and booting to Arch which is my only OS. I've tried playing around with options in /etc/def

  • Problem with the Hirarchy

    Hi, We have a hierarchy in which there are few unassigned nodes. Some transaction data is loaded for the nodes in the hierarchy. When we execute the report most of the nodes in the hierarchy are coming under the unassigned nodes segment. For example,

  • Preserving Ranking after Changing file name in feed

    We are in the process of updating some of our collection to high quality SD video (640 x 360) and adding an HD (12800 x 720), which requires us to point to new files in the current sd feed. It seems that by doing so, we are losing the ranking for tha

  • Capture stream from camera in JSF ADF

    Hello to everyone, I have a strange question. Is there any solution if I want to capture stream from camera in my jspx page. I've searched in the net but unfortunately i haven't found anything. So, if somebody knows how this problem could be implemen

  • I bought a song in an album for preorder, but it says I didn't buy it

    Hi! More specifically, I bought the song "Maps" by Maroon 5, and now I want to pre-order the album "V", which contains "Maps". I don't know if it's a different version or something, but they seem to have different cover art; also iTunes don't seem to