Flex :: GraniteDS Can't Convert From Its Class To Bean
Mar 19, 2011I have a Entity bean and it's corresponding ActionScript class when i transfer an object of that class i got that error[code]...
View 3 RepliesI have a Entity bean and it's corresponding ActionScript class when i transfer an object of that class i got that error[code]...
View 3 RepliesI am using flex with java.
I am fetching data from DB and put in object bean by setter and getter . and make list of beans.
this list i want to show in data grid in flex.
I want to use the Parsley framework and I want to use GraniteDS for remoting. As of 2.1, GraniteDS generates AS3 service classes from your Java code as local proxies, and I want to use these classes in Parsley.[code]...
View 1 RepliesI have a server api wirtten in Java and client side written in flex and I am trying to configure them together using GraniteDS. However, when trying to add this line:
<graniteds:flex-filter url-pattern="/*"/>
to the ApplicationContext.xml - then when trying to deploy my webapp (via glassfish) to a server i get this error:
org.apache.catalina.LifecycleException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 86 in XML document from ServletContext resource [/WEB-INF/commonContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'graniteds:flex-filter'.
I have a streaming server (for pushing data not video) setup with GraniteDS and it works great. I have to include multiple swf files in a web page. Each of these swf files has a data table which includes streaming data(this is a specific requirement - so I really cant combine all data tables into 1 huge data table/swf file). All the swf files however, connect to the same gravity channel/streaming endpoint.
How many connections are there from the web page to the streaming server? Does each swf file start a new streaming connection? Or do all them share the same connection since they are just connecting to a single channel?
I'm trying to load a bunch (about 100) of images into memory, so I can display them at various times. Originally I had simply embedded them, but that of course resulted in the swf file being larger than I wanted. So now I'm trying to change it to load them in the background because they aren't needed immediately.There are probably plenty of problems with this. The current on is that I'm getting an error that says 'TypeError: Error #1034: Type Coercion failed: cannot convert "foo.jpg" to Class.'
I've been googling this awhile, assuming loading an external image is a common thing. That's where I got the Loader and URLRequest code, but I'm clearly missing something. Maybe it's due to my goofy looping logic.Here's the class so far
public class CardImages2
{
public static var fooImage1:Class;[code]....
I have created a bean class in action script using flash builder getters and setters method.
the class is :`
package default{
public class AccountBean
{
[code]...
I am getting these error while creating bean id , Im using spring: Here is the error Error creating bean with name 'StockdataChart' defined in ServletContext resource [/WEB-INF/config/web-application-config.xml]: 1 constructor arguments specified but no matching constructor found in bean 'StockdataChart' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
[Code]...
I'm trying to use RemoteObject from ActionScript to execute simple method on Java server side using GraniteDS. However, I'm getting this exception:
[code]...
I made some debug and monitoring, and I could see the AMF message the client sent. And it looked normally. However AMF0Deserializer can't deserialize it.Am I sending it wrong? Or there should be an error on the server side?
I'm trying to make Spring automatically register my remote destinations by reading its annotations. So that I don't need to update some configuration file every time I create a new service. [code]...
View 1 RepliesI'm trying to integrate Seam and Flex with GraniteDS, with the goal of implemenenting a code generation tool for main use cases of CRUD operations.One of my needs is to have the possibility to generate a combo box to reference a parent entity from another. For example, a state combo box in my county edition/creation screen.
View 1 RepliesI'm using a library that has a function that returns an instance of some class Engine.
I'd like to tack on some interfaces to Engine, so I subclass it class InterfacedEngine extends Engine implements AwesomeInterface. but when I change the code that uses the classes from this:
var engine:Engine = generateEngine();
to this: var interfacedEngine:InterfacedEngine = generateEngine();
It gives me a runtime error (elision mine):
TypeError: Error #1034: Type Coercion failed: cannot convert ...::Engine@1bc2bf11 to ....InterfacedEngine.
What about AS3 classes am I misunderstanding?
Can you take an object from the stage and convert it into a custom class?
View 2 Repliesi have a peace of code, that applies only on 1 movie clip called "thumb" on the stage, what i would like to do is to convert this script to a class, and then make whatever i have on stage follow the instructions of the class note that some variables take information from the "thumb" like: var currentX:Number=thumb.x;
var lastX:Number=thumb.x;
so how are these variables going to get data from several movieclips later?
[Code]...
I need to call the mc from the library, dynamically any some of the mc's from library. I named that class as "mc_1", "mc_2", "mc_3" etc. I now have the class name as a String. With that I can't able to get the mc from the library.[code]...
View 1 RepliesI have a class which takes in another class as one of its parameters, and creates instances of it according to certain rules.In the past, I've had no problem with passing classes from the library to that class, which obligingly does its magic.In this case, however, I'm dynamically loading an image at runtime. I'm trying to wrap that image in a MovieClip, and somehow pass that clip *as a class*, to the one that creates multiple instances.Is this possible? I thought I'd cracked it with something like:
Code:
theMovieClip.addChild(thePicture);
var apples:Class = Class(getDefinitionByName(getQualifiedClassName(theMovieClip)))
[code].....
How can I convert a string to a class without getDefinitionByName because that class is not linked to a library item and getDefinitionByName only works with classes that are linked to library or allready initialized! Is there a way? Or I have to initialize every class I want to use?!
View 2 RepliesI have been trying to convert the watch function code into AS 3. I am totally new to AS 3 and could not find the solution yet. Here is my code -
[Code]...
The variable 'buttons' must be in the root timeline. And, I cannot use this variable inside any other class.
From the book "AdvancED Actionscript 3.0 Animation" I fixed a problem in the code they give you that is using [Embed....] instead of using library objects with linkage names. I still have the error: TypeError: Error #1034: Type Coercion failed: cannot convert Tile_01@1bf93a61 to Class. at GraphicTest$iinit()
[Code]....
Using the ArcGIS Server Flex API, is there a way to convert mouse coordinates on the screen or the a map control to spatial coordinates in the map? It seems like there's functionality to convert map points to screen points, but a function for converting in the other direction seems weirdly absent.
View 2 RepliesI'm new to oop and I'm trying to convert a auto scrolling TextField into a class. I guess it has something to do with there not being a stage when the class is instantiated but I'm not sure how to get around it. my code:
[Code]...
I made a custom event, but was getting this runtime error: TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@1498f491 to com.esidegallery.net.BatchLoaderEvent. and eventually found what I thought was the the answer here - [URL] I made the necessary changes, but I'm still getting the same error! It's just a batch loader that dispatches a custom event for every item that loads, with its LoaderInfo object attached. Here's the event code:
[Code]...
I've read on the net that there is the flex component kit for flash that allows me to convert flash symbol to flex component or container.
I tried installing Flex_Skins_12_05.mxp that suppose to enable these features in flash cs4 but under the commands tab i can't see any commands related to flex conversion.
appropriate plugin to install in flash cs4 in order to convert it's symbols to be usable with flex ? t
In a Flex/AIR application, I need to create snapshots (like big thumbnails) of local PDF files (one per page, if indicated).Ideally, I would like to do it all on the client side (PDF is a public specification, albeit a REALLY COMPLICATED one).I have read about an "Adobe plug-in" but I cannot find a specific piece of software that makes the HTMLLoader.pdfCapability report anything but ERROR_CANNOT_LOAD_READER. I hope to load the PDF and then move the bitmap data to an Image in order to save it.
View 4 RepliesIn Flex, it's easy to convert the XML to Object and to ArrayCollection by using var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(); decoder.decodeXML( xml );
But is there a good way to convert ArrayCollection to XML.
I have this item renderer MyRenderer.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" implements="mx.core.IDataRenderer" >
<mx:Script>
<![CDATA[
[code]....
Now when debugging I get the error that MyRenderer cannot be converted into classfactory.
the equivalent of this in flex [code]basicaly this ia a api in which i need to send the user credentials and a xml file containing the data(new_activity)for the credentials i tried to add it as a header authencation and encoding it to base64.[code]
View 2 RepliesI have a flex component that is using mostly mx and actionscript code. I am using it fine in my AIR application, however, I need to be able to use certain Air libraries within this component, so I need to make it Air 'aware' or compatible. For example, I need to get a reference to the current active window, so it looks like I need to use NativeApplication.activeWindow. But when I type this in to my component actionscript class, it does not know about NativeApplication. So it seems I have to do something to that project to enable Air classes, unless there is another approach?
View 2 RepliesI have some sounds in my library. They are all exported and have been given class names like C, D, E etc. I have another class that represents a button. This class stores a reference to one of the Sound in my library. I set the type for this variable to Sound. When I try to set it I get the error: cannot convert C$ to flash.media.Sound I try as Sound, for example key.note = note_array[p] as Sound; The value ends up as null.
View 2 RepliesI was wondering if it possible to write up some AS that will take line paths that you have drawn and convert them into a Path object? For example say you drew a jagged line from left to write, would there be a way to have AS convert that into a Path object.
View 11 Replies