Quantcast
Channel: Adobe Community : Popular Discussions - BlazeDS
Viewing all 57966 articles
Browse latest View live

BlazeDS with Flex and ATG

$
0
0

Hi All,

 

Can any one tell me how to integrate ATG and Flex using Blazeds.


NetConnection.Call.BadVersion - Channel disconnected

$
0
0

I am facing NetConnection.Call.BadVersion error when I run flex based application with BlazeDS on S64 with Weblogic application server.

 

At application start up, it makes 4 calls to server and get appropriate data. However once the application is up and hence forth I make any calls cause the error. I observed that the mid-tier java code (Remote Object) is not invoked by later flex calls. The faultDetails of FaultEvent says that “Channel disconnected before an acknowledgement was received”.

 

I am not using HTTPS secured protocal.

 

Has anybody face this kind of issues? Any input, suggestion or solution would be greatly appreciated.

 

Other details are

OS  : S64

BlazdDS : Community Edition: 4.0.0.10620

App. Server        : Weblogic 10.3.3

 

The snippet of flashlog

[DEBUG] mx.messaging.Channel 'my-amf' channel got status. (Object)#0

  code = "NetConnection.Call.BadVersion"

  description = ""

  details = ""

  level = "error"

FaultEvent.faultString :- Channel disconnected

FaultEvent.faultDetail :- Channel disconnected before an acknowledgement was received

 

Thanks

--sachin

Channel.call.failed error NetConnection.Call.Failed:HTTP:Status 504

$
0
0

Hi All,

 

 

 

I have a flex application which has been built using flex 3.2 and Blazeds. Its working fine in the test server(and also in local machine), but getting following error when i uploaded it to production server.

 

 

 

Fault handler error:

 

Channel.call.failed error NetConnection.Call.Failed:HTTP:Status 504

 

 

 

Above error popups only on particular action(its connecting to backend and configuration in  remoting-config.xml also correct). I checked the log in tomcat server for exception, there is nothing.

 

 

 

 

 

Configuration in services-config.xml for channel definition is as below:

 

 

 

<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">

 

            <endpoint url="http://localhost:8080/blazeds_Sample/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

 

</channel-definition>

 

 

 

Please suggest me a solution.

 

 

 

 

Thanks,

 

Suchithra

JBoss 7 and BlazeDS Authentication

$
0
0

Hi,

 

Has anybody tried to set up Database authentication and BlazeDS though JBoss 7?

 

I've performed steps I previously used with other versions but still getting the usual error;

 

'There was an unhandled failure on the server. flex/messaging/security/TomcatLoginHolder'

 

The truth is I feel like I'm stubbling around in the dark because JBoss 7 is so different to previous versions.

 

Any help would be appreciated

[svn:bz-4.6_Apache] 24027: Removing weblogic. jar as it cannot be open sourced.

$
0
0

Revision: 24027

Revision: 24027

Author:   rohitk@adobe.com

Date:     2012-07-31 06:09:32 -0700 (Tue, 31 Jul 2012)

Log Message:

***********

Removing weblogic.jar as it cannot be open sourced.

 

Removed Paths:

*************

    blazeds/branches/4.6_Apache/modules/opt/lib/weblogic.jar

 

[svn:bz-4.6_Apache] 24056: Added changelog for donation to Apache.

$
0
0

Revision: 24056

Revision: 24056

Author:   nagpal@adobe.com

Date:     2013-05-28 03:31:12 -0700 (Tue, 28 May 2013)

Log Message:

***********

Added changelog for donation to Apache.

 

Modified Paths:

**************

    blazeds/branches/4.6_Apache/modules/proxy/src/flex/messaging/services/http/httpclient/Eas ySSLProtocolSocketFactory.java

    blazeds/branches/4.6_Apache/modules/proxy/src/flex/messaging/services/http/httpclient/Eas yX509TrustManager.java

 

Blaze DS - Mapping java object into another java application

$
0
0

Good afternoon,

I realized a Client-Server application. Server is Java-based. Client is Flex. Server services are accessible through Blaze DS.

 

Now I have some Java clients that need to access server services. Blaze DS permits to do it simply but I don't know how to map java objects as I do using [RemoteClass(alias.....)] construct at Actionscript side.

 

For example, server sends a MyObjectType and client receives an ASObject.

Is there a way to map java MyObjectType automatically at destination?

Thank you for help and sorry for poor english.

 

Regards, Francesco

Please specify a valid 'services.configuration.file'

$
0
0
Hi,

I have setup a maven project that builds the web application war. I used the (empty) blazeds application from the turnkey distribution as template. I am quite sure that my final war is built properly. Trying to run the webapp with the maven jetty plugin throws an exception.

MessageBrokerServlet failed to initialize due to runtime exception: flex.messaging.config.ConfigurationException: Please specify a valid 'services.configuration.file' in web.xml. You specified '/WEB-INF/flex/services-config.xml'. This is not a valid file system path reachable via the app server and is also not a path to a resource in your J2EE application archive.

The services-config.xml is located in the /WEB-INF/flex directory as well as the other xml files. The blazeds libs are also there. I also tried using the mvn jetty:run-exploded goal without success:

2008-09-23 13:41:09.602::WARN: failed MessageBrokerServlet
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/UsernamePasswordCredentials

I would be grateful if anybody has a hint.

Cheers

Sebastian

Configuring Flex Project with tomcat (non-turnkey)

$
0
0
I am having trouble configuring a flex project in a non-turnkey tomcat configuration:

I am using eclipse-wtp + tomcat 5.5
my folder structure looks like this (after installing the samples, blazeds and ds-console wars):
[eclipseWorkSpace]
/Servers
/samples
/build
/src
/WebContent
/blazeds
/build
/src
/WebContent
etc.

the example out of samples/ work fine.

however, when I try to create a new flex project for creating a new swf, "Validate Configuration" step during the "Configure J2EE Server" step of "New Flex Project" fails complaining as follows:
"Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid."

Root Folder: [myeclipseworkspace-path]/samples/WebContent
Root URL: http://localhost:8180/samples/
Content root: /samples

I tried some other paths in the Root Folder such as:
Root Folder: [myeclipseworkspace-path]/samples
which give a different error:
"Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml"

Again, the samples out of the box seem to work fine via
http://localhost:8180/samples

What am I doing wrong?

[This is likely a typical configuration that developers will use and not the turnkey one]

Unsupported AMF version 17,491.

$
0
0
Hi all,

I'm getting the following error when I subscribe to a channel:
flex.messaging.MessageException: Unsupported AMF version 17,491.

(stack trace at end of post)

BlazeDS Version: blazeds_bin_3-0-0-544
Flex SDK Version: flex_sdk_3.0.0.477

I was having the problem described here
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=667&threadid =1332869&highlight_key=y&keyword1=sc

But after making the proposed changes I now get the above error.

Just to note, I had no problems at all when using flex3sdk_b3_121207 and blazeds_b1_121307.

Any help appreciated. Thanks in advance!

Regards,
Chris

-- Stack Trace --

[STDOUT] [BlazeDS] Unsupported AMF version 17,491.
flex.messaging.MessageException: Unsupported AMF version 17,491.
at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:93)
at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:114)
at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274)
at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)

BlazeDS Developer Guide Updated

$
0
0
An updated PDF version of the BlazeDS Developer Guide is available at:

http://livedocs.adobe.com/blazeds/1/blazeds_devguide/blazeds_devguide.pdf
This revised Developer Guide contains all of the content from the new LiveCycle Data Services 2.6 Developer Guide that applies to BlazeDS.

Note: Only the PDF version of the Developer Guide is updated. The Livedocs HTML is not updated.

Much of the documentation has been revised and reorganized, and there are completely new sections on:
Getting Started
- Introduction
- Building and deploying

Architecture
- General architecture
- Channels and endpoints
- Managing session data

AMF Channel - Project Relocation Issue

$
0
0
The problem I'm having came up when I tried moving a working BlazeDS/Flex/Java project on my local machine to a remote server. The way I've set up the server is with user directories (~username) style so I wanted to move my BlazeDS project under that directory (so the access url for the project would be something like: http://ip_address:8080/~username/blazeProject )

So I moved the project folder into the ~username subfolder of my web directory. When I moved the project there I started having problems with my AMF channel when I tried to use the RemoteObject communications that worked locally but now don't. This is the fault information I received:

>(mx.rpc::Fault)#0
errorID = 0
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://192.168.111.201:8080/blazeProject/messagebroker/amf'"
faultString = "Send failed"
message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://192.168.111.201:8080/blazeProject/messagebroker/amf''"
name = "Error"
rootCause = (mx.messaging.events::ChannelFaultEvent)#1
bubbles = false
cancelable = false
channel = (mx.messaging.channels::AMFChannel)#2
authenticated = false
channelSets = (Array)#3
[0] (mx.messaging::ChannelSet)#4
authenticated = false
channelIds = (Array)#5
[0] "my-amf"
channels = (Array)#6
[0] (mx.messaging.channels::AMFChannel)#2
clustered = false
connected = false
currentChannel = (mx.messaging.channels::AMFChannel)#2
initialDestinationId = (null)
messageAgents = (Array)#7
[0] (mx.rpc::AsyncRequest)#8
authenticated = false
autoConnect = true
channelSet = (mx.messaging::ChannelSet)#4
clientId = (null)
connected = false
defaultHeaders = (null)
destination = "remoteReference"
id = "245BCB93-2D25-4C42-D6F7-92948FE615C8"
reconnectAttempts = 0
reconnectInterval = 0
requestTimeout = -1
subtopic = ""
connected = false
connectTimeout = -1
enableSmallMessages = true
endpoint = "http://192.168.111.201:8080/blazeProject/messagebroker/amf"
failoverURIs = (Array)#9
id = "my-amf"
mpiEnabled = false
netConnection = (flash.net::NetConnection)#10
client = (mx.messaging.channels::AMFChannel)#2
connected = false
objectEncoding = 3
proxyType = "none"
uri = "http://192.168.111.201:8080/blazeProject/messagebroker/amf"
piggybackingEnabled = false
polling = false
pollingEnabled = true
pollingInterval = 3000
protocol = "http"
reconnecting = false
recordMessageSizes = false
recordMessageTimes = false
requestTimeout = -1
uri = "http://{server.name}:{server.port}/blazeProject/messagebroker/amf"
url = "http://{server.name}:{server.port}/blazeProject/messagebroker/amf"
useSmallMessages = false
channelId = "my-amf"
connected = false
currentTarget = (mx.messaging.channels::AMFChannel)#2
eventPhase = 2
faultCode = "Channel.Connect.Failed"
faultDetail = "NetConnection.Call.Failed: HTTP: Status 404: url: 'http://192.168.111.201:8080/blazeProject/messagebroker/amf'"
faultString = "error"
reconnecting = false
rejected = false
rootCause = (Object)#11
code = "NetConnection.Call.Failed"
description = "HTTP: Status 404"

NetConnection.Call.BadVersion amfsecure timeout??

$
0
0
Hi.<br /><br />We are using a secure channel like this:<br /><br />    <channels><br />        <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"><br />            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/><br />            <properties><br />                <add-no-cache-headers>false</add-no-cache-headers><br />            </properties><br />        </channel-definition><br />    </channels><br /><br />And we expose a remote service like this:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><service id="remoting-service" class="flex.messaging.services.RemotingService"><br />    <adapters><br />        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/><br />    </adapters><br />     <br />    <default-channels><br />        <channel ref="my-secure-amf"/><br />    </default-channels><br /><br />    <destination id="WebFlow"><br />        <properties><br />            <source>xxxxxxxxxxx.flex.FlexAdapter</source><br />        </properties><br />    </destination><br /></service><br /><br />Then, we create a RemoteObject like this:<br /><br />flowController = new RemoteObject("WebFlow");<br /><br />var channelSet: ChannelSet = new ChannelSet();<br />var channel: Channel = new AMFChannel("my-secure-amf", "https://localhost:443/example/messagebroker/amfsecure");<br />               <br />channelSet.addChannel(channel);<br />flowController.channelSet = channelSet;<br /><br />flowController.showBusyCursor = true;<br /><br />flowController.launch.addEventListener('result', onLaunch);<br /><br />It works well, but if we wait one minute (idle), when we try to invoke the method launch again it appears the following error:<br /><br />[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://localhost:443/example/messagebroker/amfsecure'"]<br />     at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev \3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:216]<br />     at mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49 ]<br />     at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]<br />     at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\ messaging\ChannelSet.as:1399]<br />     at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\m x\messaging\ChannelSet.as:935]<br />     at flash.events::EventDispatcher/dispatchEventFunction()<br />     at flash.events::EventDispatcher/dispatchEvent()<br />     at mx.messaging::Channel/connectFailed()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messagi ng\Channel.as:997]<br />     at mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\3.0.x\frameworks\projects\rp c\src\mx\messaging\channels\PollingChannel.as:354]<br />     at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\3.0.x\frameworks\projects\rpc\sr c\mx\messaging\channels\AMFChannel.as:369]<br /><br />Is there any one minute idle timeout?<br /><br />We have tried:<br /><br />     <flex-client><br />          <timeout-minutes>0</timeout-minutes><br />     </flex-client><br /><br />But it doesn't fix the problem.<br /><br />Any help would be appreciated.<br /><br />Thanks a lot.

Blazeds consumer disconnected when idle

$
0
0

If I let the consumer idle for at least half an hour and then try to send a message, the server will receive request(Channel endpoint my-streaming-amf received request) but cannot connect back de consumer and the consumer doesn't receive anything.

 

my channel settings:

 

<idle-timeout-minutes>0</idle-timeout-minutes>
<max-streaming-clients>100</max-streaming-clients>
<invalidate-session-on-disconnect>true</invalidate-session-on-disconnect>
<server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis>

 

 

How can this be addressed?

Turn off RemoteObject logging?

$
0
0

Is there a way to stop <mx:RemoteObject> from dumping all the debug and info traces to my logging TraceTarget? They're drowning out my own debug and info traces.

 

I've tried changing the services-config.xml in my blazeds folder on Tomcat, but it doesn't have an effect, and I still see all those traces in my FlexBuilder console whenever the remoting object makes a request.

 

Here the logging portion of my services-config.xml in the (Tomcat server)/webapps/blazeds/WEB-INF/flex/) folder


    <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Error">
            <properties>
                <prefix>[BlazeDS] </prefix>
                <includeDate>false</includeDate>
                <includeTime>false</includeTime>
                <includeLevel>false</includeLevel>
                <includeCategory>false</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
            </filters>
        </target>
    </logging>

 

Thanks for any thoughts or suggestions.

 

( Sorry if this question has been asked before but there's no obvious way on the Forums site to search a forum :-(     )

 

- Daniel

Santa Cruz, CA


Integrating BlazeDS into a Flash AS2 application

$
0
0

All,

 

I'm looking for some information about the feasibility of connecting a Flash application built in AS2 to BlazeDS.

 

Is this possible? Are there any tutorials/overviews to help me get started?

 

Many thanks in advance for any insights or advice.

"Didn't receive an acknowledge message" error

$
0
0

Hello all

 

I desperately need some help on this error

 

[FaultEvent fault=[RPC Fault faultString="Didn't receive an acknowledge message" faultCode="Server.Acknowledge.Failed" faultDetail="Was expecting mx.messaging.messages.AcknowledgeMessage, but received null"] messageId="344B0ECA-F06A-5549-06E7-461D547A1727" type="fault" bubbles=false cancelable=true eventPhase=2]

 

 

I've managed to narrow down the problem to a single remote object call. However, there is no change to this piece of code at all. (There are other changes to the same file, but not this method)

 

any suggestions are welcome

 

thank you

Flex Session timeout detection on the client?

$
0
0

I am connecting to Java backend(filenet 4.5.1), and I am checking the session in a filter configured to intercept the blazeds calls for MessageBrokerServlet. When the session timesout after 30 mins, the session is invalidated and the blazeds logging shows that the session is invalidated. It disconnects the channel between flex client and blazeds. When I am invoking remote call, since there is no channel, remote call is not going to the server, and the fault handler method is invoked with Client.Error.RequestTimeout after the default timeout for that particular call. How to detect whether channel is there or not? How to detect session timeout and throw message on the client.

BlazeDS serialization question

$
0
0

I recently came into a situation when sending a nested object from Java to Flex via a HashMap the Objects were null. More precisely:

final Map<Integer, List<String>> tempMap =newHashMap<Integer, List<String>>();

would send the keys as integers but the values were all null.

 

But when sending the same with String keys:

final Map<String, List<String>>tempMap=newHashMap<String, List<String>>();

the objects came thru.

 

Are there any restrictions in BlazeDS serialization when using complex types as keys?

Share Session data between Java Session and Flex Session

$
0
0

Hi!

I have some session data in a Java session that I want to share with the Session created by Flash.

Here is wat I want to do.

A SAML authentication filter (FEIDE login) puts the userID and user attributes in session attributes (Session A)

I want this userID ad the user attributes to be available in the Flash application.

 

Previously we only needed the userID. We put the userId in the flashvars array.

Now we need more user attributes. that are available in the java session (Session A).

 

The Flash application has its own session (Session B). There is no obvious way of sharing data between Session A and Session B.

The solution I came up with is:

  • The jsp page that loads the Flash application puts the sessionID in the flashVars
  • The session data is put in a global map with the session ID as key.
  • The user attributes are available throug a RemoteObject. Each call has the sessionID from sessionA.

 

Now my question. Is there a more elegant way of doing the same thing?

Viewing all 57966 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>