blazeds

NetConnection.Call.Failed happening sporadically in Flex3/Tomcat/BlazeDS/Spring

独自空忆成欢 提交于 2019-12-01 06:03:50
问题 I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that has worked very well while developing locally, fine when I deployed to a common dev environment, but then fails very often when deployed to our test environment. The failures seem to happen most when a remoting request takes a good bit of time (more than 20 seconds). On my dev server, the errors happen, but only when the request takes a very long time (more than 45 seconds). However, the error also

Flex Null Integer

青春壹個敷衍的年華 提交于 2019-11-30 09:33:31
问题 I take data from Java to Flex by AMF (BlazeDS) In java side object has Integer field. So it can be null. In Flex side object is int. So null values are deserialized as 0. This is not what I want, I want to see whether it is 0 or null. Is there wrapper like (Integer in Java) for Flex? Thanks 回答1: As far as I can tell, there is no such wrapper. You can write one that assigns NaN to the internal int if the argument to the constructor is null 回答2: We solved this by creating a BeanProxy class

How does [RemoteClass] work in Flex Actionscript can I use it for custom data-binding?

时间秒杀一切 提交于 2019-11-30 08:23:11
问题 Actionscript supports a [RemoteClass] metadata tag that is used in BlazeDS to provide data-binding hints for marshalling AMF binary objects from Java to BlazeDS. For example: Java: package sample; public class UserInfo { private String userName; public String getUserName() { return userName; } public void setUserName(String value) { userName = value; } } Actionscript: [Bindable] [RemoteClass(alias="sample.UserInfo")] public class UserInfo { public var userName:String=”"; } How exactly is the

Flex Null Integer

♀尐吖头ヾ 提交于 2019-11-29 16:05:31
I take data from Java to Flex by AMF (BlazeDS) In java side object has Integer field. So it can be null. In Flex side object is int. So null values are deserialized as 0. This is not what I want, I want to see whether it is 0 or null. Is there wrapper like (Integer in Java) for Flex? Thanks As far as I can tell, there is no such wrapper. You can write one that assigns NaN to the internal int if the argument to the constructor is null We solved this by creating a BeanProxy class which overrides setValue and getValue. In there we return NaN to the flex side if the value is a Number and null, and

Tomcat doesn't do blazeds streaming after version 7.0.27?

混江龙づ霸主 提交于 2019-11-29 15:38:38
问题 I found my flex application doesn't work anymore after tomcat version $subject. Please help me to get through this. I tried many things without any success. Here is my configurations. Blaze - 4.x Tomcat - Latest - 7.0.32 Java 7 Application just hangs without any error or anything. It works again from 7.0.32. I checked tomcat release notes (http://tomcat.apache.org/tomcat-7.0-doc/changelog.html) and isolated problem up to Coyote jar file. When I replace Coyote.jar from version 7.0.27 to 7.0.32

Any Flex 4 migration experience?

↘锁芯ラ 提交于 2019-11-28 17:59:09
My current development stack is MySQL + iBatis + Spring + Spring BlazeDS Integration 1.01 + BlazeDS 3.2 and Flex 3 with Mate 0.8.9 framework. Now Flash Builder 4 beta 2 is out. There are cool features like Data Centric Development (DCD), form generation etc... Do you know how Spring Blazeds Integration works with BlazeDS 4? What about Mate? Is there any issues with Flex 4 ? How DCD suits with mate eventmaps. I know it is better to try it out myself but I just want to check if somebody ever tried to migrate Flex 4. If so what are the issues? Did you notice any productivity speed up? Thanks.

how to push data from BlazeDS without receive message from Flex client?

和自甴很熟 提交于 2019-11-28 10:25:31
I am using BlazeDS for data-push feature in my Flex application project. From the official tutorial, Getting started with BlazeDS , it shows messaging example with producer/consumer from API. but how can I implement server side which doesn't need to be invoke from Flex client, but from within server-side instead. I got some idea but I don't know how to do because I'm a Flex developer, not Java developer, so I think you can help me. In Google, there's a tutorial show about I need to extend ServiceAdapter class in Java-side, which extends Invoke method. Do I need to extend other class instead of

Duplicate Flex Sessions With Cross-Domain Requests

有些话、适合烂在心里 提交于 2019-11-28 08:41:44
问题 When I make a request locally, I have no problems at all maintaining my FlexSession; however, when I make a request from another computer, it creates duplicate FlexSession for every request. I noticed the JSESSIONID is different for each request which is what's probably causing the duped sessions. But I have no idea why this is happening. The specific error I get is: Channel.Ping.Failed error Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session

how to push data from BlazeDS without receive message from Flex client?

不想你离开。 提交于 2019-11-27 03:37:07
问题 I am using BlazeDS for data-push feature in my Flex application project. From the official tutorial, Getting started with BlazeDS, it shows messaging example with producer/consumer from API. but how can I implement server side which doesn't need to be invoke from Flex client, but from within server-side instead. I got some idea but I don't know how to do because I'm a Flex developer, not Java developer, so I think you can help me. In Google, there's a tutorial show about I need to extend