Java :: Flex To Failed Connection, Scrapbook Successful Connection?
Sep 13, 2011
Im trying to make connection from flex to java and from java to mysql. I managed to connect to java, but having error that class not found: com.mysql.jdbc.Driver. But i downloaded mysql.jar, included it added to library, and connection works when i testing it from clipse scrapbook. Dont know what to do, i spend last couple days on this.
Class.forName("com.mysql.jdbc.Driver");
String username = "username";
String password = "password";
[code]....
Basically the solution was simple. Everybody keeps saying to put jar into lib folder, so i done it, but i wasnt realised that i have to put into my servers lib directory, not app lib directory and this miserable mistake cost so much. Anyway i hope this will help for some newbie like me.In this particular situation im using red5, so i putted it into my red5 dist/lib directory and "surprisingly" its started to work.
View 1 Replies
Similar Posts:
Dec 17, 2010
I got a IP Communications new account having following paramters:
[Code]...
Its showing me connecting ... Status is not getting update like: "Connection Failed" or "Connection Success". how to use the above information in this app,
View 1 Replies
Oct 29, 2010
I've heard a couple of people say only 50% succeed, but that sounds suspiciously low and the people saying that are probably all repeating the same rumor. My own very limited tests with various friends & colleagues work 100% of the time, as long as they have Flash Player 10, but that's obviously not right either.
Do you have some data from a largish test or deployment of home/corporate users?
View 4 Replies
May 5, 2011
I am working on a project using flex/java/blazeds. This worked fine on local host however now that i have uploaded to a tomcat server(online), after having an error with the service uri, this error has now seemingly been solved, yet I am receiving another error which is as follows:
[Code]...
View 1 Replies
Mar 23, 2010
[URL]
I am using the same java server given there. and I am creating the XmlSocket in a flex air application. When I run my air application I get a java.net.SocketException connection reset at the java server.
Both are stand alone applications on my desktop.
Flex Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="init()">
[Code].....
View 1 Replies
May 13, 2010
I have a Flex application that connects to a BlazeDS server using the StreamingAMF channel. On the server-side the logic is handled by a custom adapter that extends ActionScriptAdapter and implements FlexSessionListener and FlexClientListener interfaces.
I am asking how can I detect which "flex-client" has closed a connection when for example the user is closing the browser? (so I can clean some infos inside the database)
I tried using the following:
1. To manually manage the command messages:
@Override
public Object manage(final CommandMessage commandMessage) {
switch (commandMessage.getOperation()) {
[Code]....
View 3 Replies
Jun 10, 2011
I'm still new at Flex. I want to make a flex code that request data to server everytime. I use java as a server. i have successfully generate a linked-list of data at server from asterisk cli command. like this
[Code]....
View 2 Replies
May 4, 2011
I have been developing an application(a website to be more precise) which consists of a flex front end which is constantly sending and receiving data from the back end which is programmed in java. The connection between the two components is being done through blazeds. This worked fine while I was running it locally, however when I uploaded both sides of the application to a tomcat server(online) the following error is being returned when a connection between the components should occur:URL...I have read around about this error and many seem to getting this error when making connections between different servers, unlike here, where the connection is occurring within the same server.
View 1 Replies
Sep 16, 2010
My client is in Flash/Flex (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my Flash client to talk to my server? I heard about Flash Remoting MX, but it is a request / response mechanism. I could always request something and wait for asynchronous notifications from server. Then request again, implementing something like a Comet server.Anyways, what is the industry standard for this type of communication: Flash Client talking to Java server, supporting asynchronous "push" notifications from server.
View 4 Replies
Jan 16, 2012
I have a video streaming app, and it uses Flash AS3. It keeps getting a NetStatusEvent of "NetConnection.Connection.Failed", when i try to use it in my Windows Testing environment. I need to make it work in my testing environments before i can launch this product.How do i diagnose this problem?
View 1 Replies
Mar 16, 2010
we have a two way webcam + mic connection set up using FMIS. we use to add a function that kills the connection?
View 2 Replies
Apr 2, 2010
I am trying to connect to FBJS bridge. It keeps giving me the following error.When I'm opening only one connection and I do not have any other window open.
ArgumentError: Error #2082: Connect failed because the object is already connected.at flash.net::LocalConnection/connect()at BabyVille()[C:Documents and SettingsuserDesktopabyvilleflashMain ProjectsrcBabyVille.as:56]This is my code :
public class fbjsTest extends Sprite[code]....
View 5 Replies
Feb 22, 2011
I'm building a Flash-based Facebook game with a Java backend, and I'm planning to use a RESTful approach to connect the two of them (not a persistent socket connection). I'm using the AS3 library to connect the client to Facebook, so that's where I have my session information stored. However, how do I authorize client connections back to the server? I can't leave the callback URLs open since that'd let people manipulate game state without playing the game. I need to make sure that the calls are coming from a valid client and through a valid session.
At the moment, users have no direct login to the backend server -- it's all handled through the client frontend. Can I pass the Facebook OAuth2 access token to the backend in a way that the backend can verify its validity? Should that be enough to trust a valid frontend connection?
I could do a two legged OAuth signed request or just use a simple shared secret, but the keys would have to be packed in with the flash client, which makes that almost useless for this use case.
View 3 Replies
Oct 31, 2010
I have a flash app which will send/receive a constant stream of data. The flash app should open a connection to the Java server, keep it open, and attempt to reconnect on socket failure. Are there any good APIs that offer this functionality? Smartfox Server is one option, but if I had my way I'd embed an API in my app rather than contort my app to run under Smartfox. Ideally it would offer an API on the flash end, another on the Java end, and efficiently (java nio preferably) handle the network component in between. I would just define handlers on both the client & server.
View 1 Replies
Jan 6, 2011
I have a Flex/Java/MySQL/Hibernate application running on tomcat/BlazeDS which have very LOW activity, the user can even not visit it for months.The problem that after a month of inactivity the connections between tomcat and mysql are closed and then I need to restart both the mysql and tomcat servers, is there a way to avoid that and maintain the connection always open?
View 3 Replies
Jan 6, 2011
Got a really big problem here. I keep on getting "NetConnection.Connect.Failed" when I load a .asc file on my main.asc file, i use the method load() in my code. I really don't understand why this happens, but when i comment out the code that loads the asc file, I can successfully connect to fms. I can't figure out what's happening here. Btw, i'm using fms4 in windows 7 32bit.
View 6 Replies
May 15, 2010
I am trying to start making an admin client side application to monitor our service, including its properties that simply cannot be done through Administration Console, like blocking IP addresses of offending users.My problem is that even before I start using the Administration API (on which I will comment further down), I tried to f.e. inspect theshared objects and streams of the application through the Admin. Console, but I get a popup "Failed to make debug connection, please check that the application is in debug mode." Configuration files are unaltered from install, which means xPendingDebugConnections is set to 50, AllowDebugDefault is set to false, BUT in the serve side main.asc file I have "application.allowDebug = true;"Also, on a related note.
I can see that the Administration API lists the API itself, but there is vague to no mention at all where to connect first? I recall spotting somewhere suffixing the RTMP URL with something like "_fcs_debug" or something, but you can see how this frustrates me - I really don't like to google stuff that is supposed to be in the documentation The application instance usually accepts connections from regular non-admin clients, with proper parameters, which are irrelevant for admins unless these are users too (double membership, you can say)
View 11 Replies
Feb 4, 2010
I've started with Flex recently, I've noticed that some plugin for Visual Studio exist, instead of buying a licence for another program (Flex Builder).I was wondering how I could manage to remotely connect to my database with a Flash/Flex application with the help of C#/Asp.Net.
If I've correctly understood what I've read in the last few days, there is basically no way to 'query' to a database with Flex 3. So I suppose there is another way by using a webservice in C# on the database server that would respond to the Http query from Flex.
View 3 Replies
Mar 29, 2010
i found this link online about connection flash/flex to php. [URL]
basically what we are trying to do is connecting the flex login and get authenticated through the php/mysql database.
View 6 Replies
Nov 3, 2010
I built two flash uploaders using actionscript 3 & actionscript 2 that sends files to a java servlet. The java servlet successfully receives that file, but the flash uploader fires an IOerror #2038 instead of a complete event.
There was another question is my exact same problem, but the answer "clear the cache" was very broad, and the question owner was too lazy to give a detailed description.
[URL]
View 2 Replies
Apr 22, 2010
Is there a timeout on the connection made by URLLoader.load? If there is, what's its value, where is it documented and can it be changed? Also, what event (if any) gets dispatched if the timeout occurs? Is there a difference between AIR and browser application in those regard?
View 2 Replies
Mar 14, 2011
When working with CRUD operation in flex, I want to know how to open only one time for all update and delete operations. How can I do this?
View 2 Replies
Jun 8, 2011
I am creating an air app that uses HTTPService to connect to a .net api and get a user for example. It works great when I publish the move for "Flash Player 10" as a .swf, however, when I publish it as .air it seems like there is no internet connection at all. I am assuming it's internet securities (maybe firewall). I turned off my firewall and everything that might be blocking the internet access, but nothing seems to work.
View 1 Replies
Jan 13, 2012
On my network I have a couple of pc's all running a bespoke server which will return the username of the person logged in when queried.I have the following piece of code.
private function LoopAndList():void
{
var loopSocket:Socket;
var fourthOctet:Number = 6;
[code]....
Now when this runs it doesn't work as I first thought. The iterations go though. the fourthOctet value is decremented. But somethinjg strange happens. You will notice in the above code that I have a hardcoded IP address in the loop. I have put this there to ensure that there is always a valid connection. So am aware it will always be connecting to 192.168.0.4.
But the connection only happens on the last connect call.
The ouput is:
192.168.0.6
Connecting to 192.168.0.6
192.168.0.5
Connecting to 192.168.0.5
[code]....
View 2 Replies
Feb 7, 2012
I installed red5 successfully, but when I try to connect to red5 to stream a video, the connection fails. If I use netstreaming(null), it works, but when I use red5, it doesn't.
[Code]...
View 1 Replies
Feb 13, 2010
i was to create a type of ftp connection using flash/flex, however because actionscript doesnt support ftp i need to use other programs such as c#.net.intergration i have seen can be done with tools like WebOrb for .Net however because this is an Air application i want to be able to access .net class files(dll) from flash without havent to be connected to any sort of server.however i cant find any solutions to connecting to .net classes as a standalone application.
View 3 Replies
Aug 4, 2009
I want to open a connection back to the server using Flex so I can stream chat messages to the Flex front-end. How do I do this and does Flex enforce any same-origin restrictions on ports or subdomains?
View 1 Replies
Sep 29, 2009
import flash.events.*;
import flash.net.XMLSocket;
import flash.system.Security;
[Code]....
I want to implement flex web application using Socket connection. But I am getting sand box violation error for remote sites in sample application . It is working fine in local.
Error:
Security Sandbox Violation
Error: Request for resource at xmlsocket://170.21.8.0:4000 by requestor from http://localhost/Sample/DotNetSocketConnect.swf is denied due to lack of policy file permissions.
View 1 Replies
Feb 12, 2010
I am writing a peer-to-peer binary socket program. There are only two endpoints. One socket is listening on my laptop system. The other socket is broadcasting from my desktop system. I have a third program running on a hosted server, that is available to broker the connection between the two. My problem is that when the laptop and desktop are on the same network, they both have the same internet IP address but different intranet IPs, but when the laptop is on the road, then the IP addresses are different. In order to be truly peer-to-peer, I have to write it so that after the connection is established, that the two computers communicate directly between one another. How is this generally accomplished, when the two computers could potentially share the same IP address, if they are running on the same network?
View 1 Replies
Nov 29, 2010
I'm starting a Flex app on a pretty big reporting engine and want to know how best to connect to a Postgres Database. I'd like to create a REST API architecture so I can use the service for more than just the Flex app(mobile possibly).These are my options I've found:
Datatype: either XML, JSON or AMF
Flex Service: HTTPService or WebService
Server(using PHP): ZendAMF, custom json_encode implementation, Zend_Rest_Server
I've got my views all mapped out, and the api functions designed. Basically what I need is advice on which Flex / back-end service combo to provide.
View 2 Replies