Blazeds help

So I have a problem that has been bothering me for a few weeks now. My backstory is a Flex front end that connects to a java backend located on the same server. It is running on a tomcat server. When you are inside the firewall everything runs fine in firefox but crashes in IE. When outside the firewall you can reach the swf but get back a very long server 500 error. This is my remote object:
<mx:RemoteObject id="ldapConnect" destination="ldapService" showBusyCursor="true"
endpoint="https://servername/blazeds/messagebroker/amf">
<mx:method name="getAllUsersXML" result="getAllUsers(event)" />
<mx:method name="clearCache"/>
</mx:RemoteObject>
this is part of my services-config.xml file
<!-- Servlet Based endpoints -->
<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"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition>
<channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</polling-interval-seconds>
</properties>
</channel-definition>
<channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
</channel-definition>
<!-- Secure Servlet-based endpoints -->
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<!--HTTPS requests on some browsers do not work when pragma "no-cache" are set-->
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>
<channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
<properties>
<!--HTTPS requests on some browsers do not work when pragma "no-cache" are set-->
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>

So I have a problem that has been bothering me for a few weeks now. My backstory is a Flex front end that connects to a java backend located on the same server. It is running on a tomcat server. When you are inside the firewall everything runs fine in firefox but crashes in IE. When outside the firewall you can reach the swf but get back a very long server 500 error. This is my remote object:
<mx:RemoteObject id="ldapConnect" destination="ldapService" showBusyCursor="true"
endpoint="https://servername/blazeds/messagebroker/amf">
<mx:method name="getAllUsersXML" result="getAllUsers(event)" />
<mx:method name="clearCache"/>
</mx:RemoteObject>
this is part of my services-config.xml file
<!-- Servlet Based endpoints -->
<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"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition>
<channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</polling-interval-seconds>
</properties>
</channel-definition>
<channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
</channel-definition>
<!-- Secure Servlet-based endpoints -->
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<!--HTTPS requests on some browsers do not work when pragma "no-cache" are set-->
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>
<channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
<properties>
<!--HTTPS requests on some browsers do not work when pragma "no-cache" are set-->
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>

Similar Messages

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

Hi, In my BlazeDS application (AMF based), I am throwing two kind of java Exceptions: TechnicalException extends RuntimeException : this one is thrown to the Flex client when any unexpected error on the server is caught BusinessException extends Exception : this one is a base class for business-related exception On the Flex side, I created the same Exception classes mapped to the Java ones using the [RemoteClass] metadata tag. In the error event handler of my RemoteObject call, I am looking at the event.fault.rootCause property for fully typed flex exception class, so that I can simply switch my behavior depending on the received exception. I observed the following behavior: When throwing a java TechnicalException from the server, it is correctly deserialized as a flex TechnicalException on client side. So the assertion "event.fault.rootCause is TechnicalException" is working fine. When throwing a java BusinessException from the server, it is NOT correctly deserialized as a flex BusinessException on client side. So the assertion "event.fault.rootCause is BusinessException" is NOT working. The only reason I see for that is that only RuntimeExceptions can be deserialized strongly typed on Flex side. Is it the nominal behavior of the Flex RemoteObject or did I miss something ? Many thanks in advance for your help, Avangel.

Ok, I finally found the answer to my problem. For those interested, the cast of java Exceptions into ActionScript Exception is working exactly like any other class. It has nothing to do with whether the java class extends RuntimeException or not, or any other class / interface. It just doesn't matter at all. Flex RPC simply looks for an AS class mapped to the received Java class through the [RemoteClass] metadata tag. If it finds it, it just try to map fields from java object to AS object (even if a field is not matching, it just ignores it).
So the problem was a very well-know AS compiler problem: AS classes that are used only at runtime for conversion are not compiled in the SWF. In other words, if you have not any class that references your Exception class, that one won't be included in the SWF file, so the RemoteObject won't find it, thus returns an Object instead of strongly typed AS class.
Hope this may help someone
Avangel.

in your java code you are considering user as the parameter.. but that is not a parameter..
When making a http call in flex try something like this
var obj:Object = new Object();
obj["user"] = 'someuser';
service.send(obj);
this should work hopefully.

I have BlazeDs running locally Great, I've run through the BlazeDs - Coldfusion 8 Installation/configuration notes, but I'd getting Failed to send error's http://cfserver.hull.ac.uk/ds-console/ http://cfserver.hull.ac.uk/samples/index.htm I carn't see whats wrong with it ! Any help please.

Guys, I've been tearing my hair out for a month with this problem - any help would be most gratefully appreciated! I need to get a flex app working with single-signon on the windows platform. I want to grab the windows username and domain from the browser without having users enter by hand. I will then authenticate against my own repository tables accessed via remote objects (blazeds + spring flex + spring + hibernate) I have a servlet that uses NTLM authentication challenge response. The servlet works on its own returning usename and domain. See below for servlet code HOWEVER - no matter how i call the servlet from flex it seems to totally screw up blazeds. No further remote object calls are possible. The same remote call works before but not after the servlet has been called. Its driving me insane!!! I suspect the problem is related to how the single initial call to the servlet from Flex results in a further two executions of the servlet. I assume Internet Explorer is initiating further calls. I've tried calling it in the following ways... - HTTPServce with URL - HTTPServive with blaze destination - From within actionscript - From MXML - From a flex module - from the javascript wrapper using XMLHttpRequest and flashvars - With one trouser leg rolled up and my finger in my ear Every single time it stops any further remote object calls from working they get as far as [BlazeDS][DEBUG] FlexSession created with id 'ADF15BED993AD562EEA9249EE6B33CED' for an Http-based client connection. [BlazeDS][DEBUG] Deserializing AMF/HTTP request but know further. Clever people please help - before i blow my brains out!! ;-) Thanks in advance Gary

I have the same problem.
1) Open page with a swf using BlazeDS for remoting. Works fine
2) Go to other page doing NTLM authentication. Works fine.
3) Go back to the first page, BlazeDS remoting does not work anymore.
Did you find a solution?

Hi I need some help on blazeDS.I am pretty new to blazeDS.i am finding it difficult to configure remote configuraton from my flex builder.I have got a coldfusion server which is deployed inside the Weblogic server as a web application.So i choose my server as ColdFusion and selected deployed in J2EE(Radio button) Whenever i select ValidateConfiguration I get the error LiveDataService not installed in the specified location.My requirement is i need to call both CFCs as well as Java classes .It will be of great help if somone helps me out to get my configuration right. Regards Sidd

I have decided to experiment with blazeds and see if I can get it working everything was going fine i follow several tutorials and i was able to get everything running just fine on my pc. Then i decided to extract records from local oracle database thats when everything went south. If i debug the application in java i get a resultset back from my java class but when i attempt to query the java class i get this nasty error. faultString="java.sql.SQLException : No suitable driver found for jdbc:oracle:thin:@//192.168.1.6:1521/exe" faultCode="Server.Processing" faultDetail="null"] I have added the ojdbc14.zip file to my build path i have referenced it anywhere possible and still nothing??? has anyone else experienced this problem in the past? is rather frustuating been added the whole day now and i can get rid of this error? If i debug the java class locally. it works like a charm but when i attempt to call from flex using blazeds its all south. Hope someone can throw me a bone on this one. Thanks Miguel

follow your directions to the 'T' and its definitely a zip i changed the file to .jar and now im
getting a different error.
faultString="java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError : oracle/jdbc/driver/OracleDriver"
very weird.

I have a configured Flex-Blaze-Spring application. I can call a remote method on a Spring bean and pipe its results, (list of pojos), to a DataGrid and the grid displays the data. The remote object is defined with a <mx:> tag, defining a handler function that pipes the result as ArrayCollection to the DataGrid's data provider. I now want to perform another call to the remote Spring bean, but this time define the remote object in ActionScript, and pipe the results to a ArrayCollection variable that I can then iterator thru and pick off values from attributes of the objects in the ArrayCollection. I can't set access, my collection seems to be empty. Here is some code: public var gameRO:RemoteObject; public var weeksGameList:ArrayCollection; public function makePickGrid():void { pickPanel.removeAllChildren(); var pickGrid:Grid = new Grid(); var gRow:GridRow = new GridRow(); var gItem:GridItem = new GridItem(); var cb:CheckBox; gameRO = new RemoteObject(); gameRO.destination = "gameService"; gameRO.getWeeksGames.addEventListener( ResultEvent.RESULT, getWeeksGamesResultHandler ); gameRO.addEventListener( FaultEvent.FAULT, handleFault ); gameRO.getWeeksGames( curWeek.selectedItem ); for each (var game:Object in weeksGameList) { cb = new CheckBox(); cb.label = game.awayTeam; gItem.addChild( cb ); gRow.addChild( gItem ); pickGrid.addChild( gRow ); pickPanel.addChild( pickGrid ); public function getWeeksGamesResultHandler(event:ResultEvent):void { weeksGameList = event.result as ArrayCollection; What am I missing here? Thanks for any help!! mik

Hello
This is a bit of a wild guess, but looking at the code, is it possibly related to the scope of cb?
Why not declare it inside the for loop, rather than outside it?

Hi I have an existing Tomcat application using JSPs and a Flex Client that uses HTTPService (Cairngorm). Can we use BlazeDS to access these JSPs over AMF? How might that work in Cairngorm. Thanks

There may be other ways to do this but here's what I would do:
1) add a results method to the remote object:
src.result="onResult(event.result)";
2) add the callback method: private function onResult(event : * = null)
:void{
if(event is
ArrayCollection)
myData =
ArrayCollection(event);
3) add the variable: private var myData:ArrayCollection;
4) make the dataProvider for the grid use the my data :
dataProvider=""
You can probably avoid all this by adjusting your dataProvider. I am just
not sure what it would be without experimenting. But definitely not what
you have. Maybe just {svc.result}.

Background:
- Using Flex Builder 3 plugin for Eclipse
- Downloaded latest BlazeDS release build
- Running Tomcat 6.0.16
=======
First I want to note the samples that come with BlazeDS run
absolutely fine.
So I created a new project in Flex Builder 3. I'm just trying
to get something simple working at first so my one mxml file is as
follows (I stripped out everything except the code in question):
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:RemoteObject id="ro"
destination="enrollmentService"/>
<mx:DataGrid
dataProvider="{ro.getEnrollmentList.lastResult}" width="100%"
height="100%"/>
<mx:Button label="Get Data"
click="ro.getEnrollmentList()"/>
</mx:Application>
=====
I created and EnrollmentService class and I'm sure it's
getting compiled to WEB-INF/class...I see .class file there.
I added the flex folder to the WEB-INF folder. My
remoting-config.xml is as follows (because of problems I specified
a default and repeated it to be sure):
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter"
default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="enrollmentService">
<properties>
<source>test.service.EnrollmentService</source>
</properties>
<channels>
<channel ref="my-amf"/>
</channels>
</destination>
</service>
My services-config has the following channel defined:
<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"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition>
My web.xml is a follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN" "
http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>RemoteTest</display-name>
<context-param>
<param-name>flex.class.path</param-name>
<param-value>/WEB-INF/flex/hotfixes</param-value>
</context-param>
<!-- Http Flex Session attribute and binding listener
support -->
<listener>
<listener-class>flex.messaging.HttpFlexSession</listener-class>
</listener>
<!-- MessageBroker Servlet -->
<servlet>
<servlet-name>MessageBrokerServlet</servlet-name>
<display-name>MessageBrokerServlet</display-name>
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
<init-param>
<param-name>services.configuration.file</param-name>
<param-value>/WEB-INF/flex/services-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MessageBrokerServlet</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
</web-app>
====
So I start Tomcat from Eclipse and run the app by clicking
the Run button in Eclipse. The app comes up fine, but when I press
the "Get Data" button. I get the error message below. For the life
of me I don't understand why. I clearly have a default channel AND
I have specified a channel. This is so frustrating...any help would
be greatly appreciate.
====
[RPC Fault faultString="[MessagingError message='Destination
'enrollmentService' either does not exist or the destination has no
channels defined (and the application does not define any default
channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'enrollmentService'"]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\ src\mx\rpc\AbstractInvoker.as:257
at mx.rpc.remoting.mxml::Operation/
http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\ src\mx\rpc\remoting\mxml\Operation.as:197
at
mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remotin g\Operation.as:113]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at
mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\re moting\mxml\Operation.as:170]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AbstractService/
http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.0.x\frameworks \projects\rpc\src\mx\rpc\AbstractService.as:285
at
FlexJ2EE_test/___FlexJ2EE_test_Button1_click()[C:\Prj\workspace\RemoteTest\flex_src\Remot eTest.mxml:36]

While creating a Flex project using Flex builder, did you
select the server type for your project? If you did not select a
server type for your flex project, did you configure your compiler
to include your services-config.xml using the -services argument?
In your project's compiler settings, add -services
"configurationfiles/services-config.xml" argument to the compiler
arguments. The path should point to your services-config.xml.
If the above mentioned steps were completed and still your
facing problem, can you please try running "clean" on your project.
Hope this helps.

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

Hi All Our application is on Blazeds 4.0.0.7548 deployed on websphere 7.0. While this application works fine on HTTP but it doesn't work consistently on HTTPS. It throws following exception FaultEvent fault=[RPC Fault faultString="error" faultCode="Channel.Call.Failed" faultDetail="NetConnection.Call.Failed: HTTP: Failed"] messageId="C6ABB836-C505-CAFC-F114-0006E0E0305F" type="fault" bubbles=false cancelable=true eventPhase=2. Following is the screeshot I don't see any exception in the logs as well. HTTP works fine, i only see this exception on HTTPS. Regards Ravi

As I mentioned earlier, we are using MGCP for that particular fax port and the gateway we use as H323.
Even I'm not pretty sure about using mixed protocol, I believe this gateway gonna used to support call center calls. SInce MGCP is easy for configs they might have confiugred only the port as MGCP endpoint.
Now its not working with both the cases, not in mgcp as well as fallback mode. Can you reveiw the debugs and see why I have to remove "modem passthrough" command from voice service voip section which of our standard config and works well with all other gateway of ours. Please help here.

There is an issue using IE and blazeds. When you establish a connection to blazeds from a tab of your browser, even when the tab get closed, she connection remains. The session doesn't get invalidated. It looks like it works fine in Firefox but it's an issue in IE.
It is especialy important if you are build a chat room for example ... you want to know precisly when someone is leaving the room.
I finally found an answer to this problem. I didn't find any answer on the Internet so I felt that I should share it.
I invalidate the session on the server side using a servlet.
Here is the code:
In my flex app html template I add:
<script langugage='javascript'>
function disconnectAll(){
if (navigator.appName == "Microsoft Internet Explorer")
xhr = new ActiveXObject("Microsoft.XMLHTTP"); // Trying Internet Explorer
else
xhr = new XMLHttpRequest();
if (xhr) {
xhr.open("GET", "../disconnect", false);
xhr.send(null);
</script>
</head>
<body scroll="no" onunload="disconnectAll()" >
This call to ../disconnect does a http request to my servlet that will invalidate the connection.
Here is the servlet code:
public class Disconnect extends HttpServlet {
private static final long serialVersionUID = 1L;
@Override
public void doGet(HttpServletRequest httpRequest, HttpServletResponse response) {
System.out.println("doGet disconnect called !");
httpRequest.getSession().invalidate();
This has to be added in the web.xml for the servlet to be accessible:
<servlet>
<servlet-name>DisconnectServlet</servlet-name>
<display-name>DisconnectServlet</display-name>
<servlet-class>com.ms.advil.servlets.Disconnect</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DisconnectServlet</servlet-name>
<url-pattern>/disconnect</url-pattern>
</servlet-mapping>
That’s it ! On the unload of the page, an Ajax request is made to the servlet that will invalidate the http session.
Your browser’s connections get invalidated and blazeDS catches the disconnection.
Hope this will help
Cheers

answered

Maybe you are looking for

Hi all, I'd like to raise an event in java webdynpro which starts a business workflow. The Workflow already exists, There is a ESS with java webdynpro, which uses floorplan manager. When an employee enters some data in the ESS and clicks on the "Sav

Hi All, I need some help!! I'm working on a fairly large catalogue where there is 300+ vector files placed into the Indesign document. As I place more I'm finding Indesign just get slower and slower. GRRRR!!!!! Even when I copy and past an image I ha